#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}
