:root{--paper:#f5f7fb;--panel:#fff;--ink:#172b4d;--muted:#718097;--line:#e7ecf3;--blue:#4364ee;--violet:#8b5dc5;--soft:#f6f8fc}body{background:var(--paper);padding-bottom:108px}header{padding:18px 26px;background:var(--panel);border-bottom-color:var(--line)}.header-tools{display:flex;align-items:center;gap:9px}.header-tools>a{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;text-decoration:none;color:var(--muted);background:var(--soft);font-size:17px;font-weight:700}.brand{font-size:21px}.brand small{font-size:7px;letter-spacing:1.6px}.logo{background:linear-gradient(145deg,#213c63,#345181);border-radius:13px;width:40px;height:43px;box-shadow:0 5px 14px #1b335c1a}main{max-width:1080px;padding:30px 22px}.eyebrow{font-size:9px;letter-spacing:1.7px;color:#8995a9}h1{font-size:31px;letter-spacing:-1.1px}.subtitle{font-size:13px;margin-bottom:25px}.card{background:var(--panel);border:1px solid var(--line);border-radius:22px;padding:23px;margin-bottom:18px;box-shadow:0 6px 24px #18345e03}h2{font-size:17px;letter-spacing:-.45px}.row h2{line-height:1.4}.primary{background:var(--blue);border-color:var(--blue);box-shadow:0 5px 12px #4364ee1a}.primary:hover{filter:brightness(1.05)}button:hover:not(:disabled){border-color:#b5c1de}button,.button{border-radius:12px;transition:background .15s,box-shadow .15s}input,select,textarea{background:var(--soft);border-color:var(--line);color:var(--ink)}label{color:var(--muted)}.switch{background:#e9eef7;max-width:420px;margin-bottom:16px}.switch button.selected{color:var(--blue)}.timer-card{background:linear-gradient(125deg,var(--panel),#f4f7ff);position:relative;overflow:hidden}.timer-card:before{content:'';position:absolute;right:-65px;top:-85px;width:190px;height:190px;border-radius:50%;border:28px solid #4364ee05;pointer-events:none}#timer{font-size:54px;letter-spacing:-2.5px;padding-top:16px}#timer-note{font-size:12px;margin-bottom:22px}#stamp{max-width:460px;display:block;margin:8px auto 0;min-height:48px}#finish-manually{margin-top:9px;font-weight:500}.mini{background:var(--panel);padding:16px 18px;border-radius:17px;border-color:var(--line);box-shadow:0 3px 10px #1a355702;position:relative;margin-bottom:0;overflow:hidden}.mini:before{content:'';position:absolute;top:18px;bottom:18px;left:0;width:3px;border-radius:0 4px 4px 0;background:#b9c8ff}.mini:has(.gta):before{background:#d0b5eb}.mini strong{font-size:24px;margin:8px 0 2px;letter-spacing:-1px}.mini small{font-size:10px;line-height:1.6}.mini .tag{font-size:10px;padding:3px 7px}#today-cards{margin-bottom:19px}.section-title{font-size:14px;margin:24px 2px 11px}.booking{border:1px solid var(--line);border-radius:15px;padding:15px 16px;margin-top:12px;position:relative;background:var(--panel)}.booking:last-child{border:1px solid var(--line)}.booking-head{display:flex;gap:10px;align-items:center;justify-content:space-between}.booking-day{font-size:10px;color:var(--muted);font-weight:500}.booking-time-row{display:flex;align-items:center;gap:10px;margin-top:10px}.booking-clock{font-size:20px;font-weight:700;letter-spacing:-.7px;font-variant-numeric:tabular-nums}.booking-clock small{font-size:9px;font-weight:500;letter-spacing:0;color:var(--muted);display:block}.booking-arrow{color:#acb8c9;font-size:18px}.booking-duration{margin-left:auto;font-size:13px;font-weight:750;padding:6px 10px;background:var(--soft);border-radius:10px;white-space:nowrap}.booking-note{color:var(--muted);font-size:12px;white-space:pre-wrap}.booking .controls{border-top:1px solid var(--line);padding-top:8px;margin-top:12px}.booking .controls button{background:transparent;border-color:transparent;color:var(--muted);font-weight:600;min-height:30px}.booking .controls .danger{color:#bd6570;background:#fff7f8;border:0}.booking .controls button:hover{background:var(--soft)}.next-lesson{background:linear-gradient(135deg,#203654,#324e76);border:1px solid #203654;border-radius:20px;color:white;padding:21px 23px;margin:18px 0;box-shadow:0 8px 22px #19385f0e}.next-label{font-size:9px;letter-spacing:1.4px;font-weight:600;color:#c7d6ee;text-transform:uppercase;margin:0 0 8px}.next-title{font-size:21px;letter-spacing:-.6px;margin:3px 0 7px;font-weight:700}.next-info{font-size:12px;color:#d5e2f3;margin:0}.next-current{font-size:11px;color:#c6d7f0;padding-bottom:11px;margin-bottom:13px;border-bottom:1px solid #ffffff20}.next-countdown{font-weight:650;font-size:12px;background:#ffffff14;border-radius:9px;padding:6px 9px;white-space:nowrap;color:#e4edfb}.next-lesson .section-link{font-size:11px;display:inline-block;margin-top:14px;color:#d4e2ff}.next-lesson:empty{display:none}.next-empty{font-size:12px;color:#d1dded}.balance{font-size:34px}.breakdown .row{margin:7px 0;align-items:baseline;font-size:12px;gap:15px}.breakdown .row strong{text-align:right}.timetable-days{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:20px}.timetable-day{background:var(--soft);border:1px solid var(--line);padding:16px;border-radius:15px}.timetable-day h3{font-size:12px;margin:0 0 14px;display:flex;justify-content:space-between;gap:8px}.timetable-day h3 small{font-weight:400;color:var(--muted);font-size:10px}.slot{padding:12px;margin-top:9px;border-radius:12px;background:var(--panel);border-left:3px solid #6786ed;box-shadow:0 2px 7px #1a355705}.slot.gta{border-left-color:var(--violet)}.slot .slot-time{font-variant-numeric:tabular-nums;font-size:11px;color:var(--muted)}.slot h4{font-size:13px;margin:4px 0}.slot p{font-size:11px;color:var(--muted);margin:4px 0}.slot .controls{display:flex;gap:4px;margin-top:6px;justify-content:flex-end}.slot .controls button{padding:4px 7px;min-height:28px;font-size:10px;background:transparent;border:0;color:var(--muted)}.slot .controls .danger{color:#bd6570}.slot.is-now{box-shadow:0 0 0 2px #4364ee45}.task-filters{display:flex;gap:6px;flex-wrap:wrap;margin:18px 0 6px}.task-filters button{font-size:11px;padding:6px 11px;min-height:34px;background:var(--soft);border:1px solid var(--line);font-weight:500;color:var(--muted)}.task-filters .selected{color:var(--blue);border-color:#c8d4ff;background:#eef2ff}.task-card{border:1px solid var(--line);border-radius:16px;padding:17px;margin-top:12px;position:relative;background:var(--panel)}.task-card.high{border-left:3px solid #e6ab64}.task-card.done{opacity:.65}.task-card h3{font-size:14px;margin:8px 0;line-height:1.5}.task-card.done h3{text-decoration:line-through}.task-card .task-text{font-size:12px;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere}.task-meta{display:flex;flex-wrap:wrap;gap:7px;align-items:center;font-size:10px;color:var(--muted)}.task-meta .tag{font-size:9px}.task-card .controls{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap;margin-top:13px}.task-card .controls button{font-size:11px;min-height:32px;padding:5px 9px}.task-card .due-over{color:#bc6670}.check{display:flex;align-items:flex-start;gap:9px;font-size:12px;font-weight:500}.check input{width:16px;height:16px;min-width:16px;margin:2px 0 0;padding:0;accent-color:var(--blue)}.form-error{color:#b95060;font-size:12px}.task-counts .count{margin:0}.help-hero{padding:30px;border-radius:22px;background:linear-gradient(120deg,#ebf0ff,#f0eefb);margin-bottom:20px}.help-hero h2{font-size:32px;margin:15px 0 8px;letter-spacing:-1px}.help-hero p{font-size:13px;line-height:1.8;max-width:550px;color:#65738e}.help-steps{padding-left:23px;font-size:12px;color:var(--muted)}.help-steps li{margin:15px 0;padding-left:4px;line-height:1.8}.help-steps strong{display:block;color:var(--ink)}.help-faq details{border-bottom:1px solid var(--line)}.help-faq details:last-child{border-bottom:0}.help-faq summary{font-size:13px;font-weight:600;padding:15px 0;color:var(--ink)}.help-faq details p{font-size:12px;color:var(--muted);line-height:1.9;padding:0 0 14px}.developer-card{text-align:center}.dev-avatar{margin:0 auto 17px;background:linear-gradient(135deg,#203654,#476c9f);color:white;display:grid;place-items:center;width:64px;height:64px;border-radius:20px;font-size:23px;font-weight:750}.developer-card>p:not(.eyebrow){font-size:12px;color:var(--muted)}.developer-info{text-align:left;margin:20px 0;border-top:1px solid var(--line);font-size:12px}.developer-info>div{display:flex;justify-content:space-between;gap:18px;padding:11px 0;border-bottom:1px solid var(--line)}.developer-info dt{color:var(--muted)}.developer-info dd{margin:0;text-align:right}.developer-card>a{font-size:12px}#update-notes{white-space:pre-wrap}.update-card{border-color:#d7e0fa}.count{background:var(--soft)}.count strong{color:var(--ink)}.more-grid{display:grid;gap:9px;margin-top:17px}.more-grid a{border:1px solid var(--line);padding:14px;background:var(--soft);border-radius:12px;text-decoration:none;color:var(--ink);font-size:13px}.calendar button{background:var(--soft)}dialog{background:var(--panel);color:var(--ink);border-color:var(--line);box-shadow:0 20px 80px #142c5430}.welcome{border-color:#d9e2ff;background:#ecf1ff}.arrows button{min-height:34px}.day summary{line-height:1.7}.row h3{font-size:14px}#month-totals,#week-totals,#timetable-summary{margin-top:19px}.mobile-nav{display:flex}.desktop-nav,.nav-caption,.nav-footnote{display:none}nav{left:0;right:0;background:var(--panel);border-color:var(--line);border-radius:0;z-index:1000;padding:7px 8px max(12px,env(safe-area-inset-bottom));box-shadow:0 -6px 22px #172b4d06}nav a,nav #more-menu{display:flex;flex:1;flex-direction:column;align-items:center;text-align:center;text-decoration:none;color:#8b97aa;font-size:9px;font-weight:600;padding:7px 2px;border-radius:12px;gap:3px;min-height:45px;border:0;background:transparent}nav .desktop-nav{display:none}nav a svg,nav button svg{width:22px;height:23px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}nav a[aria-current],nav button[aria-current]{background:#edf1ff;color:var(--blue)}nav #more-menu{font-family:inherit}.section-link{font-size:12px;display:block;margin-top:15px}#notice:not(:empty){font-size:12px}#calendar-info:empty{display:none}.empty{font-size:12px;padding:20px 0}.tag{background:#edf2ff;color:var(--blue)}.tag.gta{background:#f3edfa;color:var(--violet)}
@media(min-width:1000px){body{padding-left:232px;padding-bottom:20px}header{margin-left:-232px;padding-left:29px}.header-tools{margin-right:15px}main{padding:35px 35px}.card{padding:25px}nav{display:flex;flex-direction:column;position:fixed;left:19px;top:107px;bottom:22px;right:auto;width:201px;border:1px solid var(--line);border-radius:19px;padding:22px 12px;box-shadow:0 8px 30px #172b4d03;overflow-y:auto}nav a,nav a.desktop-nav{flex:0;display:flex;flex-direction:row;text-align:left;align-items:center;gap:13px;min-height:44px;padding:10px 13px;margin:3px 0;font-size:12px;border-radius:10px}nav .mobile-nav,nav #more-menu{display:none}nav .nav-caption{display:block;font-size:8px;letter-spacing:1.4px;color:#99a4b5;padding-left:13px;margin:2px 0 16px}nav .nav-footnote{display:block;margin:auto 0 0;padding:25px 12px 0;font-size:9px;line-height:1.8;color:#a2acbc}nav a svg{width:19px;height:21px}.switch{max-width:350px}.timer-card{padding:24px}#timer{font-size:65px;padding-top:15px}.timer-card .full{max-width:460px}.timetable-days{grid-template-columns:repeat(3,minmax(0,1fr))}.next-lesson .row{align-items:flex-start}#today-cards .mini{padding:18px 22px}#today-entries .booking{display:grid;grid-template-columns:1fr auto;gap:0 20px}#today-entries .booking-head{grid-column:1}#today-entries .booking-time-row{grid-column:1}#today-entries .booking .controls{grid-column:2;grid-row:1/4;align-items:center;border:0;margin:0;padding:0;flex-direction:column;justify-content:center}#today-entries .booking-duration{margin-left:24px}.booking-day{margin-left:auto}.help-hero{padding:35px}.help-faq details p{max-width:800px}}
@media(max-width:499px){main{padding:23px 16px}.card{padding:18px;border-radius:18px}h1{font-size:28px}header{padding:16px 18px}.header-tools .local{display:none}.mini{padding:14px 12px}.mini strong{font-size:21px}.next-lesson{padding:18px}.next-title{font-size:18px}.next-countdown{font-size:10px;white-space:normal}.timetable-days{grid-template-columns:1fr}.help-hero{padding:24px}.row input[type=month]{width:131px}.developer-info>div{display:block}.developer-info dd{text-align:left;margin-top:5px}.task-counts{gap:6px}.booking-clock{font-size:19px}}
body[data-theme=dark]{--paper:#101925;--panel:#172332;--ink:#e5edf8;--muted:#94a4ba;--line:#29394e;--soft:#1b2a3c;--blue:#92aaff;--violet:#c0a0ed}body[data-theme=dark] .primary{background:#526fdb;border-color:#526fdb;color:#fff}body[data-theme=dark] .timer-card{background:linear-gradient(130deg,#172332,#1b2a43)}body[data-theme=dark] .switch{background:#1d2c40}body[data-theme=dark] .switch button.selected{background:#2b3d56}body[data-theme=dark] .tag,body[data-theme=dark] nav a[aria-current]{background:#263a5b}body[data-theme=dark] .tag.gta{background:#362d4d}body[data-theme=dark] .welcome,body[data-theme=dark] .help-hero{background:#20314e;border-color:#344b6b}body[data-theme=dark] .welcome p,body[data-theme=dark] .help-hero p{color:#b5c4dc}body[data-theme=dark] .task-filters .selected{background:#283d62;border-color:#456089}body[data-theme=dark] .booking .controls .danger{background:#3a2731;color:#edb0b8}body[data-theme=dark] .local{background:#203a34;color:#92cdb0}body[data-theme=dark] .calendar button.school{background:#302e4a;color:#cbbbe8;border-color:#494161}

.clock-hero-grid{display:flex;flex-direction:column;gap:0}.clock-hero-grid>.next-lesson{order:-1;margin-top:0}.clock-hero-grid .timer-card{margin-bottom:0}@media(min-width:1000px){.clock-hero-grid{display:grid;grid-template-columns:1.12fr .88fr;gap:19px;align-items:stretch}.clock-hero-grid>.next-lesson{order:0;margin:0;display:flex;flex-direction:column;justify-content:center;padding:28px}.clock-hero-grid .switch{max-width:none}.clock-hero-grid .timer-card{min-height:280px}.clock-hero-grid .next-title{font-size:24px}.clock-hero-grid .next-lesson>.row{display:block}.clock-hero-grid .next-countdown{display:inline-block;margin:10px 0}.clock-hero-grid .next-current{padding-bottom:16px;margin-bottom:21px}}

@media(max-width:499px){header{padding:12px 16px}.brand{font-size:18px}.brand small{font-size:6px}.logo{width:34px;height:37px;font-size:22px}.header-tools>a{width:29px;height:29px}.header-tools{gap:7px}main{padding:18px 16px}.eyebrow{font-size:8px;margin-bottom:5px}h1{font-size:26px;margin-bottom:17px}.subtitle{display:none}.clock-hero-grid>.next-lesson{padding:15px 16px;margin-bottom:14px}.next-label{font-size:8px;margin-bottom:6px}.next-title{font-size:16px;margin:0 0 6px}.next-info{font-size:10px}.next-countdown{font-size:9px;padding:5px 7px;white-space:nowrap}.next-lesson .section-link{font-size:10px;margin-top:8px}.next-current{font-size:10px;margin-bottom:9px;padding-bottom:9px}.timer-card{padding:15px 17px}#timer{font-size:43px;padding-top:9px}#timer-note{font-size:10px;margin:0 0 13px}#stamp{min-height:43px;font-size:12px}#finish-manually{font-size:10px;min-height:30px;margin-top:3px}.switch{margin-bottom:12px}.switch button{min-height:38px;padding:9px 12px;font-size:12px}.section-title{margin-top:19px}}

#cloud-status{max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px}#cloud-gate{position:fixed;inset:0;z-index:1500;display:grid;place-items:center;background:var(--paper);padding:25px}#cloud-gate>.card{width:100%;max-width:430px;padding:35px}#cloud-gate h1{font-size:27px;margin:20px 0 10px}#cloud-gate p{font-size:13px;color:var(--muted)}#cloud-login-form input{font-size:16px}#cloud-conflict{margin-top:20px;padding:15px;border:1px solid #e9b9bd;border-radius:12px}#cloud-conflict button{margin:4px 0}@media(max-width:499px){#cloud-status{display:none}}
