/* A quiet, light-blue workspace for focused study. */
:root {
  --bg: #f7f9fc;
  --ink: #202f48;
  --muted: #65768e;
  --line: #e5ebf3;
  --brand: #2677e3;
  --brand-dark: #1759af;
  --sky: #edf5ff;
  --r: 20px;
  --shadow: 0 4px 20px #1b427204;
}
body { background: var(--bg); }
#main:focus { outline: none; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
.btn, .chip, .iconbtn, .subject, .side-nav a {
  transition: background .18s, border-color .18s, box-shadow .18s, transform .18s;
}
h1 { font-weight: 820; font-size: clamp(1.7rem,2.7vw,2.2rem); letter-spacing: -.045em; }
h2, .section-head h2 { font-weight: 760; }
.icon { stroke-width: 1.65; }
.shell { max-width: 1800px; grid-template-columns: 234px minmax(0,1fr); }
.sidebar { padding: 34px 22px 22px; border-color: #e8edf4; }
.brand { margin: 0 2px 32px; gap: 10px; }
.brand strong { font-size: 1.17rem; font-weight: 830; letter-spacing: -.035em; }
.brand small { margin-top: 2px; font-size: .72rem; color: #7a879b; }
.app-brand-mark { width: 42px; height: 42px; }
.sidebar-path {
  display: flex; align-items: center; gap: 10px; padding: 13px 10px;
  border: 1px solid var(--line); border-radius: 15px; margin-bottom: 30px;
  background: #fbfdff;
}
.sidebar-path .tile { width: 34px; height: 38px; border-radius: 9px; }
.sidebar-path span:not(.tile) { display: grid; flex: 1; gap: 1px; }
.sidebar-path small { font-size: .65rem; font-weight: 500; color: var(--muted); }
.sidebar-path strong { font-size: .86rem; font-weight: 720; }
.sidebar-path>.icon { width: 13px; color: #8d9bb0; }
.side-nav { gap: 8px; }
.side-nav a, .side-foot a, .side-foot button { font-weight: 560; font-size: .89rem; padding: 13px 14px; gap: 13px; }
.side-nav a.active { font-weight: 760; color: #1766c9; background: #eaf3ff; box-shadow: inset -3px 0 #3c8ef2; }
.side-nav a .icon { width: 20px; height: 20px; }
.side-foot { gap: 0; border: 0; }
.side-foot button { background: #f4f8fe; border: 1px solid #e7effa; color: var(--brand-dark); }
.side-foot a { font-size: .79rem; }
.topbar { height: 83px; background: #ffffffb8; padding-inline: 34px; border-color: #e9edf3; }
.desktop-top { display: flex; align-items: center; gap: 9px; font-weight: 450; color: var(--muted); font-size: .8rem; }
.desktop-top .icon { width: 18px; color: #8d9bb0; }
.top-actions { gap: 18px; }
.track-select { background: white; border-color: var(--line); font-weight: 650; padding-inline: 12px; }
.connection { font-size: .74rem; font-weight: 450; }
.connection i { width: 6px; height: 6px; box-shadow: 0 0 0 3px #8899aa0b; }
.iconbtn { border-radius: 50%; width: 38px; height: 38px; }
main { max-width: 1400px; padding: 30px 34px 48px; }
.page-heading { margin-bottom: 26px; align-items: center; }
.page-heading p { font-weight: 400; font-size: .87rem; margin-top: 7px; }
.eyebrow { color: #6a7c93; font-size: .75rem; font-weight: 600; margin-bottom: 6px; }
.page-heading>.btn { font-weight: 600; }
.btn { min-height: 45px; border-radius: 12px; font-weight: 670; padding: 10px 16px; }
.btn.primary { box-shadow: 0 4px 9px #2276df18; }
.btn.primary:hover { box-shadow: 0 5px 15px #2276df26; }
.secondary { border-color: #dce5ef; color: #3e5879; }
.btn.ai { background: #f0f5ff; border-color: #dce7fc; color: #3d63a0; }
.panel { box-shadow: var(--shadow); border-color: var(--line); }
.tile { border-radius: 14px; }
.blue { background: #eaf3ff; color: #3574c9; }
.mint { background: #eaf6f2; color: #39816c; }
.peach { background: #fdf2e6; color: #b57c3c; }
.violet { background: #f1edfa; color: #8872ad; }
.teal { background: #eaf5f7; color: #4b8794; }
.pink { background: #f9eef1; color: #ae6e89; }
.home-layout { display: grid; grid-template-columns: minmax(0,1fr) 274px; gap: 24px; align-items: start; }
.home-primary, .home-rail { min-width: 0; }
.home-rail { display: grid; gap: 18px; }
.hero {
  min-height: 264px; background: linear-gradient(110deg,#dfedff 0%,#e7f3ff 48%,#f0f7ff 100%);
  color: #223e66; box-shadow: none; border: 1px solid #dbeafa; border-radius: 23px;
  justify-content: space-between; padding-inline-end: 22px; gap: 10px;
}
.hero::after {
  content: ""; width: 240px; height: 240px; position: absolute; inset-inline-end: -82px; top: -125px;
  border: 35px solid #ffffff25; border-radius: 50%; pointer-events: none;
}
.hero-copy { padding: 25px 28px; flex: 1; }
.hero-label { border: 0; background: transparent; padding: 0; color: #4e79ae; font-size: .76rem; font-weight: 550; }
.hero h2 { font-size: clamp(1.65rem,2.4vw,2.15rem); line-height: 1.65; font-weight: 820; margin: 8px 0; white-space: nowrap; }
.hero h2 em { color: #2374d3; font-style: normal; }
.hero p { color: #587898; font-weight: 430; font-size: .79rem; }
.hero-actions { margin-top: 20px; }
.hero-actions .btn { padding-inline: 18px; }
.daily-goal { flex: 0 0 166px; display: grid; justify-items: center; gap: 12px; position: relative; z-index: 1; }
.goal-ring {
  width: 154px; height: 154px; padding: 8px; border: 6px solid #ffffff68; border-radius: 50%;
  background: conic-gradient(from 0deg,#398ef1 var(--goal),#bed9fa var(--goal));
  box-shadow: 0 14px 26px #2d6ebc0b;
}
.goal-ring>div { border-radius: 50%; background: #f4f9ff; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.goal-ring strong { font-size: 2.15rem; line-height: 1.45; font-weight: 780; color: #275782; }
.goal-ring strong span { font-size: 1.07rem; font-weight: 500; color: #658aad; }
.goal-ring small { font-size: .7rem; color: #6b87a4; }
.goal-caption { color: #567aa1; font-size: .7rem; }
.goal-caption .icon { width: 15px; height: 15px; }
.metrics { gap: 12px; margin: 16px 0 0; }
.metric { padding: 16px; gap: 12px; border-radius: 16px; }
.metric .tile { width: 38px; height: 38px; border-radius: 12px; }
.metric strong { font-size: 1.48rem; font-weight: 760; font-variant-numeric: tabular-nums; }
.metric p { font-size: .7rem; font-weight: 450; margin-top: 2px; }
.section-head { margin: 28px 0 15px; }
.section-head h2 { font-size: 1.08rem; }
.text-link { font-weight: 580; font-size: .76rem; }
.subject-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.subject {
  display: grid; gap: 18px; padding: 20px 17px 16px; min-height: 181px; border-radius: 17px;
  background: linear-gradient(160deg,var(--subject-tint,#f1f7ff),#fff 70%); position: relative; overflow: hidden;
}
.subject-blue { --subject-tint: #ecf4ff; --subject-color: #5494dc; }
.subject-mint { --subject-tint: #edf6f2; --subject-color: #65a992; }
.subject-peach { --subject-tint: #fdf4e9; --subject-color: #c69b68; }
.subject-violet { --subject-tint: #f4effb; --subject-color: #9b86c2; }
.subject-teal { --subject-tint: #edf7f8; --subject-color: #66a8b2; }
.subject-pink { --subject-tint: #faf0f4; --subject-color: #c18ca1; }
.subject:hover { background: linear-gradient(160deg,var(--subject-tint),#fff); border-color: var(--subject-color); transform: translateY(-3px); box-shadow: 0 8px 20px #28476e0a; }
.subject-top { display: flex; align-items: center; justify-content: space-between; }
.subject-top .tile { background: #ffffffb3; color: var(--subject-color); box-shadow: 0 2px 6px #34517106; border: 1px solid #ffffff; }
.subject-arrow { width: 16px; height: 16px; color: #99a8b9; }
.subject b { font-size: .9rem; font-weight: 730; }
.subject small { margin-top: 4px; font-size: .74rem; color: var(--muted); }
.subject-bottom { display: grid; grid-template-columns: 1fr auto; gap: 7px; align-items: center; font-size: .71rem; color: var(--muted); }
.subject-bottom strong { font-size: .68rem; font-weight: 550; }
.subject-bottom .meter { grid-column: 1/-1; height: 4px; background: #edf0f5; }
.subject-bottom .meter>span { background: var(--subject-color); }
.activity-card { padding: 20px 17px; }
.activity-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 21px; }
.activity-title h2 { font-size: .96rem; }
.activity-title>.icon { width: 17px; color: #899ab1; }
.activity-days { display: grid; grid-template-columns: repeat(7,1fr); gap: 6px; }
.activity-day { display: grid; gap: 10px; justify-items: center; }
.activity-day>span { font-size: .6rem; color: var(--muted); white-space: nowrap; }
.activity-day i { display: grid; place-items: center; border: 1px solid #e9eef5; background: #f8fafc; border-radius: 50%; width: 26px; height: 26px; }
.activity-day i span { width: 3px; height: 3px; background: #c2cfdd; border-radius: 50%; }
.activity-day.is-today i { border-color: #6ba5ec; background: #eef6ff; }
.activity-day.is-today b { width: 5px; height: 5px; background: #498bdd; border-radius: 50%; }
.activity-day.done i { background: #e6f3ec; border-color: #d7eade; color: #428a66; }
.activity-day .icon { width: 13px; height: 13px; }
.activity-card>p { color: var(--muted); font-size: .72rem; margin-top: 19px; padding-top: 13px; border-top: 1px solid #f0f3f7; text-align: center; }
.today { padding: 20px 17px 12px; }
.today .section-head { margin-bottom: 14px; }
.today .section-head h2 { font-size: .96rem; }
.today .task-row { gap: 9px; padding: 13px 0; align-items: start; }
.today .task-row small { font-size: .68rem; margin-top: 4px; line-height: 1.9; }
.today .task-row b { font-size: .79rem; font-weight: 650; }
.today .end { margin-top: 10px; width: 13px; height: 13px; }
.today .tile { width: 32px; height: 35px; border-radius: 11px; }
.study-companion { background: linear-gradient(145deg,#ebf4ff,#f2f6fd); border: 1px solid #e0eafa; border-radius: 20px; padding: 22px; display: block; }
.study-companion .tile { background: white; border: 1px solid #e0ebf8; margin-bottom: 14px; }
.study-companion h2 { font-size: .98rem; }
.study-companion p { color: #6c819e; font-size: .75rem; margin-top: 7px; line-height: 1.95; }
.study-companion>span:last-child { display: flex; align-items: center; justify-content: space-between; font-size: .75rem; color: #367ac9; margin-top: 19px; font-weight: 600; }
.study-companion>span .icon { width: 17px; }
.transfer-link { display: flex; align-items: center; justify-content: center; gap: 7px; color: #74859d; font-size: .73rem; padding: 8px; }
.transfer-link .icon { width: 15px; height: 15px; }
.resume-card { background: #fff; box-shadow: none; border-style: dashed; margin-bottom: 22px; }
.resume-card h2 { font-size: .95rem; }
.resume-card p { font-size: .75rem; }
.pill { background: #f1f6fd; color: #577899; border-radius: 7px; font-size: .71rem; font-weight: 600; }
.chip { border-radius: 30px; font-size: .8rem; padding-inline: 16px; font-weight: 550; }
.chip.active { border-color: #bcd9fd; background: #eaf4ff; color: #2569bc; font-weight: 720; }
.highlight { background: #fff; padding: 22px; }
.highlight h2 { font-size: 1.05rem; }
.highlight p { font-weight: 400; margin-top: 4px; }
.pack-grid { gap: 16px; }
.pack { padding: 23px; gap: 19px; border-radius: 19px; }
.pack h3 { margin-block: 8px; font-weight: 720; }
.pack .btn { justify-self: stretch; margin-top: 3px; }
.pack .tile { border-radius: 13px; width: 46px; height: 48px; }
.notice { background: #f0f4f9; border-color: #e6ebf2; font-weight: 400; font-size: .79rem; }
.question { padding: 28px; border-radius: 23px; }
.question h2 { font-size: 1.22rem; font-weight: 650; line-height: 2; margin-block: 26px; }
.question>.meter { height: 5px; }
.option { min-height: 65px; padding: 13px; border-radius: 13px; gap: 13px; font-weight: 450; line-height: 1.9; border-color: #e1e7ef; }
.option b { width: 34px; height: 34px; border-radius: 50%; background: #f3f6fa; font-weight: 600; color: #8798af; }
.option.selected { border-color: #66a1ea; box-shadow: 0 0 0 2px #2677e30a; background: #f2f8ff; }
.option.selected b { background: #2e81e5; color: white; }
.option.good b { background: #e0f0e6; color: #337b55; }
.option.bad b { background: #f9e4e4; color: #a04e4e; }
.question-controls { border-top: 1px solid #edf1f6; padding-top: 21px; margin-top: 23px; }
input:not([type=checkbox]), select, textarea { border-color: #dde6f0; background: #fcfdff; font-weight: 450; }
input:focus, select:focus, textarea:focus { border-color: #68a1e4; outline-color: #68a1e4; }
.search { border-radius: 14px; padding: 5px 16px; margin-bottom: 18px; }
.reader,.notes,.form,.coach,.flash,.book-details { padding: 25px; }
.reader-text { line-height: 2.3; color: #344860; border-color: #edf1f6; padding-block: 25px; }
.linklist { padding: 10px 20px; }
.linklist .task-row { min-height: 80px; padding-block: 15px; }
.linklist .task-row b { font-weight: 620; }
.context { background: #f2f6fc; padding: 18px; border-radius: 16px; }
.coach-response { background: #f4f8ff; border-color: #e1ebf9; border-radius: 17px; padding: 22px; }
.coach-response h2 { color: #3d70b0; }
.flash { background: linear-gradient(155deg,#f4f9ff,#fff 50%); min-height: 310px; }
.flash>p { min-height: 170px; font-size: 1.2rem; display: grid; align-content: center; font-weight: 530; padding-inline: 10px; }
.form label { font-size: .83rem; gap: 8px; font-weight: 600; }
.form { gap: 17px; }
.form .time-row { padding-block: 14px; }
.disclosure { padding: 18px 22px; border-radius: 16px; }
.disclosure summary { font-size: .95rem; font-weight: 550; }
.empty { min-height: 240px; padding: 38px; align-content: center; }
.empty p { font-size: .88rem; max-width: 34rem; }
.path-grid { gap: 20px; }
.path-card { padding: 26px; gap: 17px; }
.path-card p { line-height: 2; font-size: .84rem; }
.path-card:has(.primary) { border-color: #8fbaf0; background: linear-gradient(160deg,#edf5ff,#fff); }
dialog { padding: 24px; border-radius: 23px; box-shadow: 0 24px 90px #15375d28; border-color: #dce6f1; }
dialog::backdrop { background: #142d4e55; backdrop-filter: blur(4px); }
dialog .form { padding: 0; }
dialog .stack { gap: 12px; }
dialog .stack .btn { min-height: 52px; }
.toast { border-radius: 14px; background: #234465; font-size: .86rem; }
.exam-box { border-radius: 22px; border-color: var(--line); box-shadow: var(--shadow); padding: 27px; }
.exam-btn { border-radius: 12px; background: var(--brand); font-weight: 650; font-size: .88rem; min-height: 45px; }
.exam-btn.exam-secondary { border-color: #dce5ef; color: #44648b; }
.exam-results { gap: 12px; margin: 22px 0 15px; }
.exam-results div { padding: 20px 10px; background: #f0f6ff; border-radius: 15px; }
.exam-results strong { font-weight: 760; font-size: 1.9rem; color: #377ac9; }
.exam-results span { font-size: .76rem; }
.exam-answer { padding-block: 18px; border-color: #e8eef5; }
.exam-answer summary { font-weight: 580; font-size: .93rem; line-height: 1.9; }
.exam-outcome { border-radius: 6px; font-weight: 500; font-size: .68rem; }
.exam-options button { border-color: #e1e7ef; padding: 13px; min-height: 64px; font-weight: 450; line-height: 1.9; }
.exam-options button span { border-radius: 50%; background: #f1f5fa; color: #7085a0; font-weight: 550; }
.exam-question { font-weight: 650; line-height: 2; margin-block: 24px; }
.exam-fields { gap: 16px; margin-block: 18px; }
.exam-fields label { font-weight: 550; font-size: .81rem; gap: 8px; }
.exam-fields select,.exam-fields input { background: #fcfdff; border-color: #dce5ef; }
.exam-clock { background: #edf5ff; border: 1px solid #dbe9fb; padding: 8px 15px; }
.exam-clock span { color: #6b85a6; }
.exam-note { font-size: .79rem; color: #74859d; }
.mistake-note textarea { background: #fafcff; border-color: #dfe8f2; border-radius: 12px; }
@media (min-width: 1500px) {
  .home-layout { grid-template-columns: minmax(0,1fr) 302px; gap: 28px; }
  .hero { min-height: 280px; }
}
@media (max-width: 1220px) {
  .shell { grid-template-columns: 210px minmax(0,1fr); }
  .sidebar { padding-inline: 15px; }
  main { padding-inline: 25px; }
  .topbar { padding-inline: 25px; }
  .home-layout { grid-template-columns: minmax(0,1fr) 245px; gap: 18px; }
  .hero { padding-inline-end: 15px; }
  .hero-copy { padding-inline: 22px; }
  .daily-goal { flex-basis: 128px; }
  .goal-ring { width: 125px; height: 125px; padding: 6px; border-width: 5px; }
  .goal-ring strong { font-size: 1.75rem; }
  .goal-caption { font-size: .62rem; }
  .subject-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric { padding: 12px 9px; gap: 8px; }
  .metric .tile { width: 30px; height: 34px; }
  .metric .tile .icon { width: 17px; height: 17px; }
  .metric strong { font-size: 1.18rem; }
  .metric p { font-size: .65rem; }
  .activity-days { gap: 4px; }
  .activity-day i { width: 23px; height: 23px; }
}
@media (max-width: 1040px) {
  .home-layout { grid-template-columns: minmax(0,1fr); }
  .home-rail { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
  .study-companion { grid-column: 1/-1; display: grid; grid-template-columns: auto 1fr auto; column-gap: 15px; align-items: center; }
  .study-companion .tile { grid-row: span 2; margin: 0; }
  .study-companion p { grid-column: 2; margin: 0; }
  .study-companion>span:last-child { grid-column: 3; grid-row: 1/3; gap: 15px; margin: 0; }
  .transfer-link { grid-column: 1/-1; }
  .subject-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .hero { min-height: 250px; }
  .hero h2 { font-size: 2rem; }
  .daily-goal { flex-basis: 175px; }
  .goal-ring { width: 150px; height: 150px; }
}
@media (max-width: 800px) {
  .shell { display: block; }
  .sidebar, .desktop-top { display: none; }
  .topbar { height: 73px; padding-inline: 21px; background: #fff; }
  .mobile-brand { gap: 7px; }
  .mobile-brand strong { font-size: .96rem; letter-spacing: -.04em; }
  .mobile-brand .app-brand-mark { width: 35px; height: 35px; }
  main { padding: 26px 22px calc(108px + env(safe-area-inset-bottom)); }
  .page-heading { margin-bottom: 23px; }
  .bottom-nav {
    bottom: max(12px,env(safe-area-inset-bottom)); inset-inline: 14px; max-width: 530px; margin-inline: auto;
    background: #ffffffed; border: 1px solid #e0e9f5; border-radius: 22px;
    padding: 7px; box-shadow: 0 8px 30px #153d7414; gap: 3px;
  }
  .bottom-nav a { font-size: .66rem; font-weight: 500; border-radius: 15px; min-height: 55px; gap: 3px; }
  .bottom-nav a.active { color: #2976d5; background: #edf5ff; font-weight: 750; }
  .bottom-nav .icon { width: 21px; height: 21px; }
  .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (max-width: 565px) {
  .top-actions { gap: 9px; }
  .top-actions .connection { display: none; }
  .top-actions .iconbtn { width: 32px; height: 32px; border: 0; }
  .track-select { font-size: .7rem; padding: 4px 8px; min-height: 32px; border-radius: 9px; }
  .topbar { padding-inline: 17px; height: 65px; }
  main { padding-inline: 17px; padding-top: 24px; }
  h1 { font-size: 1.65rem; line-height: 1.5; }
  .page-heading { align-items: start; gap: 8px; }
  .page-heading p { font-size: .77rem; max-width: 29rem; }
  .page-heading .eyebrow { font-size: .69rem; }
  .page-heading>.btn { min-height: 38px; font-size: .69rem; padding: 7px 10px; white-space: nowrap; margin-top: 26px; }
  .hero { min-height: 235px; padding-inline-end: 14px; gap: 0; border-radius: 21px; }
  .hero-copy { padding: 20px 18px 22px 8px; }
  .hero-label { font-size: .65rem; }
  .hero h2 { font-size: 1.6rem; line-height: 1.7; margin-block: 7px; }
  .hero p { max-width: 190px; font-size: .66rem; line-height: 1.9; }
  .hero-actions { margin-top: 17px; }
  .hero-actions .btn { min-height: 41px; padding: 8px 12px; font-size: .73rem; }
  .hero-actions .icon { width: 16px; height: 16px; }
  .daily-goal { flex-basis: 112px; gap: 11px; padding-top: 9px; }
  .goal-ring { width: 112px; height: 112px; padding: 5px; border-width: 4px; }
  .goal-ring strong { font-size: 1.7rem; }
  .goal-ring strong span { font-size: .86rem; }
  .goal-ring small { font-size: .58rem; }
  .goal-caption { font-size: .55rem; white-space: nowrap; }
  .metrics { gap: 8px; margin-block: 12px 0; }
  .metric { padding: 13px 10px; display: grid; gap: 8px; border-radius: 14px; }
  .metric .tile { width: 29px; height: 29px; border-radius: 9px; }
  .metric strong { font-size: 1.14rem; }
  .metric p { font-size: .67rem; }
  .section-head { margin-block: 24px 13px; }
  .section-head h2 { font-size: 1.02rem; }
  .text-link { font-size: .69rem; }
  .subject-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
  .subject { padding: 17px 13px 13px; gap: 14px; min-height: 172px; border-radius: 16px; }
  .subject .tile { width: 37px; height: 37px; border-radius: 12px; }
  .subject .tile .icon { width: 21px; height: 21px; }
  .subject .subject-arrow { width: 13px; height: 13px; }
  .subject b { font-size: .84rem; line-height: 1.9; }
  .subject small { font-size: .7rem; line-height: 1.6; }
  .subject-bottom { font-size: .67rem; gap: 6px; }
  .home-rail { grid-template-columns: minmax(0,1fr); gap: 15px; }
  .activity-card { padding: 22px; }
  .activity-title h2 { font-size: 1rem; }
  .activity-day>span { font-size: .65rem; }
  .activity-day i { width: 32px; height: 32px; }
  .activity-day .icon { width: 16px; height: 16px; }
  .activity-card>p { font-size: .73rem; }
  .today { padding: 22px; }
  .today .task-row b { font-size: .85rem; }
  .today .task-row small { font-size: .73rem; }
  .study-companion { display: block; padding: 22px; }
  .study-companion .tile { margin-bottom: 13px; }
  .study-companion p { margin-top: 8px; }
  .study-companion>span:last-child { margin-top: 15px; }
  .resume-card { padding: 14px; }
  .highlight { padding: 17px; border-radius: 17px; }
  .highlight h2 { font-size: .95rem; }
  .highlight p { font-size: .73rem; }
  .highlight .btn { font-size: .73rem; }
  .pack-grid { gap: 12px; }
  .pack-grid { grid-template-columns: minmax(0,1fr); }
  .pack { padding: 16px; gap: 12px; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; }
  .pack h3 { font-size: .84rem; line-height: 1.8; margin-block: 3px; }
  .pack small { font-size: .64rem; }
  .pack .tile { width: 38px; height: 43px; border-radius: 11px; }
  .pack p { font-size: .71rem; }
  .pack .btn { font-size: .7rem; padding: 7px 9px; margin: 0; }
  .pack .btn .icon { display: none; }
  .path-card { padding: 22px; gap: 13px; }
  .question { padding: 20px 16px; }
  .question h2 { font-size: 1.08rem; line-height: 2; margin-block: 20px; }
  .option { font-size: .89rem; padding: 12px 10px; gap: 9px; }
  .option b { width: 29px; height: 29px; font-size: .77rem; }
  .reader,.notes,.form,.coach,.flash,.book-details { padding: 20px 17px; }
  .reader-text { font-size: 1.02rem; }
  .linklist { padding: 7px 15px; }
  .ask-form { flex-wrap: wrap; }
  .ask-form input { flex: 1 1 180px; }
  .ask-form .btn { flex: 1 0 auto; }
  .exam-box { padding: 20px 16px; }
  .exam-fields { gap: 10px; }
  .exam-results { gap: 8px; margin-top: 16px; }
  .exam-results div { padding: 14px 8px; }
  .exam-results strong { font-size: 1.6rem; }
  .exam-answer summary { font-size: .87rem; }
  .exam-options button { font-size: .89rem; padding: 12px 10px; }
}
@media (max-width: 355px) {
  main { padding-inline: 13px; }
  .topbar { padding-inline: 13px; }
  .mobile-brand strong { font-size: .84rem; }
  .mobile-brand .app-brand-mark { width: 29px; }
  .top-actions { gap: 3px; }
  .hero { min-height: 215px; padding-inline-end: 11px; }
  .hero-copy { padding-inline-start: 14px; }
  .hero h2 { font-size: 1.4rem; }
  .daily-goal { flex-basis: 92px; }
  .goal-ring { width: 92px; height: 92px; }
  .goal-ring strong { font-size: 1.4rem; }
  .goal-caption { font-size: .48rem; }
  .subject { padding: 14px 11px; }
  .subject b { font-size: .76rem; }
  .metric { padding: 12px 7px; }
  .metric p { font-size: .62rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.flash p{white-space:pre-wrap;overflow-wrap:anywhere;unicode-bidi:plaintext}
.flash+.section-head+.linklist .task-row b{white-space:pre-wrap;overflow-wrap:anywhere}
.account-link { color: var(--brand-dark); text-decoration: none; }
.account-view { display: grid; gap: 14px; }
.account-view .account-status:empty { display: none; }
.account-view .account-hint { font-size: .8rem; color: var(--muted); }
.account-code { font-family: ui-monospace, monospace; font-size: .84rem; }
@media (max-width: 360px) {
  .top-actions .account-link { width: 27px; min-width: 27px; }
}
.mastery-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); gap: 12px; }
.mastery-card { display: grid; gap: 9px; padding: 15px; align-content: start; }
.mastery-card h3 { margin: 0; font-size: 1rem; }
.mastery-card p,.mastery-note { font-size: .85rem; color: var(--muted); }
.mastery-card .btn { justify-self: start; }
.mastery-title,.mastery-count { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.mastery-count { color: var(--muted); font-size: .82rem; }
.mastery-level { padding: 3px 8px; border-radius: 6px; background: #eef3fa; color: #375774; font-size: .78rem; }
.mastery-level.review { background: #fff2dc; color: #874a0c; }
.mastery-level.steady { background: #e7f4ed; color: #256145; }
.mastery-filter a { text-decoration: none; }
.today-plan .time-row { flex-wrap: wrap; }
.today-plan .time-row .btn { margin-inline-start: auto; min-height: 34px; padding: 4px 10px; }
.planner-week { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 5px; }
.planner-week div { display: grid; text-align: center; background: #f1f6fd; border-radius: 7px; padding: 5px 2px; }
.planner-week small { font-size: .71rem; overflow-wrap: anywhere; }
.plan-date-status { color: #923012; }
.plan-date-status:empty { display: none; }
.review-agenda { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-block: 12px; padding: 12px 15px; }
.review-agenda p { margin-block: 4px 0; color: var(--muted); font-size: .85rem; }
.chapter-workspace { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(230px,1fr); gap:15px; align-items:start; }
.chapter-workspace > *,.chapter-sidebar > * { min-inline-size:0; }
.chapter-page { padding:clamp(15px,2.7vw,29px); }
.chapter-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:9px 12px; }
.chapter-toolbar span,.chapter-status,.chapter-empty { font-size:.83rem;color:var(--muted); }
.chapter-status { min-height:0; margin-block:7px 0; }
.chapter-status:empty { display:none; }
.chapter-prose { border-block:1px solid var(--line);margin-block:16px;padding-block:6px; }
.chapter-prose p { white-space:pre-wrap;overflow-wrap:anywhere;font-size:1.03rem;line-height:2.1;padding:8px 3px;scroll-margin-block:18vh; }
.chapter-prose p:focus { outline:2px solid #a6c8f0; outline-offset:2px; border-radius:6px; background:#f7fbff; }
.chapter-prose mark { background:#ffef9d;color:#182b47;border-radius:3px;padding-inline:1px;box-decoration-break:clone; }
.chapter-sidebar { display:grid;gap:12px; }
.chapter-note { margin:0; }
.chapter-side-panel { padding:16px; }
.chapter-side-panel h2,.chapter-note h2 { font-size:1.02rem; }
.chapter-field { display:grid;gap:5px;font-size:.84rem; }
.chapter-field textarea { inline-size:100%; resize:vertical; min-block-size:64px; }
[data-chapter-ask] { display:grid;gap:7px;margin-block-start:9px; }
[data-chapter-ask] .btn { justify-self:start; }
.chapter-example { min-height:32px; }
.chapter-highlight { margin-block-start:9px;border-top:1px solid var(--line);padding-block-start:8px; }
.chapter-highlight summary { color:#204f83;font-weight:650;font-size:.88rem;cursor:pointer;overflow-wrap:anywhere; }
.chapter-highlight form { display:grid;gap:7px;margin-block-start:7px; }
.chapter-answer { margin-block-start:11px;padding:10px 12px;background:#f0f7ff;border-radius:10px;overflow-wrap:anywhere; }
.chapter-answer p,.chapter-answer blockquote { font-size:.88rem;line-height:1.85;white-space:pre-wrap; }
.chapter-answer blockquote { margin:8px 0;padding-inline-start:10px;border-inline-start:3px solid #8bb9ef;color:#385577; }
.publisher-demo { display:grid;gap:16px; }
.publisher-hero { display:grid;grid-template-columns:minmax(0,1.8fr) minmax(180px,1fr);gap:28px;align-items:center;background:#f5faff;padding:clamp(18px,4vw,42px); }
.publisher-hero h1 { margin:8px 0;font-size:clamp(1.65rem,3vw,2.7rem);line-height:1.4; }
.publisher-hero p,.publisher-demo-card p,.publisher-details p { color:var(--muted);margin-block:8px 13px;line-height:1.9; }
.publisher-hero .book-cover { display:grid;gap:12px;aspect-ratio:auto;min-height:218px;align-content:center;border:1px solid #c5ddf9;border-inline-end:7px solid #79aeed;border-radius:15px 6px 6px 15px;text-decoration:none;padding:22px;background:linear-gradient(150deg,#eef7ff,#d9e9ff); }
.publisher-hero .book-cover strong { max-width:17ch;font-size:clamp(1.05rem,1.9vw,1.55rem);line-height:1.55;color:#163d71; }
.publisher-hero .book-cover .icon { width:25px;height:25px; }
.sample-access[hidden] { display:none; }
.publisher-demo-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px; }
.publisher-demo-card,.publisher-details { padding:18px; }
.publisher-demo-card h2,.publisher-details h2 { font-size:1.02rem;margin-block-start:6px; }
@media(max-width:820px) { .chapter-workspace { grid-template-columns:1fr; } .chapter-sidebar { grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));align-items:start; } }
@media(max-width:580px) { .publisher-hero,.publisher-demo-grid,.chapter-sidebar { grid-template-columns:1fr;gap:10px; } .publisher-hero .book-cover { min-height:120px; } }

#welcome-dialog{max-width:min(31rem,calc(100vw - 2rem));max-height:88dvh;overflow:auto;padding:clamp(20px,5vw,34px);border:1px solid #c8dff0;border-radius:22px;color:#12314a;background:white}
#welcome-dialog::backdrop{background:#15304780}
#welcome-dialog h2{font-size:1.35rem;margin:0 0 1rem}
#welcome-dialog p{line-height:1.9}
.welcome-choice{display:block;width:100%;text-align:start;background:#f5faff;color:#173a56;border:1px solid #cddfec;border-radius:12px;padding:10px 15px;margin:7px 0;font:inherit;cursor:pointer}
.welcome-choice small{display:block;color:#44657c}
.welcome-choice:hover,.welcome-choice:focus-visible{background:#e4f3ff;border-color:#4784ae}

.today-hero .hero-copy { min-width:0; }
.today-hero h2 { white-space:normal; overflow-wrap:anywhere; line-height:1.45; }
.today-hero p { font-size:.84rem; line-height:1.85; }
.today-budget { display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin-block-start:10px; color:#365674; font-size:.8rem; }
.today-budget .icon { width:16px; height:16px; }
.today-budget .btn { min-height:36px; padding:4px 8px; color:#185c9a; text-decoration:underline; text-underline-offset:3px; }
@media(max-width:580px) {
  .today-hero .hero-copy { padding-inline-end:8px; }
  .today-hero h2 { font-size:1.37rem; }
  .today-hero p,.today-budget { font-size:.76rem; }
}

.learning-metrics { grid-template-columns:repeat(4,minmax(0,1fr)); }
.report-wrong { display:flex; align-items:baseline; gap:.6rem; margin-block-end:8px; }
.report-wrong .disclosure { flex:1; min-width:0; margin:0; }
.report-wrong>.btn { flex-shrink:0; }
@media(max-width:620px) {
  .learning-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .report-wrong { display:block; padding:12px; border:1px solid #dbe5f0; border-radius:16px; background:white; }
  .report-wrong .disclosure { padding:0; border:0; box-shadow:none; }
  .report-wrong>.btn { margin-block-start:8px; }
}

.paper-frame{display:block;width:100%;height:65vh;border:0;margin-block:1rem}
[data-paper-row][hidden]{display:none}

.reminder-settings { max-width: 44rem; }
.reminder-settings h2 { margin-block: 0 .35rem; }
.reminder-settings form, .reminder-settings fieldset { display: grid; gap: .8rem; }
.reminder-settings fieldset { margin: 0; padding: 0; border: 0; }
.reminder-settings legend { padding: 0; margin-bottom: .4rem; font-weight: 700; }
.reminder-settings .reminder-choice { display: flex; align-items: center; gap: .8rem; padding: .45rem .2rem; border-bottom: 1px solid var(--line); cursor: pointer; }
.reminder-choice small { display: block; color: var(--muted); font-size: .78rem; font-weight: 400; }
.reminder-settings [role=status]:empty { display: none; }

.recovery-card,.recovery-entry,.challenge-note { display:flex; align-items:center; gap:14px; }
.recovery-card { padding:18px 22px; margin-block:14px; }
.recovery-symbol { display:grid; place-items:center; flex:none; width:44px; height:44px; border-radius:15px; background:#e1f4ee; color:#17755c; }
.recovery-symbol .icon { width:24px; height:24px; }
.recovery-card h2 { margin:0; font-size:1.02rem; }
.recovery-card strong { display:block; color:#294e67; margin-top:3px; font-size:.86rem; }
.recovery-card p,.recovery-entry small { margin:2px 0 0; color:#516c82; font-size:.8rem; line-height:1.8; }
.recovery-card .btn,.recovery-entry .btn { margin-inline-start:auto; flex:none; }
.recovery-list { padding:16px 20px; margin-block:16px; }
.recovery-entry { padding:12px 0; }
.recovery-entry + .recovery-entry { border-top:1px solid var(--line); }
.recovery-entry small { display:block; }
.challenge-note { padding:12px 16px; border-radius:12px; background:#e8f6f0; color:#215c4b; font-weight:650; line-height:1.8; }
.challenge-note .icon { flex:none; }
@media (max-width:580px) {
  .recovery-card { flex-wrap:wrap; padding:15px; gap:10px; }
  .recovery-card > div:nth-child(2) { flex:1; min-width:65%; }
  .recovery-card .btn { margin-inline-start:0; }
  .recovery-entry { flex-wrap:wrap; gap:8px; }
  .recovery-entry > div { flex:1; }
}

.map-subject { color:inherit; text-decoration:none; }
.map-subject h2 { flex:1; margin:0; font-size:1.05rem; }
.map-subject .mastery-title > .icon,.map-question > .icon { width:18px; flex:none; color:#467498; }
.map-summary { color:#42617a; font-size:.83rem; }
.mastery-card h3 a { color:#155485; text-underline-offset:4px; }
.map-question { display:flex; align-items:center; text-align:start; gap:12px; padding:16px; width:100%; background:transparent; color:inherit; border:0; cursor:pointer; font:inherit; }
.map-question span { flex:1; }
.map-question + .map-question { border-block-start:1px solid var(--line); }
.map-question:hover,.map-subject:hover { background:#f3f9ff; }

.weekly-record { margin-block:14px; }
.weekly-record .activity-title { margin-bottom:8px; }
.weekly-settings,.weekly-settings label,.weekly-stats { display:flex; align-items:center; gap:8px; }
.weekly-settings { justify-content:space-between; flex-wrap:wrap; color:#47627b; font-size:.81rem; }
.weekly-settings select { width:auto; min-height:40px; padding:4px 9px; font:inherit; color:#185b99; background:#f3f8ff; border:1px solid #c7d9ee; border-radius:10px; }
.weekly-record .activity-days { list-style:none; margin:16px 0; padding:0; }
.weekly-stats { gap:12px; border-top:1px solid var(--line); padding-top:12px; }
.weekly-stats div { flex:1; }
.weekly-stats b,.weekly-stats span { display:block; }
.weekly-stats b { font-size:1.2rem; color:#23496f; }
.weekly-stats span { font-size:.8rem; color:#47627b; }
.weekly-record .weekly-status { display:flex; align-items:center; gap:5px; border:0; padding:0; margin:9px 0 0; color:#216444; text-align:start; }
.weekly-status .icon { width:15px; }

.weekly-awards { display:flex; align-items:center; gap:12px; padding:14px 0 0; margin:12px 0 0; border-top:1px solid var(--line); color:#254c70; text-decoration:none; }
.weekly-awards.panel { padding:14px; margin-block:14px; }
.weekly-awards small { display:block; color:#526b7d; font-size:.8rem; }
.weekly-awards > .icon { margin-inline-start:auto; width:18px; }
.award-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr)); gap:12px; margin-block:0 22px; }
.award-card { display:flex; align-items:flex-start; gap:14px; padding:20px 16px; }
.award-card > div { flex:1; min-width:0; }
.award-card h3 { margin:0; font-size:1rem; }
.award-card p { margin:4px 0 12px; font-size:.85rem; line-height:1.85; color:#456077; }
.award-card strong { display:block; color:#436079; font-size:.8rem; }
.award-card.earned strong { color:#216444; }
.award-card .meter { margin-top:6px; }
.award-emblem { display:inline-grid; place-items:center; width:48px; height:48px; flex:none; border:3px double #87bbdf; background:#e6f3ff; border-radius:50%; color:#245b91; }
.award-emblem.badge { border-radius:15px; }
.award-emblem .icon { width:26px; height:26px; }
.award-emblem.bronze { background:#f6e2cf; color:#884e29; border-color:#c58a64; }
.award-emblem.silver { background:#e8eff5; color:#4e647a; border-color:#9cafc0; }
.award-emblem.gold { background:#fcf0c6; color:#815e12; border-color:#ceab54; }
.award-card.locked .award-emblem { filter:saturate(.45); }
.weekly-awards .award-emblem { width:38px; height:38px; }
