:root{--page:#f7f8f5;--surface:#fff;--ink:#25332c;--muted:#6b726d;--line:#e5e8e1;--lime:#d9f578;--forest:#234735;--soft:#eff3eb;--shadow:0 5px 18px #23382d06;--bs-body-font-family:'Segoe UI',Arial,sans-serif;--bs-body-color:var(--ink);--bs-body-bg:var(--page)}
/* Keep XP question titles within their padded groups, as in lesson cards. */
.xp-question{display:flow-root;min-width:0}.xp-practice .xp-question>legend{float:left;width:100%;max-width:100%;overflow-wrap:anywhere}.xp-question>legend+*{clear:both}
.account-policy{display:flex;justify-content:center;flex-wrap:wrap;gap:2px 12px;border-top:1px solid var(--line);padding-top:12px;margin-top:18px;font-size:12px}.account-policy a,.site-footer nav a{display:inline-flex;align-items:center;min-height:44px;text-decoration:underline;text-underline-offset:3px}.site-footer nav{display:flex;flex-wrap:wrap;gap:16px}
/* Study rewards use the existing surface, forest and lime tokens. */
.game-compact{display:grid;grid-template-columns:minmax(200px,1fr) minmax(160px,1fr) auto;align-items:center;gap:24px;margin:0 0 28px;padding:20px 24px}
.game-total{display:flex;gap:13px;align-items:center}.game-total strong{display:block;font-size:27px;line-height:1.2;letter-spacing:-.7px}.game-total strong span{font-size:14px;letter-spacing:0}.game-total small{display:block;color:var(--muted);font-size:12px;margin-top:5px}.game-emblem{width:45px;height:45px;display:grid;place-items:center;background:var(--lime);color:#25332c;border-radius:12px;flex-shrink:0}.game-emblem .icon{width:25px;height:25px}
.game-week>div{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:13px;margin-bottom:8px}.game-week span{color:var(--muted);font-size:12px}.game-week progress{display:block;width:100%;height:8px;border:0;border-radius:10px;overflow:hidden;background:var(--soft);accent-color:#66813b}.game-week progress::-webkit-progress-bar{background:var(--soft);border-radius:10px}.game-week progress::-webkit-progress-value{background:#66813b;border-radius:10px}.game-week progress::-moz-progress-bar{background:#66813b;border-radius:10px}
.game-badge-link{display:flex;align-items:center;gap:9px;border-left:1px solid var(--line);padding:8px 0 8px 23px;min-height:44px;font-size:13px}.game-badge-link:hover{color:var(--forest)}
.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:25px;align-items:start}.game-primary,.game-aside{display:grid;gap:25px;min-width:0}.game-layout h2{font-size:21px}.game-layout h3{font-size:17px}.game-layout p{font-size:14px;line-height:1.7}.game-helper{display:block;font-size:12px!important;line-height:1.65;color:var(--muted)}
.badge-gallery{display:grid;grid-template-columns:1fr 1fr;gap:13px}.milestone{display:flex;align-items:flex-start;gap:13px;padding:18px 15px;border:1px dashed var(--line);border-radius:11px}.milestone.earned{border-style:solid;background:var(--soft)}.milestone-symbol{display:grid;place-items:center;width:39px;height:42px;flex-shrink:0;border-radius:10px;background:var(--page);color:var(--muted)}.milestone.earned .milestone-symbol{background:var(--lime);color:#25332c}.milestone h3{font-size:15px;margin:0 0 6px}.milestone p{font-size:12px;margin:0 0 9px}.milestone span{font-size:11px;color:var(--muted)}.milestone.earned span{color:var(--forest);font-weight:600}
.goal-choice{border:0;padding:0;margin:18px 0 10px}.goal-choice legend{float:none;font-size:14px;font-weight:600;margin-bottom:10px}.goal-choice label{display:inline-flex;gap:7px;align-items:center;min-height:44px;border:1px solid var(--line);border-radius:8px;padding:9px 12px;font-size:13px;margin:0 6px 6px 0;cursor:pointer}.goal-choice label:has(input:checked){background:var(--soft);border-color:#66813b}.goal-choice input,.game-opt-in input,.xp-question input{accent-color:#66813b;flex-shrink:0;width:17px;height:17px}.game-field{display:block;font-size:14px;font-weight:600;margin:20px 0 7px}.game-field input,.leaderboard-filters select{display:block;width:100%;font:inherit;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:8px;min-height:44px;padding:9px 12px;margin-top:7px}.game-opt-in{display:flex;gap:10px;align-items:flex-start;cursor:pointer;font-size:14px;min-height:44px;margin:23px 0 18px}.game-opt-in input{margin-top:4px}.game-opt-in small{display:block;color:var(--muted);font-size:12px;line-height:1.6;margin-top:5px}.game-status{margin:13px 0 0;font-size:13px!important}.game-status:empty{display:none}.xp-rules dl{margin:16px 0}.xp-rules dl>div{display:flex;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid var(--line);font-size:13px}.xp-rules dt{font-weight:500}.xp-rules dd{margin:0;font-weight:600;white-space:nowrap}
.leaderboard-panel>.section-heading{margin-bottom:11px}.leaderboard-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(110px,.6fr);gap:14px;margin:20px 0}.leaderboard-filters label{font-size:12px;font-weight:600}.leaderboard-filters select{font-size:14px}.leaderboard-status{font-size:12px!important}.rank-table-wrap{overflow-x:auto}.rank-table{width:100%;border-collapse:collapse;margin:8px 0 18px;font-size:14px;text-align:left}.rank-table th,.rank-table td{padding:14px 12px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.rank-table thead th{font-size:11px;color:var(--muted);font-weight:600;text-transform:uppercase;letter-spacing:1px}.rank-table th[scope=row]{font-weight:500}.rank-table td:last-child,.rank-table th:last-child{text-align:right;font-weight:600}.rank-me{background:var(--soft)}.rank-you{display:inline-block;font-size:10px;padding:2px 6px;border-radius:4px;background:var(--lime);color:#25332c;margin-left:5px}.rank-empty{text-align:center;padding:25px 10px}.rank-empty>.icon{width:30px;height:30px;margin-bottom:14px;color:var(--muted)}.rank-empty h3{font-size:19px}.rank-empty p{max-width:320px;margin:8px auto 0}
.xp-practice{padding:25px;background:var(--page);border-bottom:1px solid var(--line);scroll-margin-top:25px}.xp-practice[hidden]{display:none}.xp-practice h2{font-size:22px;margin:0}.xp-practice .eyebrow{margin-bottom:5px}.xp-question{border:0;padding:22px 0;margin:0;border-bottom:1px solid var(--line)}.xp-question legend{float:none;width:auto;font-size:16px;font-weight:600;line-height:1.6;margin:0 0 13px;letter-spacing:-.2px}.xp-question label{display:flex;align-items:flex-start;gap:11px;min-height:44px;border:1px solid var(--line);border-radius:9px;padding:11px 13px;background:var(--surface);margin:9px 0 0;font-size:14px;cursor:pointer}.xp-question input{margin-top:3px}.xp-question label:has(input:checked){border-color:#66813b;background:var(--soft)}.xp-submit-row{display:flex;align-items:center;gap:18px;margin-top:22px;flex-wrap:wrap}.xp-result-summary{padding:22px 0 8px}.xp-result-summary>strong{font-size:22px;color:var(--forest)}.xp-result-summary p{margin:8px 0;font-size:14px}.new-badge{display:flex;align-items:center;gap:9px;font-weight:600;color:var(--forest)}.xp-bonus{display:flex;align-items:center;gap:9px;font-weight:600;color:var(--forest)}.xp-gain{display:inline-block;font-size:11px;padding:2px 7px;border-radius:4px;background:var(--lime);color:#25332c;margin-left:4px;font-weight:600}.xp-feedback{padding-left:22px;font-size:14px;margin:15px 0}.xp-feedback li{padding:9px 0}.xp-feedback b{font-weight:600}.xp-feedback p{color:var(--muted);margin:5px 0;line-height:1.7}.game-compact a:focus-visible,.game-layout input:focus-visible,.game-layout select:focus-visible,.xp-practice input:focus-visible{outline:3px solid #6d8534;outline-offset:4px}
@media(max-width:1250px){.game-layout{grid-template-columns:minmax(0,1fr) 280px}.badge-gallery{grid-template-columns:1fr}.game-compact{gap:18px}.game-badge-link{padding-left:18px}}
@media(max-width:1000px){.game-layout{grid-template-columns:1fr}.badge-gallery{grid-template-columns:1fr 1fr}.game-aside{grid-template-columns:1fr 1fr}.game-compact{grid-template-columns:1fr 1fr}.game-badge-link{grid-column:1/-1;border:0;border-top:1px solid var(--line);padding:13px 0 0}.game-badge-link>.icon:last-child{margin-left:auto}}
@media(max-width:700px){.game-compact{padding:18px;gap:18px;grid-template-columns:1fr}.game-week{width:100%}.game-layout{gap:20px}.game-primary,.game-aside{gap:20px}.game-aside{grid-template-columns:1fr}.badge-gallery{grid-template-columns:1fr}.game-total strong{font-size:25px}.game-badge-link{grid-column:auto}.xp-practice{padding:20px}.xp-question legend{font-size:15px}.leaderboard-filters{gap:10px}.leaderboard-filters select{font-size:13px}.rank-table th,.rank-table td{padding:12px 9px}}
[data-bs-theme=dark]{--page:#151c18;--surface:#1c2620;--ink:#eef3e9;--muted:#abb6ad;--line:#35433a;--soft:#29382e;--forest:#c9ebd5;--shadow:none;--bs-body-color:var(--ink);--bs-body-bg:var(--page)}
*{box-sizing:border-box}body{margin:0;font-size:15px;line-height:1.6}a{color:inherit;text-decoration:none}button,a,input{ -webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #6d8534!important;outline-offset:4px!important;box-shadow:none!important}h1,h2,h3,h4{color:var(--ink);font-weight:600;letter-spacing:-.035em}h1{font-size:42px;line-height:1.18}h2{font-size:23px}h3{font-size:19px}p{color:var(--muted)}svg{flex-shrink:0}.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}.skip-link{position:fixed;top:-70px;left:20px;z-index:100;background:var(--lime);padding:12px}.skip-link:focus{top:10px}.sidebar{position:fixed;inset:0 auto 0 0;width:238px;background:var(--surface);border-right:1px solid var(--line);padding:34px 22px 22px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:11px;font-size:21px;font-weight:650;letter-spacing:-.8px}.brand-mark{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;flex-shrink:0;overflow:hidden}.brand-mark img{display:block;width:100%;height:100%;object-fit:contain}.brand-caption{display:block;font-size:8px;letter-spacing:1.25px;font-weight:500;color:var(--muted);margin-top:5px}.workspace-label{font-size:10px;letter-spacing:1.5px;color:var(--muted);margin:46px 12px 14px;font-weight:600;display:flex;justify-content:space-between}.workspace-label span{letter-spacing:0}.main-nav{gap:7px}.nav-link{display:flex;align-items:center;gap:11px;color:var(--muted);padding:12px 14px;border-radius:9px;font-size:14px;min-height:44px;transition:background .18s,color .18s}.nav-link:hover{color:var(--ink);background:var(--soft)}.nav-link.active{background:var(--soft);color:var(--ink);font-weight:600}.main-nav .nav-link.active{background:var(--lime);color:#25332c}.subject-nav-label{margin-top:34px}.course-nav{gap:2px}.course-nav .nav-link{font-size:12px;padding:10px 12px}.nav-dot{width:8px;height:8px;border-radius:3px;background:var(--course-ink)}.sidebar-bottom{margin-top:auto;padding-top:30px}.small-note{background:var(--page);padding:14px 13px;border:1px solid var(--line);border-radius:10px;font-size:11px;font-weight:600}.small-note p{font-size:10px;margin:4px 0 0;font-weight:400}.small-dot{width:6px;height:6px;background:#66813b;display:inline-block;border-radius:50%;margin-right:5px}.profile{border-top:1px solid var(--line);margin-top:20px;padding:20px 4px 0;display:flex;gap:11px;align-items:center;font-size:12px;font-weight:600}.avatar{width:33px;height:33px;display:grid;place-items:center;background:#edece3;color:#485344;border-radius:50%}.profile .brand-caption{font-size:7px;letter-spacing:.7px;margin-top:2px}.main-shell{margin-left:238px;min-height:100vh}.topbar{height:86px;padding:0 40px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px;background:var(--surface)}.breadcrumb-line{display:flex;gap:13px;align-items:center;font-size:12px;color:var(--muted)}.breadcrumb-line strong{font-weight:500;color:var(--ink)}.divider{color:#b7bdb6}.top-actions{display:flex;align-items:center;gap:20px}.semester{font-size:11px;color:var(--muted)}.icon-button{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:9px;min-width:44px;min-height:44px;display:inline-grid;place-items:center;transition:background .2s}.icon-button:hover{background:var(--soft)}#main{max-width:1550px;margin:auto;padding:35px 40px 25px;min-height:calc(100vh - 150px)}.eyebrow{color:var(--muted);font-size:10px;letter-spacing:1.8px;font-weight:600;margin-bottom:10px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:30px}.page-heading p{font-size:13px;margin:12px 0 0}.date-label{font-size:12px;color:var(--muted);text-align:right}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 304px;gap:28px}.primary-column{min-width:0}.focus-banner{background:#234735;color:#f9fbef;border-radius:15px;padding:25px 28px;display:flex;align-items:center;justify-content:space-between;gap:16px;position:relative;overflow:hidden;margin-bottom:32px;min-height:163px}.focus-banner::after{content:'';position:absolute;width:180px;height:180px;border:1px solid #ffffff12;border-radius:50%;right:120px;top:-60px;pointer-events:none}.focus-banner h2{color:inherit;font-size:24px;max-width:400px;line-height:1.3;margin:10px 0 5px}.focus-banner p{color:#c5d6c8;font-size:12px;margin:0}.banner-tag{font-size:10px;letter-spacing:1px;text-transform:uppercase;color:#e3f2d9}.banner-tag span{background:#d9f578;color:#263e2c;padding:3px 7px;border-radius:4px;margin-right:6px;font-weight:600}.btn{font-size:12px;border-radius:8px;padding:11px 16px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:600;transition:background .18s,transform .18s}.btn-lime{background:var(--lime);color:#25332c;border:1px solid var(--lime);white-space:nowrap}.btn-lime:hover{background:#cce563;color:#25332c;transform:translateY(-1px)}.btn-outline{border:1px solid var(--line);color:var(--ink);background:var(--surface)}.btn-outline:hover{background:var(--soft);border-color:var(--muted)}.btn-ink{background:var(--ink);border-color:var(--ink);color:var(--surface)}.btn-ink:hover{background:var(--forest);border-color:var(--forest);color:var(--page)}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.section-heading h2{margin:0}.section-heading small{color:var(--muted);font-size:11px}.filter-controls{display:flex;justify-content:space-between;gap:14px;margin-bottom:18px;flex-wrap:wrap}.filter-tabs{display:flex;gap:5px;background:var(--soft);padding:4px;border-radius:9px}.filter-tab{border:0;background:transparent;color:var(--muted);font-size:11px;padding:7px 12px;border-radius:6px;min-height:36px}.filter-tab.active{color:var(--ink);background:var(--surface);box-shadow:0 1px 4px #00000008}.search-box{position:relative;max-width:210px;flex:1;min-width:150px}.search-box .icon{position:absolute;left:12px;top:12px;width:15px;height:15px;color:var(--muted)}.search-box input{width:100%;font-size:11px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:8px;min-height:44px;padding:8px 10px 8px 35px}.subjects-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.subject-card{border:1px solid var(--line);background:var(--surface);border-radius:13px;box-shadow:var(--shadow);padding:21px;display:flex;flex-direction:column;position:relative;transition:transform .2s,border-color .2s,box-shadow .2s;min-height:248px;color:var(--ink)}.subject-card:hover{transform:translateY(-4px);border-color:var(--course-ink);box-shadow:0 9px 24px #23382d0b;color:var(--ink)}.course-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.subject-symbol{width:47px;height:47px;display:grid;place-items:center;border-radius:12px;color:var(--course-ink);background:var(--course-soft)}.subject-symbol .icon{width:26px;height:26px;stroke-width:1.5}.status-badge{font-size:9px;font-weight:500;padding:5px 8px;background:var(--soft);color:var(--muted);border-radius:5px}.status-badge.ready{background:#edf5e4;color:#526735}[data-bs-theme=dark] .status-badge.ready{background:#2b422e;color:#d3edb9}.subject-card h3{font-size:21px;margin:0 0 5px}.subject-card .full-title{font-size:11px;color:var(--muted);line-height:1.5;min-height:33px;margin-bottom:11px}.course-meta{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:6px;margin-bottom:17px}.course-meta .icon{width:13px;height:13px}.course-card-footer{border-top:1px solid var(--line);padding-top:13px;margin-top:auto;display:flex;align-items:center;justify-content:space-between;font-size:10px;color:var(--muted)}.arrow-circle{width:29px;height:29px;display:grid;place-items:center;border-radius:50%;background:var(--page);color:var(--ink)}.arrow-circle .icon{width:15px;height:15px}.right-column{min-width:0}.panel{border:1px solid var(--line);background:var(--surface);border-radius:13px;padding:22px}.calendar-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.calendar-heading h3{font-size:16px;margin:0}.calendar-controls{display:flex;gap:1px}.calendar-controls .icon-button{border:0;min-width:36px;min-height:44px}.calendar-controls .icon{width:15px;height:15px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center;gap:5px 0}.weekday{font-size:9px;color:var(--muted);padding:3px 0 12px}.calendar-day{position:relative;background:none;border:1px solid transparent;border-radius:8px;color:var(--ink);font-size:11px;height:36px;width:100%;padding:0 0 3px}.calendar-day:hover{background:var(--soft)}.calendar-day.today{background:var(--lime);color:#25332c;font-weight:700}.calendar-day.selected{border-color:var(--forest);font-weight:600}.calendar-day.outside{color:var(--muted);opacity:.45}.event-dots{display:flex;justify-content:center;gap:2px;position:absolute;bottom:4px;left:0;right:0}.event-dot{width:3px;height:3px;background:var(--course-ink);border-radius:50%}.calendar-legend{display:flex;align-items:center;gap:15px;padding-top:15px;margin-top:15px;border-top:1px solid var(--line);font-size:9px;color:var(--muted)}.calendar-legend span{display:flex;align-items:center;gap:5px}.calendar-legend i{width:5px;height:5px;border-radius:50%;background:#7b8871}.calendar-legend .lime{background:#8c663f}.calendar-source{font-size:9px;line-height:1.6;color:var(--muted);margin:14px 0 0}.upcoming-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.upcoming-heading h3{font-size:16px;margin:0}.text-link{font-size:10px;color:var(--muted);text-decoration:underline;text-underline-offset:3px}.event-row{display:flex;gap:12px;padding:15px 0;border-bottom:1px solid var(--line);align-items:flex-start}.event-row:last-child{border:0;padding-bottom:0}.event-date{min-width:35px;display:flex;flex-direction:column;text-align:center;color:var(--muted);font-size:8px;letter-spacing:.8px}.event-date b{font-size:20px;color:var(--ink);font-weight:500;line-height:1.3;letter-spacing:0}.event-info h4{font-size:11px;letter-spacing:0;line-height:1.5;margin:1px 0 2px;font-weight:600}.event-info p{font-size:10px;margin:2px 0}.event-type{font-size:8px;color:var(--course-ink);text-transform:uppercase;letter-spacing:.8px}.method-note{margin-top:24px;padding:20px 21px;background:#ebeedf;border:1px solid #e1e7cf;border-radius:12px;color:#475339}.method-note .icon{width:19px;height:19px}.method-note h3{font-size:14px;color:inherit;margin:12px 0 7px}.method-note p{font-size:11px;line-height:1.7;color:inherit;margin:0}.method-steps{display:flex;gap:5px;margin-top:13px;flex-wrap:wrap}.method-steps span{font-size:8px;border:1px solid #bcc7a7;border-radius:4px;padding:3px 5px}[data-bs-theme=dark] .method-note{background:#2a3625;border-color:#3d4c34;color:#d6e6c4}.site-footer{padding:24px 40px;display:flex;justify-content:space-between;color:var(--muted);font-size:9px;gap:15px}.back-link{font-size:11px;color:var(--muted);display:inline-flex;gap:7px;align-items:center;margin-bottom:22px;min-height:32px}.back-link .icon{width:15px;height:15px}.subject-hero{display:flex;align-items:flex-start;gap:21px;margin-bottom:26px}.subject-hero .subject-symbol{width:64px;height:64px;border-radius:16px}.subject-hero .subject-symbol .icon{width:34px;height:34px}.subject-hero h1{font-size:35px;max-width:790px;margin:7px 0 11px}.subject-hero .eyebrow{margin:0;color:var(--course-ink)}.subject-details{display:flex;gap:16px;flex-wrap:wrap;color:var(--muted);font-size:12px}.subject-details span{display:flex;align-items:center;gap:6px}.subject-details .icon{width:15px;height:15px}.course-content-grid{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:25px}.intro-panel{padding:26px 28px}.intro-panel h2{font-size:20px;margin-bottom:12px}.intro-panel>p{font-size:14px;line-height:1.85;color:var(--muted);max-width:800px}.assessment-box{padding:18px 20px;background:var(--page);border:1px solid var(--line);border-radius:9px;margin-top:20px}.assessment-box h3{font-size:13px;margin:0 0 6px;letter-spacing:0}.assessment-box p{font-size:12px;margin:0;line-height:1.8}.source-note{font-size:10px!important;margin:16px 0 0!important}.study-focus{padding-left:17px;color:var(--muted);font-size:12px}.study-focus li{padding:5px 0}.method-route{display:grid;gap:17px;margin-top:23px}.route-step{display:flex;gap:12px;align-items:flex-start}.route-number{width:24px;height:24px;border-radius:50%;background:var(--soft);display:grid;place-items:center;font-size:10px;flex-shrink:0;color:var(--ink)}.route-step b{font-size:12px;font-weight:600}.route-step p{font-size:10px;margin:3px 0 0}.summary-section{margin-top:32px}.lesson-card{border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:22px;margin-top:14px;display:flex;gap:20px;align-items:center}.lesson-number{width:51px;height:61px;border-radius:8px;background:var(--course-soft);color:var(--course-ink);display:grid;place-items:center;font-size:21px;font-weight:500;flex-shrink:0}.lesson-copy{flex:1}.lesson-copy h3{font-size:17px;margin:4px 0 7px}.lesson-copy p{font-size:11px;margin:0 0 9px}.lesson-copy .eyebrow{font-size:9px;margin:0}.lesson-tags{display:flex;gap:6px;flex-wrap:wrap}.lesson-tags span{font-size:9px;color:var(--muted);background:var(--soft);padding:3px 7px;border-radius:5px}.lesson-buttons{display:flex;flex-direction:column;gap:9px;align-items:stretch}.lesson-buttons small{color:var(--muted);font-size:9px;text-align:center}.empty-state{border:1px dashed var(--line);border-radius:13px;padding:35px;background:var(--surface);text-align:center}.empty-state h3{font-size:18px}.empty-state p{font-size:12px;max-width:420px;margin:10px auto 0}.empty-state .icon{width:31px;height:31px;color:var(--muted);margin-bottom:12px}.reader{margin-top:28px;border:1px solid var(--line);border-radius:13px;overflow:hidden;background:var(--surface)}.reader-header{display:flex;justify-content:space-between;gap:15px;padding:20px 23px;align-items:center;border-bottom:1px solid var(--line);flex-wrap:wrap}.reader-header h3{font-size:16px;margin:0 0 4px}.reader-header p{font-size:10px;margin:0}.reader-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.reader iframe{border:0;width:100%;height:76vh;min-height:520px;display:block;background:var(--page)}.reviewed{background:var(--soft);color:var(--ink)}.calendar-page-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr);gap:25px}.calendar-page-grid .calendar-day{height:64px;font-size:14px}.calendar-page-grid .weekday{font-size:11px}.calendar-page-grid .event-dot{width:5px;height:5px}.calendar-page-grid .event-dots{bottom:9px}.calendar-page-grid .calendar-heading h3{font-size:22px}.calendar-page-grid .event-info h4{font-size:14px}.calendar-page-grid .event-info p{font-size:12px}.calendar-page-grid .event-row{padding:20px 0}.calendar-page-grid .event-date{min-width:44px}.calendar-page-grid .event-date b{font-size:26px}.calendar-page-grid .event-type{font-size:9px}.loading-state{padding:100px 20px;text-align:center;color:var(--muted)}.app-toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);background:var(--ink);color:var(--surface);border-radius:9px;font-size:12px;padding:12px 20px;z-index:50;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}.app-toast.visible{opacity:1;transform:translate(-50%,0)}.calendar-day:focus-visible{outline-offset:0!important}.no-results{grid-column:1/-1;text-align:center;padding:40px;color:var(--muted);font-size:13px}
@media(min-width:1600px){#main{padding:45px 60px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 340px;gap:36px}.subject-card{min-height:265px}.calendar-day{height:40px}}
@media(max-width:1200px){.sidebar{width:205px;padding:30px 16px 20px}.main-shell{margin-left:205px}.topbar{padding:0 26px}#main{padding:30px 26px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 270px;gap:20px}.panel{padding:18px}.subject-card{padding:18px}.focus-banner{padding:24px;align-items:flex-start;flex-direction:column}.focus-banner h2{font-size:23px}.subject-card h3{font-size:19px}.course-content-grid{grid-template-columns:minmax(0,1fr) 255px;gap:20px}.brand{font-size:19px}.brand-caption{font-size:7px}.lesson-card{flex-wrap:wrap}.lesson-buttons{flex-direction:row;width:100%;justify-content:flex-end;align-items:center}}
@media(max-width:1000px){.sidebar{width:185px;padding:27px 12px}.main-shell{margin-left:185px}.brand{gap:8px;font-size:17px}.brand-caption{font-size:6px}.brand-mark{width:34px;height:34px}.dashboard-grid{grid-template-columns:minmax(0,1fr)}.right-column{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}.method-note{grid-column:1/-1;margin-top:0}.focus-banner{flex-direction:row;align-items:center}.course-content-grid{grid-template-columns:1fr}.course-aside{display:grid;grid-template-columns:1fr 1fr;gap:20px}.course-aside .method-note{grid-column:auto;margin:0}.calendar-page-grid{grid-template-columns:1fr}.sidebar-bottom .small-note{font-size:10px}.profile .brand-caption{font-size:6px}}
@media(max-width:700px){.sidebar{position:sticky;top:0;width:100%;height:auto;padding:12px 18px;border-right:0;border-bottom:1px solid var(--line);flex-direction:row;justify-content:space-between;align-items:center;gap:20px}.brand{font-size:18px}.brand .brand-caption{display:none}.brand-mark{width:32px;height:32px;border-radius:9px}.sidebar .workspace-label,.sidebar .course-nav,.sidebar-bottom{display:none}.main-nav{flex-direction:row!important;gap:3px}.main-nav .nav-link{font-size:11px;padding:9px 12px;gap:7px}.main-nav .nav-link .icon{width:16px;height:16px}.main-shell{margin-left:0}.topbar{height:62px;padding:0 20px}.semester{display:none}.top-actions{gap:8px}.breadcrumb-line{font-size:10px}#main{padding:27px 20px 10px}.page-heading{margin-bottom:23px;align-items:flex-start}h1{font-size:32px}.page-heading p{font-size:12px;max-width:240px}.date-label{font-size:10px;min-width:75px}.dashboard-grid{gap:25px}.focus-banner{padding:22px;flex-direction:column;align-items:flex-start;gap:16px;margin-bottom:26px}.focus-banner h2{font-size:23px}.focus-banner .btn{padding:9px 13px}.subjects-grid{gap:12px}.subject-card{padding:17px;min-height:244px}.subject-card h3{font-size:19px}.status-badge{font-size:8px;padding:4px 5px}.subject-symbol{width:38px;height:38px;border-radius:9px}.subject-symbol .icon{width:23px;height:23px}.course-card-top{gap:5px}.subject-card .full-title{font-size:10px;min-height:40px}.course-meta{font-size:9px;align-items:flex-start}.course-card-footer{font-size:9px}.right-column{grid-template-columns:1fr;gap:22px}.method-note{grid-column:auto}.calendar-day{height:43px}.section-heading h2{font-size:21px}.search-box{max-width:none}.filter-controls{gap:10px}.filter-tab{padding:6px 10px}.site-footer{padding:25px 20px;flex-direction:column;gap:3px;font-size:9px}.subject-hero{gap:14px}.subject-hero .subject-symbol{width:46px;height:46px;flex-shrink:0;border-radius:12px}.subject-hero h1{font-size:26px;margin-top:5px}.subject-hero .eyebrow{font-size:8px}.subject-details{font-size:10px;gap:9px}.intro-panel{padding:21px}.intro-panel>p{font-size:13px}.assessment-box{padding:15px}.course-aside{grid-template-columns:1fr}.course-aside .panel{display:none}.lesson-card{padding:18px;gap:14px}.lesson-number{width:40px;height:52px;font-size:18px}.lesson-copy h3{font-size:15px}.lesson-buttons{justify-content:space-between}.reader-header{padding:17px}.reader iframe{height:72vh;min-height:440px}.calendar-page-grid .calendar-day{height:50px}.calendar-page-grid .panel{padding:20px}.calendar-page-grid .calendar-heading h3{font-size:19px}}
@media(max-width:380px){#main{padding:22px 14px}.sidebar{padding:11px 14px}.main-nav .nav-link{padding:9px}.main-nav .nav-link .icon{display:none}.subjects-grid{grid-template-columns:1fr}.subject-card{min-height:220px}.date-label{display:none}.topbar{padding:0 15px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.account-wrap{max-width:650px;margin:42px auto 80px}.account-wrap h1{font-size:clamp(36px,5vw,60px);letter-spacing:-2px;line-height:1.08}.account-intro{color:var(--muted);font-size:17px;max-width:480px;margin:20px 0 30px}.account-panel{max-width:460px;padding:30px}.account-panel h2{font-size:25px}.account-panel>p{color:var(--muted);line-height:1.6}.account-panel label{display:block;font-weight:600;font-size:14px;margin:20px 0 8px}.account-panel input{width:100%;padding:12px 14px;min-height:46px;border:1px solid var(--line);border-radius:10px;color:inherit;background:var(--surface,#fff);font:inherit}.account-panel input:focus-visible{outline:3px solid #759867;outline-offset:2px}.account-panel small{display:block;color:var(--muted);margin-top:8px;line-height:1.5}.account-panel [type=submit]{min-height:46px;width:100%}.account-switch{border:0;background:none;color:inherit;text-decoration:underline;min-height:44px;margin-top:14px;padding:8px 0;cursor:pointer;font:inherit;font-size:14px}#account-message{min-height:24px;margin:18px 0;font-size:14px;line-height:1.5}.profile>span:last-child{min-width:0;overflow-wrap:anywhere;font-size:12px}.profile .avatar{flex-shrink:0}.btn:disabled{opacity:.65;cursor:wait}@media(max-width:600px){.account-wrap{margin:20px auto 40px}.account-panel{padding:22px}.top-actions{gap:8px}.account-intro{font-size:16px}}
.google-signin{display:flex;justify-content:center;min-height:46px;margin:20px 0}.email-signin{margin-top:20px;font-size:14px}.email-signin summary{cursor:pointer;min-height:44px;padding:10px 0}.account-footnote{color:var(--muted);font-size:14px;line-height:1.6}
.google-signin{position:relative;background:#fff;color:#757575;border:1px solid #dadce0;border-radius:4px;box-shadow:0 1px 3px #0003;font-family:Arial,sans-serif;font-size:16px;font-weight:600;padding:10px 44px}.google-signin img{position:absolute;left:14px;width:20px;height:20px}.google-signin:hover{background:#fafafa;color:#616161;border-color:#c5c5c5;box-shadow:0 2px 5px #0003;transform:none}
.auth-page .sidebar,.auth-page .topbar,.auth-page .site-footer{display:none}.auth-page .main-shell{margin-left:0;min-height:100dvh}.auth-page #main{width:100%;max-width:none;min-height:100dvh;padding:40px 24px;display:grid;place-items:center}.auth-page .account-wrap{width:min(100%,460px);margin:0 auto;text-align:center}.login-brand{justify-content:center;margin-bottom:32px}.auth-page .account-wrap h1{font-size:clamp(36px,6vw,48px)}.auth-page .account-intro{font-size:16px;margin:18px auto 26px}.auth-page .account-panel{text-align:left;width:100%;max-width:none}.auth-page .loading-state{text-align:center}@media(max-width:600px){.auth-page #main{padding:28px 18px}.login-brand{margin-bottom:24px}}
.auth-page #main{padding:18px}.auth-page .account-wrap{width:min(100%,420px)}.auth-page .login-brand{margin-bottom:16px;font-size:20px}.auth-page .account-panel{padding:24px}.auth-page .account-wrap h1{font-size:27px;line-height:1.2;letter-spacing:-.8px;margin:0 0 8px}.auth-page .account-intro{font-size:14px;line-height:1.5;margin:0 0 18px}.auth-page .google-signin{margin:0;min-height:44px}.account-divider{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:12px;line-height:18px;margin:12px 0}.account-divider::before,.account-divider::after{content:'';height:1px;background:var(--line);flex:1}.auth-page .account-panel label{font-size:13px;line-height:18px;margin:12px 0 6px}.auth-page .account-panel label:first-child{margin-top:0}.auth-page .account-panel input{min-height:44px;padding:9px 12px;font-size:16px}.auth-page #account-message:empty{display:none}.auth-page #account-message{min-height:0;line-height:1.4;margin:10px 0 0}.auth-page .account-panel [type=submit]{min-height:44px;margin-top:16px}.auth-page .account-footnote{font-size:12px;line-height:18px;margin:12px 0 0;text-align:center}@media(max-height:600px){.auth-page #main{padding:12px 16px}.auth-page .login-brand{margin-bottom:12px}.auth-page .login-brand .brand-mark{width:32px;height:32px}.auth-page .account-panel{padding:20px}.auth-page .account-intro{margin-bottom:12px}.account-divider{margin:10px 0}.auth-page .account-panel [type=submit]{margin-top:12px}}

@media(max-width:700px){.sidebar{gap:10px;padding:12px 14px}.sidebar .brand{font-size:16px;gap:6px;white-space:nowrap}.sidebar .brand-mark{width:28px;height:28px}.main-nav .nav-link{padding:9px 8px;font-size:10px;gap:5px}.main-nav .nav-link .icon{width:15px;height:15px}}
@media(max-width:380px){.sidebar{gap:6px;padding:11px 12px}.main-nav .nav-link{padding:9px 6px}.game-layout .panel{padding:18px}}

/* Account details live behind a single profile entry point. */
.top-actions{gap:12px}.account-chip{display:flex;align-items:center;gap:10px;min-height:48px;padding:6px 11px 6px 7px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);max-width:195px}.account-chip:hover,.account-chip[aria-current=page]{background:var(--soft);border-color:#8b9c7b}.account-avatar{display:grid;place-items:center;flex-shrink:0;width:34px;height:34px;border-radius:50%;background:var(--lime);color:#25332c;font-size:15px;font-weight:650}.account-chip-copy{display:flex;flex-direction:column;min-width:0;line-height:1.4}.account-name{font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:125px}.account-level{font-size:11px;color:var(--muted)}
.profile-page{max-width:900px;margin:7px auto 30px}.profile-heading{display:flex;align-items:center;gap:18px;margin-bottom:25px}.profile-avatar{width:66px;height:66px;display:grid;place-items:center;border-radius:20px;background:var(--lime);color:#25332c;font-size:30px;font-weight:600;flex-shrink:0}.profile-heading>div{min-width:0}.profile-heading p{font-size:12px;margin:0 0 3px}.profile-heading h1{font-size:32px;line-height:1.2;margin:0;overflow-wrap:anywhere}.profile-level-tag{margin-left:auto;background:var(--soft);border:1px solid var(--line);padding:6px 13px;border-radius:7px;font-size:12px;font-weight:600;white-space:nowrap}.profile-tabs{display:flex;gap:10px;border-bottom:1px solid var(--line);margin-bottom:25px;overflow-x:auto}.profile-tabs a{padding:13px 17px;border-bottom:2px solid transparent;min-height:48px;display:flex;align-items:center;color:var(--muted);font-size:14px;white-space:nowrap}.profile-tabs a:hover{color:var(--ink);background:var(--soft)}.profile-tabs a[aria-current=page]{border-bottom-color:#66813b;color:var(--ink);font-weight:600}.profile-content{display:grid;gap:20px;min-width:0}.profile-content h2{font-size:19px;margin:0}.profile-content .panel{padding:24px}.profile-content p{font-size:13px;margin:12px 0 0}.profile-level .section-heading span{font-size:12px;color:var(--muted)}.profile-level progress,.profile-week progress{display:block;width:100%;height:9px;border:0;border-radius:10px;overflow:hidden;background:var(--soft);accent-color:#66813b}.profile-level progress::-webkit-progress-bar,.profile-week progress::-webkit-progress-bar{background:var(--soft);border-radius:10px}.profile-level progress::-webkit-progress-value,.profile-week progress::-webkit-progress-value{background:#66813b;border-radius:10px}.profile-level progress::-moz-progress-bar,.profile-week progress::-moz-progress-bar{background:#66813b;border-radius:10px}.profile-level>p{font-size:12px}.profile-progress-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.profile-week>strong{display:block;font-size:30px;line-height:1.5;margin:16px 0 12px}.profile-week>strong span{font-size:14px;font-weight:400;color:var(--muted)}.profile-stats dl{margin:15px 0 0}.profile-stats dl>div{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:11px 0}.profile-stats dt{font-size:13px;color:var(--muted);font-weight:400}.profile-stats dd{font-size:23px;line-height:1.3;font-weight:600;margin:0}.profile-badge-preview>p{color:var(--muted);margin-bottom:0}.earned-badge-list{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px}.earned-badge-list>span{display:flex;align-items:center;gap:9px;padding:9px 12px;background:var(--soft);border-radius:9px;font-size:13px}.profile-badges .badge-gallery{grid-template-columns:1fr 1fr;margin-top:22px}.profile-settings{max-width:600px;width:100%;margin:auto}.profile-settings .game-field{margin-top:22px}.profile-settings .goal-choice{margin-top:25px}.profile-settings .game-helper{margin-top:6px}.profile-signout-row{border-top:1px solid var(--line);margin-top:25px;padding-top:22px}.profile-help{font-size:12px;color:var(--muted);margin-top:18px}.profile-help summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:8px}.profile-help summary::before{content:'+';font-size:18px}.profile-help[open] summary::before{content:'−'}.profile-help p{max-width:660px;font-size:12px;line-height:1.7;margin:0}.profile-content .leaderboard-panel>p{margin-bottom:0}.profile-content .leaderboard-panel .eyebrow{display:none}
@media(max-width:700px){.account-chip{min-height:44px;gap:8px;padding:5px 9px 5px 5px;max-width:160px}.account-avatar{width:30px;height:30px;font-size:14px}.account-name{font-size:11px;max-width:95px}.account-level{font-size:10px}.top-actions{gap:9px}.profile-page{margin-top:0}.profile-heading{gap:13px;margin-bottom:20px}.profile-avatar{width:50px;height:50px;border-radius:15px;font-size:24px}.profile-heading h1{font-size:25px}.profile-level-tag{font-size:11px;padding:5px 9px}.profile-tabs{gap:0;justify-content:space-between;margin-bottom:20px}.profile-tabs a{font-size:12px;padding:12px 7px}.profile-progress-grid{grid-template-columns:1fr;gap:16px}.profile-content{gap:16px}.profile-content .panel{padding:20px}.profile-badges .badge-gallery{grid-template-columns:1fr}.profile-stats dl{display:grid;grid-template-columns:1fr 1fr;gap:15px}.profile-stats dl>div{align-items:flex-start;flex-direction:column;gap:7px}.profile-content h2{font-size:18px}}
@media(max-width:480px){.breadcrumb-line>span:first-child,.breadcrumb-line>.divider{display:none}.profile-heading h1{font-size:23px}.profile-heading{gap:10px}.profile-level-tag{padding:5px 8px}.profile-tabs a{padding:12px 4px}}
/* A required, one-time username choice uses the existing compact account card. */
.username-panel .eyebrow{margin-bottom:12px}.username-panel h1{font-size:28px;line-height:1.2}.username-panel .account-intro{line-height:1.6}.username-panel .username-help{font-size:12px;line-height:1.6;color:var(--muted);margin:8px 0 16px}.username-panel .username-permanent{padding:12px 14px;background:var(--soft);border:1px solid var(--line);border-radius:9px;font-size:13px;line-height:1.6;margin:0 0 17px}.username-panel .username-message{font-size:13px;font-weight:600;margin:0 0 14px}.username-message:empty{display:none}.username-signout{display:block;margin:12px auto 0;min-height:44px;border:0;background:none;color:var(--muted);font:inherit;font-size:13px;text-decoration:underline;text-underline-offset:3px}.profile-username{margin:23px 0 0}.profile-username dt{font-size:12px;font-weight:400;color:var(--muted);margin-bottom:4px}.profile-username dd{font-size:17px;font-weight:600;overflow-wrap:anywhere;margin:0}.username-panel input[aria-invalid=true]{border-color:var(--ink)}
.auth-page .account-footnote{text-align:left;margin-top:16px}
.countdown{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.countdown-unit{display:flex;flex-direction:column;align-items:center;min-width:58px;padding:7px 10px;background:#ffffff14;border:1px solid #ffffff1f;border-radius:10px}.countdown-unit strong{font-size:22px;line-height:1.1;color:#d9f578;font-variant-numeric:tabular-nums}.countdown-unit small{font-size:10px;letter-spacing:.8px;text-transform:uppercase;color:#c5d6c8}.countdown-now{font-weight:600;color:#d9f578}.upcoming-exams{list-style:none;display:flex;flex-wrap:wrap;gap:6px 14px;margin:14px 0 0;padding:0;font-size:12px;color:#c5d6c8}.upcoming-label{color:#e3f2d9}.upcoming-exams a{color:#f9fbef;font-weight:600;margin-right:5px;text-decoration:underline;text-underline-offset:3px}.upcoming-exams [data-days-until]::after{content:' · ' attr(data-label)}@media(max-width:420px){.countdown-unit{min-width:0;flex:1}}
.lesson-view .lesson-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 20px;padding:14px 16px 14px 20px;margin-bottom:12px;background:var(--surface);border:1px solid var(--line);border-radius:13px}.lesson-head-copy{flex:1 1 260px;min-width:0}.lesson-head .eyebrow{display:flex;align-items:center;gap:5px;color:var(--course-ink,var(--muted));font-size:10px;letter-spacing:1.6px;text-transform:uppercase;margin:0 0 4px}.lesson-head .eyebrow .icon{width:12px;height:12px}.lesson-head h1{font-size:16px;line-height:1.35;letter-spacing:-.2px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lesson-view .reader-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.reader-tools,.reader-primary{display:flex;gap:6px;align-items:center}.reader-tools{padding-right:10px;border-right:1px solid var(--line)}.btn-ghost{background:transparent;border:1px solid transparent;color:var(--muted)}.btn-ghost:hover{background:var(--soft);color:var(--ink)}.lesson-view .btn .icon{width:16px;height:16px}.lesson-view .reader{margin-top:0}
.lesson-pager{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}.lesson-pager-link{display:flex;flex-direction:column;gap:2px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:var(--surface);min-height:44px}.lesson-pager-link:hover{border-color:var(--muted)}.lesson-pager-link small{font-size:11px;color:var(--muted);font-weight:600}.lesson-pager-link span{font-size:14px;font-weight:600;overflow-wrap:anywhere}.lesson-pager-link.next{text-align:right;grid-column:2}
@media(max-width:700px){.lesson-head h1{white-space:normal}.lesson-view .reader-actions{width:100%}.reader-tools{border-right:0;padding-right:0;width:100%}.reader-tools .btn{flex:1}.reader-primary{width:100%}.reader-primary .btn{flex:1}.lesson-pager{grid-template-columns:1fr}.lesson-pager-link.next{grid-column:1}}
.lesson-notice{margin:0 0 12px;padding:10px 14px;border-radius:10px;background:var(--soft);border:1px solid var(--line);font-size:13px;color:var(--ink)}
.card-badges{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.new-badge-pill{background:var(--lime);color:#25332c;font-weight:700;letter-spacing:.3px;vertical-align:middle;font-size:11px}
/* Top-level leaderboard and public student profiles. */
.leaderboard-page{max-width:900px;margin:0 auto 30px}.leaderboard-page .page-heading{margin-bottom:22px}.leaderboard-page .leaderboard-panel{padding:24px}.leaderboard-page .leaderboard-filters{margin-top:0}.rank-name{text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:4px;overflow-wrap:anywhere}.rank-name:hover{color:var(--forest);text-decoration-color:currentColor}.rank-own th,.rank-own td{border-top:2px dashed var(--line)}.rank-toggle{display:flex;width:100%;margin:-6px 0 16px}
.profile-public-link{display:inline-flex;align-items:center;min-height:44px;font-size:12px;text-decoration:underline;text-underline-offset:3px}.profile-heading:has(.profile-public-link) h1{margin-bottom:-4px}.profile-streak .section-heading>.icon{color:#66813b}
.public-stats dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:0}.public-stats dl>div{flex-direction:column;align-items:flex-start;gap:6px;padding:0}.public-profile .game-error h1{font-size:22px;margin:0}
.public-lessons h3{font-size:13px;font-weight:600;color:var(--muted);letter-spacing:.2px;margin:20px 0 9px}.public-lesson-list{list-style:none;display:grid;gap:7px;margin:14px 0 0;padding:0}.public-lessons h3+.public-lesson-list{margin-top:0}.public-lesson-list li>*{display:flex;align-items:flex-start;gap:10px;min-height:44px;padding:11px 13px;border:1px solid var(--line);border-radius:9px;background:var(--surface);font-size:13px;line-height:1.5}.public-lesson-list a:hover{background:var(--soft)}.public-lesson-list .icon{width:16px;height:16px;margin-top:2px;color:#66813b}.public-lesson-list span{overflow-wrap:anywhere}
@media(max-width:700px){.leaderboard-page .leaderboard-panel{padding:20px}.public-stats dl{gap:10px}.public-stats dd{font-size:20px}}
/* Three sidebar links share the phone header: the logo mark stays, the wordmark hides. */
@media(max-width:520px){.sidebar .brand>span:not(.brand-mark){display:none}.main-nav{flex-wrap:nowrap}.main-nav .nav-link{white-space:nowrap}}
/* Review for tomorrow: next lesson day from the class timetable. */
.tomorrow-panel{margin-bottom:20px}.tomorrow-panel .upcoming-heading>.icon{color:var(--muted)}.tomorrow-list{list-style:none;padding:0;margin:12px 0 0;display:grid;gap:8px}.tomorrow-list .tt-row{display:flex;align-items:center;gap:12px;min-height:52px;padding:10px 12px;border:1px solid var(--line);border-left:4px solid var(--course-ink);border-radius:9px;background:var(--surface)}.tomorrow-time{font-size:12px;font-weight:600;color:var(--muted);white-space:nowrap;min-width:78px}.tomorrow-copy{display:flex;flex-direction:column;min-width:0;flex:1}.tomorrow-copy strong{font-size:14px;font-weight:600;overflow-wrap:anywhere}.tomorrow-copy small{font-size:12px;color:var(--muted)}.tomorrow-list .icon{flex:none;width:16px;height:16px}.tomorrow-pill{background:var(--soft);color:var(--forest);font-weight:600;font-size:11px}

/* Overview tidy-up: one line of pills, compact review list, one-line footnotes. */
.course-card-top{gap:10px}.course-card-top .subject-symbol{flex:none}.card-badges{flex-wrap:nowrap;min-width:0}.card-badges .badge{white-space:nowrap}.card-badges .tomorrow-pill{min-width:0;overflow:hidden;text-overflow:ellipsis}.card-badges .new-badge-pill{flex:none}
#tomorrow-slot:empty{display:none}.right-column .tomorrow-panel{margin-bottom:24px}.tomorrow-list{margin-top:0;grid-template-columns:minmax(0,1fr)}.tomorrow-list .tt-row{min-width:0;min-height:0;padding:9px 12px}.tomorrow-time{display:flex;flex-direction:column;min-width:40px;line-height:1.3;font-variant-numeric:tabular-nums}.tomorrow-time strong{font-size:13px;font-weight:600;color:var(--ink)}.tomorrow-time small{font-size:11px;font-weight:400}
.tomorrow-copy{line-height:1.35;gap:1px}.tomorrow-copy strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}.tomorrow-copy small{font-size:11px}
.right-column .calendar-source{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:10px}.right-column .calendar-legend{padding-top:12px;margin-top:12px}
@media(max-width:1000px){.right-column .tomorrow-panel{margin-bottom:0}}
/* Narrow subject cards keep both pills on one line: the class order hides, and on phones the pills sit under the icon. */
.subject-card{container-type:inline-size}@container (max-width:300px){.card-badges .pill-extra{display:none}}@container (max-width:200px){.course-card-top{flex-direction:column;align-items:flex-start;gap:9px}.card-badges{gap:4px;justify-content:flex-start;max-width:100%}.card-badges .badge{font-size:10px;padding:4px 6px}}
/* Day detail under the calendar grid: the shown day's classes (live timetable) and exams. */
.class-mark{position:absolute;top:4px;right:5px;width:4px;height:4px;border-radius:50%;background:var(--forest);opacity:.55}.calendar-day.today .class-mark{background:#25332c}.calendar-legend .class-legend{background:var(--forest);opacity:.55}.calendar-page-grid .class-mark{top:7px;right:8px;width:5px;height:5px}
.day-detail{margin-top:15px;padding-top:14px;border-top:1px solid var(--line)}.day-detail-title{font-size:12px;font-weight:600;letter-spacing:0;margin:0 0 9px;color:var(--ink)}.day-detail-title::first-letter{text-transform:uppercase}.day-list{list-style:none;padding:0;margin:0;display:grid;gap:6px}.day-list a{display:flex;align-items:center;gap:9px;min-height:44px;padding:7px 10px;border:1px solid var(--line);border-left:3px solid var(--course-ink);border-radius:8px;background:var(--surface)}.day-list a:hover{background:var(--soft)}.day-list a.is-exam{border-style:dashed;border-left-style:solid}.day-time{font-size:10px;font-weight:600;color:var(--muted);white-space:nowrap;min-width:64px}.day-list .nav-dot{flex:none}.day-copy{display:flex;flex-direction:column;min-width:0;flex:1;line-height:1.35}.day-copy strong{font-size:12px;font-weight:600;overflow-wrap:anywhere}.day-copy small{font-size:10px;color:var(--muted);overflow-wrap:anywhere}.day-empty{font-size:11px;color:var(--muted);margin:0}.day-list+.day-empty{margin-top:8px}
.calendar-page-grid .day-detail-title{font-size:15px}.calendar-page-grid .day-time{font-size:12px;min-width:84px}.calendar-page-grid .day-copy strong{font-size:14px}.calendar-page-grid .day-copy small{font-size:12px}.calendar-page-grid .day-list a{padding:10px 12px}.calendar-page-grid .day-empty{font-size:13px}
@media(max-width:700px){.day-list a{flex-wrap:wrap;row-gap:2px}.day-time,.calendar-page-grid .day-time{min-width:0}}
/* Calendar page agenda: class rows next to exams and deadlines. */
.event-row.is-class .event-type{color:var(--course-ink)}.agenda-note{font-size:13px;color:var(--muted);margin:12px 0 0}
/* Phones: what matters today comes first. Countdown (compact), review for tomorrow and the
   calendar sit above the subject cards; the two desktop columns dissolve into one ordered list. */
@media(max-width:700px){
.dashboard-grid{display:flex;flex-direction:column;gap:18px}
.dashboard-grid>.primary-column,.dashboard-grid>.right-column{display:contents}
.dashboard-grid .focus-banner{order:1;margin:0;padding:18px;gap:12px;min-height:0;align-items:stretch}.dashboard-grid .focus-banner>.btn{align-self:flex-start}
.dashboard-grid #tomorrow-slot{order:2}.dashboard-grid #tomorrow-slot:empty{display:none}
.dashboard-grid .calendar-panel{order:3}
.dashboard-grid .primary-column>.section-heading{order:4;margin:10px 0 0}
.dashboard-grid .filter-controls{order:5;margin:0}
.dashboard-grid #subject-cards{order:6}
.focus-banner h2{font-size:20px;margin:8px 0 2px}
.countdown{margin-top:10px;gap:6px}.countdown-unit{padding:5px 4px}.countdown-unit strong{font-size:19px}.countdown-unit small{font-size:9px}
.upcoming-exams{margin-top:10px}
.page-heading:has(+.dashboard-grid){margin-bottom:14px}.page-heading:has(+.dashboard-grid) :is(p,.eyebrow){display:none}.page-heading:has(+.dashboard-grid) h1{font-size:26px;line-height:1.2}
.countdown-unit{flex:1;min-width:0}.focus-banner .btn{padding:8px 13px;font-size:13px;min-height:40px}
}
@media(max-width:767px){.dashboard-grid .calendar-panel{display:none}}
/* Beta notice: login and brand. */
.beta-pill{display:inline-block;font-size:10px;font-weight:700;letter-spacing:.8px;text-transform:uppercase;padding:2px 7px;border-radius:5px;background:var(--lime);color:#25332c;vertical-align:middle;line-height:1.5}.beta-note{font-size:14px;font-weight:600;color:var(--ink);margin:12px 0 10px;line-height:1.5}
.chip-beta{font-size:8px;padding:0 5px;margin-left:3px;letter-spacing:.6px;vertical-align:1px;line-height:1.6}
/* Review card: whole card opens the calendar. */
.tomorrow-panel{display:block;color:inherit}a.tomorrow-panel:hover{background:var(--soft)}.review-next{margin-top:16px}.review-open{display:inline-flex;align-items:center;gap:3px;float:right;font-weight:600;color:var(--forest)}.review-open .icon{width:12px;height:12px}.tomorrow-panel .day-empty{font-size:13px;color:var(--muted);margin:10px 0 0}
/* Own profile: beta notice under the level tag. */
.profile-level-wrap{margin-left:auto;display:flex;flex-direction:column;align-items:flex-end;gap:6px}.profile-level-wrap .profile-level-tag{margin-left:0}.profile-beta{text-transform:none;letter-spacing:.2px;font-size:11px;padding:2px 8px;white-space:nowrap}
@media(max-width:520px){.profile-beta{white-space:normal;text-align:right;max-width:150px}}
