/* ============================================================
   Diffractive Labs — diffractive.css
   Drop-in stylesheet: tokens + base + components.
   Works standalone in plain HTML and as the styling layer for
   the React components in ui/.
   Component classes are prefixed df-.
   ============================================================ */

@import url("./fonts.css");
@import url("../tokens/tokens.css");

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--df-soft-white);
  color: var(--df-text);
  font-family: var(--df-font-sans);
  font-size: var(--df-text-base);
  line-height: var(--df-leading-body);
  letter-spacing: var(--df-tracking-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 400;
  margin: 0 0 var(--df-space-5);
  letter-spacing: var(--df-tracking-display);
}
h1 { font-size: var(--df-text-2xl); line-height: var(--df-leading-display); color: var(--df-text-display); max-width: 16em; }
h2 { font-size: var(--df-text-xl); line-height: var(--df-leading-tight); color: var(--df-text-display); }
h3 { font-size: var(--df-text-lg); line-height: var(--df-leading-heading); color: var(--df-text); }
h4 { font-size: var(--df-text-base); line-height: var(--df-leading-heading); color: var(--df-text); }

p { margin: 0 0 var(--df-space-4); max-width: 34em; }

a {
  color: var(--df-accent);
  font-family: var(--df-font-mono);
  font-size: var(--df-text-sm);
  text-transform: uppercase;
  letter-spacing: var(--df-tracking-mono);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--df-duration-fast) var(--df-ease), background var(--df-duration-fast) var(--df-ease);
}
a:hover { background: var(--df-highlight); color: var(--df-ink); }

/* prose links: inherit the sans body style instead of the mono treatment */
.df-prose a { font-family: inherit; font-size: inherit; text-transform: none; letter-spacing: inherit; }

::selection { background: var(--df-highlight); color: var(--df-ink); }

hr, .df-divider { border: 0; border-top: var(--df-border); margin: var(--df-space-6) 0; }

code, kbd { font-family: var(--df-font-mono); font-size: 0.85em; }

/* ---------- Layout ---------- */

.df-container {
  max-width: var(--df-max-width);
  margin: 0 auto;
  padding-left: var(--df-gutter);
  padding-right: var(--df-gutter);
}

.df-section { padding-top: var(--df-space-section); padding-bottom: var(--df-space-section); }
@media (max-width: 800px) { .df-section { padding-top: var(--df-space-8); padding-bottom: var(--df-space-8); } }

/* App shell (dashboards): fixed sidebar + scrolling main */
.df-shell { display: grid; grid-template-columns: auto 1fr; min-height: 100vh; }
.df-shell > main { min-width: 0; padding: var(--df-space-6) var(--df-gutter) var(--df-space-9); }
@media (max-width: 900px) { .df-shell { grid-template-columns: 1fr; } .df-sidebar { display: none; } }

/* ---------- Type helpers ---------- */

.df-eyebrow, .df-mono {
  font-family: var(--df-font-mono);
  font-size: var(--df-text-xs);
  line-height: var(--df-leading-mono);
  letter-spacing: var(--df-tracking-mono);
  text-transform: uppercase;
}
.df-eyebrow { color: var(--df-accent); display: block; margin-bottom: var(--df-space-4); }
.df-muted { color: var(--df-text-muted); }

.df-mark { background: var(--df-highlight); color: var(--df-ink); padding: 0 0.15em; }

/* ---------- Top nav ---------- */

.df-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--df-space-6);
  padding: var(--df-space-4) var(--df-gutter);
  border-bottom: var(--df-border);
  background: var(--df-soft-white);
}
.df-nav__logo { display: flex; align-items: center; gap: var(--df-space-3); }
.df-nav__logo img, .df-nav__logo svg { height: 22px; width: auto; display: block; }
.df-nav__links { display: flex; gap: var(--df-space-6); list-style: none; margin: 0; padding: 0; }
.df-nav__links a { text-decoration: none; color: var(--df-accent); }
.df-nav__links a:hover, .df-nav__links a[aria-current] { background: var(--df-highlight); color: var(--df-ink); }

/* ---------- Sidebar (platform) ---------- */

.df-sidebar {
  width: 240px;
  border-right: var(--df-border);
  padding: var(--df-space-5) var(--df-space-5) var(--df-space-6);
  display: flex; flex-direction: column; gap: var(--df-space-6);
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  transition: width var(--df-duration) var(--df-ease), padding var(--df-duration) var(--df-ease);
}

/* Brand slot: full logo when expanded, glyph mark when collapsed */
.df-sidebar__brand { display: flex; align-items: center; min-height: 24px; text-decoration: none; }
.df-sidebar__brand-full { display: flex; align-items: center; gap: 10px; }
.df-sidebar__brand-mark { display: none; }

/* Collapsed rail: mark-only brand, mono abbreviations for links */
.df-sidebar--collapsed { width: 68px; padding-left: var(--df-space-3); padding-right: var(--df-space-3); }
.df-sidebar--collapsed .df-sidebar__brand { justify-content: center; }
.df-sidebar--collapsed .df-sidebar__brand-full { display: none; }
.df-sidebar--collapsed .df-sidebar__brand-mark { display: block; }
.df-sidebar--collapsed .df-sidebar__title { display: none; }
.df-sidebar--collapsed a { text-align: center; padding-left: 0; padding-right: 0; }
.df-sidebar__abbr, .df-sidebar__icon { display: none; }
.df-sidebar__icon svg { display: block; width: 20px; height: 20px; }
.df-sidebar--collapsed .df-sidebar__label { display: none; }
.df-sidebar--collapsed .df-sidebar__abbr { display: inline; }
.df-sidebar--collapsed .df-sidebar__icon { display: flex; justify-content: center; }
.df-sidebar--collapsed a { padding-top: 10px; padding-bottom: 10px; }

.df-sidebar__toggle {
  min-height: 36px; padding: var(--df-space-2) var(--df-space-3);
  background: transparent; border: var(--df-border); border-radius: var(--df-radius);
  font-family: var(--df-font-mono); font-size: var(--df-text-xs);
  letter-spacing: var(--df-tracking-mono); text-transform: uppercase;
  color: var(--df-text-muted); cursor: pointer;
  transition: background var(--df-duration-fast) var(--df-ease), color var(--df-duration-fast) var(--df-ease);
}
.df-sidebar__toggle:hover { background: var(--df-highlight); color: var(--df-ink); }
.df-sidebar__group { display: flex; flex-direction: column; gap: 2px; }
.df-sidebar__title { color: var(--df-text-muted); margin-bottom: var(--df-space-2); }
.df-sidebar a {
  display: block; padding: var(--df-space-2) var(--df-space-3);
  border-radius: var(--df-radius);
  text-decoration: none;
}
.df-sidebar a:hover { background: var(--df-highlight); color: var(--df-ink); }
.df-sidebar a[aria-current] { background: var(--df-accent); color: var(--df-text-on-accent); }
.df-sidebar__spacer { flex: 1; }

/* ---------- Buttons ----------
   .df-btn          solid Accent Blue (primary; ~1 per view)
   .df-btn--ghost   hairline box (secondary)
   .df-btn--quiet   Figma "ButtonNoBox": mono underline, no box
   All: mono, uppercase. Min target 44px. */

.df-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--df-space-2);
  min-height: 44px; padding: 10px 20px;
  font-family: var(--df-font-mono); font-size: var(--df-text-sm);
  letter-spacing: var(--df-tracking-mono); text-transform: uppercase; line-height: var(--df-leading-mono);
  background: var(--df-accent); color: var(--df-text-on-accent);
  border: 1px solid var(--df-accent); border-radius: var(--df-radius);
  text-decoration: none; cursor: pointer;
  transition: background var(--df-duration-fast) var(--df-ease), border-color var(--df-duration-fast) var(--df-ease), color var(--df-duration-fast) var(--df-ease);
}
.df-btn:hover { background: var(--df-accent-hover); border-color: var(--df-accent-hover); color: var(--df-text-on-accent); }
.df-btn:focus-visible, a:focus-visible, .df-input:focus-visible {
  outline: 2px solid var(--df-accent); outline-offset: 2px;
}
.df-btn:disabled { background: var(--df-hairline); border-color: var(--df-hairline); color: var(--df-text-muted); cursor: not-allowed; }

.df-btn--ghost { background: transparent; color: var(--df-accent); border-color: var(--df-hairline-strong); }
.df-btn--ghost:hover { background: var(--df-highlight); color: var(--df-ink); border-color: var(--df-hairline-strong); }

.df-btn--quiet {
  background: transparent; border: 0; color: var(--df-accent);
  padding: 10px 0; min-height: 0;
  text-decoration: underline; text-underline-offset: 3px;
}
.df-btn--quiet:hover { background: var(--df-highlight); color: var(--df-ink); }

.df-btn--on-accent { background: transparent; border: 0; color: var(--df-text-on-accent); text-decoration: underline; text-underline-offset: 3px; }
.df-btn--on-accent:hover { background: rgba(246,244,243,0.15); color: var(--df-text-on-accent); }

/* ---------- Card ---------- */

.df-card {
  background: var(--df-surface);
  border: var(--df-border);
  border-radius: var(--df-radius);
  padding: var(--df-space-5);
}
.df-card__label { color: var(--df-text-muted); margin-bottom: var(--df-space-4); display: block; }

/* ---------- Stat tile ---------- */

.df-stat { display: flex; flex-direction: column; gap: var(--df-space-2); }
.df-stat__label { color: var(--df-text-muted); }
.df-stat__value {
  font-size: var(--df-text-2xl); line-height: var(--df-leading-display);
  letter-spacing: var(--df-tracking-display); color: var(--df-text);
}
.df-stat__delta { font-family: var(--df-font-mono); font-size: var(--df-text-xs); letter-spacing: var(--df-tracking-mono); }
.df-stat__delta--up { color: var(--df-good); }
.df-stat__delta--down { color: var(--df-critical); }
.df-stat__delta--flat { color: var(--df-text-muted); }

/* ---------- Badge (status) — reserved colors, always dot + label ---------- */

.df-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--df-font-mono); font-size: var(--df-text-xs);
  letter-spacing: var(--df-tracking-mono); text-transform: uppercase; line-height: 1;
  padding: 5px 8px; border-radius: var(--df-radius);
  color: var(--df-text); background: var(--df-surface-2);
}
.df-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--df-text-muted); }
.df-badge--good     { background: var(--df-good-bg); color: var(--df-good); }
.df-badge--good::before { background: var(--df-good); }
.df-badge--warn     { background: var(--df-warn-bg); color: var(--df-warn); }
.df-badge--warn::before { background: var(--df-warn); }
.df-badge--critical { background: var(--df-critical-bg); color: var(--df-critical); }
.df-badge--critical::before { background: var(--df-critical); }
.df-badge--accent   { background: #E0EAFD; color: var(--df-accent); }
.df-badge--accent::before { background: var(--df-accent); }

/* ---------- Chip (the "We are hiring" pattern) ---------- */

.df-chip {
  display: inline-flex; align-items: center; gap: var(--df-space-3);
  border: var(--df-border); border-radius: var(--df-radius);
  background: var(--df-surface);
  padding: var(--df-space-3) var(--df-space-4);
  font-size: var(--df-text-md);
}
.df-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--df-accent); }

/* ---------- Table — "list/table instead of pictures" ---------- */

.df-table { width: 100%; border-collapse: collapse; font-size: var(--df-text-md); }
.df-table th {
  white-space: nowrap;
  font-family: var(--df-font-mono); font-size: var(--df-text-xs); font-weight: 400;
  letter-spacing: var(--df-tracking-mono); text-transform: uppercase;
  color: var(--df-text-muted); text-align: left;
  padding: var(--df-space-3) var(--df-space-4);
  border-bottom: 1px solid var(--df-hairline-strong);
}
.df-table td > code { white-space: nowrap; }
.df-table td {
  padding: var(--df-space-3) var(--df-space-4);
  border-bottom: var(--df-border);
  color: var(--df-text);
}
.df-table td.df-num, .df-table th.df-num { text-align: right; font-variant-numeric: tabular-nums; }
.df-table tbody tr { transition: background var(--df-duration-fast) var(--df-ease); }
.df-table tbody tr:hover { background: var(--df-highlight); }  /* highlighter-on-hover */
.df-table a { font-size: inherit; text-transform: none; letter-spacing: normal; font-family: inherit; }

.df-table--flush th:first-child, .df-table--flush td:first-child { padding-left: 0; }
.df-table--flush th:last-child, .df-table--flush td:last-child { padding-right: 0; }

/* ---------- Forms ---------- */

label.df-label {
  display: block; margin-bottom: var(--df-space-2);
  font-family: var(--df-font-mono); font-size: var(--df-text-xs);
  letter-spacing: var(--df-tracking-mono); text-transform: uppercase;
  color: var(--df-text);
}
.df-input, .df-select, .df-textarea {
  width: 100%; min-height: 44px;
  padding: 10px 12px;
  font-family: var(--df-font-sans); font-size: var(--df-text-md); color: var(--df-text);
  background: var(--df-surface);
  border: var(--df-border); border-radius: var(--df-radius);
  transition: border-color var(--df-duration-fast) var(--df-ease);
}
.df-input::placeholder { color: var(--df-text-muted); }
.df-input:hover, .df-select:hover, .df-textarea:hover { border-color: var(--df-hairline-strong); }
.df-input:focus, .df-select:focus, .df-textarea:focus { outline: 2px solid var(--df-accent); outline-offset: 0; border-color: var(--df-accent); }
.df-field { margin-bottom: var(--df-space-5); }
.df-field__hint { font-size: var(--df-text-sm); color: var(--df-text-muted); margin-top: var(--df-space-2); }
.df-field--error .df-input { border-color: var(--df-critical); }
.df-field--error .df-field__hint { color: var(--df-critical); }

/* ---------- CTA band (the "Join the team" block) ---------- */

.df-cta {
  display: flex; justify-content: space-between; align-items: flex-start; gap: var(--df-space-7);
  background: var(--df-accent); color: var(--df-text-on-accent);
  border-radius: var(--df-radius);
  padding: var(--df-space-5) var(--df-space-4) var(--df-space-5) var(--df-space-5);
  min-height: 156px;
}
.df-cta__title { font-size: var(--df-text-xl); line-height: var(--df-leading-tight); letter-spacing: var(--df-tracking-display); color: var(--df-text-on-accent); margin: 0; }
.df-cta__side { display: flex; flex-direction: column; align-items: flex-start; gap: var(--df-space-4); max-width: 24em; font-size: var(--df-text-md); }
@media (max-width: 700px) { .df-cta { flex-direction: column; } }

/* ---------- Meter ---------- */

.df-meter { height: 8px; border-radius: var(--df-radius); background: #DCE7FB; overflow: hidden; }
.df-meter > span { display: block; height: 100%; background: var(--df-accent); border-radius: var(--df-radius); }
.df-meter--warn { background: var(--df-warn-bg); } .df-meter--warn > span { background: var(--df-warn); }
.df-meter--critical { background: var(--df-critical-bg); } .df-meter--critical > span { background: var(--df-critical); }

/* ---------- Dark section / halftone image treatment ---------- */

.df-dark {
  background: var(--df-ink); color: var(--df-soft-white);
}
.df-dark h1, .df-dark h2, .df-dark h3 { color: var(--df-soft-white); }
.df-dark a { color: var(--df-soft-white); }

/* Screen images through the brand halftone: wrap <img> in .df-halftone */
.df-halftone { position: relative; display: block; overflow: hidden; border-radius: var(--df-radius); background: var(--df-ink); }
.df-halftone img { display: block; width: 100%; filter: grayscale(1) contrast(1.15) brightness(0.9); mix-blend-mode: screen; }
.df-halftone::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(38,38,38,0.55) 1px, transparent 1.1px);
  background-size: 4px 4px;
}

/* ---------- Decorative diffraction rays ----------
   Thin 1px lines radiating from a focal point, in ray orange or hairline
   gray. Use as a positioned background element; keep it behind content. */
.df-rays { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.df-rays svg { position: absolute; width: 140%; height: auto; opacity: 0.9; }

/* ---------- Footer ---------- */

.df-footer {
  border-top: var(--df-border);
  padding: var(--df-space-8) var(--df-gutter);
  display: flex; flex-wrap: wrap; gap: var(--df-space-8);
  justify-content: space-between; align-items: flex-start;
}
.df-footer__cols { display: flex; gap: var(--df-space-8); flex-wrap: wrap; }
.df-footer__col { display: flex; flex-direction: column; gap: var(--df-space-2); }
.df-footer__col > span { color: var(--df-text); font-family: var(--df-font-mono); font-size: var(--df-text-xs); letter-spacing: var(--df-tracking-mono); text-transform: uppercase; }
.df-footer small { font-family: var(--df-font-mono); font-size: var(--df-text-xs); letter-spacing: var(--df-tracking-mono); text-transform: uppercase; color: var(--df-text-muted); }

/* ---------- Charts (SVG helpers; specs follow the dataviz method) ---------- */

.df-chart text {
  font-family: var(--df-font-mono); font-size: 11px; letter-spacing: 0.02em;
  fill: var(--df-text-muted);
}
.df-chart .df-chart__grid { stroke: var(--df-chart-grid); stroke-width: 1; }
.df-chart .df-chart__line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.df-chart .df-chart__dot { stroke: var(--df-surface); stroke-width: 2; } /* surface ring */
.df-chart .df-chart__label { fill: var(--df-text); }
.df-legend { display: flex; gap: var(--df-space-5); align-items: center; font-size: var(--df-text-sm); color: var(--df-text); }
.df-legend span { display: inline-flex; align-items: center; gap: 6px; }
.df-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

.df-tooltip {
  position: fixed; z-index: 10; pointer-events: none;
  background: var(--df-ink); color: var(--df-soft-white);
  font-family: var(--df-font-mono); font-size: var(--df-text-xs); letter-spacing: var(--df-tracking-mono);
  padding: 6px 8px; border-radius: var(--df-radius);
  transform: translate(-50%, calc(-100% - 10px));
  white-space: nowrap;
}

/* ---------- Chat (LLM interface) ---------- */

.df-chat { display: flex; flex-direction: column; gap: var(--df-space-5); max-width: 760px; }

.df-msg { display: flex; flex-direction: column; gap: var(--df-space-2); max-width: 85%; }
.df-msg__meta {
  display: flex; align-items: center; gap: var(--df-space-2);
  font-family: var(--df-font-mono); font-size: var(--df-text-xs);
  letter-spacing: var(--df-tracking-mono); text-transform: uppercase;
  color: var(--df-text-muted);
}
.df-msg__meta img, .df-msg__meta svg { height: 12px; width: auto; display: block; }
.df-msg__body {
  border-radius: var(--df-radius);
  padding: var(--df-space-3) var(--df-space-4);
  font-size: var(--df-text-md); line-height: var(--df-leading-body);
}
.df-msg__body p:last-child { margin-bottom: 0; }
.df-msg--agent { align-self: flex-start; }
.df-msg--agent .df-msg__body { background: var(--df-surface); border: var(--df-border); }
.df-msg--user { align-self: flex-end; align-items: flex-end; }
.df-msg--user .df-msg__body { background: var(--df-accent); color: var(--df-text-on-accent); }

/* Thinking indicator: three pulsing dots */
.df-thinking { display: inline-flex; align-items: center; gap: var(--df-space-3); }
.df-thinking__dots { display: inline-flex; gap: 4px; }
.df-thinking__dots i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--df-text-muted);
  animation: df-pulse 1.2s infinite var(--df-ease);
}
.df-thinking__dots i:nth-child(2) { animation-delay: 0.2s; }
.df-thinking__dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes df-pulse { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }

/* Tool call block: collapsible mono record of an agent action */
.df-tool-call {
  border: var(--df-border); border-radius: var(--df-radius);
  background: var(--df-surface);
  font-family: var(--df-font-mono); font-size: var(--df-text-xs);
  letter-spacing: var(--df-tracking-mono);
}
.df-tool-call summary {
  display: flex; align-items: center; gap: var(--df-space-3);
  padding: var(--df-space-2) var(--df-space-3);
  cursor: pointer; text-transform: uppercase; color: var(--df-text);
  list-style: none;
}
.df-tool-call summary::before { content: "▸"; color: var(--df-text-muted); }
.df-tool-call[open] summary::before { content: "▾"; }
.df-tool-call summary:hover { background: var(--df-highlight); }
.df-tool-call pre {
  margin: 0; padding: var(--df-space-3);
  border-top: var(--df-border);
  overflow-x: auto; text-transform: none; letter-spacing: 0;
  color: var(--df-text); background: var(--df-soft-white);
  border-bottom-left-radius: var(--df-radius); border-bottom-right-radius: var(--df-radius);
}

/* Composer */
.df-composer {
  display: flex; align-items: flex-end; gap: var(--df-space-3);
  border: var(--df-border); border-radius: var(--df-radius);
  background: var(--df-surface);
  padding: var(--df-space-2) var(--df-space-2) var(--df-space-2) var(--df-space-4);
}
.df-composer:focus-within { outline: 2px solid var(--df-accent); outline-offset: 0; }
.df-composer textarea {
  flex: 1; border: 0; outline: none; resize: none; background: transparent;
  font-family: var(--df-font-sans); font-size: var(--df-text-md); line-height: var(--df-leading-body);
  color: var(--df-text); padding: var(--df-space-2) 0; min-height: 24px; max-height: 40vh;
}
.df-composer textarea::placeholder { color: var(--df-text-muted); }

/* ---------- Crystal structure viewer ---------- */

.df-structure { display: flex; flex-direction: column; gap: var(--df-space-3); }
.df-structure canvas {
  display: block; width: 100%;
  border: var(--df-border); border-radius: var(--df-radius);
  background: var(--df-surface);
  cursor: grab; touch-action: none;
}
.df-structure canvas:active { cursor: grabbing; }
.df-structure__legend {
  display: flex; gap: var(--df-space-4); flex-wrap: wrap;
  font-family: var(--df-font-mono); font-size: var(--df-text-xs);
  letter-spacing: var(--df-tracking-mono); text-transform: uppercase;
  color: var(--df-text);
}
.df-structure__legend span { display: inline-flex; align-items: center; gap: 6px; }
.df-structure__legend i {
  width: 10px; height: 10px; border-radius: 50%; display: inline-block;
  border: 1px solid rgba(0,0,0,0.25);
}

/* ---------- Periodic table histogram ---------- */

.df-ptable {
  display: grid;
  grid-template-columns: repeat(18, minmax(0, 1fr));
  grid-template-rows: repeat(7, auto) 8px auto auto; /* row 8 = f-block spacer */
  gap: 2px; /* surface gap between fills */
}
.df-ptable__cell {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 2px;
  border: 1px solid var(--df-hairline);
  background: var(--df-surface);
  color: var(--df-text-muted);
  font-family: var(--df-font-mono); font-size: 10px;
  letter-spacing: 0.02em; line-height: 1;
  min-width: 0; overflow: hidden;
}
.df-ptable__cell--filled { border-color: transparent; color: var(--df-text); }
.df-ptable__cell--click { cursor: pointer; }
.df-ptable__cell--click:hover { outline: 2px solid var(--df-highlight); outline-offset: 0; }
.df-ptable__legend {
  display: flex; align-items: center; gap: 4px;
  margin-top: var(--df-space-3);
  font-family: var(--df-font-mono); font-size: var(--df-text-xs);
  letter-spacing: var(--df-tracking-mono); text-transform: uppercase;
  color: var(--df-text-muted);
}
.df-ptable__legend i { width: 14px; height: 10px; border-radius: 2px; display: inline-block; }
.df-ptable__legend span:first-child { margin-right: 4px; }
.df-ptable__legend span:last-child { margin-left: 4px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
