:root{color-scheme:light;--ink:#20373c;--muted:#5b6d73;--teal:#007b83;--line:#d7e3e6;--red:#a63737;--bg:#f3f7f8;--pale:#e2f3f5;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;color:var(--ink);background:var(--bg)}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{min-height:44px;padding:10px 15px;border:1px solid var(--line);border-radius:10px;color:var(--ink);background:white;cursor:pointer;font-weight:650;touch-action:manipulation}button:hover{background:var(--pale)}button:disabled{opacity:.48;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #d99510;outline-offset:3px}button,input,select{-webkit-tap-highlight-color:transparent}.primary{background:var(--teal);color:white;border-color:var(--teal)}.primary:hover{background:#00656e}.danger{color:var(--red);border-color:#e8cccc;background:#fff6f4}.text-button{background:transparent;border:0;color:var(--teal);padding:6px 8px;font-size:14px}.wrap{max-width:1440px;padding:0 40px;margin:auto}.top{background:#103a40;color:white;padding-top:env(safe-area-inset-top)}.top-inner{min-height:78px;display:flex;justify-content:space-between;align-items:center;gap:20px}.brand{display:flex;align-items:center;text-decoration:none;color:white;font-size:23px;letter-spacing:-.7px;font-weight:750}.brand>span:first-child{background:#70dce5;border-radius:10px;width:34px;height:34px;display:grid;place-items:center;color:#103a40;font-size:26px;margin-right:10px}.brand-dot{color:#70dce5}#offline-state{font-size:12px;color:#d2edf0;text-align:right}.page-intro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:28px}.eyebrow{font-size:12px;font-weight:750;letter-spacing:1.6px;color:var(--muted);margin:0}.intro-note{font-size:14px;color:var(--muted);margin:0}.tabs{display:flex;gap:32px;margin:18px 0 28px;border-bottom:1px solid var(--line)}.tabs button{border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;color:var(--muted);padding:15px 0;font-size:15px}.tabs .active{border-bottom-color:var(--teal);color:var(--teal)}h1{font-size:clamp(28px,4vw,40px);line-height:1.13;letter-spacing:-1.3px;margin:9px 0}h2{font-size:21px;letter-spacing:-.4px;margin:0 0 14px}h3{font-size:18px;line-height:1.3;letter-spacing:-.3px;margin:0;overflow-wrap:anywhere}p{line-height:1.55}.muted,.hint{color:var(--muted)}.hint{font-size:13px}.week-heading,.section-title{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:23px}.week-heading .muted{font-size:14px;margin:0}.week-controls{display:flex;align-items:center;gap:8px}.week-controls>button:first-child,.week-controls>button:nth-child(3){font-size:25px;line-height:1;padding:6px 14px}.date-picker{font-size:12px;color:var(--muted);margin-left:6px}.date-picker input{padding:7px;min-height:38px;width:154px;margin:2px 0 0;font-size:14px}.week-summary{display:flex;gap:28px;background:white;border:1px solid var(--line);border-radius:15px;padding:18px 24px;align-items:center}.week-summary>div:not(.summary-note){display:flex;align-items:center;gap:12px}.week-summary strong{font-size:30px;letter-spacing:-1px;font-variant-numeric:tabular-nums}.week-summary span{font-size:13px;color:var(--muted);max-width:140px}.summary-note{margin-left:auto;font-size:12px;line-height:1.6;color:var(--muted)}.program-toolbar{display:flex;justify-content:space-between;align-items:center;margin:17px 0 10px;gap:12px;font-size:12px;color:var(--muted)}.timetable{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;align-items:start}.day-group{min-width:0}.day-heading{background:#e4f0f2;border-top:3px solid #99bfc6;border-radius:10px 10px 0 0;padding:13px 12px;margin-bottom:10px;display:flex;justify-content:space-between;align-items:center;gap:5px}.day-heading h2{font-size:15px;margin:0}.day-heading span{font-size:12px;color:var(--muted)}.day-group:nth-child(2) .day-heading{background:#e9eff9;border-color:#abc0dc}.day-group:nth-child(3) .day-heading{background:#def2f4;border-color:#8cc7ce}.day-group:nth-child(4) .day-heading{background:#ece9f5;border-color:#b3a5cc}.day-group:nth-child(5) .day-heading{background:#f6ece6;border-color:#d4b399}.day-group.is-today .day-heading{box-shadow:inset 0 0 0 1px var(--teal)}.course-card{background:white;border:1px solid var(--line);border-radius:12px;padding:15px;margin-bottom:10px;min-width:0}.course-card.missed{background:#fff8f6;border-color:#d8aaa0}.card-time{font-size:14px;color:var(--teal);font-weight:750;margin-bottom:9px}.course-card h3{margin-bottom:8px;font-size:17px}.room{font-size:12px;color:var(--muted);margin:0 0 10px}.rule{display:inline-block;border-radius:5px;padding:4px 6px;font-size:11px;line-height:1.25;background:#e8f2f4;color:#425d63}.rule.optional{background:#f0f0f4;color:#5e5d6a}.time-details{margin:12px 0;color:var(--muted);font-size:12px}.time-details summary{cursor:pointer;min-height:32px;display:flex;align-items:center}.time-details p{margin:5px 0;line-height:1.6}.remaining{border-top:1px solid var(--line);padding-top:12px;font-size:13px;margin:12px 0}.remaining strong{font-size:19px}.remaining span{display:block;margin-top:4px;font-size:11px;color:var(--muted)}.absence-action>button{width:100%;font-size:14px}.absence-action .mark{background:#e9f5f6;border-color:#acd4d9;color:var(--teal)}.absence-action .recorded{font-size:13px;color:var(--red);font-weight:650;display:block;margin:0 0 9px}.absence-action .text-button{min-height:36px;font-size:12px}.future-note{font-size:12px;color:var(--muted);margin:8px 0 0;text-align:center}.free-day{color:var(--muted);font-size:13px;padding:14px 10px;border-left:1px solid var(--line)}.overview-summary{display:flex;gap:26px;flex-wrap:wrap;margin:0 0 24px;padding:20px 24px;background:#e3f0f2;border-radius:14px}.overview-summary span{font-size:14px}.overview-summary strong{font-size:26px;vertical-align:baseline;margin-right:5px}.overview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.overview-card{background:white;border:1px solid var(--line);border-radius:15px;padding:22px}.overview-card .rule{margin-bottom:12px}.overview-card h2{min-height:50px;font-size:21px;margin:0 0 8px}.overview-numbers{display:flex;align-items:baseline;gap:7px;margin:18px 0 9px}.overview-numbers strong{font-size:36px;letter-spacing:-1px}.overview-numbers span{font-size:14px;color:var(--muted)}progress{display:block;width:100%;height:7px;border:0;border-radius:8px;overflow:hidden;background:var(--pale);accent-color:var(--teal)}progress::-webkit-progress-bar{background:var(--pale)}progress::-webkit-progress-value{background:var(--teal)}progress::-moz-progress-bar{background:var(--teal)}.attention{color:var(--red)}.status-line{font-size:13px;min-height:22px;margin:12px 0}.overview-actions{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:10px;margin-top:10px}.history-item{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:17px 20px;background:white;border:1px solid var(--line);border-radius:12px;margin-bottom:10px}.history-item strong{display:block;overflow-wrap:anywhere}.history-item small{display:block;font-size:13px;color:var(--muted);margin-top:7px}.history-end{text-align:right;flex-shrink:0}.history-end span{font-size:14px;color:var(--red);font-weight:700}.section-title label{font-size:13px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.panel{border:1px solid var(--line);background:white;border-radius:15px;padding:24px}.panel>p{color:var(--muted)}.danger-zone{border-color:#e3c5c5}.actions{display:flex;gap:10px;flex-wrap:wrap}.empty{padding:28px;text-align:center;background:white;border:1px dashed #9dbac1;border-radius:14px;grid-column:1/-1}.empty p{color:var(--muted)}.warning{background:#fff0d9;color:#754718;padding:14px;border-radius:10px;line-height:1.5;font-size:14px;margin:18px 0}.notice{position:fixed;bottom:calc(14px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);max-width:calc(100% - 24px);width:max-content;display:flex;align-items:center;gap:12px;background:#12464e;color:white;box-shadow:0 6px 24px #0003;padding:12px 14px;border-radius:14px;z-index:5;font-size:14px}.notice button{color:white;background:#ffffff16;border-color:#ffffff40;font-size:13px;white-space:nowrap;padding:8px}.notice #dismiss-notice{font-size:22px;border:0}body:has(.notice:not([hidden])){padding-bottom:90px}footer{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--line);margin-top:30px;padding:22px 0 calc(30px + env(safe-area-inset-bottom));color:var(--muted);font-size:12px}dialog{border:1px solid var(--line);border-radius:18px;max-width:570px;width:calc(100% - 28px);max-height:calc(100dvh - 32px);padding:24px;overflow:auto;color:var(--ink);box-shadow:0 15px 80px #0003}dialog::backdrop{background:#10323abd}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.dialog-head h2{margin:0}.dialog-head button{font-size:24px;border:0;padding:4px 12px}.dialog-actions{justify-content:flex-end;margin-top:24px}label{display:block;font-size:14px}input,select,textarea{display:block;width:100%;min-width:0;border:1px solid #b3c9ce;border-radius:9px;min-height:46px;padding:10px;background:white;color:var(--ink);margin:6px 0 14px}textarea{resize:vertical;min-height:95px;line-height:1.5}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-subtitle{margin:22px 0 8px}.session-field{background:#f3f7f8;border:1px solid var(--line);padding:15px;border-radius:12px;margin-bottom:14px}.session-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}.session-title strong{font-size:14px}.session-title button{font-size:12px;padding:5px 10px}.session-field textarea{margin-bottom:0}[hidden]{display:none!important}@media(max-width:1100px){.wrap{padding:0 24px}.timetable{grid-template-columns:repeat(3,minmax(0,1fr))}.overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.summary-note{display:none}.week-summary{justify-content:space-between}.page-intro{align-items:flex-start;flex-direction:column;gap:8px}}@media(max-width:650px){.wrap{padding:0 17px}.top-inner{min-height:70px}.brand{font-size:21px}#offline-state{max-width:95px;font-size:11px}.page-intro{margin-top:22px}.intro-note{font-size:13px}.eyebrow{font-size:11px}.tabs{justify-content:space-between;gap:8px;margin:12px 0 24px}.tabs button{font-size:12px;white-space:nowrap}.week-heading,.section-title{flex-direction:column;align-items:flex-start;gap:14px}.week-controls{width:100%;gap:6px}.week-controls>button{font-size:13px;padding:8px 10px}.date-picker{margin-left:auto;font-size:11px}.date-picker input{width:139px;font-size:13px}.week-summary{gap:14px;padding:16px}.week-summary>div:not(.summary-note){align-items:flex-start;flex-direction:column;gap:5px}.week-summary span{font-size:12px;max-width:none}.week-summary strong{font-size:27px}.timetable{display:block}.day-heading{border-radius:9px;margin-top:22px;margin-bottom:10px;padding:12px}.day-heading h2{font-size:17px}.course-card{padding:17px}.course-card h3{font-size:20px}.room{font-size:13px}.rule{font-size:12px}.card-time{font-size:15px}.time-details{margin:8px 0}.remaining{margin:10px 0;padding-top:10px}.remaining span{display:inline;margin-left:8px;font-size:12px}.absence-action{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.absence-action>button{width:auto;flex:1}.absence-action .recorded{width:100%;margin-bottom:3px}.absence-action .text-button{flex:0 0 auto;min-height:44px;padding:8px}.future-note{width:100%;text-align:left;margin-top:0}.overview-grid,.settings-grid{grid-template-columns:1fr}.overview-card h2{min-height:0}.overview-summary{gap:12px;flex-direction:column;padding:18px}.overview-summary strong{font-size:22px}.history-item{padding:15px;gap:10px}.history-end{max-width:95px}.panel{padding:21px}footer{flex-direction:column;gap:6px}.notice{gap:8px}dialog{padding:20px}.program-toolbar{font-size:11px}.program-toolbar button{font-size:12px}}

.hours-stepper{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid var(--line);border-radius:10px;background:#f5f9fa;padding:3px;width:100%;margin:4px 0 10px}.hours-stepper button{width:44px;min-width:44px;min-height:44px;border:0;background:transparent;padding:0;font-size:27px;line-height:1}.hours-stepper output{font-size:16px;font-weight:700;font-variant-numeric:tabular-nums}.hours-stepper button:disabled{opacity:.28}.absence-action .cancel-lesson{margin-top:9px;border:1px dashed #b6c5c9;background:#f3f6f7;color:#4d626d;font-size:13px}.course-card.cancelled{background:#eff4f7;border-color:#bacad3}.cancelled-label{display:block;color:#3b596b!important;font-size:14px;font-weight:700}.absence-action>.hint{margin:8px 0 12px}.history-end{max-width:160px}.week-summary{flex-wrap:wrap}.week-summary .summary-note{min-width:190px}@media(max-width:650px){.absence-action{display:block}.absence-action>button{width:100%}.absence-action .text-button{width:100%;margin-top:5px}.hours-stepper{margin:8px 0 10px}.week-summary{gap:12px}.week-summary>div:not(.summary-note){flex:1;min-width:75px}.week-summary span{font-size:11px}.history-end{max-width:115px}}

/* Preparation features */
.tabs{gap:20px;flex-wrap:wrap}.task-filters{display:flex;gap:16px;margin-bottom:12px}.task-filters label{flex:1;max-width:350px}.tasks-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.task-card{background:white;border:1px solid var(--line);border-radius:15px;padding:22px;min-width:0}.task-card h2{overflow-wrap:anywhere;margin:14px 0 8px}.task-meta{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12px;color:var(--muted)}.task-status{font-weight:700}.task-notes{white-space:pre-wrap;overflow-wrap:anywhere}.task-done{background:#edf3ee}.task-done h2{text-decoration:line-through}.card-preparation{border-top:1px solid var(--line);margin-top:14px;padding-top:8px}.card-preparation button{width:100%;text-align:left;white-space:normal}.preparation-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;background:#e2f3f5;border:1px solid #acd4d9;border-radius:12px;margin-bottom:16px;font-size:14px}.switch-row{display:flex;align-items:flex-start;gap:12px;margin:18px 0}.switch-row input{width:22px;height:22px;min-height:22px;margin:2px 0;flex:0 0 22px;accent-color:var(--teal)}.switch-row small{display:block;color:var(--muted);font-size:12px;margin-top:6px;line-height:1.5}@media(max-width:650px){.tabs{gap:0;justify-content:flex-start}.tabs button{padding:12px 9px;font-size:12px}.tasks-grid{grid-template-columns:1fr}.task-card{padding:18px}.task-filters{gap:10px}.preparation-banner{align-items:flex-start}.preparation-banner button{flex-shrink:0}.task-card .actions button{flex:1}}
@media(max-width:450px){#task-dialog .form-row{grid-template-columns:minmax(0,1fr)}#task-dialog input[type=date]{max-width:100%;width:100%}}
/* Course setup and accessible theme switches */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.header-tools{display:flex;align-items:center;gap:14px}.theme-toggle{position:relative;display:flex;align-items:center;justify-content:space-between;gap:9px;width:72px;height:40px;min-height:40px;padding:5px 8px;border:1px solid #6b9ea6;background:#1c4b54;color:#dff6f7;border-radius:24px;font-size:21px;flex-shrink:0}.theme-toggle:before{content:'';position:absolute;left:3px;top:3px;width:32px;height:32px;border-radius:50%;background:#85e0e7;transition:transform .15s}.theme-toggle span{position:relative;z-index:1;width:24px;text-align:center}.theme-toggle span:first-child{color:#143c44}.theme-toggle[aria-checked=true]:before{transform:translateX(32px);background:#83d2dc}.theme-toggle[aria-checked=true] span:first-child{color:#d6eef1}.theme-toggle[aria-checked=true] span:last-child{color:#152833}.theme-toggle:hover{background:#28616b}.time-heading{font-size:14px;margin:0 0 8px}.time-picker{min-width:0;font-size:14px}.time-columns{display:flex;gap:6px;align-items:center}.time-columns select{flex:1;width:0;min-width:0;font-variant-numeric:tabular-nums;text-align:center;margin-bottom:10px;padding:8px 5px}.session-preview{overflow-wrap:anywhere;margin:4px 0 0}.switch-row input{appearance:none;-webkit-appearance:none;position:relative;width:44px;height:26px;min-height:26px;flex:0 0 44px;border:1px solid #9aadb2;border-radius:20px;background:#c9d6da;padding:0}.switch-row input:before{content:'';position:absolute;left:3px;top:3px;width:18px;height:18px;background:white;border-radius:50%;transition:transform .15s}.switch-row input:checked{background:var(--teal);border-color:var(--teal)}.switch-row input:checked:before{transform:translateX(18px)}.eyebrow{letter-spacing:.7px}.form-subtitle,.time-heading{text-transform:none}.course-form-note{white-space:normal}#course-dialog .form-row{grid-template-columns:repeat(2,minmax(0,1fr))}.top-inner{gap:10px}
:root[data-theme=dark]{
 color-scheme:dark;--ink:#e7ecee;--muted:#a9b7bd;--teal:#63dce4;--line:#3b464b;--red:#ffa99d;--bg:#181b1d;--pale:#27373b;background:var(--bg);color:var(--ink)
}
:root[data-theme=dark] body{background:var(--bg)}
:root[data-theme=dark] .top{background:#10343a}
:root[data-theme=dark] button,:root[data-theme=dark] input,:root[data-theme=dark] select,:root[data-theme=dark] textarea,:root[data-theme=dark] dialog,:root[data-theme=dark] .course-card,:root[data-theme=dark] .overview-card,:root[data-theme=dark] .panel,:root[data-theme=dark] .task-card,:root[data-theme=dark] .history-item,:root[data-theme=dark] .week-summary,:root[data-theme=dark] .empty{background:#202527;color:var(--ink);border-color:var(--line)}
:root[data-theme=dark] button:hover{background:#2c383d}
:root[data-theme=dark] .tabs button,:root[data-theme=dark] .text-button{background:transparent}
:root[data-theme=dark] .tabs button{color:var(--muted)}
:root[data-theme=dark] .tabs .active,:root[data-theme=dark] .text-button{color:var(--teal)}
:root[data-theme=dark] .primary{background:#12565d;color:#d5f6f8;border-color:#27b3c0}
:root[data-theme=dark] .primary:hover{background:#176a74}
:root[data-theme=dark] .session-field,:root[data-theme=dark] .hours-stepper{background:#1b2023}
:root[data-theme=dark] .hours-stepper button{background:transparent}
:root[data-theme=dark] .day-heading,:root[data-theme=dark] .day-group:nth-child(n) .day-heading,:root[data-theme=dark] .overview-summary,:root[data-theme=dark] .preparation-banner{background:#233238;border-color:#4c707a}
:root[data-theme=dark] .rule{background:#293b40;color:#c2e5eb}
:root[data-theme=dark] .rule.optional{background:#37374b;color:#d4d0e3}
:root[data-theme=dark] .warning{background:#3f3524;color:#ecd1a0}
:root[data-theme=dark] .danger{background:#3b2928;color:var(--red);border-color:#80504b}
:root[data-theme=dark] .course-card.missed{background:#352724;border-color:#80504b}
:root[data-theme=dark] .course-card.cancelled{background:#24343d;border-color:#547485}
:root[data-theme=dark] .cancelled-label{color:#bdd8e7!important}
:root[data-theme=dark] .absence-action .mark{background:#223a40;color:var(--teal);border-color:#49737b}
:root[data-theme=dark] .absence-action .cancel-lesson{background:#293a40;color:#c2d6de;border-color:#55717b}
:root[data-theme=dark] .task-done{background:#243035}
:root[data-theme=dark] .notice{background:#164c55;color:#e5f7fa}
:root[data-theme=dark] .theme-toggle{background:#1c424a;border-color:#4c6970}
:root[data-theme=dark] .switch-row input{background:#4a565c}
:root[data-theme=dark] .switch-row input:checked{background:#238491;border-color:#238491}
@media(max-width:450px){#course-dialog .form-row:not(.time-range){grid-template-columns:minmax(0,1fr)}.header-tools{gap:8px}.theme-toggle{width:66px;font-size:19px}.theme-toggle:before{width:28px;height:28px;top:5px}.theme-toggle[aria-checked=true]:before{transform:translateX(29px)}.theme-toggle span{width:22px}.brand{font-size:18px}.brand>span:first-child{width:28px;height:28px;font-size:22px;margin-right:7px}#offline-state{max-width:70px;font-size:10px}.time-columns{gap:4px}}
@media(prefers-reduced-motion:reduce){.theme-toggle:before,.switch-row input:before{transition:none}}
