@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;800&display=swap');
:root{color-scheme:dark;--bg:#0b1115;--panel:#121b20;--panel2:#172329;--text:#f1f7f7;--muted:#84969b;--teal:#53e0cf;--line:rgba(210,239,238,.09)}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 85% -10%,#163a3a 0,transparent 40%),var(--bg);color:var(--text);font-family:'Roboto',system-ui,sans-serif;min-height:100vh}.app-shell{width:min(100%,520px);min-height:100dvh;margin:auto;padding:calc(22px + env(safe-area-inset-top)) 22px calc(104px + env(safe-area-inset-bottom));position:relative}.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px}.eyebrow{font-size:10px;letter-spacing:.17em;color:var(--teal);font-weight:700;margin:0 0 7px}.topbar h1{font-size:30px;letter-spacing:-.04em;margin:0}.avatar{width:42px;height:42px;border:1px solid #28615e;border-radius:50%;background:#14302f;color:var(--teal);font-weight:700;font-size:16px}.screen{display:none}.screen.active{display:block}.date-card{height:76px;background:linear-gradient(115deg,#183432,#142125);border:1px solid rgba(83,224,207,.17);border-radius:22px;display:flex;align-items:center;justify-content:space-between;padding:0 12px;margin-bottom:30px}.day-arrow{width:42px;height:42px;background:rgba(255,255,255,.045);border:1px solid var(--line);border-radius:14px;color:var(--teal);font-size:27px;line-height:1}.date-copy{text-align:center;display:grid;gap:3px}.date-copy span{font-size:12px;color:#a7b8b9}.date-copy strong{font-size:14px}.section-heading{display:flex;align-items:end;justify-content:space-between;margin:0 2px 14px}.section-heading h2,.calendar-head h2{font-size:21px;letter-spacing:-.03em;margin:0}.count{color:var(--muted);font-size:13px}.lesson-list,.extra-list{display:grid;gap:9px}.empty-card{background:rgba(18,27,32,.74);border:1px dashed rgba(210,239,238,.15);border-radius:18px;padding:18px;color:var(--muted);font-size:13px;line-height:1.5}.lesson-card,.extra-card{display:flex;align-items:center;gap:14px;background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:14px}.time{font-size:11px;color:var(--teal);font-weight:700;min-width:84px;white-space:nowrap}.lesson-mark{width:3px;height:38px;border-radius:9px;background:var(--teal)}.lesson-name{font-weight:600;font-size:14px}.lesson-room{font-size:11px;color:var(--muted);margin-top:4px}.extras-heading{margin-top:29px}.text-button{background:none;border:0;color:var(--teal);font:600 12px inherit;padding:8px 0}.extra-card{padding:12px 14px}.extra-icon{font-size:17px}.extra-name{font-size:13px;font-weight:600}.extra-time{margin-left:auto;font-size:12px;color:#a6b6b7}.bottom-nav{position:fixed;z-index:4;bottom:calc(12px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(calc(100% - 32px),470px);height:70px;display:flex;justify-content:space-around;align-items:center;background:rgba(22,33,37,.84);border:1px solid rgba(220,245,243,.12);border-radius:24px;backdrop-filter:blur(22px);box-shadow:0 16px 50px #0007}.nav-item{height:56px;min-width:82px;border:0;background:transparent;color:#829397;display:grid;place-content:center;gap:3px;border-radius:17px}.nav-item span{font-size:20px}.nav-item small{font:500 10px 'Roboto',sans-serif}.nav-item.selected{color:var(--teal);background:rgba(83,224,207,.1)}.calendar-head{display:flex;align-items:center;justify-content:space-between;margin:10px 0 20px}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:7px}.calendar-cell{aspect-ratio:1;display:grid;place-items:center;border-radius:13px;color:#d6e0e0;font-size:13px;border:1px solid transparent}.calendar-cell.weekday{aspect-ratio:1;color:var(--muted);font-size:10px}.calendar-cell.today{border-color:var(--teal);color:var(--teal)}.calendar-cell.chosen{background:var(--teal);color:#07201e;font-weight:700}.hint{font-size:12px;line-height:1.6;color:var(--muted);margin:18px 2px}.setting-card{display:flex;align-items:center;gap:13px;padding:16px;margin-bottom:9px;background:var(--panel);border:1px solid var(--line);border-radius:18px}.setting-icon{font-size:20px}.setting-card strong{font-size:13px}.setting-card p{margin:4px 0 0;color:var(--muted);font-size:11px;line-height:1.4}@media(min-width:600px){.app-shell{padding-top:36px}.bottom-nav{position:absolute;bottom:16px}}
.edit-dialog{width:min(480px,calc(100% - 28px));max-height:calc(100dvh - 28px);overflow:auto;padding:22px;background:#111b20;color:var(--text);border:1px solid rgba(83,224,207,.24);border-radius:24px;box-shadow:0 24px 90px #000b}.edit-dialog::backdrop{background:rgba(2,8,10,.76);backdrop-filter:blur(5px)}.dialog-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.dialog-top h2{font-size:20px;text-transform:capitalize;margin:0}.dialog-top .day-arrow{font-size:23px}.dialog-section{padding:16px 0;border-top:1px solid var(--line)}.dialog-section h3{font-size:14px;margin:0 0 12px}.dialog-section>label,.field-row label{display:grid;gap:6px;color:#a9b8ba;font-size:11px}.dialog-section input,.dialog-section select{width:100%;min-width:0;height:42px;padding:0 11px;color:var(--text);background:#0b1216;border:1px solid var(--line);border-radius:12px;font:13px 'Roboto',sans-serif}.dialog-section select{margin:7px 0 12px}.field-row{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:8px;margin-top:10px}.field-row input{padding:0 7px}.dialog-actions{display:flex;gap:8px;margin-top:13px}.primary-button,.secondary-button{min-height:42px;padding:0 13px;border-radius:13px;font:600 11px 'Roboto',sans-serif}.primary-button{border:0;background:var(--teal);color:#09201e}.secondary-button{border:1px solid var(--line);background:#18242a;color:var(--text)}.full-button{width:100%;margin-top:13px}.primary-button:disabled,.secondary-button:disabled,.dialog-section input:disabled,.dialog-section select:disabled{opacity:.45}.lesson-card.is-cancelled{opacity:.57}.lesson-card.is-cancelled .lesson-name{text-decoration:line-through}.lesson-card.is-cancelled .lesson-mark{background:#fa7680}.lesson-card.is-event .lesson-mark{background:#f4bf63}
.week-list{display:grid;gap:10px}.week-card{display:flex;align-items:stretch;gap:12px;width:100%;padding:0;border:1px solid var(--line);border-radius:18px;overflow:hidden;background:var(--panel);color:var(--text);text-align:left}.week-day{display:grid;align-content:center;justify-items:center;gap:4px;min-width:60px;padding:12px 8px;background:rgba(83,224,207,.12);color:var(--teal);font-size:12px}.week-day strong{font-size:20px}.week-summary{display:grid;align-content:center;gap:5px;min-width:0;flex:1;padding:12px 0;font-size:11px;color:var(--muted)}.week-summary strong{font-size:13px;color:var(--text)}.week-summary>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.week-summary small{font-size:10px;color:var(--teal)}.week-chevron{align-self:center;padding:0 14px;color:var(--teal);font-size:22px}
:root{--bg:#080f1a;--panel:#111d2a;--panel2:#152538;--text:#f4f8fd;--muted:#a5b1c0;--teal:#20cbe5;--line:rgba(197,220,243,.1)}body{background:radial-gradient(ellipse at 50% -15%,#172c49 0,transparent 48%),var(--bg)}.app-shell{width:min(100%,500px);padding-top:calc(18px + env(safe-area-inset-top))}.topbar{margin-bottom:20px}.profile-heading{display:flex;align-items:center;gap:10px}.profile-heading h1{font-size:21px;letter-spacing:-.02em}.profile-photo{width:39px;height:39px;display:grid;place-items:center;background:#26344a;border-radius:50%;font-size:23px}.settings-button{border:0;background:transparent;color:var(--teal);font-size:23px}.date-card{height:74px;margin-bottom:23px;background:transparent;border:0;padding:0 2px}.date-copy{gap:2px}.date-copy span{font-size:21px;font-weight:700;color:var(--teal);text-transform:capitalize}.date-copy strong{font-size:12px;color:#d2deed;font-weight:500}.day-arrow{width:37px;height:37px;background:transparent;border:0;color:var(--teal);font-size:31px}.section-heading{align-items:center;margin-bottom:10px}.section-heading .eyebrow{display:none}.section-heading h2{font-size:18px}.text-button{font:600 11px 'Roboto',sans-serif}.lesson-list,.extra-list{gap:7px}.lesson-card{min-height:51px;padding:9px 12px;gap:10px;border:0;border-radius:13px;color:#152334;box-shadow:0 3px 8px #0002}.lesson-card .time{min-width:82px;font-size:10px;color:#33435a}.lesson-content{flex:1;min-width:0}.lesson-name{font-size:12px;font-weight:700;color:#172234}.subject-icon{font-size:17px;color:#37506e;min-width:18px;text-align:center}.lesson-room{font-size:9px;color:#52657a;margin-top:3px}.subject-polish{background:#ead7ff}.subject-math{background:#93eddc}.subject-nature{background:#c9f0e7}.subject-pe{background:#ffe083}.subject-english{background:#ffd1c7}.subject-art{background:#ffd28b}.subject-health{background:#f3afd5}.subject-tutor{background:#ff9c8e}.subject-history{background:#b6d0ff}.subject-tech{background:#8ae4ec}.subject-religion{background:#f6b2d5}.subject-music{background:#ffad62}.subject-it{background:#ff857a}.subject-event{background:#b6ebff}.lesson-card.is-cancelled{opacity:.65}.lesson-card.is-cancelled .lesson-name{text-decoration:line-through}.lesson-card.is-cancelled .lesson-room{color:#a52c35}.lesson-card.is-event .subject-icon{color:#087c9c}.extras-heading{margin-top:21px}.extra-card{min-height:48px;border:0;border-radius:13px;background:#b7e9fa;color:#15314a;padding:11px 14px}.extra-icon{color:#1587b2}.extra-name{font-size:12px;font-weight:700}.extra-time{font-size:11px;color:#315877}.bottom-nav{background:rgba(15,25,38,.95);border-color:rgba(205,226,246,.08);border-radius:18px;height:68px;width:min(calc(100% - 24px),470px);backdrop-filter:blur(20px)}.nav-item{min-width:70px;height:54px}.nav-item span{font-size:19px}.nav-item small{font-size:9px}.calendar-cell{aspect-ratio:1;border-radius:11px}.calendar-cell.weekday{font-weight:700}.week-card{border:0;background:#e8f4ff;color:#152334;border-radius:14px}.week-day{background:#d9c2ff;color:#1a2640}.week-card:nth-child(2) .week-day{background:#91e9ee}.week-card:nth-child(3) .week-day{background:#f3acd5}.week-card:nth-child(4) .week-day{background:#ffdf78}.week-card:nth-child(5) .week-day{background:#d9c2ff}.week-summary{color:#506176}.week-summary strong{color:#152334}.week-summary small{color:#087c9c}.week-chevron{color:#168eaa}
body,.app-shell,button,input,select{font-family:'Roboto',Roboto,'Segoe UI',sans-serif}.topbar h1{font-size:20px;font-weight:700;letter-spacing:-.025em}.date-copy span{font-size:22px;font-weight:700;letter-spacing:-.025em}.date-copy strong{font-size:13px;font-weight:500}.section-heading h2{font-size:18px;font-weight:700;letter-spacing:-.02em}.lesson-card .time{font-size:11px;font-weight:600;letter-spacing:-.015em}.lesson-name{font-size:14px;font-weight:700;letter-spacing:-.015em}.lesson-room{font-size:10px}.extra-name{font-size:14px;font-weight:700}.extra-time{font-size:12px}.week-day{font-size:13px}.week-day strong{font-size:20px}.week-summary{font-size:12px}.week-summary strong{font-size:14px}.setting-card strong{font-size:14px}.setting-card p{font-size:12px}.nav-item small{font-size:10px}
.extra-fields{grid-template-columns:1fr 1fr}.repeat-label{margin-top:12px}.edit-dialog .dialog-section input::placeholder{color:#667789}.edit-dialog .dialog-section input:focus,.edit-dialog .dialog-section select:focus{outline:2px solid rgba(32,203,229,.45);outline-offset:1px}
.auth-locked{filter:blur(5px);pointer-events:none;user-select:none}
.auth-gate{position:fixed;inset:0;z-index:20;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:24px;background:rgba(8,15,26,.96);overflow:auto}
.auth-gate[hidden]{display:none}
.auth-card{width:min(100%,420px);display:flex;flex-direction:column;gap:12px;padding:26px;border:1px solid rgba(255,255,255,.1);border-radius:24px;background:#111b2b;box-shadow:0 24px 80px rgba(0,0,0,.4)}
.auth-card h1{margin:0;font-size:28px}.auth-card p{color:#aab8ca;line-height:1.5}.auth-card label{font-size:13px;color:#c5cfdd}.auth-card input{width:100%;padding:13px 14px;border:1px solid #334157;border-radius:12px;background:#0b1421;color:#f7f9fc;font:inherit;box-sizing:border-box}.auth-card .primary-button{margin-top:8px}
.auth-message{max-width:420px;color:#c5cfdd;text-align:center;line-height:1.5}.auth-message.sync-error,.sync-status.sync-error{color:#ff9292}.auth-secondary,.auth-import{width:min(100%,420px);margin-top:10px}.auth-gate button[hidden]{display:none}.sync-status{max-width:120px;color:#9eacc1;font-size:10px;text-align:right}
