/* Seven direct destinations, with short labels where the viewport is narrow. */
.bottom-nav .nav-short{display:none}
@media(max-width:599px){
 .app-shell:not(.onboarding)>.bottom-nav{gap:0;padding-left:max(2px,env(safe-area-inset-left));padding-right:max(2px,env(safe-area-inset-right))}
 .bottom-nav button{flex:1 1 0;padding:3px 0;min-width:0;min-height:48px;font:600 .78rem/1.2 var(--ui);gap:4px}
 .bottom-nav .nav-long{display:none}.bottom-nav .nav-short{display:block;letter-spacing:-.025em}
}
@media(max-width:359px){.bottom-nav button{font-size:.73rem}.bottom-nav button .jr-icon{width:20px;height:20px}}
@media(min-width:1024px) and (max-height:720px){.app-shell:not(.onboarding)>.bottom-nav{gap:4px;padding-top:12px}.bottom-nav button{min-height:58px;padding:6px 4px}}
/* Selection lives in the real timed column. A separate caption remains readable in fit-to-week. */
.planner-instruction{font-size:.84rem;color:var(--quiet);line-height:1.4;margin:1px 0 8px}.gesture-touch{display:none}
@media(pointer:coarse),(hover:none){.gesture-mouse{display:none}.gesture-touch{display:inline}}
.time-column{cursor:crosshair;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.time-column .time-event{cursor:pointer}.time-column:focus-visible{outline:2px solid var(--teal);outline-offset:-2px}
.slot-preview{position:absolute;inset-inline:1px;pointer-events:none;z-index:5;border:2px solid var(--action);border-radius:5px;background:color-mix(in srgb,var(--teal) 24%,transparent);min-height:3px;box-shadow:inset 0 0 0 1px var(--paper)}
.slot-caption{position:fixed;z-index:110;pointer-events:none;background:#214e43;color:#fff;padding:7px 11px;border:1px solid #9ebcad;border-radius:8px;box-shadow:0 3px 12px #102b2738;font:650 .86rem/1.15 var(--ui);white-space:nowrap;font-variant-numeric:tabular-nums}
.plan-stamp{display:grid;grid-template-columns:1fr auto;gap:4px 12px;align-items:baseline;background:var(--soft);border-inline-start:4px solid var(--teal);padding:12px 15px;border-radius:5px 12px 12px 5px}
.plan-stamp .eyebrow{grid-column:1/-1}.plan-stamp strong{font:650 1.12rem/1.4 var(--ui);font-variant-numeric:tabular-nums}.plan-stamp>span:last-child{font-size:.87rem;color:var(--quiet)}
.planning-form .field,.grade-editor .field{min-width:0}.planning-form input,.grade-editor input{min-width:0}.time-pair{grid-template-columns:repeat(2,minmax(0,1fr))}
.notebook-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 0 17px}.notebook-head>div{min-width:0}.notebook-head h1{margin:3px 0;font:500 clamp(1.65rem,4.8vw,2rem)/1.14 var(--display)}
.notebook-head p,.panel-title p,.grade-panel .notes-empty,.subject-report p,.settings-group>p{color:var(--quiet);font-size:.9rem;line-height:1.5}
.notebook-head .primary{flex-shrink:0;min-height:44px}
.notebook-layout,.grade-overview,.account-layout{display:grid;gap:14px;align-items:start}.notebook-layout>*,.grade-overview>*,.account-layout>*{min-width:0}
.grade-panel,.settings-group,.account-card{background:var(--paper);border:1px solid var(--rule);border-radius:15px;padding:clamp(14px,2.3vw,23px);box-shadow:var(--shadow)}
.panel-title{display:flex;align-items:center;gap:10px;margin-bottom:12px}.panel-title h2,.settings-group h2{font:600 1.13rem/1.3 var(--display);color:var(--ink);letter-spacing:-.015em}.panel-title p{font-size:.83rem;margin-top:2px}
.panel-icon{width:34px;height:34px;flex-shrink:0;border-radius:10px;display:grid;place-items:center;background:var(--select-surface);color:var(--active-ink)}
.panel-icon svg{width:22px;height:22px}.count-chip,.local-chip{font:650 .78rem/1.25 var(--ui);color:var(--active-ink);background:var(--select-surface);padding:3px 8px;border-radius:14px}.count-chip{margin-left:auto}
.subject-reports{display:grid;gap:9px}.subject-report{border:1px solid var(--rule);border-radius:11px;background:var(--soft);padding:11px 14px}.subject-report h3{font:650 1rem/1.35 var(--ui);margin:0 0 6px;overflow-wrap:anywhere}
.score-line,.weight-meta,.manual-result{display:flex;justify-content:space-between;align-items:baseline;gap:8px;flex-wrap:wrap}.score-line>span{font-size:.87rem;color:var(--quiet)}.score-line strong{font:650 1.25rem/1.2 var(--ui);color:var(--active-ink);white-space:nowrap;font-variant-numeric:tabular-nums}.score-line strong small{font:500 .8rem var(--ui);color:var(--quiet)}
.weight-progress{height:7px;border-radius:8px;margin:9px 0 5px;overflow:hidden;background:color-mix(in srgb,var(--teal) 16%,var(--paper))}.weight-progress>i{display:block;height:100%;border-radius:8px;background:var(--action)}.weighted-complete .weight-progress>i{background:#448565}
.weight-meta,.subject-report p,.manual-result{font-size:.81rem}.weight-meta>span,.subject-report p{color:var(--quiet)}.weight-meta b{color:var(--active-ink)}.subject-report p{margin:5px 0 0}.manual-result{padding:7px 0 0;border-top:1px solid var(--rule);margin-top:8px}
.grade-panel details>summary{cursor:pointer;font:650 .86rem/1.4 var(--ui);color:var(--active-ink);padding:8px 0}.more-reports>.subject-report{margin:6px 0}
.grade-panel .grade-filters{margin:8px 0 14px}.grade-panel .field,.settings-group .field,.account-card .field,.grade-editor .field,.planning-form .field{font-size:.88rem}
.grade-register .grade-list{display:grid;gap:7px}.record-v7{margin:0;padding:10px 9px}.record-v7>span:nth-child(2){overflow:hidden}
.record-v7 .grade-number{min-width:45px;font-size:1.05rem}.record-v7 strong{font-size:.96rem}.record-v7 small{font-size:.78rem}.record-v7 .jr-icon{width:16px;height:16px;color:var(--quiet);flex-shrink:0}
.record-tags{display:flex;gap:4px 6px;flex-wrap:wrap;margin-top:5px}.record-tags em{display:inline-flex;align-items:center;gap:4px;color:var(--quiet);font-size:.76rem;overflow-wrap:anywhere}.record-tags em+em:before{content:"·";padding-right:1px}.record-tags .weight-tag{font-weight:650;color:var(--active-ink)}.record-tags .jr-icon{width:13px;height:13px}
.exam-row{display:flex;width:100%;gap:10px;align-items:center;text-align:left;background:transparent;border-top:1px solid var(--rule);padding:9px 1px;color:var(--ink)}.exam-row>span:first-child{flex:1;min-width:0}.exam-row b,.exam-row small{display:block;overflow-wrap:anywhere}.exam-row b{font-size:.94rem}.exam-row small{font-size:.8rem;color:var(--quiet)}.add-sign{display:grid;place-items:center;width:29px;height:29px;background:var(--select-surface);color:var(--active-ink);border-radius:8px;font-size:1.15rem}
.grade-course{display:flex;gap:8px;align-items:center;color:var(--quiet);font-size:.88rem}.grade-course .jr-icon{width:18px;height:18px}
.grade-capacity{color:var(--quiet);background:var(--soft);border-inline-start:3px solid var(--teal);padding:8px 12px;font-size:.85rem;line-height:1.45;border-radius:3px 8px 8px 3px}
.grade-editor label small{font-weight:400;color:var(--quiet);font-size:.82rem}.editor-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.editor-actions button{flex:1}.grade-editor input:disabled,.grade-editor select:disabled{opacity:.78}
.account-card,.settings-group{display:grid;gap:12px}.account-card{border-top:3px solid var(--action)}.settings-group>h2,.settings-group>p{margin:0}.account-id,.account-study{display:flex;gap:14px;align-items:center}.account-id>div{min-width:0}.account-id h2,.account-study b{overflow-wrap:anywhere}.account-id h2{font:500 1.5rem/1.2 var(--display);margin:2px 0 6px}
.account-portrait{display:grid;place-items:center;width:64px;flex-shrink:0}.account-portrait svg{max-width:100%}.account-study{justify-content:space-between;border-top:1px solid var(--rule);padding-top:11px;flex-wrap:wrap}.account-study small,.account-study b{display:block}.account-study small{font-size:.8rem;color:var(--quiet)}.account-study b{font-size:.93rem}.account-study .secondary{min-height:40px;padding:7px 10px}
.settings-group .setting-row{width:100%;text-align:left;min-height:40px;padding:7px 0;color:var(--active-ink);font-size:.94rem}.integration-info{display:flex;align-items:center;justify-content:space-between;padding:9px 12px;border:1px solid var(--rule);background:var(--soft);border-radius:9px;gap:9px;flex-wrap:wrap}.integration-info span{font-size:.82rem;color:var(--quiet)}.backup-settings .text-danger{justify-self:start}
.grade-editor select,.grade-filters select,.planning-form select,.settings-group select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--quiet) 50%),linear-gradient(135deg,var(--quiet) 50%,transparent 50%);background-position:calc(100% - 16px) 52%,calc(100% - 11px) 52%;background-size:5px 5px;background-repeat:no-repeat;padding-right:32px}
[data-theme="dark"] .weight-progress>i{background:var(--teal)}[data-theme="dark"] .slot-preview{border-color:var(--teal)}[data-theme="dark"] .grade-panel .record-v7,[data-theme="dark"] .subject-report,[data-theme="dark"] .account-card{border-color:var(--rule)}
@media(max-width:510px){.notebook-head{flex-wrap:wrap;gap:9px}.notebook-head .primary{font-size:.9rem;min-height:40px;padding:8px 13px}.plan-stamp{grid-template-columns:1fr}.plan-stamp .eyebrow{grid-column:auto}.grade-filters.form-two{gap:8px}.grade-overview{gap:9px}}
@media(min-width:760px){.notebook-layout{grid-template-columns:minmax(260px,.9fr) minmax(0,1.2fr);gap:20px}.account-layout{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.grade-overview{gap:14px}}
@media(min-width:1130px){.notebook-layout{grid-template-columns:minmax(325px,.86fr) minmax(0,1.15fr)}.account-layout{max-width:1120px}}
