/* Quiet study presentation. Scope to real member surfaces; never alter scoring or saved state. */
:root {
  --study-surface: #1b1622;
  --study-ink: #f5f0f6;
  --study-muted: #c7bacb;
  --study-line: #594963;
  --study-accent: #d8baf8;
  --study-success: #a8dcb9;
  --study-error: #f0a5ae;
  --study-progress: #c6a0ed;
  --study-focus: #ead7ff;
  --study-motion-fast: 120ms;
  --study-motion-reveal: 180ms;
  --study-motion-panel: 240ms;
  --study-ease: cubic-bezier(.2,.8,.2,1);
  --study-elevation-hero: 0 18px 38px rgb(12 6 20 / 23%);
  --study-elevation-action: 0 18px 40px rgb(10 4 20 / 25%);
}
body.ll-page {
  --study-surface: var(--ll-surface);
  --study-ink: var(--ll-text);
  --study-muted: var(--ll-muted);
  --study-line: var(--ll-line);
  --study-accent: var(--ll-violet);
  --study-success: var(--ll-green);
  --study-error: var(--ll-red);
  --study-progress: var(--ll-violet-strong);
  --study-focus: var(--ll-violet);
}
:is(.mdh,.cc-page,.ll-page) :is(a,button,summary):focus-visible {
  outline: 3px solid var(--study-focus);
  outline-offset: 3px;
}
:is(.mdh,.cc-page,.ll-page) :is(a,button,summary) {
  transition: color var(--study-motion-fast) ease-out,
    background-color var(--study-motion-fast) ease-out,
    border-color var(--study-motion-fast) ease-out;
}
.ll-page .ll-pattern:first-child { border-color: var(--study-line); }
.ll-page .ll-pattern h3 { color: var(--study-ink); }
.ll-page .ll-pattern-rate { font-variant-numeric: tabular-nums; }
.ll-page .ll-evidence-body { max-width: 72ch; }

/* Member state already exists on both surfaces; omit acquisition copy. */
html.bw-member-mode .bw26-desktop-nav > a[href="/pricing"],
html.bw-member-mode .bw26-nav-start,
html.bw-member-mode .bw26-account-panel a[href*="/pricing"],
html.bw-member-mode .bw26-mobile-menu-intro a[href*="/start/"],
html.bw-member-mode .bw26-mobile-account-links a[href*="/pricing"],
.cc-page.pro .bw26-desktop-nav > a[href="/pricing"],
.cc-page.pro .bw26-nav-start,
.cc-page.pro .bw26-account-panel a[href*="/pricing"],
.cc-page.pro .bw26-mobile-menu-intro a[href*="/start/"],
.cc-page.pro .bw26-mobile-account-links a[href*="/pricing"],
.cc-page.pro #cc-access-summary { display: none !important; }

/* The account's next action precedes its settings in both DOM and visual order. */
#member-home .md-shell { padding-top: 28px; }
#member-home .md-heading h1 { max-width: 25ch; margin-block: 5px 8px; }
#member-home .md-toolbar { margin-block: 16px 18px; }
#member-home .md-today {
  padding: clamp(20px, 3vw, 30px);
  background: #241c2d;
  border-color: #765f83;
}
#member-home .md-today #md-next-copy { max-width: 65ch; }
#member-home .md-today-actions { margin-block: 16px; }
#member-home #md-exam-picker { margin-top: 22px; }
#member-home .md-return-progress progress::-webkit-progress-value { background: var(--study-progress); }
#member-home .md-return-progress progress::-moz-progress-bar { background: var(--study-progress); }

/* A supported pattern leads; raw counts and caveats remain readable below it. */
.ll-page .ll-pattern:first-child h3 { font-size: clamp(1.55rem, 2.4vw, 2rem); }
.ll-page .ll-pattern:first-child .ll-pattern-rate { color: var(--study-accent); }
.ll-page .ll-rate-comparison { line-height: 1.5; }

/* Rating follows the revealed answer in reading order; AnKing remains available after it. */
.cc-page .stage .controls { margin-top: 16px; }
.cc-page .stage #cc-copy-search { margin-top: 16px; }
.cc-page .stage .anking-copy {
  border-color: var(--study-line);
  background: transparent;
}
.cc-page .stage .anking-copy-help { color: var(--study-muted); }
.cc-page .stage #cc-study-progress { font-variant-numeric: tabular-nums; }

/* Keep real deck counts, but avoid zero-width bars masquerading as progress. */
.cc-page[data-cc-view="home"] .deck-card { min-height: 126px; gap: 6px; }
.cc-page[data-cc-view="home"] .cc-deck-progress[aria-valuenow="0"] { display: none; }
.cc-page[data-cc-view="home"] .cc-deck-progress > span {
  transition: width var(--study-motion-reveal) var(--study-ease);
}
@media (max-width: 600px) {
  #member-home .md-shell { padding-top: 20px; }
  #member-home .md-heading h1 { font-size: 2rem; }
  #member-home .md-today { padding: 18px; }
  .cc-page[data-cc-view="home"] .deck-card { min-height: 112px; }
}
/* Earned desk progress moves only when saved account evidence changes. */
.md-member-desk .md-personal { box-shadow: var(--study-elevation-hero); }
.md-member-desk .md-today { box-shadow: var(--study-elevation-action); }
.md-member-desk .md-topic-fill {
  transition: width var(--study-motion-panel) var(--study-ease);
}
.md-member-desk .md-plan-ring.is-updating .md-ring-fill {
  transition: stroke-dasharray var(--study-motion-panel) var(--study-ease),
    stroke var(--study-motion-reveal) var(--study-ease);
}
.md-member-desk .md-plan-ring.is-complete .md-ring-fill { stroke: var(--study-success); }
@media (prefers-reduced-motion: reduce) {
  :is(.mdh,.cc-page,.ll-page),
  :is(.mdh,.cc-page,.ll-page) *,
  :is(.mdh,.cc-page,.ll-page) *::before,
  :is(.mdh,.cc-page,.ll-page) *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
