/* Shared reading and navigation surfaces for the installed app. */
:root {
  --ink:#142e42; --muted:#506673; --bg:#fafbf9; --surface:#fff;
  --brand:#164f73; --brand-dark:#103c5b; --sky:#e4f1f6;
  --line:#d6dfe1; --r:9px; --shadow:none;
}
body { background:var(--bg); }
.shell { max-width:none; }
.workspace { min-width:0; }
h1,h2,h3,.brand strong { letter-spacing:normal; }
main { max-width:1420px; }
.page-heading { padding-block-end:18px; border-bottom:1px solid #bdcdd2; }
.page-heading h1 { font-weight:820; line-height:1.55; }
.eyebrow { color:#48687a; }
.panel,.highlight,.metric,.question,.exam-box,.disclosure,.pack,.path-card,.empty { box-shadow:none; border-radius:var(--r); }
.btn,.track-select,.chip,.exam-btn { border-radius:6px; }
.btn.primary,.btn.primary:hover { box-shadow:none; }
.btn:focus-visible,.chip:focus-visible,a:focus-visible,button:focus-visible,select:focus-visible { outline:3px solid #3878a7; outline-offset:3px; }
.tile { border-radius:8px; }
.blue,.violet,.teal,.pink,.peach,.mint { color:#41677e; background:#e9f0f2; }
.topbar { height:62px; background:#fff; border-bottom:1px solid var(--line); }
.top-actions .iconbtn { border:0; border-radius:6px; color:#33536a; }
.top-actions .iconbtn:hover { background:#e6f0f4; }
.sidebar { background:#183447; color:#f0f6f7; border:0; }
.brand strong { color:white; }
.brand small,.sidebar-path small { color:#bcd3db; }
.brand .app-brand-mark { background:#f1f7f9; padding:5px; border-radius:6px; }
.sidebar .sidebar-path { border:solid #577080; border-width:1px 0; border-radius:0; padding:15px 0; color:#fff; background:transparent; }
.sidebar-path .tile { color:#c1e0ed; background:#264759; }
.sidebar-path strong,.sidebar-path>.icon { color:#edf7fa; }
.side-nav a,.side-foot a,.side-foot button { color:#d7e5ea; border-radius:5px; }
.side-nav a.active { background:#d6eaf3; color:#183b54; box-shadow:none; }
.side-nav a:hover,.side-foot a:hover,.side-foot button:hover { background:#30546b; color:white; }
.side-foot button { background:transparent; border:1px solid #496574; }
.home-layout {
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);
  grid-template-areas:"mission mission" var(--final-row,) "agenda next" "recovery recovery" var(--journey-row,) "subjects weekly" "statistics weekly" "tools tools";
  gap:22px 28px;
  align-items:start;
}
.home-layout:has(> .final-today) { --final-row:"final final"; }
.home-layout > .final-today { grid-area:final; margin:0; }
.home-layout > .today-desk { grid-area:agenda; }
.home-layout > .desk-followup { grid-area:next; min-width:0; display:grid; gap:10px; }
.home-layout:not(:has(> .today-desk)) > .desk-followup { grid-column:agenda-start / next-end; }
.desk-followup > * { margin:0; }
.today-hero {
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);
  grid-template-areas:"copy art" "footer footer";
  align-items:stretch;
  grid-area:mission;
  min-height:0;
  padding:0;
  gap:0;
  color:#173755;
  background:#eaf3fc;
  border:1px solid #ceddeb;
  border-radius:16px;
  overflow:hidden;
}
.today-hero::after { content:none; }
.today-hero .iwan-print {
  grid-area:art;
  width:100%;
  height:100%;
  min-height:0;
  aspect-ratio:auto;
  object-fit:cover;
  object-position:center 58%;
}
.today-hero .hero-copy { grid-area:copy; width:auto; min-width:0; align-self:center; padding:25px clamp(17px,3.5vw,42px); }
.today-hero .hero-label { color:#3a5e80; font-size:.83rem; font-weight:690; }
.today-hero h2 { color:#173755; margin:5px 0 4px; font-weight:825; line-height:1.46; font-size:clamp(1.65rem,3vw,2.7rem); }
.today-hero p { color:#355574; font-size:.9rem; max-width:unset; }
.today-hero .hero-actions { margin-top:15px; }
.today-hero .hero-actions .primary { background:#195ab5; color:white; border:0; padding:10px 16px; }
.today-hero .hero-actions .primary:hover { background:#12498f; }
.mission-footer {
  grid-area:footer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:5px 12px;
  padding:4px 22px;
  background:#f9fbfe;
  border-top:1px solid #d7e4f0;
}
.mission-footer .today-budget,.mission-footer .today-budget .btn,.mission-progress { color:#3c5872; margin:0; font-size:.82rem; }
.mission-progress { display:flex; align-items:center; gap:8px; }
.mission-progress .meter { width:52px; height:4px; background:#d0e0f0; }
.mission-progress .meter span { background:#3774b5; }
.weekly-record > .award-ribbon {
  margin-block-start:12px;
  padding:6px 0 0;
  gap:5px 10px;
  flex-wrap:wrap;
  background:transparent;
  border:0;
  border-block-start:1px solid #d7e4f1;
}
.weekly-record .award-ribbon-earned:empty { display:none; }
.weekly-record .award-ribbon a { min-height:36px; }
.home-layout .desk-shortcuts {
  grid-area:recovery;
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(0,1fr);
  gap:1px;
  margin:0;
  padding:0;
  overflow:hidden;
  border:1px solid #d5e2eb;
  border-radius:12px;
  background:#d5e2eb;
}
.desk-shortcut { display:flex; align-items:center; gap:9px; min-width:0; min-height:56px; padding:8px 12px; background:#fff; }
.desk-shortcut>span { min-width:0; flex:1; }
.desk-shortcut b,.desk-shortcut small { display:block; }
.desk-shortcut small { color:#526673; font-size:.78rem; }
.desk-shortcut>.icon:first-child { width:36px; height:36px; padding:7px; background:#e8f1f5; border-radius:10px; color:#204d64; }
.desk-shortcut>.icon:last-child { width:15px; color:#6c8289; }
.desk-shortcut:hover { background:#edf3f5; }
.home-layout .weekly-record { grid-area:weekly; margin:0; padding:18px; border:1px solid #cbdcdf; background:#f2f7f8; border-radius:10px; }
.weekly-record .activity-title { margin-bottom:12px; }
.weekly-record .weekly-settings { gap:6px; }
.weekly-record .activity-days { gap:3px; margin:18px 0; }
.weekly-record .activity-day { gap:4px; }
.weekly-record .activity-day>span { font-size:.66rem; }
.weekly-record .activity-day i { position:relative; width:100%; max-width:40px; height:40px; border:1px solid #d1dfe3; border-radius:8px; background:#fff; }
.weekly-record .activity-day i b { width:auto;height:auto;background:none;color:#365663;font-style:normal;font-size:1.05rem; }
.weekly-record .activity-day.is-today i { background:#1d536d; border-color:#1d536d; }
.weekly-record .activity-day.is-today i b { color:white; }
.weekly-record .activity-day.done i { box-shadow:inset 0 -3px #4a9275; }
.weekly-record .activity-day.done i .icon { position:absolute; bottom:0; inset-inline-end:0; width:12px; height:12px; color:#1e5e45; background:#d9f0e2; border-radius:4px; }
.weekly-stats b { font-size:1.6rem; }
.weekly-awards { padding-top:12px; }
.weekly-awards b { font-size:.88rem; }
.study-index { grid-area:subjects; min-width:0; }
.study-index .section-head { margin:0 0 12px; }
.shelf-controls { display:flex; gap:5px; }
.shelf-controls[hidden] { display:none; }
.shelf-controls .btn { font-size:0; gap:0; min-height:36px; width:36px; padding:6px; border-radius:50%; }
.course-shelf { display:grid; grid-auto-flow:column; grid-auto-columns:clamp(133px,24%,162px); gap:14px; overflow:auto; overscroll-behavior-x:contain;
 scroll-snap-type:x proximity; scroll-padding-inline:3px; scrollbar-width:thin; scrollbar-color:#bacdd5 transparent; padding:3px 3px 10px; }
.course-volume { scroll-snap-align:start; min-width:0; display:block; }
.volume-cover { --cover:#a9cddc; --type:#193e53; position:relative; display:flex; flex-direction:column; align-items:start; min-height:150px; padding:13px 15px 13px 10px;
 border-radius:4px 7px 7px 4px; background:var(--cover); color:var(--type); border-inline-start:5px solid #0002; box-shadow:inset -2px 0 0 #ffffff5c,0 2px 0 #ccd3d3; }
.volume-cover::after { content:""; position:absolute; inset-block:0; inset-inline-start:4px; border-inline-start:1px solid #173a4a35; }
.volume-cover strong { margin-top:auto; font-size:1.07rem; line-height:1.6; }
.volume-cover small { color:inherit; font-size:.76rem; }
.volume-cover .icon { width:20px; height:20px; }
.ink-mint { --cover:#bad2c8; --type:#234338; }
.ink-peach { --cover:#e5c7a9; --type:#553d26; }
.ink-violet { --cover:#c7c5d9; --type:#39354e; }
.ink-teal { --cover:#afd4d0; --type:#25484a; }
.ink-pink { --cover:#ddc2bf; --type:#573838; }
.volume-progress { display:flex; justify-content:space-between; align-items:center; font-size:.76rem; color:#426273; margin:10px 1px 6px; }
.volume-progress .icon { width:14px; height:14px; }
.course-volume .meter { height:3px; }
.course-volume:hover .volume-cover { outline:2px solid #52778b; outline-offset:1px; }
.home-rail { grid-area:tools; display:grid; grid-template-columns:auto; gap:15px; }
.home-rail .today { padding:16px; }
.home-rail .today .section-head { margin:0 0 8px; }
.home-rail .task-row .tile { color:#36617a; background:transparent; }
.home-rail .study-companion { display:block; background:#e8f1f4; border:0; border-radius:8px; }
.home-rail .study-companion .tile { display:none; }
.home-statistics { grid-area:statistics; margin:0; padding-block:10px; gap:0; border-block:1px solid var(--line); }
.home-statistics .metric { padding:10px; border:0; border-radius:0; background:transparent; }
.home-statistics .metric+.metric { border-inline-start:1px solid var(--line); }
.home-statistics .tile { display:none; }
.home-statistics strong { color:#214861; }
[data-screen=practice] .highlight { border:0; border-inline-start:3px solid #6494ab; border-radius:0; background:#e9f2f5; padding:16px; }
[data-screen=practice] .pack-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 22px; }
.pack-grid .pack { display:grid; grid-template-columns: minmax(0,1fr) auto; align-items:center; gap:10px; border:0; border-bottom:1px solid var(--line); border-radius:0; padding:17px 2px; background:transparent; }
.pack-grid .pack .tile { display:none; }
.pack-grid .pack h3 { margin-block:4px; font-size:1.02rem; }
.pack-grid .pack .btn { margin:0; min-height:40px; }
.chip.active { background:#dcecf3; color:#224f69; border-color:#9bb9c8; }
[data-screen=session] .narrow,[data-screen=result] .narrow { max-width:800px; }
.question { padding:clamp(18px,3vw,38px); border-top:3px solid #27556e; background:#fff; }
.question .section-head { margin-top:0; }
.question h2,.exam-question { font-weight:630; font-size:clamp(1.1rem,1.6vw,1.43rem); line-height:2.1; }
.options,.exam-options { gap:0; border-top:1px solid var(--line); }
.option,.exam-options button { border:0; border-bottom:1px solid var(--line); border-radius:0; padding:14px 9px; font-size:1rem; line-height:1.95; }
.option b,.exam-options button span { border:1px solid #b7c8ce; border-radius:50%; background:#fff; color:#3c5a6a; }
.option.selected { box-shadow:inset -3px 0 #27678b; }
.question-controls { margin-top:24px; }
.reader,.chapter-workspace article,.explanation { line-height:2; }
#welcome-dialog { border:1px solid #c2d4dc; border-block-start:5px solid #24536d; border-radius:10px; padding:24px; }
#welcome-dialog .welcome-choice { border-width:0 0 1px; border-radius:0; padding:12px; margin:0; background:#fff; }
#welcome-dialog .welcome-choice:hover { background:#e9f3f7; }
@media (max-width:1100px) {
 .home-layout { grid-template-columns:minmax(0,1.4fr) minmax(250px,1fr); gap:16px; }
 .home-layout .weekly-record { padding:12px; }
 .desk-shortcut { gap:6px; padding:7px; }
}
@media (max-width:850px) {
 .home-layout { display:flex; flex-direction:column; gap:18px; }
 .home-layout > * { width:100%; }
 .home-layout .home-rail { grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr)); }
 .study-index { order:2; }
 .weekly-record { order:3; }
 .home-statistics,.home-rail { order:4; }
}
@media(max-width:800px) {
  .topbar { height:60px; }
  .bottom-nav { grid-template-columns:repeat(6,minmax(0,1fr)); inset-inline:0; bottom:0; max-width:none; background:#fff; border:0; border-top:1px solid #c7d7de; padding:3px 8px max(5px,env(safe-area-inset-bottom)); border-radius:0; box-shadow:none; }
  .bottom-nav a { border-radius:0; min-height:53px; color:#526773; }
  .bottom-nav a.active { color:#154f70; background:transparent; box-shadow:inset 0 2px #2c6c90; }
}
@media(max-width:565px) {
  main { padding:18px 15px calc(84px + env(safe-area-inset-bottom)); }
  .page-heading { padding-bottom:12px; margin-bottom:16px; }
  .page-heading>.btn { margin-top:12px; }
  .today-hero { grid-template-columns:minmax(0,1.7fr) minmax(0,1fr); }
  .today-hero .hero-copy { padding:15px 12px; }
  .today-hero h2 { font-size:clamp(1.22rem,5vw,1.55rem); }
  .today-hero p { font-size:.78rem; }
  .today-hero .hero-actions { margin-top:11px; }
  .today-hero .hero-actions .primary { min-height:44px; padding:7px 11px; font-size:.84rem; }
  .mission-footer { padding:0 10px; gap:0 8px; }
  .mission-footer .today-budget,.mission-footer .today-budget .btn,.mission-progress { font-size:.75rem; }
  .mission-progress .meter { width:22px; }
  .mission-progress > span:first-child { display:none; }
  .desk-followup { order:1; }
  .home-layout .desk-shortcuts { grid-auto-flow:row; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .desk-shortcut { padding:7px 8px; gap:6px; }
  .desk-shortcut:last-child:nth-child(odd) { grid-column:1 / -1; }
  .desk-shortcut>.icon:last-child { display:none; }
  .desk-shortcut small { display:none; }
  .desk-shortcut b { font-size:.81rem; }
  .desk-shortcut:has(.due-recoveries) small { display:block; }
  .course-shelf { grid-auto-columns:clamp(116px,34%,145px); gap:9px; }
  .volume-cover { min-height:138px; }
  .home-layout .weekly-record { padding:15px; }
  [data-screen=practice] .pack-grid { grid-template-columns:minmax(0,1fr); }
  .subject-grid .subject { grid-template-columns:26px minmax(0,1fr) 95px; gap:8px; }
  .pack-grid .pack .btn,.btn,.option,.bottom-nav a,.today-budget .btn,.top-actions .iconbtn { min-height:44px; }
  .top-actions { gap:2px; }
}
@media (prefers-reduced-motion:reduce) { .btn,.subject,.chip { transition:none; } }

#welcome-dialog { padding:0; width:min(680px,calc(100vw - 32px)); max-width:none; max-height:90dvh; border:0; border-radius:15px; }
.welcome-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.8fr); }
.welcome-header { position:relative; overflow:hidden; background:#0c282d; }
.welcome-header > img { position:absolute; width:100%; height:100%; object-fit:cover; object-position:27% center; }
.welcome-header > div { position:absolute; inset:0 0 auto; display:flex; align-items:center; gap:8px; color:white; padding:18px 14px; font-size:.99rem; font-weight:700; background:#092426c9; }
.welcome-header .welcome-brandmark { width:32px; background:#f2f7f6; padding:4px; border-radius:5px; }
.welcome-body { padding:24px; min-width:0; }
#welcome-dialog .welcome-body h2 { font-size:1.35rem; margin:0 0 12px; }
.welcome-body > p { font-size:.86rem; color:#455f6b; margin:9px 0; }
.welcome-body .btn { margin:4px 0; }
@media(max-width:560px) {
 .welcome-layout { display:block; }
 .welcome-header { height:104px; }
 .welcome-header > img { object-position:50% 58%; }
 .welcome-header > div { inset:0; align-items:end; background:linear-gradient(90deg,transparent 22%,#0b242be0); }
 .welcome-body { padding:18px; }
 #welcome-dialog .welcome-body h2 { font-size:1.21rem; }
 #welcome-dialog .welcome-choice { padding-block:9px; }
}
#welcome-dialog .welcome-choice { position:relative; padding-inline-end:34px; }
#welcome-dialog .welcome-choice::after { content:""; position:absolute; inset-inline-end:12px; top:45%; width:7px; height:7px; border-left:1.5px solid #55758a; border-bottom:1.5px solid #55758a; transform:rotate(45deg); }
[data-screen=library] .task-row { padding-block:15px; }
[data-screen=library] .task-row .tile { background:transparent; color:#36617a; }
[data-screen=library] .linklist,[data-screen=review] .flash { border-top:2px solid #42697f; }
[data-screen=awards] .award-grid { gap:0 20px; }
[data-screen=awards] .award-card { background:transparent; border:0; border-top:1px solid var(--line); border-radius:0; padding:18px 3px; }
[data-screen=awards] .award-card.earned { border-color:#749c9a; }
[data-screen=awards] .award-card.locked .award-emblem.badge { background:#eaf0f0; border-color:#b7c9d0; }
.reader-text { max-width:70ch; margin-inline:auto; }

/* The question view stays readable when a prompt or an answer runs to several lines. */
.session-mast,.question-line { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.session-mast { border-bottom:1px solid #cbd8dd; padding-bottom:8px; }
.session-exit { display:flex; align-items:center; gap:7px; color:#315a70; font-size:.85rem; }
.sheet-title { padding:22px 0 14px; }
.sheet-title span,.question-source,.question-line span { color:#526a76; font-size:.84rem; }
.sheet-title h1 { font-size:clamp(1.4rem,2.2vw,1.95rem); line-height:1.65; }
.practice-sheet .question { border-radius:12px; border:1px solid #cddbe0; padding:clamp(16px,2.5vw,30px); }
.question-line b { color:#214f67; }
.question-steps { display:flex; gap:4px; margin:11px 0 18px; }
.question-steps i { flex:1; height:4px; border-radius:3px; background:#dce5e9; }
.question-steps .past { background:#347384; }
.question-steps .current { background:#72a4b8; }
.question-source { display:block; }
.practice-sheet .question h2 { margin:12px 0 20px; font-weight:640; line-height:1.95; }
.practice-sheet .options { gap:8px; border:0; }
.practice-sheet .option { border:1px solid #cedbe1; border-radius:8px; min-height:48px; padding:10px 12px; }
.practice-sheet .option.selected { border-color:#246189; box-shadow:inset -3px 0 #246189; background:#e8f4fa; }
.practice-sheet .option.good { border-color:#6a9d7c; background:#eff7f0; }
.practice-sheet .option.bad { border-color:#c88776; background:#fcf1ed; }
.practice-sheet .option.good b { background:#d9ebdd; color:#245334; }
.practice-sheet .option.bad b { background:#f3dfd7; color:#893f2e; }
@media(min-width:851px) {
  .home-layout .home-rail { grid-template-columns:2fr 1fr; }
  .home-rail .today .task-row { padding-block:9px; }
}
@media(max-width:800px) {
 .shell:has([data-screen=session]) .bottom-nav { display:none; }
 [data-screen=session] { padding-bottom:calc(24px + env(safe-area-inset-bottom)); }
 .sheet-title { padding:11px 0; }
 .session-mast { padding:0; }
 .practice-sheet .question-controls { margin-top:16px; }
 .practice-sheet .question-controls .btn.primary { min-height:46px; }
}

/* Reading-room navigation */
.sidebar { background:#f3f6f4; border-inline-end:1px solid #d8e2e3; color:var(--ink); }
.brand strong,.sidebar-path strong { color:#183c4a; }
.brand small,.sidebar-path small { color:#4c6876; }
.brand .app-brand-mark { background:none; padding:0; }
.sidebar .sidebar-path { border-color:#cbd9dd; }
.sidebar-path .tile { background:#dbe9ed; color:#2c5368; }
.sidebar-path>.icon,.side-nav a,.side-foot a,.side-foot button { color:#3b5867; }
.side-nav a.active { background:#183d4a; color:#fff; }
.side-nav a:hover,.side-foot a:hover,.side-foot button:hover { background:#e0ecee; color:#173b4a; }
.side-foot button { border-color:#c4d4d8; }
.shell:has([data-screen=home]) .topbar .track-select { display:none; }
@media(min-width:801px) { [data-screen=home] .page-heading .eyebrow { display:none; } }
:where(main) .shelf-controls .btn:focus-visible { outline-offset:1px; }

.practice-launchers { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:1px; border:1px solid #d3e1ed; border-radius:12px; overflow:hidden; background:#d3e1ed; }
.practice-launch { display:grid; grid-template-columns:26px minmax(0,1fr); align-content:start; gap:10px; padding:19px; background:#fff; }
.practice-launch:first-child { background:#eef5fe; }
.practice-launch .btn.primary { background:#195ab5; color:#fff; }
.practice-launch .btn.primary:hover { background:#12498f; }
.practice-launch>.icon { color:#305e73; margin-top:3px; }
.practice-launch h2,.catalog-head h2 { font-size:1.15rem; }
.practice-launch p { font-size:.87rem; color:#45606b; margin:3px 0 7px; }
.practice-launch .btn { grid-column:2; justify-self:start; }
.practice-resources,.catalog-head,.catalog-tools,.catalog-subject { display:flex; align-items:center; flex-wrap:wrap; }
.practice-resources { gap:5px 0; padding:10px 0; border-bottom:1px solid var(--line); }
.practice-resources a { color:#305e73; padding:6px 12px; font-size:.83rem; }
.practice-resources a:first-child { padding-inline-start:0; }
.practice-resources a+a { border-inline-start:1px solid #c5d6dc; }
.catalog-head { margin:24px 0 12px; gap:12px; }
.catalog-head span,.catalog-subject { color:#506673; font-size:.82rem; }
.catalog-tools { justify-content:space-between; gap:10px 16px; padding-bottom:12px; border-bottom:1px solid #becfd6; }
.catalog-tools .filters { gap:4px; margin:0; }
.catalog-subject { gap:8px; margin:0; }
.catalog-subject select { width:auto; max-width:100%; min-height:42px; margin:0; background:#fff; }
@media(max-width:650px) {
 .practice-launchers { grid-template-columns:1fr; }
 .practice-launch { grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px; padding:13px 12px; }
 .practice-launch>.icon { display:none; }
 .practice-launch h2 { font-size:1rem; }
 .practice-launch p { font-size:.78rem; margin:2px 0 0; }
 .practice-launch .btn { max-width:132px; font-size:.79rem; padding-inline:10px; white-space:normal; text-align:center; }
 .practice-resources a { font-size:.76rem; padding:7px; }
 .catalog-head { margin-top:18px; }
 .catalog-tools .chip { font-size:.77rem; padding-inline:8px; }
 .catalog-subject { width:100%; }
 .catalog-subject select { flex:1; }
}
#welcome-title:focus { outline:none; }
@media(max-width:565px) {
 .practice-resources .icon { display:none; }
 .practice-resources a { padding-inline:8px; }
 .practice-resources a:first-child { padding-inline-start:0; }
}

/* Result, notebook and topic progress share the same reading width and index. */
.journal { max-width:970px; margin-inline:auto; min-width:0; }
.journal-nav { display:flex; gap:18px; border-bottom:1px solid var(--line); margin:0 0 18px; }
.journal-nav a { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:44px; padding:0 5px; color:#4b646f; font-size:.86rem; }
.journal-nav .icon { width:17px; height:17px; }
.journal-nav [aria-current] { color:#173e50; font-weight:750; box-shadow:inset 0 -3px #2b6276; }
.journal .page-heading { border:0; padding-bottom:0; margin:0 0 16px; }
.journal .section-head { margin:24px 0 11px; }
.journal summary:focus-visible { outline:3px solid #3878a7; outline-offset:2px; }
.score-sheet,.atlas-overview,.notebook .review-agenda { padding:20px 24px; border-radius:10px; }
.score-sheet { background:#163d47; color:#f4f8f8; }
.score-lead { display:flex; gap:12px; align-items:baseline; flex-wrap:wrap; }
.score-lead strong,.review-agenda strong { font-size:clamp(1.7rem,3vw,2.5rem); font-weight:760; line-height:1.48; }
.score-lead>span { font-size:.9rem; }
.result-strip,.atlas-strip { display:flex; gap:3px; height:8px; overflow:hidden; border-radius:2px; }
.result-strip { margin:13px 0; background:#244955; }
.score-sheet .correct { background:#9ed6c2; }
.score-sheet .wrong { background:#f0b499; }
.score-sheet .skipped { background:#a8cde1; }
.score-sheet .unseen { background:#72909b; }
.score-sheet .result-metrics { display:flex; align-items:start; gap:7px 24px; flex-wrap:wrap; margin:0; }
.result-metrics .metric { display:block; background:transparent; border:0; padding:0; color:#fff; }
.result-metrics .metric strong { color:inherit; font-size:1.33rem; }
.result-metrics .metric p { display:flex; align-items:center; gap:6px; color:#e4eef0; margin:0; font-size:.81rem; }
.result-metrics i,.atlas-legend i { display:inline-block; width:9px; height:9px; flex:none; border-radius:2px; }
.journal .weekly-awards { margin:12px 0; padding:9px 13px; background:#f1f6f5; }
.answer-index,.notebook .mistake-rows,.map-questions { border-block:1px solid #bccecf; }
.journal-entry,.notebook .notebook-entry { border-bottom:1px solid var(--line); padding:12px 3px; display:block; background:none; border-radius:0; }
.journal-entry:last-child,.notebook-entry:last-child { border-bottom:0; }
.journal .journal-entry { margin:0; border-inline:0; border-top:0; }
.journal-entry .disclosure,.notebook-entry .exam-answer { padding:0; margin:0; box-shadow:none; border:0; border-radius:0; background:transparent; }
.journal-entry summary,.notebook-entry summary { position:relative; display:block; padding-inline-end:25px; cursor:pointer; text-align:start; list-style:none; }
.journal-entry summary::-webkit-details-marker,.notebook-entry summary::-webkit-details-marker { display:none; }
.journal-entry summary>.icon,.notebook-entry summary::after { position:absolute; inset-inline-end:4px; top:50%; color:#587887; }
.journal-entry summary>.icon { transform:translateY(-50%) rotate(-90deg); width:16px; }
.journal-entry details[open]>summary>.icon { transform:translateY(-50%) rotate(90deg); }
.notebook-entry summary::after { content:''; width:7px; height:7px; border:solid #587887; border-width:0 1.5px 1.5px 0; transform:rotate(45deg); }
.notebook-entry details[open]>summary::after { transform:rotate(225deg); }
.entry-meta { display:flex; align-items:center; gap:9px; flex-wrap:wrap; font-size:.76rem; line-height:1.65; color:#526b76; font-weight:500; margin-bottom:5px; }
.entry-meta .outcome,.entry-meta .exam-outcome { display:inline-flex; align-items:center; gap:5px; color:#334f60; margin:0; background:none; padding:0; }
.entry-meta .outcome::before,.entry-meta .exam-outcome::before { content:""; width:7px; height:7px; border-radius:2px; background:#718691; }
.entry-meta .correct::before { background:#348261; }
.entry-meta .wrong::before { background:#a65e44; }
.entry-meta .guess::before,.entry-meta .skipped::before { background:#557b9c; }
.journal-entry summary strong,.notebook-entry summary strong { line-height:1.9; font-weight:620; display:block; }
.journal-entry>.btn,.notebook-retry { display:inline-flex; gap:6px; align-items:center; width:auto; min-height:44px; font:inherit; font-size:.82rem; font-weight:660; color:#235473; background:transparent; padding:0 3px; border:0; cursor:pointer; }
.journal-entry>.btn:hover,.notebook-retry:hover { text-decoration:underline; }
.journal .previous-pick { background:#f3f0eb; color:#594a3f; border-inline-start:3px solid #c18c6c; padding:9px 12px; font-size:.9rem; margin:12px 0; }
.answer-hint { margin-block:14px 7px; color:var(--muted); font-size:.84rem; }
.journal .explanation,.journal .challenge-note { overflow-wrap:anywhere; }
.notebook .review-agenda { display:block; background:#e5eff1; margin:0 0 18px; border:1px solid #cadcde; }
.notebook .review-agenda>div,.notebook .review-agenda footer { display:flex; align-items:center; gap:7px; color:#395d68; font-size:.84rem; }
.review-agenda>div .icon { width:18px; }
.notebook .review-agenda strong { display:block; font-size:clamp(1.25rem,3vw,1.9rem); color:#173f4b; margin:6px 0 10px; }
.notebook .review-agenda footer { justify-content:space-between; flex-wrap:wrap; border-top:1px solid #bfd2d5; padding-top:6px; }
.notebook .review-agenda .text-link { min-height:36px; }
.notebook>.filters { gap:4px; margin:8px 0 16px; }
.notebook .chip { min-height:44px; }
.notebook #app-mistakes>.exam-box { background:none; border:0; margin:0; padding:0; }
.notebook-index-head { display:flex; align-items:baseline; gap:12px; justify-content:space-between; }
.notebook .notebook-index-head h2 { margin:0; font-size:1.05rem; }
.notebook-filters { margin:8px 0 10px; border-block:1px solid var(--line); }
.notebook-filters summary { cursor:pointer; font-size:.88rem; font-weight:630; padding:11px 2px; min-height:44px; }
.notebook-filters summary span { font-weight:450; color:#506974; font-size:.8rem; margin-inline-start:10px; }
.notebook-filters .exam-fields { grid-template-columns:repeat(auto-fit,minmax(min(100%,130px),1fr)); margin:0 0 12px; }
.notebook .exam-btn { background:#20556c; border:1px solid #20556c; color:white; min-height:44px; padding:7px 12px; border-radius:6px; font-size:.85rem; }
.notebook .exam-secondary { background:white; color:#214d63; border-color:#c3d3da; }
.notebook-date { margin-inline-start:auto; }
.notebook .exam-copy { padding:12px 0 0; }
.notebook-policy { margin:12px 0; }
.notebook .flash { background:#f3f7f6; border:1px solid #c6d6d9; border-inline-start:5px solid #527b84; }
.notebook .flash p { font-size:1.08rem; line-height:1.95; }
.atlas-overview { background:#e5eff0; color:#214850; border:1px solid #c8d9dc; }
.atlas-strip { margin:10px 0 12px; }
.atlas-overview .new { background:#abbec3; }
.atlas-overview .sample { background:#618aa0; }
.atlas-overview .review { background:#b67555; }
.atlas-overview .steady { background:#4c8370; }
.atlas-legend { display:flex; align-items:center; gap:5px 20px; flex-wrap:wrap; }
.atlas-legend span { display:flex; gap:5px; align-items:center; font-size:.8rem; }
.atlas-legend b { font-size:.94rem; }
.subject-index,.topic-index { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 24px; border-block-start:1px solid #bbced1; }
.subject-index .map-subject { display:grid; grid-template-columns:auto minmax(0,1fr) auto 14px; align-items:center; gap:12px; padding:16px 3px; border-bottom:1px solid var(--line); }
.subject-mark { display:grid; place-items:center; width:36px; min-height:51px; border-radius:2px 5px 5px 2px; border-inline-start:4px solid #0002; background:var(--cover,#adcfdb); color:var(--type,#254958); }
.subject-mark .icon { width:19px; }
.subject-reading h2 { font-size:1.04rem; line-height:1.6; }
.subject-reading small,.subject-total small { display:block; color:#506773; font-size:.76rem; }
.subject-reading .meter { margin-top:6px; height:4px; }
.subject-reading .meter>span,.topic-entry .meter>span { background:#427d8b; }
.subject-total { font-size:.9rem; font-variant-numeric:tabular-nums; color:#244b5a; }
.map-subject>.icon { width:14px; color:#708490; }
.topic-index .topic-entry,.progress-atlas>.topic-entry { border:0; border-bottom:1px solid var(--line); padding:16px 2px; border-radius:0; background:transparent; }
.progress-atlas>.topic-entry { border-top:1px solid var(--line); }
.topic-entry .mastery-title { flex-wrap:wrap; }
.topic-entry h3 a { display:inline-flex; align-items:center; min-height:44px; color:#20495d; text-decoration:underline; }
.topic-entry .meter { height:5px; }
.topic-entry .wrap .btn { min-height:44px; font-size:.83rem; }
.topic-entry .mastery-level { color:#445f6a; background:#e8eeef; }
.topic-entry .mastery-level.review { color:#80432e; background:#f6e8df; }
.topic-entry .mastery-level.steady { color:#2c5d48; background:#e2eee6; }
.progress-atlas .mastery-note { padding-block:12px; font-size:.8rem; }
.journal .map-question { padding:14px 2px; font-size:.95rem; line-height:1.85; }
@media(max-width:700px) {
 .subject-index,.topic-index { grid-template-columns:minmax(0,1fr); }
 .journal-nav { gap:0; margin-bottom:12px; }
 .journal-nav a { flex:1; }
 .journal .page-heading { margin-bottom:12px; }
 .score-sheet,.atlas-overview,.notebook .review-agenda { padding:14px 15px; }
 .score-sheet .result-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px 12px; }
 .result-metrics .metric { display:flex; gap:7px; align-items:baseline; }
 .result-metrics .metric strong { font-size:1.12rem; }
 .result-metrics .metric p { font-size:.74rem; }
 .atlas-legend { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px 12px; }
 .atlas-legend b { margin-inline-start:auto; }
 .journal .section-head { margin:17px 0 8px; }
 .notebook .notebook-entry,.journal .journal-entry { padding:11px 2px 4px; }
 .journal-entry:has(>details:only-child),.notebook-entry:has(>details:only-child) { padding-bottom:12px; }
 .journal .page-heading>.btn { margin-top:0; }
 .notebook .task-row { flex-wrap:wrap; }
}
[data-screen=web-exam] .web-report { border:0; padding:0; background:transparent; }
.web-report .exam-results { padding:14px; background:#163d47; border-radius:10px; gap:4px; }
.web-report .exam-results div { background:transparent; text-align:start; }
.web-report .exam-results strong,.web-report .exam-results span { color:#eff7f6; }
.web-report .exam-actions :is(.exam-btn,.exam-secondary) { border-radius:6px; }
.web-report .exam-answer { border-top:1px solid var(--line); padding-block:14px; }
.web-report .exam-answer summary { line-height:1.95; }
.home-layout:has(> .journey-hint) { --journey-row:"journey journey"; }
.journey-hint { grid-area:journey; display:flex; gap:12px; align-items:center; background:#eaf2f1; border-inline-start:3px solid #548176; padding:8px 13px; }
.journey-hint .tile { background:transparent; color:#3b665e; }
.journey-hint>a { flex:1; display:flex; align-items:baseline; gap:5px 14px; flex-wrap:wrap; padding-block:3px; color:#193e46; }
.journey-hint a small,.journey-hint a span { font-size:.8rem; color:#405f65; }
.journey-hint a strong { font-size:1.02rem; }
.journey-hint button { flex:none; width:42px; min-height:44px; background:none; border:0; }
.journey-book { max-width:800px; }
.journey-list { border-top:1px solid #bececf; margin-bottom:14px; }
.journey-list a { display:grid; grid-template-columns:auto minmax(0,1fr) auto 16px; gap:12px; align-items:center; padding:14px 2px; border-bottom:1px solid var(--line); }
.journey-list small,.journey-list b { display:block; }
.journey-list small,.journey-list em { color:#48626d; font-size:.82rem; line-height:1.8; }
.journey-list em { font-style:normal; }
.journey-list a>.icon { width:15px; }
.journey-sheet { border:1px solid #cad9dc; padding:20px 24px; border-radius:10px; background:#fff; }
.journey-sheet header,.journey-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.journey-sheet header { color:#245863; }
.journey-sheet>p { color:#45616e; margin:8px 0 14px; }
.journey-sheet ol { list-style:none; margin:0; padding:0; }
.journey-sheet li { display:flex; align-items:center; gap:12px; border-top:1px solid var(--line); padding:12px 0; }
.journey-sheet li>span { display:grid; place-items:center; width:28px; height:28px; flex:none; background:#eef2f2; border-radius:50%; }
.journey-sheet li>span .icon { width:17px; }
.journey-sheet li.done>span { background:#d9eae1; color:#275b46; }
.journey-sheet li.current>span { color:#fff; background:#20546b; }
.journey-sheet li small { display:block; color:#436755; font-size:.75rem; }
.journey-goal { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin:12px 0; }
.journey-goal select { width:auto; margin:0; }
.journey-actions { padding-top:12px; border-top:1px solid var(--line); justify-content:space-between; }
@media(max-width:620px) {
 .journey-hint { padding:7px 10px; gap:6px; }
 .journey-hint .tile { display:none; }
 .journey-hint a span { flex-basis:100%; }
 .journey-list a { grid-template-columns:32px minmax(0,1fr) 16px; gap:2px 9px; }
 .journey-list a>.tile { width:30px; grid-column:1; grid-row:1/3; }
 .journey-list a>em { grid-column:2; grid-row:2; }
 .journey-list a>.icon { grid-column:3; grid-row:1/3; }
 .journey-sheet { padding:15px; }
}

.insights { max-width:1100px; }
.insight-filters { display:flex; flex-wrap:wrap; gap:10px 20px; align-items:end; background:#eaf1f2; border:1px solid #cfdddf; border-radius:8px; padding:12px 16px; }
.insight-filters label { font-size:.84rem; }
.insight-filters select { margin:3px 0 0; width:auto; min-height:42px; }
.insights section { margin-top:24px; }
.insights section>p,.insights section>small,.insight-since { font-size:.85rem; line-height:1.9; color:#425d69; margin:8px 0; }
.insights section>small { display:block; }
.insight-funnel { border-top:1px solid #c8d8db; }
.insight-funnel summary { cursor:pointer; padding:10px 4px; min-height:44px; }
.insight-funnel summary span { margin-inline-start:15px; font-size:.82rem; color:#365564; }
.insight-funnel ol { padding:0 12px 0 0; margin:5px 0; list-style:none; }
.insight-funnel li { display:grid; grid-template-columns:minmax(6rem,1fr) 3rem minmax(40px,2fr); gap:4px 10px; align-items:center; padding:6px 0; }
.insight-funnel li>i { height:6px; background:#d6e3e6; }
.insight-funnel li>i b { display:block; background:#437e88; height:100%; }
.insight-funnel li small { grid-column:1/-1; color:#6f5549; }
.insight-table { overflow-x:auto; overscroll-behavior-inline:contain; border-block:1px solid #cadadc; }
.insight-table table { width:100%; border-collapse:collapse; font-variant-numeric:tabular-nums; }
.insight-table :is(th,td) { text-align:start; padding:9px 10px; border-bottom:1px solid #d9e2e4; font-size:.84rem; white-space:nowrap; }
.insight-table thead { background:#e9f1f2; }
@media(max-width:600px){.insight-filters{gap:7px; padding:10px}.insight-filters label{flex:1}.insight-filters select{width:100%}.insight-funnel summary b{display:block}.insight-funnel summary span{margin-inline-start:0;margin-inline-end:14px}}
.insight-overview {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr));gap:12px;margin:15px 0 22px;}
.insight-overview article {padding:13px 15px;background:#e9f1f1;border-inline-start:3px solid #517d83;}
.insight-overview :is(small,strong,span) {display:block;}
.insight-overview small,.insight-overview span {font-size:.82rem;color:#3b5f6c;}
.insight-overview strong {font-size:1.55rem;line-height:1.5;color:#194653;}

.system-guide-group { margin-block: 1.5rem 2rem; }
.system-guide-group h3 { font-size: 1.08rem; margin: 0; }
.system-guide-step { padding-inline-start: .3rem; margin-block: 1.5rem; }
.system-guide-step::marker { color: #155974; font-weight: bold; }
.system-guide-step h3 { margin: 0; }
.system-guide-step p { margin-block: .45rem; }
.system-guide-step figure { margin: .75rem 0; }
.system-guide-step img { display: block; height: auto; width: auto; max-width: 100%; max-height: 25rem; border: 1px solid #cbdde3; border-radius: .5rem; }
.system-guide-step figcaption { color: #48616d; font-size: .85rem; margin-block-start: .35rem; }

.app-cover { display:block; width:100%; height:auto; aspect-ratio:3 / 2; object-fit:cover; }
.app-cover-heading {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(105px,29%);
  overflow:hidden;
  align-items:stretch;
  margin-bottom:20px;
  border:1px solid #ccdde9;
  border-radius:16px;
  background:#f0f6fb;
}
.app-cover-heading .page-heading {
  min-width:0;
  flex-wrap:wrap;
  align-content:center;
  margin:0;
  padding:clamp(12px,2.4vw,24px);
  border:0;
}
.app-cover-heading .page-heading > .btn { margin:0; white-space:normal; }
.app-cover-heading > .app-cover { width:100%; height:100%; min-height:110px; max-height:180px; }
.path-grid .path-card {
  display:flex;
  flex-direction:column;
  gap:0;
  align-items:stretch;
  padding:0;
  overflow:hidden;
}
.path-card > .app-cover { height:clamp(115px,18vw,172px); object-position:center 57%; }
.path-card-copy { display:flex; flex:1; flex-direction:column; align-items:flex-start; padding:16px; }
.path-card-copy .wrap { margin-bottom:12px; }
.path-card-copy .btn { margin-top:auto; }
.desk-shortcut > .app-cover {
  flex:0 0 auto;
  width:44px;
  height:38px;
  border-radius:8px;
}
@media (max-width:640px) {
  .path-card > .app-cover { height:145px; }
  .app-cover-heading .page-heading h1 { font-size:clamp(1.2rem,5vw,1.6rem); }
  .app-cover-heading .page-heading > div { min-width:0; }
}

.final-mock-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-block:16px; }
.final-mock, .final-date, .final-schedule, .final-history, .final-today, .final-report { padding:clamp(12px,2vw,20px); margin-block:14px; }
.final-mock { margin-block:0; }
.final-mock h2, .final-date h2, .final-schedule h2, .final-today h2 { font-size:1.1rem; }
.final-mock p, .final-today p { margin-block:6px 10px; }
.final-today, .final-report { border:1px solid #c5dcf3; border-radius:14px; background:#f1f7ff; }
.final-days, .final-priorities { padding-inline-start:22px; }
.final-days li { padding:8px 0; border-bottom:1px solid #dce8f1; }
.final-days small, .final-priorities small, .final-history small { display:block; color:#435c71; }
.final-days .wrap:not(:empty) { margin-block-start:6px; }
.final-report h3 { margin-block-start:0; }
@media (max-width:620px) { .final-mock-grid { grid-template-columns:1fr; } }
