/* Learning-first surfaces. Workspace brand remains configurable. */
.learning-tools {margin:0 0 20px;gap:12px}.learning-settings .btn{margin:4px 8px 10px 0}.learning-goal{border-left:4px solid var(--learning-goal-line);background:var(--learning-goal-bg)}.learning-goal:empty{display:none}.learning-goal h3{margin:4px 0 8px}.learning-chart-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px;margin:16px 0 24px}.learning-chart{min-width:0;padding:18px;border:1px solid var(--border);background:var(--surface);border-radius:18px}.learning-chart h3{font-size:16px;min-height:40px;margin:0 0 14px}.learning-bars{display:flex;align-items:end;gap:10px;overflow-x:auto;padding:8px 0;min-height:160px}.learning-bar-column{flex:1;min-width:36px;text-align:center;font-size:13px}.learning-bar-column strong{white-space:nowrap;font-size:13px}.learning-bar-track{height:100px;display:flex;align-items:end;justify-content:center;margin:8px 0}.learning-bar-track span{display:block;width:70%;min-width:10px;max-width:42px;background:var(--primary);border-radius:6px 6px 0 0}.learning-bar-column small{font-size:11px;white-space:nowrap}.learning-chart details{font-size:13px;color:var(--muted);margin-top:10px}.learning-chart summary,.compact-details summary{min-height:44px;display:flex;align-items:center;cursor:pointer}.topic-map,.mock-history{list-style:none;padding:0}.topic-map li,.mock-history li{display:flex;gap:12px;flex-wrap:wrap;align-items:center;padding:12px 0;border-bottom:1px solid var(--line-soft)}.topic-map li>span:first-child,.mock-history li>span{flex:1;min-width:130px}.mock-history li>p{flex-basis:100%;margin:0}.learning-growth{font-size:20px;font-weight:650;color:var(--good)}.lesson-summary-section{margin:14px 0}.lesson-summary-section h3{font-size:14px;color:var(--muted);margin:0 0 6px}.lesson-summary-section p{margin:4px 0}.student-next-action{background:var(--learning-goal-bg);border:1px solid var(--warn-border)}.student-next-action .btn{margin:4px 8px 4px 0}.review-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:24px}.review-layout>*{min-width:0}.review-pages{max-height:65vh;overflow:auto;background:var(--media-stage);border-radius:12px;padding:10px}.review-pages img{display:block;width:100%;height:auto;margin:12px 0;border-radius:6px}.review-pages canvas{max-width:100%;height:auto!important}.review-page{margin:12px 0}.review-page p{overflow-wrap:anywhere}.photo-editor{position:fixed;z-index:2000;inset:12px;max-width:760px;margin:auto;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:20px;display:flex;flex-direction:column;box-shadow:0 12px 80px var(--shadow-photo)}.photo-editor h2,.photo-editor p{margin:4px 0 8px}.photo-canvas{flex:1;overflow:auto;min-height:0;background:var(--media-canvas);text-align:center}.photo-canvas canvas{max-width:100%;max-height:100%;object-fit:contain}.photo-editor .lesson-actions{margin-top:12px;flex-shrink:0}.homework-search{margin-bottom:16px}.family-guide{padding-left:24px}.family-guide li{padding:8px 0;line-height:1.6}.notification-item>p{white-space:pre-line}.calendar-day-layout{display:flex;flex-direction:column}.calendar-day-tools{order:0}.calendar-day-lessons{order:1}.learning-progress .panel{margin-bottom:18px}
@media(max-width:700px){.topbar{min-height:60px;padding-top:8px;padding-bottom:8px}.mobile-brand .brand-subtitle,.mobile-brand .brand-tagline{display:none}.mobile-brand img{max-height:34px}.topbar-actions{gap:6px}.live-clock{font-size:12px}.content{padding-top:16px}.page-head{margin-bottom:18px}.page-head h1{font-size:26px}.btn,.icon-btn,.nav-link,.bottom-nav button,button.cv-button,.child-select{min-height:44px}.icon-btn{min-width:44px}.learning-chart-grid{grid-template-columns:1fr;gap:12px}.learning-chart h3{min-height:0}.learning-tools{display:grid;grid-template-columns:1fr}.review-layout{grid-template-columns:1fr;gap:16px}.review-pages{max-height:48vh}.review-layout .form-grid{grid-template-columns:1fr}.photo-editor{inset:6px;padding:14px;border-radius:16px}.photo-editor .lesson-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.photo-editor [data-photo=accept]{grid-column:1/-1}.photo-editor .btn{margin:0}.calendar-day-lessons{order:1}.calendar-day-tools{order:0;margin-top:0}.cv-calendar-toolbar{gap:12px}.learning-goal{padding:18px}.topic-map li .btn{width:auto}.learning-settings{overflow-wrap:anywhere}}

@media(max-width:700px){.mobile-brand .brand>div>span{display:none}.mobile-brand .brand{gap:8px}.learning-overview .learning-goal{padding:14px 18px;margin-bottom:18px}.learning-overview .learning-goal h3{font-size:16px}.learning-overview .learning-goal p{margin:4px 0;font-size:14px}}

.report-month-picker span{text-transform:none}

.photo-editor .form-error[hidden]{display:none}
.report-student-choice{min-height:44px;padding:10px 0;cursor:pointer}.report-student-choice>span{line-height:1.5}
.review-file-overlay{z-index:1200}.review-file-overlay .file-preview{width:100%;max-height:none;object-fit:contain}.review-file-toolbar{position:sticky;top:-22px;background:var(--surface);padding:10px 0;z-index:1}.review-file-toolbar .btn{min-height:44px}.review-file-scroll{overflow:auto;max-height:70vh;touch-action:pan-x pan-y pinch-zoom}.review-file-scroll.image-zoomed .file-preview{width:auto;max-width:none}.learning-overview:empty{display:none}

/* PDF canvas pixels and uploaded photographs keep their own colour space. */
.review-pages canvas, .photo-canvas canvas { background: var(--media-paper); }

/* r6: concise cumulative progress and stable family day controls. */
.learning-at-glance{background:var(--surface,#fff);border:1px solid var(--border,#d9e1e8);border-radius:18px;padding:20px;margin-bottom:18px}
.learning-metrics{display:grid;grid-template-columns:1fr 1fr;gap:20px}.learning-metrics article{min-width:0}.learning-metrics strong{display:block;font-size:2rem;line-height:1.3;margin:8px 0}.learning-metrics strong small{font-size:1rem;font-weight:500}.learning-metrics p{margin:6px 0;line-height:1.5}.average-stars{position:relative;display:inline-block;font-size:1.8rem;letter-spacing:.08em;color:var(--muted,#617282);width:max-content;line-height:1.4}.average-stars>span:last-child{position:absolute;left:0;top:0;overflow:hidden;white-space:nowrap;color:var(--learning-goal-line,#9a650e)}
.learning-goal{border-left:4px solid var(--primary,#1c4161)}.learning-goal:empty{display:none}.learning-overview .learning-goal{margin-top:0}.learning-metrics .eyebrow{font-size:.83rem}
@media(max-width:420px){.learning-metrics{gap:12px}.learning-at-glance{padding:16px}.learning-metrics strong{font-size:1.6rem}.learning-metrics p{font-size:.9rem}.average-stars{font-size:1.45rem}}

/* r7: a useful start state and a compact, factual view of task results. */
.learning-start p{max-width:60ch;color:var(--muted);line-height:1.6}.learning-start h3{margin-top:18px}.learning-at-glance .section-title{align-items:start;flex-wrap:wrap;gap:8px}.learning-at-glance .section-title>span{font-size:.9rem;color:var(--muted)}.learning-trend{max-width:680px}.learning-trend svg{display:block;width:100%;max-height:180px;overflow:visible}.learning-trend text{font:11px system-ui,sans-serif;fill:var(--muted)}.trend-grid{stroke:var(--line);stroke-width:1}.trend-line{fill:none;stroke:var(--primary);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.trend-point{fill:var(--primary);stroke:var(--surface);stroke-width:2}.learning-trend .section-title h3{margin:0;font-size:1.05rem}.learning-trend .section-title>strong{color:var(--primary)}.learning-trend .small{margin:8px 0}.learning-trend details>summary{min-height:44px;display:flex;align-items:center;cursor:pointer}.family-week .section-title{flex-wrap:wrap;gap:8px}.family-week-counts{display:flex;gap:12px 24px;flex-wrap:wrap;line-height:1.6}.family-week-counts strong{font-size:1.15rem}.learning-home-bottom{margin-top:24px}.learning-overview:empty{display:none}.unfinished-lesson{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid var(--line)}.unfinished-lesson p{margin:6px 0;color:var(--muted)}.unfinished-lesson>div{min-width:0}.unfinished-lesson .btn{flex-shrink:0}
@media(max-width:600px){.family-week{padding:16px}.family-week-counts{gap:8px 16px}.family-week-counts>span:last-child{flex-basis:100%}.learning-trend{padding:16px}.unfinished-lesson{align-items:stretch;flex-direction:column;gap:8px}.unfinished-lesson .btn{align-self:flex-start}}
