/* =====================================================================
   AWESOME.VIDEO — STYLES
   Tokens come from design-systems.jsx via `applyDesignSystem()`.
   Per-system component skins live at the bottom under [data-system="..."].
   ===================================================================== */

:root {
  /* Defaults — overwritten on first applyDesignSystem() call */
  --bg: #000;
  --bg-2: #0a0a0a;
  --surface: rgba(255,255,255,0.025);
  --surface-2: rgba(255,255,255,0.05);
  --surface-3: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);
  --hairline: rgba(255,255,255,0.06);
  --text: #f4f3ee;
  --text-2: rgba(244,243,238,0.66);
  --text-3: rgba(244,243,238,0.4);
  --text-4: rgba(244,243,238,0.22);
  --accent: #ff3d52;
  --accent-2: #b84dff;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --display-weight: 500;
  --display-tracking: -0.02em;
  --display-leading: 1.04;
  --body-leading: 1.6;
  --eyebrow-tracking: 0.18em;
  --mono-size-step: 11px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --border-w: 1px;
  --hairline-w: 1px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow: 0 6px 24px -8px rgba(0,0,0,0.5);
  --shadow-lg: 0 24px 60px -20px rgba(0,0,0,0.7);
  --shadow-accent: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent), 0 12px 36px -12px color-mix(in srgb, var(--accent) 40%, transparent);
  --bg-atmosphere: none;
  --bg-atmosphere-size: auto;
  --grain-opacity: 0.32;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-feature-settings: "ss01", "cv11", "tnum";
  line-height: var(--body-leading);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
button { font-family: inherit; }
a { color: inherit; }

::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.12); }

.mono { font-family: var(--font-mono); }
.display { font-family: var(--font-display); }
.serif-italic { font-family: var(--font-display); font-style: italic; font-weight: 400; }

/* Display heading helper — uses system display tokens */
.display-h {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: var(--display-leading);
}

/* ============== PAGE ATMOSPHERE ============== */
.page {
  position: relative;
  min-height: 100vh;
  background: var(--bg-atmosphere), var(--bg);
  background-size: var(--bg-atmosphere-size, auto), auto;
  background-color: var(--bg);
}
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: var(--grain-opacity, 0.32);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
}

/* ============== ANIMATIONS ============== */
@keyframes glowSoft { 0%, 100% { opacity: 0.55; } 50% { opacity: 0.95; } }
@keyframes borderSweep { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes caretBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(200%); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.caret::after {
  content: '_';
  margin-left: 2px;
  color: var(--accent);
  animation: caretBlink 1.1s steps(1) infinite;
}

.shimmer-line {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 30%, var(--accent-2) 70%, transparent 100%);
  background-size: 200% 100%;
  animation: borderSweep 6s linear infinite;
}

.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: glowSoft 2s ease-in-out infinite;
  box-shadow: 0 0 10px var(--accent);
}

.no-anim .shimmer-line { animation: none; }
.no-anim .caret::after { animation: none; opacity: 1; }
.no-anim .live-dot { animation: none; }

/* ============== CARD ============== */
.card {
  background: var(--surface);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  transition: transform 220ms cubic-bezier(0.2, 0.65, 0.3, 1),
              background 220ms ease,
              border-color 220ms ease,
              box-shadow 220ms ease;
  position: relative;
}
.card.hoverable { cursor: pointer; }
.card.hoverable:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--surface-2);
  box-shadow: var(--shadow);
}
.card.glow:hover { box-shadow: var(--shadow-accent); }

/* ============== HEADER ============== */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 60px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: var(--hairline-w) solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 18px;
}

.nav-link {
  color: var(--text-2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 160ms ease;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--text); }

.search-input {
  width: 100%;
  background: var(--surface);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 14px 9px 36px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  transition: border-color 160ms ease, background 160ms ease;
}
.search-input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border-strong));
  background: var(--surface-2);
}

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: var(--border-w) solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 160ms ease;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-2); border-color: var(--text-3); transform: translateY(-1px); }
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0a;
  font-weight: 600;
}
.btn.primary:hover { box-shadow: var(--shadow-accent); }
.btn.ghost { background: transparent; border-color: var(--border); }
.btn.ghost:hover { background: var(--surface); }
.btn.icon { width: 36px; height: 36px; padding: 0; }
.btn.danger {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  color: var(--accent);
}

/* ============== CHIPS ============== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: var(--hairline-w) solid var(--border);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.6px;
  color: var(--text-2);
  text-transform: uppercase;
  white-space: nowrap;
}
.chip.accent {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.chip.ok { color: #34d08c; border-color: rgba(52,208,140,0.3); background: rgba(52,208,140,0.08); }
.chip.warn { color: #ffb84d; border-color: rgba(255,184,77,0.3); background: rgba(255,184,77,0.08); }
.chip.bad { color: #ff5c7a; border-color: rgba(255,92,122,0.3); background: rgba(255,92,122,0.08); }
.chip.muted { color: var(--text-3); }

/* ============== SIDEBAR ============== */
.sidebar {
  width: 280px;
  flex-shrink: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 88%, transparent), color-mix(in srgb, var(--bg) 88%, transparent));
  border-right: var(--hairline-w) solid var(--border);
  position: sticky;
  top: 60px;
  align-self: flex-start;
  height: calc(100vh - 60px);
  overflow-y: auto;
  z-index: 5;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}

.accordion-item { border-bottom: var(--hairline-w) solid var(--border); overflow: hidden; }
.accordion-header {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: inherit;
  padding: 13px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: background 160ms ease;
  position: relative;
}
.accordion-header:hover { background: var(--surface); }
.accordion-header.active { background: var(--surface-2); }
.accordion-header.active::before {
  content: '';
  position: absolute;
  left: 0; top: 10px; bottom: 10px;
  width: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.accordion-body {
  overflow: hidden;
  transition: max-height 320ms cubic-bezier(0.2, 0.65, 0.3, 1);
  background: rgba(0,0,0,0.18);
}
.accordion-body-inner { padding: 4px 16px 10px 30px; }
.sub-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 11px;
  margin: 1px 0;
  border-radius: 6px;
  color: var(--text-2);
  font-size: 12.5px;
  cursor: pointer;
  transition: all 140ms ease;
  border: 1px solid transparent;
  gap: 10px;
}
.sub-item:hover {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
  transform: translateX(2px);
}
.sub-item.active {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

/* ============== ICON RAIL ============== */
.icon-rail {
  width: 56px; flex-shrink: 0;
  background: var(--bg-2);
  border-right: var(--hairline-w) solid var(--border);
  position: sticky; top: 60px;
  align-self: flex-start;
  height: calc(100vh - 60px);
  display: flex; flex-direction: column;
  align-items: center;
  padding: 12px 0; gap: 6px; z-index: 5;
}
.icon-rail .icon-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 160ms ease;
}
.icon-rail .icon-btn:hover { color: var(--text); background: var(--surface); }
.icon-rail .icon-btn.active {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
}

/* ============== TYPOGRAPHY HELPERS ============== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--mono-size-step);
  letter-spacing: var(--eyebrow-tracking);
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.kbd {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-3);
  padding: 2px 6px;
  border: var(--hairline-w) solid var(--border);
  border-radius: 4px;
  background: var(--surface);
}

/* ============== TABS ============== */
.tabs {
  display: flex; gap: 0;
  border-bottom: var(--hairline-w) solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 12px 16px;
  font-size: 13px; font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
  transition: all 160ms ease;
}
.tab:hover { color: var(--text); }
.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ============== TABLE ============== */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left;
  font-weight: 500;
  color: var(--text-3);
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 12px 14px;
  border-bottom: var(--hairline-w) solid var(--border);
}
.table td {
  padding: 14px;
  border-bottom: var(--hairline-w) solid var(--border);
  color: var(--text-2);
}
.table tr:hover td { background: var(--surface); color: var(--text); }

/* ============== FORM ============== */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 12px; font-weight: 500; color: var(--text-2); }
.input, .select, .textarea {
  background: var(--surface);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  transition: border-color 160ms ease;
  width: 100%;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border-strong));
}
.textarea { resize: vertical; min-height: 96px; font-family: var(--font-mono); }

/* ============== STATUS DOTS ============== */
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.ok { background: #34d08c; box-shadow: 0 0 8px #34d08c; }
.dot.warn { background: #ffb84d; }
.dot.bad { background: #ff5c7a; }

/* ============== RESPONSIVE ============== */
@media (max-width: 1024px) {
  .sidebar { width: 240px; }
  .hide-tablet { display: none !important; }
}
@media (min-width: 1025px) {
  .show-tablet { display: none !important; }
}
@media (max-width: 768px) {
  .sidebar { display: none; }
  .icon-rail.desktop-only { display: none; }
  .header { padding: 0 14px; gap: 10px; height: 56px; }
  .hide-mobile { display: none !important; }
  .mobile-menu-btn { display: flex !important; }
  .header-search-trigger { display: none !important; }
}
@media (min-width: 769px) {
  .mobile-menu-btn { display: none !important; }
  .show-mobile { display: none !important; }
}

/* ============== HEADER SEARCH TRIGGER ============== */
/* Compact "Search…" button, not an always-open input. Click opens
   the command palette modal. Width adapts to viewport. */
.header-search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 10px 0 12px;
  border: var(--hairline-w) solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  min-width: 240px;
  max-width: 360px;
  transition: all 160ms ease;
  flex-shrink: 1;
}
.header-search-trigger:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
}
.header-search-label {
  flex: 1; text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-weight: 500;
}

/* Tighten for tablet */
@media (max-width: 1180px) {
  .header-search-trigger { min-width: 180px; }
}
@media (max-width: 1024px) {
  .header-search-trigger { min-width: 0; width: 180px; }
  .header-search-trigger .header-search-label { display: none; }
  .header-search-trigger { gap: 6px; padding: 0 10px; }
}

/* ============== USER PILL ============== */
.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px 0 4px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: var(--border-w) solid color-mix(in srgb, var(--accent) 35%, var(--border));
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: all 160ms ease;
  flex-shrink: 0;
}
.user-pill:hover {
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
}
@media (max-width: 768px) {
  .user-pill { padding: 0 4px; gap: 0; }
}

/* ============== MOBILE DRAWER ============== */
.mobile-drawer {
  position: fixed;
  top: 0; bottom: 0; left: 0;
  width: 86%;
  max-width: 340px;
  background: var(--bg-2);
  border-right: var(--hairline-w) solid var(--border);
  z-index: 100;
  transform: translateX(-100%);
  transition: transform 280ms cubic-bezier(0.2, 0.65, 0.3, 1);
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(2px);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; }

/* ============== MODAL ============== */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn 180ms ease;
}
.modal {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-2);
  border: var(--border-w) solid var(--border-strong);
  border-radius: var(--radius);
  padding: 28px;
}

/* =====================================================================
   PER-SYSTEM SKINS
   These reach in and reshape components per system. Keep them tight —
   tokens carry most of the weight; this is for things tokens can't express.
   ===================================================================== */

/* ─── EDITORIAL ─── reserved italic accents, soft ink under headings */
[data-system="editorial"] .display-h em,
[data-system="editorial"] .serif-italic { color: var(--accent); }
[data-system="editorial"] .eyebrow { color: var(--accent); font-weight: 700; }

/* ─── TERMINAL ─── square everything, scanlines, brackets, glow */
[data-system="terminal"] body { letter-spacing: 0; }
[data-system="terminal"] .card,
[data-system="terminal"] .btn,
[data-system="terminal"] .chip,
[data-system="terminal"] .input,
[data-system="terminal"] .select,
[data-system="terminal"] .textarea,
[data-system="terminal"] .search-input,
[data-system="terminal"] .modal,
[data-system="terminal"] .kbd { border-radius: 0 !important; }
[data-system="terminal"] .chip { text-transform: uppercase; }
[data-system="terminal"] .chip::before { content: '['; margin-right: 2px; opacity: 0.55; }
[data-system="terminal"] .chip::after  { content: ']'; margin-left: 2px;  opacity: 0.55; }
[data-system="terminal"] .btn.primary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  text-shadow: 0 0 12px color-mix(in srgb, var(--accent) 60%, transparent);
}
[data-system="terminal"] .btn.primary:hover {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  box-shadow: 0 0 0 1px var(--accent), inset 0 0 30px color-mix(in srgb, var(--accent) 14%, transparent);
}
[data-system="terminal"] .eyebrow { font-weight: 600; }
[data-system="terminal"] .eyebrow::before { content: '> '; opacity: 0.6; }
[data-system="terminal"] .card.hoverable:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
  transform: none;
}
[data-system="terminal"] .accordion-header.active::before { box-shadow: none; }

/* ─── GEIST ─── soft, neutral, hover glow on cards */
[data-system="geist"] .display-h { letter-spacing: -0.04em; }
[data-system="geist"] .card.hoverable:hover {
  box-shadow: 0 0 0 1px var(--border-strong), 0 12px 32px rgba(0,0,0,0.5);
}
[data-system="geist"] .btn { font-weight: 500; }
[data-system="geist"] .chip { text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-weight: 500; }

/* ─── BRUTALIST ─── hard offset shadows, slab serif drops */
[data-system="brutalist"] .card,
[data-system="brutalist"] .btn,
[data-system="brutalist"] .input,
[data-system="brutalist"] .select,
[data-system="brutalist"] .textarea,
[data-system="brutalist"] .search-input,
[data-system="brutalist"] .modal,
[data-system="brutalist"] .chip,
[data-system="brutalist"] .kbd { border-radius: 0 !important; }
[data-system="brutalist"] .card { border-color: var(--text); }
[data-system="brutalist"] .card.hoverable:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 var(--text);
  background: var(--surface-2);
}
[data-system="brutalist"] .btn {
  border-color: var(--text);
  border-width: 2px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px;
}
[data-system="brutalist"] .btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 0 var(--text);
}
[data-system="brutalist"] .btn.primary {
  background: var(--accent);
  border-color: var(--text);
  color: #000;
}
[data-system="brutalist"] .btn.primary:hover {
  box-shadow: 4px 4px 0 0 var(--text);
}
[data-system="brutalist"] .chip { border-width: 1.5px; border-color: var(--text-2); text-transform: uppercase; }
[data-system="brutalist"] .eyebrow { font-family: var(--font-mono); font-weight: 700; }
[data-system="brutalist"] .accordion-header.active::before {
  width: 3px;
  background: var(--text);
  box-shadow: none;
}

/* ─── SWISS ─── hairlines, mono numerals, grid feel */
[data-system="swiss"] body {
  font-feature-settings: "ss01", "tnum", "lnum", "kern";
}
[data-system="swiss"] .card,
[data-system="swiss"] .btn,
[data-system="swiss"] .input,
[data-system="swiss"] .search-input { border-width: 0.5px; }
[data-system="swiss"] .card.hoverable:hover {
  border-color: var(--text-3);
  box-shadow: none;
  transform: none;
  background: var(--surface-2);
}
[data-system="swiss"] .display-h { font-weight: 700; }
[data-system="swiss"] .eyebrow { font-family: var(--font-mono); font-weight: 500; color: var(--text-3); }
[data-system="swiss"] .chip { font-family: var(--font-mono); font-weight: 500; }
[data-system="swiss"] .btn { font-weight: 600; }
[data-system="swiss"] .accordion-header.active::before { width: 1px; box-shadow: none; }

/* ============== SHOWCASE-PAGE-ONLY (design-system.html) ============== */
.ds-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 40px 120px;
}
.ds-section {
  border-top: var(--hairline-w) solid var(--border);
  padding: 64px 0;
}
.ds-section:first-of-type { border-top: 0; padding-top: 24px; }
.ds-h {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: var(--display-leading);
}
.ds-grid {
  display: grid;
  gap: 16px;
}
.ds-token-row {
  display: grid;
  grid-template-columns: 220px 1fr 160px;
  gap: 24px;
  padding: 14px 0;
  border-top: var(--hairline-w) solid var(--hairline);
  align-items: center;
  font-size: 13px;
}
.ds-swatch {
  width: 100%;
  aspect-ratio: 1.4;
  border: var(--hairline-w) solid var(--border);
  border-radius: var(--radius-sm);
}
.ds-system-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: var(--hairline-w) solid var(--border);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
  cursor: pointer;
  transition: all 160ms ease;
  background: var(--surface);
}
.ds-system-pill:hover { border-color: var(--text-3); color: var(--text); }
.ds-system-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}
