:root{color-scheme:light;--ink:#202020;--muted:#707070;--accent:#83c650;--accent-ink:#1b2c11;--paper:#fff;--surface:#f3f3f3;--field:#e9e9e9;--line:#dedede;--warm:#e5f2d7;--goal-tint:#d6ebc2;--error:#ffe4e5}html[data-theme=dark]{color-scheme:dark;--ink:#f3f3f3;--muted:#aaa;--accent:#a1d877;--accent-ink:#1b2c11;--paper:#111;--surface:#222;--field:#2d2d2d;--line:#3d3d3d;--warm:#2f4323;--goal-tint:#426e2e;--error:#49262c}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.55 system-ui,sans-serif}a{color:inherit;text-decoration:none}a:hover{color:var(--accent)}header{display:flex;align-items:center;gap:24px;max-width:1200px;margin:auto;padding:24px 32px}.brand{font-size:25px;font-weight:750;letter-spacing:-1px}.brand span{display:none}nav{display:flex;gap:6px;margin-left:auto}nav a{padding:8px 14px;border-radius:10px;color:var(--muted)}nav a.active{background:var(--warm);color:var(--ink)}header button{margin:0}main{max-width:1140px;padding:28px 32px 64px;margin:auto}h1{font-size:36px;line-height:1.2;letter-spacing:-1px;font-weight:650;margin:12px 0 32px}h2{font-size:22px;margin:0 0 20px;letter-spacing:-.4px}h3{font-size:16px;margin:12px 0}h3 span{color:var(--muted);font-weight:400;margin-left:8px}.columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:56px}.card{padding:24px 0;margin-bottom:24px}.card+.card{margin-top:16px}.heading,.person,.row,.task-row{display:flex;align-items:center;gap:16px}.heading{justify-content:space-between}.person{justify-content:space-between;margin-bottom:28px;font-size:14px;color:var(--muted)}.person select{width:auto}.numbers{font-size:30px;margin:12px 0}.numbers span{font-size:16px;color:var(--muted)}progress{width:100%;height:7px;accent-color:var(--accent)}details{margin-top:16px}summary{cursor:pointer;font-weight:550;width:fit-content}summary:hover{color:var(--accent)}label{display:block;font-size:14px;margin:16px 0 0}input,select{display:block;width:100%;min-width:0;font:inherit;color:var(--ink);border:1px solid transparent;border-radius:8px;background:var(--surface);padding:10px 12px;margin-top:6px}input:focus,select:focus{background:var(--field)}:focus-visible{outline:2px solid var(--accent);outline-offset:3px}button{font:inherit;font-weight:550;background:var(--accent);border:0;border-radius:8px;padding:10px 18px;color:var(--accent-ink);cursor:pointer;margin-top:20px}button:hover{filter:brightness(1.06)}button:disabled{opacity:.45;cursor:default}.quiet{background:var(--surface);color:var(--ink)}.row>*{flex:1;min-width:0}.check{display:flex;align-items:center;gap:10px}.check input{width:18px;height:18px;flex-shrink:0;margin:0;accent-color:var(--accent)}.day{padding:8px 0 20px}.slot{background:var(--surface);padding:16px 20px;margin:10px 0;border-radius:10px}.slot span,.slot small{display:block}.slot small{color:var(--muted)}.slot.rest{background:var(--warm)}.slot.exam strong{color:var(--accent)}.muted,.empty{color:var(--muted);font-size:14px}.empty{padding:16px 0}.notice{background:var(--warm);padding:16px;border-radius:10px;overflow-wrap:anywhere}.notice.error{background:var(--error)}fieldset{margin:20px 0 0;padding:0;border:0}legend{font-size:14px}table{width:100%;border-collapse:collapse;font-size:14px;margin:16px 0}td,th{text-align:left;padding:10px 6px;border-bottom:1px solid var(--line)}td progress{width:70px}th{color:var(--muted);font-weight:500}.task-row{padding:8px 0;flex-wrap:wrap}.task-row span{flex:1;min-width:120px}.task-row input{width:70px}.task-row button{font-size:12px;margin:0}.welcome{max-width:650px;margin:70px auto}.welcome h1{font-size:48px}.welcome p{max-width:520px}.arrows{display:flex;gap:12px;font-size:24px}.arrows a{padding:4px 12px;border-radius:8px;background:var(--surface)}svg{width:100%;height:auto}.chart-legend{font-size:13px;color:var(--muted)}hr{border:0;height:24px;margin:12px 0}[hidden]{display:none!important}.subject-settings>summary{font-size:20px}.subject-settings{margin:24px 0 32px}.subject-settings[open]>summary{margin-bottom:20px}.catalog-form{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.catalog-form label{flex:1;min-width:180px}.catalog-form button{flex-shrink:0}.theme-toggle{font-size:14px;padding:9px 12px}.eyebrow{color:var(--muted);font-size:13px}@media(max-width:720px){header{padding:18px;flex-wrap:wrap;gap:12px}nav{order:3;width:100%;margin:0}nav a{flex:1;text-align:center}header form{margin-left:auto}main{padding:20px 18px}.columns{grid-template-columns:1fr;gap:24px}h1{font-size:28px}.heading{align-items:start}.welcome{margin:30px 0}.welcome h1{font-size:36px}table{font-size:12px}.card{padding:16px 0}.arrows{gap:4px}.arrows a{padding:4px 8px}.row{flex-wrap:wrap}.row>label{flex-basis:140px}}
/* Full-width workspace */
header{max-width:none;padding:20px 32px;gap:20px;align-items:center}.brand{font-size:14px;font-weight:500;letter-spacing:0;color:var(--muted)}nav{margin-left:16px;margin-right:auto}main{max-width:none;padding:20px 32px 64px}.account-card{display:flex;align-items:center;gap:20px;background:var(--surface);border-radius:12px;padding:10px 14px}.account-info{min-width:110px;font-size:14px}.account-info strong{display:block;font-weight:550}.account-info select{background:var(--paper);padding:4px 8px;font-size:13px;max-width:200px}.account-card button{background:transparent;color:var(--muted);padding:6px 8px}.plan-columns{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px}.goal-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));align-items:start;gap:16px}.goal-card{background:var(--surface);border-radius:12px;padding:20px;min-width:0}.goal-card>strong{font-size:14px;font-weight:550;display:block}.goal-card .numbers{font-size:32px;line-height:1.25;margin:20px 0 16px;font-variant-numeric:tabular-nums}.goal-card details{font-size:13px;margin-top:18px}.goal-progress{display:flex;align-items:center;gap:12px}.goal-progress span{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}.goal-progress progress{flex:1;min-width:0}.schedule-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:12px}.day{padding:14px 16px;background:var(--surface);border-radius:12px;min-width:0}.day h3{font-size:14px;margin:0 0 12px;display:flex;justify-content:space-between;gap:8px}.day.today h3{color:var(--accent)}.day>p{margin:0;font-size:12px}.day .slot{padding:10px 0;background:transparent;margin:0 0 8px;border-radius:0}.slot+ .slot{border-top:1px solid var(--line)}.slot span{font-size:14px}.slot small{font-size:11px}.slot details{font-size:12px;margin-top:8px}table{font-size:13px;margin:12px 0;font-variant-numeric:tabular-nums}td,th{padding:6px 8px;line-height:1.35}table input{padding:5px 8px;font-size:13px;margin:0}table button{font-size:12px;padding:5px 10px;margin:0}.task-row{gap:10px;padding:5px 0;font-size:13px}.task-row input{padding:5px 8px;font-size:13px;margin:0}.task-row button{padding:5px 10px}.scale{max-width:400px}.task-picker{display:grid;grid-template-columns:repeat(auto-fill,minmax(70px,1fr));gap:6px}.task-picker .check{margin-top:0;padding:7px;background:var(--surface);border-radius:6px}.table-scroll{overflow-x:auto}@media(min-width:1600px){.goal-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.schedule-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:900px){header{flex-wrap:wrap;padding:16px 20px;gap:12px}.account-card{margin-left:auto}.plan-columns{gap:24px}.schedule-grid{grid-template-columns:1fr}main{padding:20px}}@media(max-width:650px){nav{order:3;width:100%;margin:0}.brand{margin-right:auto}.account-card{padding:8px 10px;gap:8px;order:2;margin:0 0 0 auto}.theme-toggle{font-size:12px}.account-info{min-width:0}.account-info select{max-width:150px}.plan-columns{grid-template-columns:1fr}.heading h1{font-size:23px}.goal-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr))}.schedule-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr))}main{padding:16px}.columns:not(.plan-columns){grid-template-columns:1fr}}
/* Separate centered planning boards */
.profile-cards{display:flex;align-items:center;gap:8px}.profile-card{display:flex;align-items:center;min-height:42px;padding:10px 14px;border-radius:10px;background:var(--surface);font-size:14px;white-space:nowrap}.profile-name{font-weight:550}.profile-student{padding:0 10px}.profile-student select{background:transparent;margin:0;padding:8px 4px;width:auto;max-width:180px;font-size:14px}.profile-exit{padding:0}.profile-exit button{margin:0;padding:10px 14px;background:transparent;color:var(--muted);font-size:14px;font-weight:500}.board-page{display:flex;flex-direction:column;min-height:calc(100svh - 90px);padding:32px 24px 64px}.planning-board{width:100%;max-width:924px;margin:auto}.board-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;max-width:924px;margin:0 auto 40px}.week-switch{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:14px;font-variant-numeric:tabular-nums}.week-switch a{padding:8px;font-size:20px;line-height:1}.week-switch time{white-space:nowrap}.board-actions{display:flex;align-items:center;gap:8px}.board-actions button{margin:0;font-size:14px;padding:9px 14px}.card-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:24px;max-width:924px;margin:0 auto}.board-card{min-width:0;margin:0;background:var(--surface);border-radius:14px;padding:24px;overflow-wrap:anywhere}.board-card.goal-card{min-height:188px}.board-card.goal-card>strong{font-size:15px;font-weight:550;line-height:1.55;display:block}.board-card.goal-card .numbers{margin:24px 0 18px;font-size:36px}.board-card.day{min-height:166px;padding:20px 22px}.board-card.day h3{font-size:14px;line-height:1.5}.board-card.day .slot{margin-top:16px;padding:0}.board-card.day .slot+.slot{padding-top:14px}.board-card.day .slot>strong{font-size:17px;font-weight:550;font-variant-numeric:tabular-nums}.board-card.day .slot>span{font-size:14px;margin-top:2px}.board-card.day .slot>small{margin-top:4px}.board-card.day>p{padding-top:16px}.board-editor{padding-top:18px;font-size:13px}.board-editor label{font-size:13px}.board-editor input,.board-editor select{background:var(--paper);font-size:14px;padding:8px}.board-editor button{font-size:13px;padding:8px 12px;margin-top:12px}.board-create{max-width:520px;padding:24px;background:var(--surface);border-radius:14px;margin:48px auto 0}.board-create input,.board-create select{background:var(--paper)}.card-board>.empty{grid-column:1/-1;text-align:center;padding:50px 0}.board-page>.notice{width:100%;max-width:980px}.profile-card:hover{color:var(--ink)}@media(max-width:1100px){header{gap:12px;padding:18px 24px}.profile-card{padding:9px 11px}.profile-exit{padding:0}.profile-student{padding:0 6px}nav{margin-left:0;gap:2px}nav a{font-size:14px;padding:8px 10px}.theme-toggle{font-size:12px;padding:9px}}@media(max-width:750px){header{flex-wrap:wrap}.brand{margin-right:auto}.profile-cards{margin-left:auto;order:2}nav{order:3;width:100%;margin:0;justify-content:center}nav a{flex:1;text-align:center}.board-page{min-height:calc(100svh - 170px);padding:28px 18px 48px}.board-toolbar{flex-wrap:wrap;justify-content:center;gap:16px;margin-bottom:28px}.card-board{gap:18px}.board-card{padding:22px}}@media(max-width:590px){.profile-cards{width:100%;justify-content:flex-end}.profile-card{min-height:38px;font-size:13px}.profile-student select{font-size:13px;max-width:160px}.profile-exit button{font-size:13px;padding:9px 12px}.board-toolbar{flex-direction:column}.board-page{padding:24px 16px 40px}.board-actions{justify-content:center}.board-create{padding:20px}.board-card.goal-card{min-height:178px}.week-switch{gap:16px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.profile-cards .profile-exit{margin-left:0}.profile-name{display:block;max-width:180px;overflow:hidden;text-overflow:ellipsis;line-height:22px}@media(max-width:590px){.profile-name{max-width:100px}}

@media(max-width:980px){.planning-board{max-width:608px}.card-board{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.planning-board{max-width:292px}.card-board{grid-template-columns:minmax(0,1fr)}}
/* Center the complete set of cards, including an incomplete final row */
body:has(.board-page){height:100svh;display:flex;flex-direction:column}body:has(.board-page)>header{flex-shrink:0}main.board-page{min-height:0;flex:1;position:relative;padding:0;display:flex}.planning-board{max-width:none;width:100%;margin:0;flex:1;min-height:0;display:flex;flex-direction:column}.board-toolbar{align-self:flex-start;flex:none;margin:0;padding:0 32px 12px;max-width:none;display:block}.week-switch{gap:6px;background:var(--surface);padding:4px;border-radius:10px;width:fit-content;color:var(--ink)}.week-switch a{border-radius:8px;padding:8px 12px}.week-switch a:hover{background:var(--paper)}.week-switch time{padding:0 8px}.card-board{display:flex;flex-wrap:wrap;justify-content:center;align-content:center;align-items:stretch;gap:24px;width:min(924px,calc(100% - 48px));max-width:924px;flex:none;margin:auto;padding:24px 0}.board-card{flex:0 0 calc((100% - 48px)/3);max-width:292px}.board-card.goal-card{position:relative;isolation:isolate;background:var(--surface);min-height:174px;overflow:hidden}.goal-card::before{content:"";position:absolute;inset:0 auto 0 0;width:var(--goal-fill,0%);background:var(--goal-tint);z-index:-1;pointer-events:none}.board-card.goal-card .numbers{margin:24px 0 8px}.board-actions{position:fixed;right:32px;bottom:32px;z-index:10;display:flex;gap:12px;margin:0}.board-actions .round-action{display:grid;place-items:center;width:54px;height:54px;padding:0;margin:0;border-radius:50%;box-shadow:0 4px 18px #0002}.round-action[aria-pressed=true]{background:var(--warm);color:var(--ink)}.material-symbols-outlined{font-family:'Material Symbols Outlined';font-weight:400;font-style:normal;font-size:26px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;font-feature-settings:'liga';-webkit-font-smoothing:antialiased}.profile-name{display:flex;align-items:center;gap:9px;max-width:230px;line-height:22px}.profile-name span{min-width:0;overflow:hidden;text-overflow:ellipsis}.profile-avatar{width:28px;height:28px;object-fit:cover;border-radius:50%;flex:none}nav{margin-left:0}header{gap:16px}.board-create{flex:none;width:min(520px,calc(100% - 32px));margin:24px auto 96px}.board-page>.notice{flex:none;margin:12px 32px;width:auto}body:has(.board-page):has(.board-create:not([hidden])){height:auto;min-height:100svh}.card-board>.empty{flex-basis:100%;text-align:center;margin:0}@media(max-width:980px){.card-board{width:min(608px,calc(100% - 36px))}.board-card{flex-basis:calc((100% - 24px)/2)}}@media(max-width:650px){.card-board{width:min(292px,calc(100% - 32px))}.board-card{flex-basis:100%}.board-toolbar{padding:0 16px 12px}.board-actions{right:20px;bottom:max(20px,env(safe-area-inset-bottom));gap:10px}.board-actions .round-action{width:50px;height:50px}.profile-name{max-width:180px}.card-board{padding-bottom:80px}}@media(prefers-reduced-motion:no-preference){.goal-card::before{transition:width .2s ease}}
header{width:100%;margin:0}main.board-page{width:100%;margin:0}
@media(max-width:650px){header .profile-cards{width:auto;margin-left:auto;order:0}header .theme-toggle{margin-right:auto}.board-page .board-actions{flex-direction:row}}

/* Calendar controls do not participate in card centering */
.board-toolbar{position:absolute;top:0;left:0;z-index:2}.card-board{padding:24px 0}.schedule-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-content:normal}.schedule-board .board-card{max-width:none}.board-actions{align-items:center}.board-actions #board-edit{width:42px;height:42px}.board-actions #board-edit .material-symbols-outlined{font-size:22px}.week-switch a{display:grid;place-items:center;padding:8px}.week-switch a .material-symbols-outlined{font-size:24px}@media(max-width:980px){.schedule-board{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.schedule-board{grid-template-columns:minmax(0,1fr)}.board-actions #board-edit{width:38px;height:38px}}.planning-board:has(.card-board.is-editing),.planning-board:has(.board-create:not([hidden])){padding-top:64px}
html.modal-open{overflow:hidden}.create-dialog{width:min(480px,calc(100% - 32px));max-height:calc(100dvh - 48px);margin:auto;padding:24px;border:0;border-radius:16px;color:var(--ink);background:var(--paper);overflow-y:auto;box-shadow:0 20px 80px #0004}.create-dialog::backdrop{background:rgb(0 0 0 / .55)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.dialog-heading h2{margin:0;font-size:21px}.dialog-close{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;padding:0;margin:0}.dialog-close .material-symbols-outlined{font-size:22px}.create-dialog form>label:first-of-type{margin-top:0}.create-dialog form>button{width:100%}@media(max-width:480px){.create-dialog{padding:20px;max-height:calc(100dvh - 32px)}}

.board-card.goal-card{height:152px;min-height:152px}.board-card.goal-card>strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}.board-card.goal-card .numbers{margin:24px 0 0}.goals-board.is-editing .goal-card{height:auto;min-height:400px}

/* Analytics and editing workspaces */
.analytics-layout,.editing-layout{width:min(1200px,100%);margin:0 auto}.analytics-toolbar{display:flex;align-items:center;gap:12px;margin:0 0 20px}.analytics-toolbar label{margin:0;color:var(--muted)}.analytics-toolbar select{width:auto;margin:0;padding:8px 12px}.analytics-top,.editing-plan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.analytics-card,.workspace-card{background:var(--surface);border-radius:18px;padding:26px;min-width:0;margin-bottom:20px}.card-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.card-heading h2{font-size:20px;margin:0;white-space:nowrap}.card-heading select{width:auto;max-width:240px;margin:0;background:var(--field);font-size:13px;padding:8px 10px}.card-filters{display:flex;gap:8px;min-width:0}.metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 26px}.metric{display:flex;flex-direction:column;gap:4px;min-width:0}.metric strong{font-size:32px;font-weight:600;line-height:1.2;font-variant-numeric:tabular-nums;letter-spacing:-1px}.metric span,.metric small{font-size:12px;line-height:1.4;color:var(--muted)}.metric small{font-size:11px}.analytics-chart{min-height:180px}.analytics-chart svg{display:block}.analytics-chart .chart-legend{margin:8px 0 0}.chart-empty{min-height:180px;display:grid;place-items:center;text-align:center;color:var(--muted);font-size:14px;margin:0;line-height:1.5}.chart-note{display:flex;justify-content:space-between;gap:16px;font-size:12px;color:var(--muted);margin-top:12px}.chart-note a{color:var(--accent);white-space:nowrap}.rhythm-calendar{display:flex;gap:12px;padding:8px 0 12px;overflow-x:auto}.calendar-day-labels{display:grid;grid-template-rows:repeat(7,1fr);gap:5px;flex:none;font-size:11px;color:var(--muted);padding:0;min-height:188px}.calendar-day-labels span{display:flex;align-items:center}.activity-calendar{display:flex;gap:6px;flex:1;min-width:210px}.calendar-week{display:grid;grid-template-rows:repeat(7,1fr);gap:5px;flex:1;min-width:8px}.calendar-day{display:block;min-height:22px;background:var(--field);border-radius:4px}.calendar-day.studied{background:var(--accent)}.calendar-day.outside{visibility:hidden}.calendar-caption{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:var(--muted);margin-top:4px}.calendar-key{display:flex;align-items:center;gap:6px}.calendar-key i{display:inline-block;width:9px;height:9px;background:var(--accent);border-radius:2px}.task-analytics .metric-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.analytics-task-picker{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 26px}.task-chip{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;padding:8px 10px;border-radius:8px;background:var(--field);color:var(--ink);font-size:12px;min-width:76px}.task-chip small{font-size:10px;color:var(--muted)}.task-chip[aria-pressed=true]{background:var(--accent);color:var(--accent-ink)}.task-chip[aria-pressed=true] small{color:var(--accent-ink)}.task-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.task-detail-heading h3{font-size:20px;margin:0}.task-detail-heading .muted{font-size:12px}.task-detail-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(180px,1fr);gap:36px;align-items:start}.task-breakdown h3{font-size:13px;font-weight:500;margin:0 0 16px;color:var(--muted)}.result-bar{display:flex;height:9px;border-radius:5px;overflow:hidden;background:var(--field);margin-bottom:18px}.result-bar .full{background:var(--accent)}.result-bar .partial{background:color-mix(in srgb,var(--accent) 40%,var(--field))}.result-bar .zero{background:var(--muted)}.breakdown-row{display:flex;justify-content:space-between;gap:12px;font-size:13px;margin:12px 0}.breakdown-row strong{font-variant-numeric:tabular-nums;font-weight:550}.breakdown-row.skipped{color:var(--muted)}.section-tabs{margin:0 0 24px;gap:8px;flex-wrap:wrap}.section-tabs a{font-size:14px}.section-tabs a.active{background:var(--warm)}.record-editor{margin:0}.record-editor>summary{display:flex;align-items:center;gap:20px;padding:12px 0;list-style:none;width:100%;font-size:13px}.record-editor>summary::after{content:'+';margin-left:auto;color:var(--muted)}.record-editor[open]>summary::after{content:'−'}.record-editor>summary::-webkit-details-marker{display:none}.record-editor>summary time{flex:none;color:var(--muted);font-variant-numeric:tabular-nums}.record-editor>summary span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.record-editor[open]{padding-bottom:24px}.record-form{max-width:640px}.workspace-card input,.workspace-card select{background:var(--field)}.score-editor{max-width:420px}.score-editor select{margin:0;padding:5px 8px;font-size:13px}.score-editor td,.score-editor th{border:0;padding:4px 8px}.editing-week{margin:0 0 20px}.subject-workspace{max-width:860px}.subject-workspace>.card{background:var(--surface);border-radius:18px;padding:26px}.subject-settings{background:var(--surface);padding:22px 26px;border-radius:16px;margin:16px 0}.subject-settings input,.subject-settings select,.subject-settings .task-picker .check{background:var(--field)}.subject-name-form{display:flex;align-items:end;gap:12px;margin-bottom:24px}.subject-name-form label{flex:1}.subject-name-form button{margin:0;flex:none}.task-row .task-name-input{width:120px;flex:1}.subject-settings summary{font-size:14px}.subject-settings>summary{font-size:18px}.editing-layout .workspace-card>h2{font-size:20px}.editing-plan-grid summary{white-space:normal}.workspace-card .row>label{margin-top:12px}header nav{flex-wrap:wrap}
@media(max-width:1000px){.analytics-card,.workspace-card{padding:22px}.card-heading{flex-wrap:wrap;gap:10px}.card-heading select{max-width:100%}.metric strong{font-size:28px}.card-filters{flex-wrap:wrap}.card-heading h2{font-size:18px}}@media(max-width:750px){.analytics-top,.editing-plan-grid{grid-template-columns:1fr;gap:0}.task-detail-grid{grid-template-columns:1fr;gap:24px}.task-analytics .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.analytics-card,.workspace-card{padding:20px;border-radius:14px}.calendar-day-labels{min-height:176px}.calendar-day{min-height:20px}.card-filters{width:100%}.card-filters select{flex:1;max-width:100%;min-width:0}.record-editor>summary{gap:12px;flex-wrap:wrap}.record-editor>summary span{white-space:normal}.section-tabs{justify-content:flex-start;width:100%;order:0}.section-tabs a{flex:none;padding:8px 10px}.subject-name-form{flex-wrap:wrap}.subject-name-form label{min-width:180px}.task-detail-heading{align-items:start;flex-direction:column}.analytics-chart{min-height:150px}.chart-empty{min-height:150px}.metric-grid{gap:10px}.metric strong{font-size:26px}}@media(max-width:480px){header nav a{flex:0 1 auto;font-size:12px;padding:7px 9px}header nav{justify-content:flex-start}.card-heading select{width:100%;max-width:100%}.card-heading h2{white-space:normal}.chart-note{flex-wrap:wrap}.subject-workspace>.card,.subject-settings{padding:20px}}

.record-title{font-size:12px;color:var(--muted);margin-left:auto;max-width:350px}.record-editor>summary .record-title{white-space:nowrap}.record-editor>summary::after{margin-left:8px}.record-editor>summary{justify-content:flex-start}.record-editor>summary:not(:has(.record-title))::after{margin-left:auto}

.chart-legend{display:flex;flex-wrap:wrap;gap:10px 18px}.chart-legend span{display:inline-flex;align-items:center;gap:6px}.chart-legend i{display:inline-block;width:14px;height:3px;border-radius:2px}.mobile-task-select{display:none}@media(max-width:750px){.analytics-task-picker{display:none}.mobile-task-select{display:flex;align-items:center;gap:12px;margin:0 0 24px;font-size:13px;color:var(--muted)}.mobile-task-select select{margin:0;width:auto;min-width:100px;background:var(--field)}}

.settings-layout{width:min(720px,100%);margin:0 auto}main:has(.settings-layout)>.heading{width:min(720px,100%);margin:0 auto}

/* Welcome spacing and settings heading alignment. */
html[data-fixed-theme] main{max-width:1200px;padding:clamp(48px,12vh,120px) 24px 64px}.welcome{max-width:680px;margin:0 auto}.welcome h1{margin:0 0 28px;font-size:clamp(34px,5vw,48px);line-height:1.16}.welcome p{margin:0 0 24px;max-width:540px}.welcome iframe{max-width:100%}.settings-heading{align-items:center;margin:12px 0 32px}.settings-heading h1,.settings-heading button{margin:0}
