/* refined.css — shared chrome from the owner's Claude Design pass, 2026-11-14
   ("XPNova website redesign", Comet Camp refined). Loaded after styles.css and
   uses its tokens; the design system's colours did not change. What changes:
   - the header shows site links and a gold Sign in on the public Home;
   - the side navigation is grouped (Practise, Review, Track, Learn) and the
     current page is forest, because coral is kept for the one next action;
   - the footer is light paper with a line, like the rest of the page.
   No alarm red is introduced. Focus rings stay 3px forest on cream and gold on forest. */

/* ---------- header ---------- */
.header-site { display: none; align-items: center; gap: 4px; }
body:has(.hp2-page) .header-site { display: flex; }
.header-site a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 700; color: #fff8e7; text-decoration: none; }
.header-site a:hover { background: rgba(255, 248, 231, .14); color: #fff8e7; }
.header-site a.header-dash { margin-left: 6px; padding: 8px 16px; border: 2px solid #6f9a84; border-radius: 14px; }
.header-site a:focus-visible, .btn-signin:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.app-header .btn-signin { min-height: 44px; padding: 8px 18px; border-radius: 14px; background: var(--gold); color: #3d2f05; border-color: transparent; box-shadow: 0 3px 0 var(--forest-3); font-size: 14.5px; font-weight: 800; }
.app-header .btn-signin:hover { background: var(--gold); color: #3d2f05; filter: brightness(1.06); }
@media (max-width: 900px) { body:has(.hp2-page) .header-site { display: none; } }

/* ---------- side navigation ---------- */
.side-nav { gap: 3px; }
.nav-group-label { margin: 14px 12px 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.side-nav > .nav-group-label:first-child { margin-top: 0; }
.nav-item { min-height: 46px; padding: 9px 12px; border-radius: 13px; font-weight: 700; }
.nav-item:hover { background: var(--green-bg); }
.nav-item.active, .nav-item.active:hover { background: var(--forest); color: #fff8e7; box-shadow: 0 3px 0 var(--forest-3); }
.nav-item.active .ic { stroke: #fff8e7; }
/* Nova at the foot of the sidebar, waving, with the next step in a speech bubble
   (owner decision 2026-11-14). The whole card is one link or button. */
.side-foot { display: block; padding: 8px 0 0; }
.side-nova { display: grid; justify-items: start; gap: 2px; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.side-nova-bubble { position: relative; z-index: 1; display: grid; gap: 3px; width: 100%; padding: 11px 13px; background: #fffdf6; border: 2px solid var(--forest); border-radius: 16px 16px 16px 6px; box-shadow: 0 4px 0 var(--forest-3); color: var(--ink); font-size: 13px; line-height: 1.4; }
.side-nova-bubble strong { font-family: var(--font-heading); font-size: 14px; font-weight: 800; color: var(--forest-3); }
.side-nova-bubble::after { content: ""; position: absolute; left: 30px; bottom: -10px; width: 16px; height: 16px; background: #fffdf6; border-right: 2px solid var(--forest); border-bottom: 2px solid var(--forest); transform: rotate(45deg); }
/* The art shrinks with the window height so the whole card stays in view under
   the navigation; on short windows only the bubble shows. */
.side-nova-art { display: block; width: auto; height: clamp(72px, calc(100vh - 746px), 150px); margin: -10px 0 0 6px; }
@media (max-height: 817px) { .side-nova-art { display: none; } }
.side-nova:hover .side-nova-bubble { background: #fff8e7; }
.side-nova:focus-visible { outline: 3px solid var(--forest); outline-offset: 4px; border-radius: 16px; }
@media (max-width: 720px) { .side-nova-art { display: none; } }

/* The level chip opens the practice summary (tests taken, average). */
.xp-wrap { position: relative; }
button.xp-chip { border: 0; cursor: pointer; font: inherit; }
.xp-chip .chip-chev { color: #d7ecdd; }
.xp-menu { min-width: 248px; }
.xp-menu-level { display: grid; gap: 2px; padding: 9px 12px 8px; }
.xp-menu-level strong { font-family: var(--font-heading); font-size: 16px; font-weight: 800; color: var(--forest-3); }
.xp-menu-level span { font-size: 12.5px; color: var(--muted); }
.xp-menu-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 2px 6px 6px; }
.xp-menu-stats div { padding: 9px 11px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.xp-menu-stats dt { font-size: 12px; font-weight: 600; color: var(--muted); }
.xp-menu-stats dd { margin: 2px 0 0; font-family: var(--font-heading); font-size: 20px; font-weight: 800; color: var(--forest-3); }

/* ---------- footer ---------- */
.app-foot { background: #f6efdd; color: var(--muted); border-top: 1.5px solid var(--line); }
.app-foot .foot-links { gap: 4px 22px; }
.app-foot .foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--forest); font-size: 14px; font-weight: 700; text-underline-offset: 4px; }
.app-foot .foot-links a:hover { color: var(--forest-3); }
.app-foot .foot-copy, .app-foot .foot-tm, .app-foot .foot-tm a { font-size: 13.5px; color: var(--muted); }
.app-foot .foot-disclaimer { color: var(--muted); }

/* ---------- this week (Dashboard): days with practice, no planned target ---------- */
.ld-week { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.ld-week li { display: grid; place-items: center; min-width: 40px; min-height: 40px; padding: 0 6px; border-radius: 12px; border: 2px solid var(--line-2); background: var(--surface-2); color: var(--ink-2); font-size: 13px; font-weight: 800; }
.ld-week li.on { background: var(--forest); border-color: var(--forest); color: #fff8e7; }

/* ---------- Account: the fixed year line ---------- */
.prep-fixed { margin: 6px 0 0; font-size: 16px; font-weight: 700; color: var(--ink); }

/* ---------- starting-point check at the top of the Dashboard (2026-11-14) ----------
   Its own colour (warm gold paper) so it reads as the first, required step. It is
   shown by question count, never as sets; it disappears once every subject is done. */
.ld-check { margin: 0 0 28px; padding: clamp(20px, 3vw, 30px); background: #fff4cc; border: 2px solid #f0d376; border-radius: 22px; box-shadow: 0 5px 0 #e9c95a; }
.ld-check-main { display: flex; align-items: center; gap: clamp(18px, 3vw, 34px); }
.ld-check-ring { position: relative; flex: none; width: 128px; height: 128px; }
.ld-donut { display: block; width: 100%; height: 100%; }
.ld-donut-track { fill: none; stroke: #fde7a0; stroke-width: 14; }
.ld-donut-fill { fill: none; stroke: var(--forest); stroke-width: 14; stroke-linecap: round; }
.ld-check-pct { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.05; }
.ld-check-pct strong { font-family: var(--font-heading); font-size: 30px; font-weight: 800; color: var(--forest-3); }
.ld-check-pct small { font-size: 13px; font-weight: 700; color: #5c4708; }
.ld-check-copy { min-width: 0; }
.ld-check-badge { display: inline-flex; margin: 0 0 8px; padding: 4px 12px; border-radius: 999px; background: var(--forest); color: #fff8e7; font-size: 13px; font-weight: 800; }
.ld-check-copy h2 { margin: 0 0 6px; font-family: var(--font-heading); font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.02em; color: var(--forest-3); }
.ld-check-copy > p { margin: 0 0 12px; color: #4a4320; max-width: 62ch; }
.ld-check .lp-actions { align-items: center; }
.ld-check-cta { min-height: 52px; padding: 12px 24px; border: 2px solid transparent; border-radius: 16px; background: var(--coral); color: #1f2d22; font-size: 16px; font-weight: 800; box-shadow: 0 4px 0 #c95f42; }
.ld-check-cta:hover { background: var(--coral); color: #1f2d22; filter: brightness(1.06); }
.ld-check-next { font-size: 14px; font-weight: 700; color: #5c4708; }
.ld-check-subjects { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 2px dashed #f0d376; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 10px 22px; }
.ld-check-subjects a { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name count" "bar bar"; gap: 6px 10px; min-height: 44px; padding: 8px 10px; border-radius: 14px; color: var(--ink); text-decoration: none; }
.ld-check-subjects a:hover { background: rgba(255, 255, 255, .55); }
.ld-check-name { grid-area: name; font-weight: 800; }
.ld-check-count { grid-area: count; display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 700; color: #5c4708; }
.ld-check-subjects .ld-bar { grid-area: bar; }
.ld-check-subjects li.is-done .ld-check-count { color: var(--forest); }
.ld-bar { position: relative; display: block; height: 12px; border-radius: 99px; background: #fde7a0; overflow: hidden; }
.ld-bar-fill { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--forest); }
.ld-bar.is-done .ld-bar-fill { background: var(--forest); }
.lp-choice .ld-bar, .lp-check-subject .ld-bar { margin: 10px 0 12px; max-width: 420px; background: var(--line-soft); }
.ld-star { width: 16px; height: 16px; fill: var(--gold); stroke: var(--gold-sh); stroke-width: 1; flex: none; }
.ld-lock { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; margin-right: 6px; vertical-align: -2px; }
.ld-check-done { display: flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 10px 16px; border-radius: 14px; background: var(--green-bg); border: 1.5px solid var(--green-line); font-weight: 700; color: var(--forest-3); }

/* Daily and exam practice: the main routes. */
.ld-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.ld-card { display: flex; flex-direction: column; gap: 12px; padding: 22px; background: var(--surface-2); border: 2px solid var(--line-2); border-radius: 22px; box-shadow: 0 5px 0 #ece0c2; }
.ld-card .ld-route-icon { width: 46px; height: 46px; }
.ld-card-copy { flex: 1; }
.ld-card-copy h3 { margin: 0; }
.ld-card-copy p { margin: 8px 0 0; }
.ld-card .ld-route-action { align-self: flex-start; min-height: 44px; font: inherit; font-weight: 800; color: var(--forest); background: none; border: 0; padding: 8px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.ld-card.is-locked { border-style: dashed; box-shadow: none; }
.ld-card.is-locked .ld-route-status { color: var(--muted); }

/* Breadcrumb and the route's own subject menu. */
.lp-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 0 10px; padding: 0; list-style: none; font-size: 14px; font-weight: 700; }
.lp-crumbs li + li::before { content: "›"; margin: 0 6px 0 2px; color: var(--muted); }
.lp-crumbs a { display: inline-flex; align-items: center; min-height: 40px; color: var(--forest); text-underline-offset: 4px; }
.lp-crumbs [aria-current="page"] { color: var(--ink-2); }
.lp-subtabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 22px; padding-bottom: 14px; border-bottom: 1.5px solid var(--line); }
.lp-subtabs a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 2px solid var(--line-2); border-radius: 14px; background: var(--surface-2); color: var(--ink); font-weight: 700; text-decoration: none; }
.lp-subtabs a small { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.lp-subtabs a[aria-current="page"] { background: var(--forest); border-color: var(--forest); color: #fff8e7; box-shadow: 0 3px 0 var(--forest-3); }
.lp-subtabs a[aria-current="page"] small { color: #d7ecdd; }
.lp-choice.is-locked { border-style: dashed; }

/* Nova's face: the corner character's head, in a circle. */
.nova-face { position: relative; display: inline-block; flex: none; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: #fff4cc; border: 2px solid #f0d376; }
.nova-face img { position: absolute; width: 150px; height: auto; left: -50px; top: -8px; max-width: none; }
.nova-face.nova-face-lg { width: 96px; height: 96px; }
.nova-face.nova-face-lg img { width: 196px; left: -66px; top: -10px; }
.lp-locked-row, .nova-modal { display: flex; align-items: flex-start; gap: 18px; }
.nova-modal p { margin: 0 0 10px; }
.lp-locked h2 { margin-top: 0; }

@media (max-width: 720px) { .nova-face { display: none; } }
@media (max-width: 640px) { .ld-check-main { flex-direction: column; align-items: flex-start; } .ld-check-ring { width: 104px; height: 104px; } }
/* The badge is a paragraph inside the copy block; keep its own ink (contrast fix). */
.ld-check .ld-check-copy .ld-check-badge { color: #fff8e7; margin: 0 0 8px; }

/* ---------- Take a Test (owner decision 2026-11-14) ----------
   The starting-point check is a temporary first step: a dashed gold strip.
   Daily and exam practice are the two main choices underneath. */
.tt-check { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 18px 22px; margin: 6px 0 30px; padding: 18px 22px; background: repeating-linear-gradient(135deg, #fff6d6 0 14px, #fff1c4 14px 28px); border: 2px dashed #d9a92e; border-radius: 20px; }
.tt-check-ring { position: relative; width: 74px; height: 74px; }
.tt-check-ring .ld-donut { width: 74px; height: 74px; }
.tt-check-ring > span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-heading); font-size: 16px; font-weight: 800; color: var(--forest-3); }
.tt-check-badge { display: inline-block; margin: 0 0 6px; padding: 3px 10px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-size: 12px; font-weight: 800; }
.tt-check-copy h2 { margin: 0 0 4px; font-size: 20px; color: var(--forest-3); }
.tt-check-copy > p:not(.tt-check-badge) { margin: 0; font-size: 14.5px; color: var(--ink-2); }
/* Start the check, then the short subject names that start one subject. */
.tt-check-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 12px; }
.tt-check-subjects { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.tt-check-subject { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 8px; border: 0; border-radius: 8px; background: none; color: var(--forest); font: inherit; font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.tt-check-subject:hover { background: rgba(255, 255, 255, .55); }
.tt-check-subject:focus-visible { outline: 3px solid var(--forest); outline-offset: 2px; }
.tt-check-subject.is-done { color: var(--muted); text-decoration: none; cursor: default; }
.tt-check-subject .ld-star { width: 14px; height: 14px; fill: var(--gold); stroke: #c99a1e; stroke-width: 1.5; }
/* The subject choice for the check: large buttons, one above the other. */
.dc-list { display: grid; gap: 14px; max-width: 620px; margin: 8px 0 36px; }
.dc-subject { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 16px; width: 100%; min-height: 92px; padding: 18px 26px; background: var(--surface-2); border: 2px solid var(--forest); border-radius: 22px; box-shadow: 0 6px 0 var(--forest-3); color: var(--forest-3); font: inherit; text-align: left; cursor: pointer; transition: transform .12s var(--ease), box-shadow .12s var(--ease); }
button.dc-subject:hover { background: #f4f9ee; }
button.dc-subject:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--forest-3); }
button.dc-subject:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; }
.dc-name { font-family: var(--font-heading); font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; }
.dc-note { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--muted); }
.dc-subject .ld-bar { grid-column: 1 / -1; }
.dc-subject.is-done, .dc-subject.is-waiting { border-color: var(--line-2); box-shadow: 0 6px 0 var(--card-sh); cursor: default; }
.dc-subject.is-done .dc-name, .dc-subject.is-waiting .dc-name { color: var(--muted); }
.dc-subject .ld-star { width: 16px; height: 16px; fill: var(--gold); stroke: #c99a1e; stroke-width: 1.5; }
@media (prefers-reduced-motion: reduce) { .dc-subject { transition: none; } }
.tt-main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; margin: 0 0 36px; }
.tt-card { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 34px); background: var(--surface-2); border: 2px solid var(--forest); border-radius: 26px; box-shadow: 0 7px 0 var(--forest-3); }
.tt-card.tt-exam { background: #f1f7ea; }
.tt-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--forest); }
.tt-icon svg { width: 34px; height: 34px; fill: none; stroke: #fff8e7; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tt-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.tt-heading h2 { margin: 0; font-size: clamp(26px, 2.6vw, 32px); color: var(--forest-3); }
.tt-badge { padding: 4px 11px; border-radius: 999px; background: var(--green-bg); border: 1.5px solid var(--green-line); color: var(--forest-3); font-size: 13px; font-weight: 800; }
.tt-card > p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.tt-card .tt-status { font-size: 14px; font-weight: 700; color: var(--muted); }
.tt-action { margin-top: auto; padding-top: 6px; }
.tt-card.is-locked { border-color: var(--line-2); box-shadow: 0 7px 0 var(--card-sh); }
.tt-card.is-locked .tt-icon { background: #8fa597; }
.tt-locked-btn { display: inline-flex; align-items: center; gap: 8px; }
.tt-locked-btn .ld-lock { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (max-width: 860px) { .tt-main { grid-template-columns: 1fr; } }

/* ---------- Mistake Notebook (owner decisions 2026-11-14) ----------
   Review blue replaces the red family on this page and on the review counts:
   a wrong answer is light blue, a studied one paler, a starred question yellow. */
:root { --mn-wrong: #6aa8e4; --mn-watched: #cbe1f6; --mn-right: #cfe3bd; --mn-star: #f7c94b; --review-blue: #2f6db5; }
.mn-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 18px; }
.mn-title { position: relative; display: flex; align-items: center; gap: 8px; }
.mn-title h1 { margin: 0; }
/* The help icon: no outline, just the mark. The introduction opens in a box. */
.mn-help { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.mn-help svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.mn-help:hover, .mn-help[aria-expanded="true"] { color: var(--forest); background: var(--green-bg); }
.mn-help:focus-visible { outline: 3px solid var(--forest); outline-offset: 2px; }
.mn-pop { position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; width: min(440px, calc(100vw - 48px)); padding: 14px 16px; background: var(--surface-2); border: 2px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow-float); font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.mn-pop[hidden] { display: none; }
.mn-pop p { margin: 0 0 8px; }
.mn-pop p:last-child { margin: 0; }
.mn-pop a { color: var(--forest); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.mn-filters { display: inline-flex; margin: 0; }
.mn-subjects .prog-group { padding-left: 0; }
.mn-subjects .prog-group::before { display: none; }
.mn-trail { display: grid; grid-template-columns: 28px minmax(0, 1fr) 28px; align-items: center; gap: 6px; margin: 6px 0 8px; padding: 14px 8px 12px; background: var(--surface-2); border: 2px solid var(--line); border-radius: 20px; }
/* Arrows only, no outline. The button stays tall enough to press. */
.mn-arrow { display: grid; place-items: center; width: 28px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--forest); cursor: pointer; }
.mn-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.mn-arrow:hover:not(:disabled) { background: var(--green-bg); }
.mn-arrow:disabled { color: var(--line-2); cursor: default; }
.mn-arrow:focus-visible { outline: 3px solid var(--forest); outline-offset: 2px; }
.mn-track { display: flex; gap: 14px; overflow-x: auto; padding: 2px 4px; scrollbar-width: none; }
.mn-track::-webkit-scrollbar { display: none; }
.mn-group { flex: none; display: grid; align-content: start; gap: 8px; padding-left: 10px; border-left: 2px solid var(--line-soft); }
.mn-group:first-child { padding-left: 0; border-left: 0; }
.mn-date { margin: 0; font-size: 12.5px; font-weight: 700; line-height: 1.2; color: var(--forest-3); white-space: nowrap; }
.mn-dots { display: grid; grid-template-rows: repeat(5, 14px); grid-auto-flow: column; grid-auto-columns: 14px; gap: 6px; }
.mn-dot { display: block; width: 14px; height: 14px; border-radius: 50%; box-sizing: border-box; }
.mn-dot.is-right { width: 8px; height: 8px; margin: 3px; background: var(--mn-right); }
.mn-dot.is-wrong { background: var(--mn-wrong); }
.mn-dot.is-skipped { background: var(--surface-2); border: 3px solid var(--mn-wrong); }
.mn-dot.is-watched { background: var(--mn-watched); border: 0; }
.mn-dot.is-starred { width: 14px; height: 14px; margin: 0; background: var(--mn-star); border: 0; }
.mn-dot.is-current { box-shadow: 0 0 0 3px var(--surface-2), 0 0 0 5px var(--forest); }
a.mn-dot:focus-visible { outline: 3px solid var(--forest); outline-offset: 2px; }
.mn-legend-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 18px; }
.mn-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--muted); }
.mn-legend li { display: inline-flex; align-items: center; gap: 7px; }
.mn-legend .mn-dot { width: 12px; height: 12px; }
.mn-legend .mn-dot.is-right { width: 8px; height: 8px; margin: 2px; }
/* Previous and Next sit together. */
.mn-pager { display: inline-flex; gap: 6px; margin-left: auto; }
.mn-pager .btn { min-height: 40px; }
.mn-pager .is-disabled { opacity: .45; pointer-events: none; }
.mn-item { display: grid; gap: 14px; padding: clamp(18px, 3vw, 28px); background: var(--surface-2); border: 2px solid var(--line-2); border-radius: 22px; box-shadow: 0 5px 0 var(--card-sh); }
.mn-item-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.mn-item-head > p { margin: 0; color: var(--muted); font-size: 14px; }
.mn-item-head strong { color: var(--forest-3); }
.mn-item-tools { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.mn-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; font-size: 13.5px; color: var(--muted); }
/* The star alone, at the end of the row. */
.mn-star { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; background: none; cursor: pointer; }
.mn-star svg { width: 24px; height: 24px; fill: none; stroke: #c99a1e; stroke-width: 1.8; stroke-linejoin: round; }
.mn-star:hover { background: #fff6d6; }
.mn-star[aria-pressed="true"] svg { fill: var(--mn-star); stroke: #c99a1e; }
.mn-star:focus-visible { outline: 3px solid var(--forest); outline-offset: 2px; }
.mn-passage { padding: 12px 16px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; }
.mn-passage summary { font-weight: 800; color: var(--forest-3); cursor: pointer; }
.mn-passage div { max-height: 360px; overflow: auto; margin-top: 8px; }
.mn-passage p { margin: 0 0 10px; line-height: 1.6; }
/* The question reads at the size of the "Watch the explanation" heading. */
.mn-item .mn-stem, .mn-item .explanation-video-heading strong { font-family: var(--font-body); font-size: 16px; }
.mn-item .mn-stem { margin: 0; font-weight: 700; line-height: 1.55; color: var(--ink); white-space: pre-line; }
.mn-item-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 2px solid var(--line-soft); }
.mn-item-foot .q-report { margin: 0; }
.mn-trail-note { grid-column: 1 / -1; margin: 4px 6px 0; font-size: 13px; color: var(--muted); }
.mn-trail-empty { margin: 0; padding: 22px 6px; font-size: 14px; color: var(--muted); white-space: normal; }
@media (max-width: 640px) { .mn-trail { padding: 10px 4px; } .mn-item-tools { width: 100%; justify-content: space-between; } }
/* Review counts in the sidebar and on subject tabs, and the level bar: no red. */
.subject-tab .tab-badge { background: var(--review-blue); color: #fff; }
.subject-tab.active .tab-badge { background: rgba(255,255,255,.28); }
.nav-badge { background: var(--review-blue); color: #fff; box-shadow: 0 0 0 2px rgba(47,109,181,.22); }
.xp-chip-track > i { background: var(--gold); }
