/* MemCheck: obsidian canvas, layered zinc surfaces, one indigo accent for interaction.
   Status colours (green / amber / rose) are reserved for verdicts. Light theme is opt-in. */

:root {
  --bg: #0a0a0c;
  --surface: rgba(24, 24, 27, 0.5);      /* zinc-900/50 */
  --surface-2: rgba(39, 39, 42, 0.45);   /* zinc-800/45 */
  --hover: rgba(39, 39, 42, 0.4);        /* zinc-800/40 */
  --border: #27272a;                      /* zinc-800 */
  --border-2: #3f3f46;                    /* zinc-700 */
  --text: #fafafa;
  --text-2: #d4d4d8;                      /* zinc-300 */
  --muted: #a1a1aa;                       /* zinc-400 */
  --faint: #71717a;                       /* zinc-500 */
  --accent: #6366f1;                      /* indigo-500 */
  --accent-hover: #818cf8;
  --accent-text: #a5b4fc;                 /* indigo-300 */
  --accent-wash: rgba(99, 102, 241, 0.12);
  --accent-line: rgba(99, 102, 241, 0.45);
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #fb7185;
  --track: #3f3f46;
  --font: "Inter", "Geist", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --radius: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --hover: #f4f4f5;
  --border: #e4e4e7;
  --border-2: #d4d4d8;
  --text: #09090b;
  --text-2: #27272a;
  --muted: #52525b;
  --faint: #71717a;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-text: #4338ca;
  --accent-wash: rgba(79, 70, 229, 0.08);
  --accent-line: rgba(79, 70, 229, 0.4);
  --ok: #047857;
  --warn: #b45309;
  --bad: #be123c;
  --track: #d4d4d8;
  color-scheme: light;
}

/* base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text); font: 400 15px/1.6 var(--font); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
  background: radial-gradient(60rem 26rem at 50% -8rem, rgba(99, 102, 241, 0.14), transparent 70%), var(--bg); background-repeat: no-repeat;
}
:root[data-theme="light"] body { background: radial-gradient(60rem 26rem at 50% -8rem, rgba(79, 70, 229, 0.07), transparent 70%), var(--bg); background-repeat: no-repeat; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.6rem); font-weight: 700; max-width: 24ch; }
h2 { font-size: 1.1rem; font-weight: 600; }
h3 { font-size: 0.98rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: 66ch; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: 0.5em 1em; }
.skip:focus { left: 0; }
.wrap { width: min(100% - 3rem, 60rem); margin-inline: auto; }

/* header */
.site-head { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
.head-row { display: flex; align-items: center; gap: 0.5rem 1.5rem; flex-wrap: wrap; min-height: 3.5rem; padding-block: 0.4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; color: var(--text); }
.brand:hover { color: var(--text); }
.logo { width: 1.35rem; height: 1.35rem; fill: none; stroke: var(--accent-text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.logo path:first-of-type { fill: var(--accent-wash); }
.site-head nav { display: flex; gap: 0.25rem; flex-wrap: wrap; margin-left: auto; font-size: 0.88rem; }
.site-head nav a { padding: 0.35rem 0.65rem; border-radius: 8px; color: var(--muted); transition: color 0.15s, background-color 0.15s; }
.site-head nav a:hover { color: var(--text); background: var(--hover); }
.theme-toggle { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; padding: 0; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; transition: color 0.15s, border-color 0.15s; }
.theme-toggle:hover { color: var(--text); border-color: var(--border-2); }
.theme-toggle[hidden] { display: none; }
.theme-toggle svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-moon { fill: currentColor; stroke: none; }
.theme-toggle[aria-pressed="true"] .i-moon, .theme-toggle[aria-pressed="false"] .i-sun { display: none; }
main { padding-block: 3rem 5rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0 0 1.75rem; font-size: 0.83rem; color: var(--faint); }
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.site-foot { border-top: 1px solid var(--border); padding-block: 2.25rem; color: var(--faint); font-size: 0.84rem; }
.site-foot nav { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 1rem; }
.site-foot a { color: var(--muted); }
.copy { font-size: 0.8rem; }

/* hero */
.hero { margin-bottom: 2rem; }
.tagline { margin: 0 0 1rem; font-size: 0.9rem; color: var(--muted); max-width: none; }
.tagline b { color: var(--text); font-weight: 600; }
.hero-title { font-size: clamp(2.3rem, 1.4rem + 3.4vw, 3.6rem); line-height: 1.04; letter-spacing: -0.035em; max-width: 17ch;
  background: linear-gradient(180deg, #ffffff 30%, #a1a1aa 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
:root[data-theme="light"] .hero-title { background: linear-gradient(180deg, #09090b 40%, #52525b 100%); -webkit-background-clip: text; background-clip: text; }
.hero-sub { margin: 1rem 0 0; font-size: 1.08rem; color: var(--muted); max-width: 56ch; }

/* workbench */
.bench { position: relative; isolation: isolate; padding: 1.25rem; border: 1px solid var(--border); border-radius: 18px;
  background: linear-gradient(180deg, rgba(39, 39, 42, 0.55), rgba(24, 24, 27, 0.45)); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 30px 80px -20px rgba(0, 0, 0, 0.6); }
.bench::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(40rem 12rem at 20% 0%, rgba(99, 102, 241, 0.16), transparent 70%); }
:root[data-theme="light"] .bench { background: #ffffff; box-shadow: 0 20px 50px -20px rgba(24, 24, 27, 0.18); }
.bench-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.bench-title { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.live { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.22rem 0.65rem; border-radius: 99px; font-size: 0.78rem; color: var(--muted); border: 1px solid var(--border); background: var(--surface); }
.live-dot { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--faint); }
.live[data-state="ready"] .live-dot { background: var(--accent); animation: pulse 1.8s ease-in-out infinite; }
.live[data-state="ok"] { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.live[data-state="ok"] .live-dot { background: var(--ok); }
.live[data-state="warn"] { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.live[data-state="warn"] .live-dot { background: var(--warn); }
.live[data-state="bad"] { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.live[data-state="bad"] .live-dot { background: var(--bad); }
.pickers { display: grid; grid-template-columns: 1.2fr 0.85fr 1.35fr; gap: 0.75rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
.step { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; font-weight: 500; color: var(--text-2); }
.step b { display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 6px; font: 600 0.72rem var(--mono);
  color: var(--accent-text); background: var(--accent-wash); border: 1px solid var(--accent-line); }
.field select {
  appearance: none; -webkit-appearance: none; width: 100%; min-width: 0; height: 2.9rem; padding: 0 2.4rem 0 0.9rem; border-radius: 10px;
  border: 1px solid var(--border-2); background-color: rgba(9, 9, 11, 0.6); color: var(--text); font: 500 0.95rem var(--font); cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 52%, calc(100% - 0.8rem) 52%; background-size: 0.35rem 0.35rem; background-repeat: no-repeat;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s; }
:root[data-theme="light"] .field select { background-color: #ffffff; }
.field select:hover:not(:disabled) { border-color: #52525b; background-color: rgba(24, 24, 27, 0.8); }
:root[data-theme="light"] .field select:hover:not(:disabled) { background-color: #fafafa; border-color: #a1a1aa; }
.field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25); }
.field select:disabled { opacity: 0.45; cursor: not-allowed; }
.placeholder { margin: 1rem 0 0; padding: 1rem 1.1rem; border: 1px dashed var(--border-2); border-radius: 12px; color: var(--muted); font-size: 0.92rem; max-width: none; }

/* result */
.result { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); animation: reveal 0.35s var(--ease) both; }
.verdict { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0; padding: 0.22rem 0.7rem; border-radius: 99px; font-size: 0.82rem; font-weight: 600;
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent); background: color-mix(in srgb, currentColor 10%, transparent); }
.verdict::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: currentColor; }
.v-ok { color: var(--ok); }
.v-warn { color: var(--warn); }
.v-bad { color: var(--bad); }
.v { font-weight: 600; font-size: 0.88rem; }
.big-number { margin: 0.65rem 0 0; font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
.big-number span { font-size: 0.95rem; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-left: 0.25rem; }
.result .notes { margin-top: 1.25rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.25rem; margin: 1.5rem 0 0; }
.fine { font-size: 0.8rem; color: var(--faint); margin: 0.6rem 0 0; }

/* buttons & links */
.button { display: inline-flex; align-items: center; gap: 0.4rem; height: 2.5rem; padding: 0 1rem; border-radius: 10px; font-size: 0.9rem; font-weight: 600;
  color: #fff; background: var(--accent); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 8px 20px -8px rgba(99, 102, 241, 0.7); white-space: nowrap;
  transition: background-color 0.15s, transform 0.15s var(--ease); }
.button:hover { color: #fff; background: var(--accent-hover); transform: translateY(-1px); }
.more { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.86rem; color: var(--muted); white-space: nowrap; transition: color 0.15s; }
.more:hover { color: var(--text); }
.badge-link { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.7rem; border-radius: 99px; font-size: 0.82rem; font-weight: 600;
  color: var(--accent-text); background: var(--accent-wash); border: 1px solid var(--accent-line); transition: background-color 0.15s, color 0.15s; }
.badge-link:hover { color: var(--text); background: rgba(99, 102, 241, 0.2); }

/* callout */
.callout { display: flex; gap: 0.9rem; align-items: flex-start; margin-top: 1.25rem; padding: 1rem 1.1rem; border-radius: var(--radius);
  border: 1px solid var(--border); border-left: 3px solid var(--warn); background: var(--surface); backdrop-filter: blur(12px); }
.callout p { margin: 0 0 0.6rem; color: var(--muted); font-size: 0.92rem; }
.callout b { color: var(--text); font-weight: 600; }
.callout-icon { flex: none; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 8px; color: var(--warn); background: rgba(251, 191, 36, 0.1); }
.callout-icon svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

/* sections */
.section { margin-top: 3rem; }
.section > h2 { margin-bottom: 0.9rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.section > .fine { margin: -0.5rem 0 1rem; }

/* directory */
.dir { list-style: none; margin: 0; padding: 0.35rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); backdrop-filter: blur(12px); }
.dir-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 1rem; padding: 0.7rem 0.75rem; border-radius: 10px; color: var(--text);
  transition: background-color 0.15s; }
.dir li + li .dir-row { border-top: 1px solid transparent; }
.dir-row:hover { background: var(--hover); color: var(--text); }
.dir-name { font-weight: 500; font-size: 0.93rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dir-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.3rem; }
.tag { display: inline-flex; align-items: center; padding: 0.12rem 0.45rem; border-radius: 6px; font: 500 0.72rem/1.5 var(--mono);
  color: var(--muted); border: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
.tag-accent { color: var(--accent-text); border-color: var(--accent-line); background: var(--accent-wash); }
.tag-speed { color: var(--text-2); }
.chev { color: var(--faint); transition: transform 0.2s var(--ease), color 0.15s; }
.dir-row:hover .chev { color: var(--text); transform: translateX(3px); }

/* detail pages */
.page { display: block; }
.meta { margin: 0 0 0.75rem; font-size: 0.85rem; color: var(--faint); }
.lead, .lede { margin: 0.9rem 0 0; font-size: 1.08rem; color: var(--muted); }
.warning { margin: 1rem 0 0; padding: 0.7rem 0.9rem; border-radius: 10px; border: 1px solid var(--border); border-left: 3px solid var(--warn); background: var(--surface); font-size: 0.92rem; color: var(--text-2); max-width: none; }
.warning b { color: var(--warn); }
.specline { display: flex; flex-wrap: wrap; margin: 1.75rem 0 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); backdrop-filter: blur(12px); }
.specline div { flex: 1 1 10rem; display: flex; flex-direction: column-reverse; gap: 0.2rem; padding: 0.9rem 1.1rem; }
.specline div + div { border-left: 1px solid var(--border); }
.specline dt { font-size: 0.75rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; }
.specline dd { margin: 0; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.notes { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.notes li { padding: 0.75rem 0.9rem; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 0.92rem; }
.notes b { color: var(--text); font-weight: 600; }
.draft { margin: 0 0 1.75rem; padding: 0.65rem 0.9rem; border-radius: 10px; border: 1px solid rgba(251, 191, 36, 0.3); background: rgba(251, 191, 36, 0.06); color: var(--warn); font-size: 0.86rem; max-width: none; }
.prov { max-width: none; margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: 0.83rem; color: var(--faint); }
.prose { max-width: 66ch; }
.prose h2 { margin: 2rem 0 0.5rem; }
.photo { margin: 2rem 0 0; }
.photo img { display: block; max-width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.photo figcaption { font-size: 0.8rem; color: var(--faint); margin-top: 0.35rem; }

/* frequency line */
.freq { position: relative; margin: 0.25rem 0 0; padding: 0.5rem 0 2.75rem; }
.freq.has-dot { padding-top: 2.1rem; }
.fl-line { position: relative; height: 2px; border-radius: 2px; background: var(--track); }
.fl-tick { position: absolute; top: -4px; width: 1px; height: 10px; margin-left: -0.5px; background: var(--faint); }
.fl-num { position: absolute; top: 12px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; line-height: 1.3; font: 500 0.82rem var(--mono); white-space: nowrap; }
.fl-num small { font: 400 0.72rem var(--font); color: var(--faint); }
.fl-num.fl-start { transform: none; align-items: flex-start; }
.fl-num.fl-end { transform: translateX(-100%); align-items: flex-end; }
.fl-dot { position: absolute; top: 50%; z-index: 1; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2), 0 0 14px rgba(99, 102, 241, 0.6); }
.fl-label { position: absolute; bottom: 12px; transform: translateX(-6px); font-size: 0.84rem; color: var(--muted); white-space: nowrap; }
.fl-label b { color: var(--text); }
.fl-label-left { transform: translateX(calc(-100% + 6px)); }

/* picks, tables, faq */
.picks { list-style: none; margin: 0; padding: 0.35rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.picks li { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem 1.5rem; padding: 0.75rem; border-radius: 10px; transition: background-color 0.15s; }
.picks li:hover { background: var(--hover); }
.picks li > div { display: flex; flex-direction: column; min-width: 0; }
.picks li > div a { color: var(--text); font-weight: 500; }
.picks li > div span { font-size: 0.84rem; color: var(--muted); }
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
thead th { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
tbody tr { transition: background-color 0.15s; }
tbody tr:hover { background: var(--hover); }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 500; }
tbody th a { color: var(--text); }
.sub { display: block; font: 400 0.75rem var(--mono); color: var(--faint); margin-top: 0.1rem; }
.faq { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 0.4rem 1.1rem; }
.faq h3 { margin: 0.9rem 0 0.25rem; }
.faq p { color: var(--muted); font-size: 0.92rem; }
.faq p:last-child { margin-bottom: 0.7rem; }

/* motion */
@keyframes reveal { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.5); } 50% { box-shadow: 0 0 0 4px rgba(99, 102, 241, 0); } }

@media (max-width: 760px) {
  .wrap { width: min(100% - 2rem, 60rem); }
  main { padding-block: 2rem 4rem; }
  .pickers { grid-template-columns: 1fr; }
  .notes { grid-template-columns: 1fr; }
  .dir-row { grid-template-columns: minmax(0, 1fr) auto; }
  .dir-tags { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  .dir-name { white-space: normal; }
  .specline div { flex-basis: 45%; }
  .specline div + div { border-left: 0; }
  .specline div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .specline div:nth-child(even) { border-left: 1px solid var(--border); }
  .picks li { flex-direction: column; align-items: flex-start; }
  .site-head nav { order: 3; width: 100%; margin-left: 0; }
  .theme-toggle { order: 2; margin-left: auto; }
  .bench-head { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.live-text { white-space: nowrap; }
.result-slot { min-height: 1px; }

/* pair FAQ inside the checker result, and the pair page verdict */
.result-faq { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.result-faq-title { margin: 0 0 0.75rem; font-size: 0.95rem; color: var(--text-2); }
.pair-verdict { margin-top: 0.4rem; font-size: 1rem; }

/* advisor: top picks when only a board is chosen */
.step small { font-weight: 400; color: var(--faint); margin-left: 0.25rem; }
.advice { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); animation: reveal 0.35s var(--ease) both; }
.advice-head { margin: 0 0 0.9rem; font-size: 1.05rem; font-weight: 600; color: var(--text); max-width: none; }
.advice-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.advice-list li { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; align-items: center; gap: 0.5rem 1rem;
  padding: 0.85rem 1rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); transition: border-color 0.15s, background-color 0.15s; }
.advice-list li:hover { border-color: var(--border-2); background: var(--hover); }
.advice-list li:first-child { border-color: var(--accent-line); }
.advice-rank { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 8px; font: 700 0.85rem var(--mono);
  color: var(--accent-text); background: var(--accent-wash); border: 1px solid var(--accent-line); }
.advice-main { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.advice-name { color: var(--text); font-weight: 600; }
.advice-name span { font-weight: 400; color: var(--muted); font-size: 0.88rem; margin-left: 0.25rem; }
.advice-why { font-size: 0.86rem; color: var(--muted); }
.advice-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; }
.advice-check { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; font-size: 0.84rem; }
@media (max-width: 760px) {
  .advice-list li { grid-template-columns: 2rem minmax(0, 1fr); }
  .advice-actions { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-start; gap: 1rem; }
}
