#route-page{display:none;position:absolute;inset:0;z-index:40;background:var(--paper);flex-direction:column}#route-page.visible{display:flex}.in-route #nav{display:none}.route-header{height:70px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 24px;border-bottom:1px solid #e4e6dc;flex:none}.route-header>button{min-width:44px;min-height:44px;font-size:14px}.route-header>span{font-size:13px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#route-page #sheet-body{width:100%;max-width:900px;margin:0 auto;padding:28px 24px 100px;overflow:auto;flex:1;scrollbar-width:thin}#route-page .sheet-back{display:none}.study-tools{display:flex;gap:12px;position:sticky;bottom:-80px;background:var(--paper);border-top:1px solid var(--line);padding:14px 0;margin-top:28px}.study-tools button{flex:1;display:flex;align-items:center;justify-content:center;gap:9px;padding:14px;background:#e6ecdd;border-radius:10px}.study-tools button[aria-pressed=true]{background:var(--ink);color:white}.study-tools button svg{width:20px}.profile-identity{display:flex;width:100%;align-items:center;text-align:left;gap:18px;margin:32px 0}.profile-identity img{width:68px;height:68px;border-radius:50%;object-fit:cover}.profile-identity>span{flex:1}.profile-identity h2{font-size:24px}.profile-identity small{display:block;color:var(--muted);font-size:11px;margin:6px 0}.profile-identity i{font-style:normal;background:#e5e9dc;font-size:10px;padding:3px 8px;border-radius:5px}.profile-achievements{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:28px 0}.profile-achievements button{border:1px solid #e4e7dc;border-radius:16px;background:var(--card);padding:23px 8px;display:flex;flex-direction:column;align-items:center;gap:12px}.profile-achievements svg{color:#789067;width:28px;height:28px}.profile-achievements strong{font-size:28px;font-weight:500}.profile-achievements small{font-size:11px;margin-left:4px}.profile-achievements span{font-size:11px;color:var(--muted)}.profile-groups section{background:var(--card);border-radius:15px;padding:4px 18px;margin:18px 0;border:1px solid #e6e7de}.profile-row{display:flex;width:100%;align-items:center;gap:13px;padding:19px 0;text-align:left;border-bottom:1px solid var(--line)}.profile-row:last-child{border:0}.profile-row>span{flex:1}.profile-row b{font-size:14px;font-weight:500}.profile-row small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.profile-row>svg:last-child{width:14px}.favourite-item,.ai-context{padding:22px;background:var(--card);border:1px solid var(--line);border-radius:13px;margin:18px 0}.favourite-item p,.ai-context p{font-size:14px;line-height:1.9;margin-top:12px}.favourite-item small,.ai-context small{font-size:11px;color:var(--muted)}.ai-config{font-size:12px;margin-top:24px;padding:15px;border:1px solid var(--line);border-radius:10px}.ai-config p{margin-top:10px}#ai-answer{white-space:pre-wrap;font-size:14px;line-height:1.9;margin-top:18px}.stats-page .topline,.stats-page .local-result-banner{display:none}.study-title{gap:8px}.study-title h3{flex:1}.study-title .icon-btn{flex:none}.check{pointer-events:none}.stats-page .line-chart{max-width:650px;display:block}.profile-groups{max-width:900px}
@media(min-width:768px){.route-header{padding-left:max(32px,calc((100vw - 1000px)/2));padding-right:max(32px,calc((100vw - 1000px)/2))}#route-page #sheet-body{padding-top:40px}.profile-groups{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}.profile-achievements{max-width:700px}.profile-identity{margin:45px 0}.profile-groups section{margin:0}.recall-card{min-height:220px}.recall-card h3{font-size:38px}}
@media(prefers-reduced-motion:no-preference){#route-page.visible{animation:page-enter 180ms ease-out}@keyframes page-enter{from{opacity:.5;transform:translateX(14px)}to{opacity:1;transform:translateX(0)}}}

:root {
  --footer-white: #fffefb;
  --footer-green: #e4eee1;
  --footer-wash: linear-gradient(to bottom, var(--paper), var(--footer-white) 28%, var(--footer-green));
}

.phone,
#route-page {
  background: var(--footer-wash) bottom / 100% clamp(150px, 29dvh, 260px) no-repeat var(--paper);
}
.point-panel{margin:20px 0;padding:16px;border:1px solid #d8dfd2;border-radius:16px;background:#fffefb;color:#253e32}.point-panel .section-head{margin:0 0 12px}.point-count,.point-row small,.point-settings small{color:#566457;font-size:.8rem}.point-row{display:flex;align-items:center;gap:8px;border-top:1px solid #e3e7dc;padding:9px 0}.point-row details{flex:1;min-width:0}.point-row summary{display:block;cursor:pointer}.point-row summary::-webkit-details-marker{display:none}.point-line{display:flex;align-items:baseline;gap:8px}.point-line b,.point-row small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.point-line b{flex:1}.point-line em{font-size:.8rem;font-style:normal;flex:none}.point-line .due{color:#a43b34}.point-line .done{color:#826100}.point-row small,.point-settings small{display:block;line-height:1.65}.point-detail{padding:10px 0;overflow-wrap:anywhere}.point-mark{padding:8px;border:1px solid #adbeac;border-radius:8px}.point-fields,.point-settings label{display:flex;gap:6px;margin:8px 0}.point-fields input,.point-settings input,.point-settings select{background:white;color:inherit;padding:7px;border:1px solid #ccd6c8;border-radius:6px;min-width:0}.point-fields input{width:50%}.point-settings summary{cursor:pointer}.point-panel h4{margin:14px 0 4px}
#nav{grid-template-columns:repeat(3,1fr)}.field[hidden]{display:none}.day-meters,.nb-actions,.file-row{display:flex;gap:12px;flex-wrap:wrap}.day-meters>div{flex:1;background:#e7eee2;border-radius:14px;padding:16px}.day-meters strong,.day-meters progress{display:block;margin-top:6px}.day-meters progress{width:100%;height:5px;accent-color:#526f59}.learn-item,.file-row{padding:12px 0;border-bottom:1px solid #e4e7dd}.learn-item summary,.point-panel summary{cursor:pointer}.learn-item small{color:#586b5a}.notebook-cover{background:linear-gradient(100deg,rgba(0,0,0,.15) 5%,transparent 9%),var(--cover)!important;color:white;overflow-wrap:anywhere}.notebook-cover b{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.file-row{align-items:center}.file-row span{flex:1;overflow-wrap:anywhere}.nb-actions>button{flex:1;min-width:92px}.point-panel>h3{margin-bottom:10px}.nb-quiz [type=radio]{width:auto}.file-row button{flex:none}.day-work{margin-top:18px}.point-panel [role=status],.nb-quiz [role=status]{color:#375744;margin-top:8px;white-space:pre-wrap}.point-panel input[type=color]{height:42px}.point-panel textarea{width:100%}
.cover-picker{border:0;padding:0;margin:16px 0;min-width:0}.cover-picker legend{padding:0;margin-bottom:6px}.cover-chips{display:flex;flex-wrap:nowrap;align-items:center;gap:4px;overflow-x:auto;max-width:100%}.cover-chip,.cover-custom{position:relative;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;min-height:42px}.cover-chip,.cover-custom{flex:0 0 38px}.cover-chip input,.cover-custom input[type=color]{position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;padding:0;cursor:pointer}.cover-chip i{width:25px;height:25px;box-sizing:border-box;border-radius:50%;background:var(--chip);border:1px solid #0002;pointer-events:none}.cover-chip input:checked+i,.cover-custom.chosen span{outline:2px solid #304936;outline-offset:3px}.cover-chip:focus-within,.cover-custom:focus-within{box-shadow:inset 0 0 0 1px #627961;border-radius:8px}.cover-custom span{background:#e6e9e0;width:25px;height:25px;display:grid;place-items:center;border-radius:50%;color:#304936}.cover-custom span::before,.cover-custom span::after{content:"";grid-area:1/1;width:11px;height:1.5px;background:currentColor;border-radius:1px}.cover-custom span::after{transform:rotate(90deg)}.cover-custom.chosen span{background:var(--custom-color);color:var(--custom-ink)}.cover-picker output{display:block;font-size:.8rem;color:#536856;margin-top:6px}.notebook-cover b{color:var(--cover-ink,#fff)}
.review-book-row{display:grid;grid-template-columns:minmax(0,1fr) auto 16px;align-items:center;gap:10px;width:100%;min-height:52px;padding:12px 2px;text-align:left;border:0;border-top:1px solid #e3e7dc;background:transparent;color:inherit}.review-book-row strong{overflow-wrap:anywhere}.review-book-row span{font-size:.85rem;color:#536856}.review-book-row svg{width:16px;height:16px}.review-book-row:hover,.review-book-row:focus-visible{background:#eff4eb}
.import-box{border:1px solid #cbd6c7;border-radius:12px;background:#fffefa;padding:12px}.import-pick{position:relative;display:flex;align-items:center;min-height:40px;cursor:pointer}.import-pick input[type=file]{position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}.import-pick span{background:#e8eee3;padding:7px 12px;border-radius:8px}.import-pick:focus-within span{outline:2px solid #526d59}.pending-files:not(:empty){margin-top:10px;border-top:1px solid #dde5d9;padding-top:10px}.pending-files ul{padding-left:24px;margin:6px 0 0;max-height:16rem;overflow:auto}.pending-files li{overflow-wrap:anywhere;padding:3px 0}
.pending-files ul{padding-left:0}.pending-files li{display:flex;align-items:center;gap:12px}.pending-files li span{flex:1;min-width:0}.pending-files li button{flex:none;min-height:36px;padding:4px 10px}
.quiz-option:has(input:checked){background:#dfeada;color:#243f2a;font-weight:700}.quiz-option{display:flex;align-items:center;gap:10px;padding:14px;border:1px solid #cdd8ca;border-radius:12px;margin:8px 0;cursor:pointer}.quiz-option:has(input:checked){border-color:#52745a}.nb-quiz button:active{transform:scale(.98);background-color:#d2dfcd}.quiz-feedback:not(:empty){padding:16px;background:#eef3e9;border-radius:12px;margin:12px 0}.quiz-feedback p{margin:8px 0;white-space:pre-line}.nb-quiz [hidden],[data-sub][hidden]{display:none!important}.study-banner{width:100%;text-align:left;cursor:pointer}.study-banner span{display:block;color:white}.nb-quiz .quiz-option input{width:auto}

.in-route #nav.subject-mode{display:grid;z-index:45}
#sheet-body:has([data-notebook]){padding-bottom:calc(120px + env(safe-area-inset-bottom))}
.practice-room{margin:28px 0 18px}.practice-room h3{margin:0 0 14px;font-size:1.08rem}
.practice-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.practice-mode{position:relative;display:flex;align-items:flex-start;flex-direction:column;gap:24px;text-align:left;border-radius:17px;padding:22px;background:var(--mode-paper);border:1px solid var(--mode-line);color:#263c31}
.practice-mode.cloze{--mode-paper:#e7eee2;--mode-line:#cddbc7;--mode-accent:#426448}
.practice-mode.choice{--mode-paper:#f4ecdf;--mode-line:#e5d8c4;--mode-accent:#866c47}
.practice-mode.voice{--mode-paper:#e7eeef;--mode-line:#cfdee0;--mode-accent:#476a73}
.practice-symbol{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:#fff9;color:var(--mode-accent)}
.practice-symbol svg{width:27px;height:27px}.practice-copy{display:grid;gap:5px}.practice-copy b{font-size:1.17rem}.practice-copy small{font-size:.86rem;color:#526059}.practice-mode .practice-arrow{position:absolute;right:18px;top:20px;width:16px;color:var(--mode-accent)}
.practice-library{margin-top:20px;display:flex;border:1px solid #d9dfd3;border-radius:14px;background:#fffefa;padding:5px}
.practice-library button{display:flex;gap:10px;align-items:center;text-align:left;flex:1;padding:13px;color:#415b49}.practice-library button+button{border-left:1px solid #dce2d7}.practice-library svg{width:18px;height:18px}.practice-library svg:last-child{margin-left:auto;width:14px}
.practice-room button:hover{filter:brightness(.98)}.practice-room button:active{transform:scale(.99)}
@media(max-width:640px){.practice-modes{grid-template-columns:1fr;gap:10px}.practice-mode{flex-direction:row;align-items:center;gap:15px;padding:16px}.practice-mode .practice-arrow{position:static;margin-left:auto}.practice-room{margin-top:20px}}

.plan-columns>*{min-width:0}
.next-task{padding:clamp(20px,4vw,32px);border-radius:20px;background:#284d3b;color:#fffefa;margin:0 0 16px;overflow-wrap:anywhere}
.next-task small{font-size:.88rem;color:#dcebd6}.next-task h3{font-size:clamp(1.38rem,3vw,2rem);margin:6px 0}.next-task p{margin:8px 0}
.next-task progress{display:block;width:min(100%,340px);height:7px;accent-color:#b5d49f;margin:12px 0 18px}
.next-task button{display:block;margin-top:14px;min-height:44px;background:#edf3e6;color:#244431;padding:10px 17px;border-radius:12px;font-weight:650;text-align:left}
.plan-columns .study-banner{width:100%;text-align:left}.day-meters>div{min-width:0}
#nav button{font-size:12px;color:#51624f}
:where(button,summary,input,select,textarea):focus-visible{outline:3px solid #447354;outline-offset:2px}
.text-link,.point-mark,.file-row button,.learn-item summary,.point-settings summary,[data-backup-controls] summary{min-height:44px;align-content:center}
.verify-point{min-width:0;margin:16px 0;padding:12px 16px;border-radius:14px;border:1px solid #becfba;background:#fbfcf7}
.verify-point legend label{display:inline-flex;align-items:center;gap:8px;padding:4px 8px;min-height:44px}
.verify-point legend input{width:18px;height:18px;accent-color:#3c6046}.verify-point blockquote,.evidence{margin:10px 0;padding:8px 12px;border-left:3px solid #8ba482;background:#eef3e9;overflow-wrap:anywhere}
.verify-point .field{display:grid;margin:8px 0}.evidence p{white-space:pre-wrap}.verify-point small,.point-row small,.hint{color:#526554}
.point-row .done{color:#795707}.point-row .due{color:#a03329}.quiz-feedback strong{font-size:1.08rem}.quiz-feedback details{margin:16px 0}
.quiz-feedback .nb-actions,.nb-draft:not(:empty){margin-top:16px}.point-panel,.nb-quiz,.review-book-row,.study-banner{overflow-wrap:anywhere}
.week-history{list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(56px,1fr));gap:6px;padding:0}.week-history li{display:grid;padding:8px 3px;gap:5px;text-align:center;background:#edf3e9;border-radius:8px;font-size:.82rem}
@media(min-width:920px){.plan-columns{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(220px,1fr);gap:28px;align-items:start}.plan-columns aside{margin-top:18px}.plan-columns aside .forest{margin-top:0}}
@media(max-width:480px){.file-row span{flex:1 0 100%}.point-fields{grid-template-columns:minmax(0,1fr)}.verify-point input:not([type=checkbox]){min-width:0;width:100%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
.answer-compare{margin:12px 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,165px),1fr));gap:8px}.answer-compare>div{padding:10px 14px;background:#f0f3eb;border-radius:10px}
.answer-compare dt{font-size:.85rem;color:#506451}.answer-compare dd{margin:4px 0;color:#263b32;white-space:pre-wrap}.quiz-feedback h4{margin:18px 0 4px}
.quiz-option small{margin-left:auto;color:inherit}.quiz-option.answer-right{border-color:#78926f;background:#edf4e9;color:#24472f}.quiz-option.answer-wrong{background:#f8eeea;color:#803c32;border-color:#bb8178}

/* Compact daily history above the work, and one source chooser for every file. */
[data-page=plan] .study-banner{width:100%;min-height:0;height:auto;text-align:left;display:grid;grid-template-columns:1fr auto;gap:4px 12px;padding:16px 20px;margin:12px 0 18px;background-position:center 45%;border-radius:16px}
.study-banner small{grid-column:1/-1}.study-banner strong{font-size:clamp(20px,3vw,27px)}.study-banner span{align-self:end}
.unified-import{margin:16px 0;padding:12px 16px}.unified-import summary,.more-study summary,.catalog-item summary{cursor:pointer;min-height:44px;align-content:center}
.unified-import>details>summary{font-weight:650;color:#284d3b;list-style:none}.unified-import>details>summary::-webkit-details-marker{display:none}
.source-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:6px 0 12px}.source-grid .import-pick,.source-grid>details{background:#edf2ea;border-radius:10px;padding:10px 12px;min-height:44px}.source-grid>details>summary{min-height:24px}.source-grid>details[open]{grid-column:1/-1}
.catalog-link,.more-study{width:100%;border:1px solid #cbd7c8;border-radius:14px;background:#f6f8f2;padding:12px 16px;color:#2b4936;text-align:left;margin:8px 0}
.catalog-link,.more-study>div,.catalog-item summary{display:flex;align-items:center;justify-content:space-between;gap:10px}.catalog-link small,.catalog-item form>label{display:block}.catalog-link small,.catalog-item summary small{color:#536957;font-size:.86rem}
.catalog-tools,.more-study span{display:flex;gap:8px;flex-wrap:wrap}.catalog-tools button,.more-study span button,.analysis-diff button,[data-catalog-learn]{background:#e7eee2;color:#294936;min-height:44px;border-radius:9px;padding:8px 14px}
.catalog-item{border-top:1px solid #d7dfd2;padding:8px 0}.catalog-item form input:not([type=checkbox]),.catalog-item textarea{display:block;width:100%;min-height:44px;margin:6px 0 16px}
.catalog-item textarea{min-height:6em}.catalog-item summary{display:list-item;overflow-wrap:anywhere}.catalog-item summary small{margin-left:12px}.catalog-item blockquote,.analysis-diff{padding:12px;background:#edf2e9;margin:12px 0;overflow-wrap:anywhere}
.more-study>div{border-top:1px solid #d7dfd2;padding:10px 0}.extra-panel p{margin:6px 0 12px}.catalog-item input[type=checkbox]{width:auto;height:auto}.catalog-item output{margin:8px}
@media(max-width:480px){.more-study>div{align-items:start;flex-direction:column}.study-banner span{font-size:.86rem}}
.book-info>strong,.book-info>small{display:block;overflow-wrap:anywhere}.book-info>strong{font-size:1rem}.book-info>small{font-size:.85rem;color:#546453;margin:5px 0}

.preview-notes>span{font-size:14px}
