/* CardioLADs.com — design tokens and components
   Brand: navy #284060 and crimson #a83840 taken from the CardioLADs logo. */

:root {
  --font-display: 'Zodiak', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-body: 'Satoshi', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --text-xs: clamp(0.72rem, 0.7rem + 0.1vw, 0.78rem);
  --text-sm: clamp(0.84rem, 0.8rem + 0.15vw, 0.9rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --text-md: clamp(1.12rem, 1.05rem + 0.3vw, 1.25rem);
  --text-lg: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
  --text-xl: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem);
  --text-2xl: clamp(2rem, 1.5rem + 2vw, 3rem);
  --text-hero: clamp(2.4rem, 1.6rem + 3.4vw, 4.4rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4rem; --space-9: 6rem;

  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-xl: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1180px;

  --navy: #284060;
  --crimson: #a83840;

  --color-bg: #f6f5f1;
  --color-surface: #ffffff;
  --color-surface-2: #eeede8;
  --color-surface-tint: #f3f1ea;
  --color-border: rgba(40, 64, 96, 0.14);
  --color-divider: rgba(40, 64, 96, 0.08);
  --color-text: #17233a;
  --color-text-muted: #5a6577;
  --color-text-faint: #8a93a3;
  --color-primary: #284060;
  --color-primary-hover: #1d3049;
  --color-primary-soft: rgba(40, 64, 96, 0.08);
  --color-accent: #a83840;
  --color-accent-hover: #8b2b33;
  --color-accent-soft: rgba(168, 56, 64, 0.1);
  --color-link: #284060;
  --color-success: #2f7d4f;
  --color-warning: #b9741a;
  --color-on-primary: #ffffff;
  --shadow-sm: 0 1px 2px rgba(23, 35, 58, 0.06), 0 1px 1px rgba(23, 35, 58, 0.04);
  --shadow-md: 0 6px 20px rgba(23, 35, 58, 0.08);
  --shadow-lg: 0 18px 50px rgba(23, 35, 58, 0.14);
  color-scheme: light;
}

[data-theme='dark'] {
  --color-bg: #0e1626;
  --color-surface: #141f33;
  --color-surface-2: #1a2740;
  --color-surface-tint: #17223a;
  --color-border: rgba(210, 222, 240, 0.14);
  --color-divider: rgba(210, 222, 240, 0.08);
  --color-text: #e7ebf2;
  --color-text-muted: #a3aec2;
  --color-text-faint: #6f7b91;
  --color-primary: #9ab8e6;
  --color-primary-hover: #b7cdf0;
  --color-primary-soft: rgba(154, 184, 230, 0.12);
  --color-accent: #e0616c;
  --color-accent-hover: #ea8189;
  --color-accent-soft: rgba(224, 97, 108, 0.14);
  --color-link: #9ab8e6;
  --color-success: #6cc08b;
  --color-warning: #e0a04a;
  --color-on-primary: #0e1626;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: none; text-size-adjust: none; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
svg.ext { display: inline-block; width: 13px; height: 13px; vertical-align: -1px; margin-left: 1px; }
a { color: var(--color-link); text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 0.16em; }
a:hover { text-decoration-color: currentColor; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.012em; text-wrap: balance; }
h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }
h4 { font-size: var(--text-md); font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
p { text-wrap: pretty; }
.mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--color-accent-soft); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--space-4); top: -100px; background: var(--color-accent); color: #fff; padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm); z-index: 100; font-weight: 600; }
.skip-link:focus { top: var(--space-4); }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
@media (min-width: 900px) { .container { width: min(100% - 4rem, var(--container)); } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
}
.site-header .container { display: flex; align-items: center; gap: var(--space-4); min-height: 66px; }
.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; color: inherit; }
.brand img { height: 38px; width: auto; }
.brand img.dark-only { display: none; }
[data-theme='dark'] .brand img.light-only { display: none; }
[data-theme='dark'] .brand img.dark-only { display: block; }
.brand .brand-mark { height: 34px; width: auto; }
.brand .brand-text { display: none; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand .brand-text b { color: var(--color-accent); }
.site-nav { margin-left: auto; display: none; gap: 2px; }
.site-nav a { padding: 8px 10px; border-radius: 999px; font-size: var(--text-sm); font-weight: 500; color: var(--color-text-muted); text-decoration: none; white-space: nowrap; transition: background .2s var(--ease), color .2s var(--ease); }
.site-nav a:hover { color: var(--color-text); background: var(--color-primary-soft); }
.site-nav a[aria-current='page'] { color: var(--color-accent); background: var(--color-accent-soft); }
.header-actions { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; }
@media (min-width: 1180px) { .site-nav { display: flex; } .header-actions { margin-left: 0; } .icon-btn.menu-btn { display: none; } }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--color-border); color: var(--color-text-muted); background: var(--color-surface); transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease); }
.icon-btn:hover { color: var(--color-text); background: var(--color-surface-2); }
.icon-btn:active { transform: scale(0.95); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-btn .sun { display: none; }
[data-theme='dark'] .theme-btn .sun { display: block; }
[data-theme='dark'] .theme-btn .moon { display: none; }
.mobile-nav { display: none; border-top: 1px solid var(--color-divider); background: var(--color-bg); }
.mobile-nav.open { display: block; }
.mobile-nav .container { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding-block: var(--space-3); min-height: 0; }
.mobile-nav a { padding: 12px 14px; border-radius: var(--radius-md); text-decoration: none; font-weight: 500; color: var(--color-text); background: var(--color-surface); border: 1px solid var(--color-divider); }
.mobile-nav a[aria-current='page'] { color: var(--color-accent); border-color: var(--color-accent-soft); background: var(--color-accent-soft); }
@media (min-width: 1180px) { .mobile-nav { display: none !important; } }

/* ---------- hero ---------- */
.hero { padding: var(--space-8) 0 var(--space-7); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto; height: 70%; background: radial-gradient(60% 60% at 30% 40%, var(--color-accent-soft), transparent 70%), radial-gradient(50% 60% at 80% 20%, var(--color-primary-soft), transparent 70%); pointer-events: none; }
.hero .container { position: relative; display: grid; gap: var(--space-6); align-items: end; }
@media (min-width: 900px) { .hero .container { grid-template-columns: 1.3fr 1fr; } }
.kicker { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.14em; color: var(--color-accent); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.kicker::before { content: ''; width: 18px; height: 2px; background: currentColor; }
.hero h1 { font-size: var(--text-hero); margin-top: var(--space-3); max-width: 14ch; }
.hero h1 em { font-style: italic; color: var(--color-accent); }
.hero .lede { margin-top: var(--space-4); font-size: var(--text-md); color: var(--color-text-muted); max-width: 52ch; }
.hero-actions { margin-top: var(--space-5); display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero-status { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-md); }
.hero-status h3 { font-family: var(--font-body); font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-muted); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--color-success); box-shadow: 0 0 0 0 var(--color-success); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-success) 60%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin-top: var(--space-4); }
.stat { padding: var(--space-3); border-radius: var(--radius-md); background: var(--color-surface-tint); }
.stat .num { font-size: var(--text-xl); font-weight: 600; line-height: 1; color: var(--color-text); }
.stat .lbl { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 6px; }
.hero-status .meta { margin-top: var(--space-4); font-size: var(--text-sm); color: var(--color-text-muted); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: var(--text-sm); text-decoration: none; border: 1px solid transparent; transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease); min-height: 44px; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-hover); }
[data-theme='dark'] .btn-primary { color: #fff; }
.btn-secondary { background: var(--color-surface); border-color: var(--color-border); color: var(--color-text); }
.btn-secondary:hover { border-color: var(--color-text-faint); }
.btn-ghost { color: var(--color-text-muted); padding-inline: 10px; }
.btn-ghost:hover { color: var(--color-text); }
.btn svg { width: 16px; height: 16px; }

/* ---------- sections ---------- */
.section { padding: var(--space-7) 0; }
.section + .section { border-top: 1px solid var(--color-divider); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-5); }
.section-head p { color: var(--color-text-muted); max-width: 60ch; margin-top: var(--space-2); }
.section-head .more { font-size: var(--text-sm); font-weight: 600; white-space: nowrap; }

/* tabs and chips */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { #drug-classes { flex-wrap: wrap; overflow: visible; } }
.tab, .chip { flex: 0 0 auto; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text-muted); font-size: var(--text-sm); font-weight: 500; white-space: nowrap; transition: all .2s var(--ease); min-height: 40px; }
.tab:hover, .chip:hover { color: var(--color-text); border-color: var(--color-text-faint); }
.tab[aria-selected='true'], .chip[aria-pressed='true'] { background: var(--color-primary); color: var(--color-on-primary); border-color: var(--color-primary); }
[data-theme='dark'] .tab[aria-selected='true'], [data-theme='dark'] .chip[aria-pressed='true'] { background: var(--color-primary); color: #0e1626; }
.tab .count { font-family: var(--font-mono); font-size: 0.72em; opacity: .7; margin-left: 6px; }
.toolbar { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin-bottom: var(--space-5); }
.search { flex: 1 1 240px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-surface); min-height: 44px; }
.search svg { width: 16px; height: 16px; color: var(--color-text-faint); flex: none; }
.search input { flex: 1; border: 0; background: transparent; outline: none; min-width: 0; }
.select { padding: 10px 36px 10px 14px; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a93a3' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; min-height: 44px; color: var(--color-text); }

/* ---------- cards ---------- */
.grid { display: grid; gap: var(--space-4); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
#apps-grid, #apps-soon { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-sm); position: relative; display: flex; flex-direction: column; gap: var(--space-3); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.card:hover { box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--color-border), var(--color-text-faint) 40%); }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: var(--text-xs); color: var(--color-text-muted); font-family: var(--font-mono); }
.card-meta .journal { color: var(--color-text); font-weight: 600; font-family: var(--font-body); font-size: var(--text-sm); }
.card h3 { font-size: var(--text-md); line-height: 1.3; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--color-accent); }
.card .abstract-toggle { align-self: flex-start; font-size: var(--text-sm); color: var(--color-link); font-weight: 600; background: none; padding: 6px 0; min-height: 36px; }
.card .abstract { font-size: var(--text-sm); color: var(--color-text-muted); border-top: 1px dashed var(--color-border); padding-top: var(--space-3); display: grid; gap: var(--space-2); }
.card .abstract b { color: var(--color-text); }
[hidden] { display: none !important; }
.card-links { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: var(--text-sm); margin-top: auto; padding-top: var(--space-2); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.02em; font-family: var(--font-body); }
.badge-rct { background: var(--color-primary-soft); color: var(--color-primary); }
.badge-sec { background: var(--color-surface-2); color: var(--color-text-muted); }
.badge-new { background: var(--color-accent); color: #fff; }
.badge-spec { background: var(--color-surface-2); color: var(--color-text-muted); font-weight: 500; }
.badge-soc { background: var(--color-accent-soft); color: var(--color-accent); }
.badge-kind { background: var(--color-primary-soft); color: var(--color-primary); }
.empty { padding: var(--space-6); text-align: center; color: var(--color-text-muted); border: 1px dashed var(--color-border); border-radius: var(--radius-lg); }
.skeleton { background: linear-gradient(90deg, var(--color-surface-2) 25%, var(--color-surface) 50%, var(--color-surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-md); min-height: 140px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* rapid reads */
.rapid { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-5); display: grid; gap: var(--space-3); grid-template-columns: 1fr; position: relative; box-shadow: var(--shadow-sm); }
.rapid-head { display: flex; align-items: flex-start; gap: var(--space-4); }
.ring { --p: 0; flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--color-accent) calc(var(--p) * 1%), var(--color-surface-2) 0); font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; color: var(--color-text); position: relative; }
.ring::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--color-surface); }
.ring span { position: relative; }
.rapid h3 { font-size: var(--text-md); line-height: 1.3; }
.rapid h3 a { color: inherit; text-decoration: none; }
.rapid h3 a:hover { color: var(--color-accent); }
.rr { display: grid; gap: 10px; }
.rr div { display: grid; grid-template-columns: 76px 1fr; gap: 10px; font-size: var(--text-sm); }
.rr dt { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-accent); padding-top: 3px; }
.rr dd { color: var(--color-text-muted); }
.rr dd.bottom { color: var(--color-text); font-weight: 500; }
.stats { display: flex; flex-wrap: wrap; gap: 6px; }
.stats span { font-family: var(--font-mono); font-size: var(--text-xs); padding: 3px 8px; border-radius: 6px; background: var(--color-surface-tint); border: 1px solid var(--color-divider); }

/* just in */
.justin { border: 1px solid var(--color-accent-soft); background: linear-gradient(135deg, var(--color-accent-soft), transparent 60%); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-5); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); }
.justin .label { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--color-accent); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.justin .text { color: var(--color-text-muted); font-size: var(--text-sm); flex: 1 1 280px; }
.justin .btn { min-height: 38px; padding-block: 7px; }

/* guidelines */
.gl-list { display: grid; gap: var(--space-3); }
.gl { display: grid; grid-template-columns: 64px minmax(0, 1fr); min-width: 0; gap: var(--space-4); padding: var(--space-4); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); align-items: start; }
.gl > * { min-width: 0; } .gl h3, .gl .row, .gl p, .gl .card-links { overflow-wrap: anywhere; }
.gl .yr { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; color: var(--color-accent); line-height: 1; padding-top: 2px; }
.gl h3 { font-size: var(--text-base); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; line-height: 1.35; }
.gl h3 a { color: inherit; text-decoration: none; }
.gl h3 a:hover { color: var(--color-accent); }
.gl .row { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 6px; }
.gl p { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: 8px; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: var(--space-3); }
.hub { display: flex; flex-direction: column; gap: 4px; padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); text-decoration: none; color: inherit; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.hub:hover { border-color: var(--color-accent); transform: translateY(-2px); }
.hub b { font-size: var(--text-sm); }
.hub span { font-size: var(--text-xs); color: var(--color-text-muted); }
.topic-group h3 { font-size: var(--text-md); margin: var(--space-5) 0 var(--space-3); display: flex; align-items: center; gap: 10px; }
.topic-group h3::after { content: ''; flex: 1; height: 1px; background: var(--color-divider); }

/* conferences */
.conf-list { display: grid; gap: var(--space-3); }
.conf { display: grid; grid-template-columns: 84px 1fr auto; gap: var(--space-4); align-items: center; padding: var(--space-4) var(--space-5); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.conf .date { text-align: center; border-right: 1px solid var(--color-divider); padding-right: var(--space-3); }
.conf .date .m { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--color-accent); font-weight: 700; }
.conf .date .d { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; line-height: 1.05; }
.conf .date .y { font-size: var(--text-xs); color: var(--color-text-muted); }
.conf h3 { font-size: var(--text-md); }
.conf h3 a { color: inherit; text-decoration: none; }
.conf h3 a:hover { color: var(--color-accent); }
.conf .where { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: 3px; }
.conf .deadline { font-size: var(--text-xs); color: var(--color-warning); margin-top: 6px; font-weight: 600; }
.conf .countdown { text-align: right; font-family: var(--font-mono); font-size: var(--text-sm); color: var(--color-text-muted); white-space: nowrap; }
.conf .countdown b { display: block; font-size: var(--text-lg); color: var(--color-text); line-height: 1; }
.conf.live { border-color: var(--color-success); }
@media (max-width: 640px) { .conf { grid-template-columns: 70px 1fr; } .conf .countdown { grid-column: 2; text-align: left; } .conf .countdown b { display: inline; margin-right: 6px; font-size: var(--text-base); } }

/* trivia */
.qotd { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: clamp(1.25rem, 3vw, 2.5rem); box-shadow: var(--shadow-md); max-width: 820px; margin-inline: auto; }
.qotd .q { font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.3; margin: var(--space-3) 0 var(--space-5); }
.options { display: grid; gap: 10px; }
.opt { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); transition: all .2s var(--ease); min-height: 48px; }
.opt:hover:not(:disabled) { border-color: var(--color-text-faint); background: var(--color-surface-tint); }
.opt .k { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 700; background: var(--color-surface-2); color: var(--color-text-muted); }
.opt.correct { border-color: var(--color-success); background: color-mix(in srgb, var(--color-success) 10%, var(--color-surface)); }
.opt.correct .k { background: var(--color-success); color: #fff; }
.opt.wrong { border-color: var(--color-accent); background: var(--color-accent-soft); }
.opt.wrong .k { background: var(--color-accent); color: #fff; }
.opt:disabled { cursor: default; }
.explain { margin-top: var(--space-5); padding: var(--space-4) var(--space-5); border-left: 3px solid var(--color-accent); background: var(--color-surface-tint); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-size: var(--text-sm); display: none; }
.explain.show { display: block; animation: rise .4s var(--ease); }
.explain .verdict { font-weight: 700; font-size: var(--text-base); margin-bottom: 6px; }
.explain .ref { color: var(--color-text-muted); margin-top: 8px; font-size: var(--text-xs); font-family: var(--font-mono); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.qotd-foot { margin-top: var(--space-5); display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: space-between; font-size: var(--text-sm); color: var(--color-text-muted); }
.archive { margin-top: var(--space-7); }
.archive-item { padding: var(--space-3) 0; border-bottom: 1px solid var(--color-divider); display: flex; gap: var(--space-3); align-items: baseline; }
.archive-item .d { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-muted); flex: none; width: 90px; }
.archive-item button { text-align: left; color: var(--color-text); font-weight: 500; }
.archive-item button:hover { color: var(--color-accent); }

/* calculators */
.calc-layout { display: grid; gap: var(--space-5); }
@media (min-width: 900px) { .calc-layout { grid-template-columns: 280px 1fr; align-items: start; } .calc-side { position: sticky; top: 84px; } }
.calc-side { display: grid; gap: 4px; }
.calc-side h4 { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--color-text-faint); margin: var(--space-3) 0 4px; }
.calc-side button { text-align: left; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--color-text-muted); font-size: var(--text-sm); font-weight: 500; }
.calc-side button:hover { background: var(--color-primary-soft); color: var(--color-text); }
.calc-side button[aria-current='true'] { background: var(--color-primary); color: var(--color-on-primary); }
[data-theme='dark'] .calc-side button[aria-current='true'] { color: #0e1626; }
@media (max-width: 899px) { .calc-side { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; scrollbar-width: none; margin-inline: calc(-1 * var(--space-4)); padding-inline: var(--space-4); } .calc-side::-webkit-scrollbar { display: none; } .calc-side h4 { display: none; } .calc-side button { flex: none; white-space: nowrap; border-radius: 999px; border: 1px solid var(--color-border); background: var(--color-surface); min-height: 40px; } .calc-side button[aria-current='true'] { border-color: var(--color-primary); } }
.calc-panel { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); }
.calc-panel .desc { color: var(--color-text-muted); font-size: var(--text-sm); margin-top: 6px; max-width: 70ch; }
.calc-form { display: grid; gap: var(--space-3); margin-top: var(--space-5); }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--text-sm); font-weight: 600; }
.field .hint { font-size: var(--text-xs); color: var(--color-text-muted); font-weight: 400; }
.field input[type='number'], .field select { padding: 10px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-bg); min-height: 44px; width: 100%; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: var(--space-3); }
.check { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); cursor: pointer; min-height: 48px; transition: background .2s var(--ease); }
.check:hover { background: var(--color-surface-tint); }
.check input { width: 18px; height: 18px; accent-color: var(--color-accent); flex: none; }
.check .pts { margin-left: auto; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-muted); }
.result { margin-top: var(--space-5); padding: var(--space-5); border-radius: var(--radius-md); background: var(--color-surface-tint); border: 1px solid var(--color-divider); display: grid; gap: var(--space-3); }
.result .big { font-family: var(--font-mono); font-size: var(--text-2xl); font-weight: 600; line-height: 1; color: var(--color-accent); }
.result .big small { font-size: 0.4em; color: var(--color-text-muted); font-weight: 500; margin-left: 6px; }
.result .interp { font-size: var(--text-sm); }
.result .interp b { color: var(--color-text); }
.result table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.result td { padding: 6px 0; border-bottom: 1px solid var(--color-divider); }
.result td:last-child { text-align: right; font-family: var(--font-mono); }
.result-empty { color: var(--color-text-muted); font-size: var(--text-sm); }
.calc-ref { margin-top: var(--space-4); font-size: var(--text-xs); color: var(--color-text-muted); }

/* pharmacology */
.drug { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.drug summary { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: var(--space-4) var(--space-5); cursor: pointer; min-height: 56px; }
.drug summary::-webkit-details-marker { display: none; }
.drug summary h3 { font-size: var(--text-md); }
.drug summary .brand { color: var(--color-text-muted); font-size: var(--text-sm); font-style: italic; }
.drug summary .mech { flex-basis: 100%; font-size: var(--text-sm); color: var(--color-text-muted); }
.drug summary .chev { margin-left: auto; width: 20px; height: 20px; color: var(--color-text-faint); transition: transform .25s var(--ease); }
.drug[open] summary .chev { transform: rotate(180deg); }
.drug-body { padding: 0 var(--space-5) var(--space-5); display: grid; gap: var(--space-4); border-top: 1px solid var(--color-divider); padding-top: var(--space-4); }
@media (min-width: 800px) { .drug-body { grid-template-columns: 1.4fr 1fr; } }
.drug-body h4 { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--color-accent); margin-bottom: 8px; font-family: var(--font-mono); font-weight: 600; }
.dose-table { display: grid; gap: 8px; }
.dose-table div { display: grid; grid-template-columns: minmax(110px, 0.6fr) 1.4fr; gap: 10px; font-size: var(--text-sm); padding-bottom: 8px; border-bottom: 1px solid var(--color-divider); }
.dose-table dt { font-weight: 600; }
.dose-table dd { color: var(--color-text-muted); }
.kv { display: grid; gap: 12px; font-size: var(--text-sm); }
.kv p { color: var(--color-text-muted); }
.kv ul { padding-left: 1.1em; color: var(--color-text-muted); }
.disclaimer { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--color-accent-soft); color: var(--color-text); font-size: var(--text-sm); border: 1px solid transparent; }
.disclaimer b { color: var(--color-accent); }

/* apps */
.app-card { display: grid; gap: var(--space-4); padding: var(--space-6); border-radius: var(--radius-xl); background: var(--color-surface); border: 1px solid var(--color-border); position: relative; overflow: hidden; box-shadow: var(--shadow-sm); }
.app-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--accent, var(--color-accent)); }
.app-card .app-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent, var(--color-accent)) 12%, transparent); color: var(--accent, var(--color-accent)); }
.app-card .app-icon svg { width: 30px; height: 30px; }
.app-card h3 { font-size: var(--text-xl); }
.app-card .tagline { color: var(--color-text-muted); font-size: var(--text-md); margin-top: 4px; }
.app-card p.desc { color: var(--color-text-muted); }
.app-card ul { list-style: none; display: grid; gap: 6px; font-size: var(--text-sm); }
.app-card ul li { display: flex; gap: 8px; align-items: flex-start; }
.app-card ul li::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent, var(--color-accent)); margin-top: 8px; }
.app-card .app-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.app-card .status { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--color-success); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.app-card .status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.app-card.soon .status { color: var(--color-warning); }
.app-mini { display: flex; gap: var(--space-4); align-items: center; padding: var(--space-4) var(--space-5); border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border); text-decoration: none; color: inherit; transition: transform .2s var(--ease), border-color .2s var(--ease); }
.app-mini:hover { transform: translateY(-2px); border-color: var(--accent, var(--color-accent)); }
.app-mini .app-icon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent, var(--color-accent)) 12%, transparent); color: var(--accent, var(--color-accent)); }
.app-mini .app-icon svg { width: 26px; height: 26px; }
.app-mini b { font-family: var(--font-display); font-size: var(--text-md); display: block; }
.app-mini span { font-size: var(--text-sm); color: var(--color-text-muted); }

/* about */
.team-grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.person { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: var(--space-6); display: grid; gap: var(--space-4); text-align: center; }
.person img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin-inline: auto; border: 4px solid var(--color-surface-2); box-shadow: var(--shadow-md); }
.person h3 { font-size: var(--text-lg); }
.person .role { color: var(--color-accent); font-size: var(--text-sm); font-weight: 600; margin-top: 4px; }
.person .inst { color: var(--color-text-muted); font-size: var(--text-sm); }
.person p { text-align: left; color: var(--color-text-muted); font-size: var(--text-sm); }
.person .interests { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.person .links { display: flex; justify-content: center; gap: var(--space-3); font-size: var(--text-sm); font-weight: 600; }
.prose { max-width: 70ch; color: var(--color-text-muted); display: grid; gap: var(--space-4); font-size: var(--text-md); }
.prose strong { color: var(--color-text); }

/* footer */
.site-footer { margin-top: var(--space-8); border-top: 1px solid var(--color-divider); padding: var(--space-7) 0 var(--space-6); font-size: var(--text-sm); color: var(--color-text-muted); }
.site-footer .container { display: grid; gap: var(--space-5); }
@media (min-width: 800px) { .site-footer .container { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h4 { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--color-text-faint); margin-bottom: 10px; }
.site-footer ul { list-style: none; display: grid; gap: 6px; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--color-accent); }
.site-footer .legal { grid-column: 1 / -1; padding-top: var(--space-4); border-top: 1px solid var(--color-divider); font-size: var(--text-xs); color: var(--color-text-faint); display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between; }
.site-footer .brand img { height: 30px; }

/* page hero (inner pages) */
.page-hero { padding: var(--space-7) 0 var(--space-5); }
.page-hero h1 { font-size: var(--text-2xl); margin-top: var(--space-3); }
.page-hero p { color: var(--color-text-muted); margin-top: var(--space-3); max-width: 62ch; font-size: var(--text-md); }

/* motion */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } .reveal { opacity: 1; transform: none; } }
@media print { .site-header, .site-footer, .hero-actions, .toolbar { display: none !important; } }

/* ---------- HeartTok ---------- */
.tok-channels { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-bottom: var(--space-5); }
.tok-pill { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border-radius: var(--radius-md); border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text-muted); transition: all .2s var(--ease); min-height: 64px; }
.tok-pill:hover { border-color: var(--color-text-faint); color: var(--color-text); transform: translateY(-1px); }
.tok-pill.active { border-color: var(--color-accent); background: var(--color-accent-soft); color: var(--color-text); }
.tok-pill-icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--color-primary-soft); color: var(--color-primary); }
.tok-pill.active .tok-pill-icon { background: var(--color-accent); color: #fff; }
.tok-pill-icon svg { width: 18px; height: 18px; }
.tok-pill-text { display: grid; gap: 1px; min-width: 0; }
.tok-pill-text b { font-family: var(--font-display); font-size: var(--text-base); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--color-text); letter-spacing: -0.01em; }
.tok-pill-text small { font-size: var(--text-xs); color: var(--color-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tok-pill .count { margin-left: auto; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-faint); }
.tok-layout { display: grid; gap: var(--space-5); align-items: start; }
@media (min-width: 1000px) { .tok-layout { grid-template-columns: minmax(0, 1fr) 320px; } .tok-side { position: sticky; top: 84px; } }
.tok-stage { position: relative; }
.tok-feed { height: min(80vh, 780px); min-height: 520px; overflow-y: auto; scroll-snap-type: y mandatory; border-radius: var(--radius-lg); border: 1px solid var(--color-border); background: #0b1020; scrollbar-width: none; -webkit-overflow-scrolling: touch; outline: none; }
.tok-feed::-webkit-scrollbar { display: none; }
.tok-item { height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: grid; grid-template-rows: minmax(0, 1fr) auto; color: #e9ecf3; }
.tok-player { position: relative; display: grid; place-items: center; overflow: hidden; background: #0b1020; min-height: 0; }
.tok-player img { width: 100%; height: 100%; object-fit: cover; opacity: .55; filter: saturate(.9); transition: opacity .3s var(--ease), transform .6s var(--ease); }
.tok-player:hover img { opacity: .7; transform: scale(1.02); }
.tok-player.portrait img { object-fit: contain; background: #000; }
.tok-play { position: absolute; width: 74px; height: 74px; border-radius: 999px; background: var(--color-accent); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(168,56,64,.45); transition: transform .2s var(--ease), background .2s var(--ease); }
.tok-play svg { width: 34px; height: 34px; margin-left: 4px; }
.tok-play:hover { transform: scale(1.06); }
.tok-player.playing img, .tok-player.playing .tok-play { display: none; }
.tok-iframe, .tok-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tok-player.tiktok { align-content: center; padding: var(--space-3); overflow: auto; }
.tok-player.tiktok blockquote { margin: 0; }
.tok-meta { padding: var(--space-4) var(--space-5); background: linear-gradient(180deg, rgba(11,16,32,.2), #0b1020 40%); display: grid; gap: 6px; }
.tok-meta .card-meta { color: #a9b3c7; }
.tok-meta .card-meta .journal { color: #fff; }
.tok-meta .badge-spec { background: rgba(255,255,255,.1); color: #e9ecf3; }
.tok-meta .badge:not(.badge-spec) { background: var(--color-accent); color: #fff; }
.tok-meta h3 { font-family: var(--font-body); font-weight: 600; font-size: var(--text-md); line-height: 1.35; color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tok-meta .card-links a { color: #c9d2e6; }
.tok-meta .card-links a:hover { color: #fff; }
.tok-hud { position: absolute; right: 12px; top: 12px; display: grid; gap: 6px; z-index: 2; }
.tok-hud button { width: 40px; height: 40px; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; backdrop-filter: blur(6px); transition: background .2s var(--ease); }
.tok-hud button:hover { background: rgba(255,255,255,.25); }
.tok-hud button:disabled { opacity: .35; cursor: default; }
.tok-hud button svg { width: 18px; height: 18px; }
.tok-hud .tok-counter { text-align: center; font-family: var(--font-mono); font-size: var(--text-xs); color: #fff; background: rgba(0,0,0,.4); border-radius: 999px; padding: 4px 8px; }
.tok-end { place-items: center; grid-template-rows: 1fr; padding: var(--space-6); text-align: center; }
.tok-end-card { max-width: 46ch; display: grid; gap: var(--space-3); justify-items: center; }
.tok-end-card h3 { font-size: var(--text-xl); color: #fff; }
.tok-end-card p { color: #a9b3c7; }
.tok-empty { display: grid; place-items: center; height: 100%; padding: var(--space-6); color: #a9b3c7; text-align: center; }
.tok-side { display: grid; gap: var(--space-4); }
.tok-now, .tok-sources { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-4); }
.tok-now h2 { font-size: var(--text-xl); margin-top: 6px; }
.tok-now p { color: var(--color-text-muted); font-size: var(--text-sm); margin-top: 6px; }
.tok-controls { display: grid; gap: 10px; margin-top: var(--space-4); }
.switch { display: flex; align-items: center; gap: 10px; font-size: var(--text-sm); color: var(--color-text-muted); cursor: pointer; }
.switch input { width: 18px; height: 18px; accent-color: var(--color-accent); }
.tok-sources h4 { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--color-text-faint); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips .chip { min-height: 32px; padding: 5px 11px; font-size: var(--text-xs); text-decoration: none; }
.tok-fine { font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.5; }
.tok-fine code { font-family: var(--font-mono); font-size: .9em; }
@media (max-width: 640px) { .tok-feed { height: calc(100vh - 140px); min-height: 480px; border-radius: var(--radius-md); } .tok-meta { padding: var(--space-3) var(--space-4); } .tok-play { width: 62px; height: 62px; } }

/* ---------- Algorithms ---------- */
.algo-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.algo-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.algo-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.algo-card header { padding: var(--space-4) var(--space-4) 0; display: grid; gap: 6px; }
.algo-card h3 { font-size: var(--text-md); }
.algo-card .desc { font-size: var(--text-sm); color: var(--color-text-muted); }
.algo-preview { position: relative; margin: var(--space-3) var(--space-4) 0; height: 230px; overflow: hidden; border-radius: var(--radius-md); background: var(--color-surface-2); cursor: zoom-in; }
.algo-preview svg { width: 100% !important; height: auto !important; max-width: none !important; display: block; }
.algo-preview::after { content: ''; position: absolute; inset: auto 0 0; height: 70px; background: linear-gradient(180deg, transparent, var(--color-surface-2)); pointer-events: none; }
.algo-card footer { padding: var(--space-3) var(--space-4) var(--space-4); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.algo-card footer .btn { min-height: 40px; padding: 8px 14px; font-size: var(--text-sm); }
.algo-card footer .src { margin-left: auto; font-size: var(--text-xs); color: var(--color-text-muted); }
.algo-modal { position: fixed; inset: 0; z-index: 100; background: rgba(8,12,24,.72); backdrop-filter: blur(6px); display: none; padding: 2vh 2vw; }
.algo-modal.open { display: grid; }
.algo-dialog { background: var(--color-bg); border-radius: var(--radius-lg); width: 100%; height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; border: 1px solid var(--color-border); }
.algo-dialog header { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-divider); flex-wrap: wrap; }
.algo-dialog header h2 { font-size: var(--text-lg); line-height: 1.2; }
.algo-head { display: flex; align-items: center; gap: var(--space-3); flex: 1 1 260px; min-width: 0; }
.algo-head .badge { flex: none; }
.algo-tools { display: flex; align-items: center; gap: var(--space-2); flex: none; margin-left: auto; }
@media (max-width: 640px) { .algo-tools #algo-download { display: none; } .algo-dialog header h2 { font-size: var(--text-md); } }
.algo-zoom { display: flex; gap: 4px; }
.algo-canvas { overflow: auto; padding: var(--space-4); cursor: grab; touch-action: pan-x pan-y pinch-zoom; }
.algo-canvas.dragging { cursor: grabbing; user-select: none; }
.algo-canvas .mermaid-wrap { display: inline-block; min-width: 100%; text-align: center; }
.algo-canvas svg { max-width: none !important; display: block; margin: 0 auto; }
.algo-dialog footer { padding: var(--space-3) var(--space-4); border-top: 1px solid var(--color-divider); font-size: var(--text-sm); color: var(--color-text-muted); display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }
.algo-dialog footer .card-links { margin: 0; padding: 0; }
.algo-notes { font-size: var(--text-sm); color: var(--color-text-muted); }
.algo-notes ul { padding-left: 1.1em; display: grid; gap: 4px; margin-top: 8px; }
.algo-notes summary { cursor: pointer; font-weight: 600; color: var(--color-text); }
.algo-notes details[open] { max-height: 32vh; overflow: auto; }
