:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#f6f6f3;--surface:#fff;--surface-2:#efefeb;--text:#1c1c1a;--muted:#666660;--border:#e0e0da;--accent:#3a56d4;--accent-text:#fff;--danger:#b3261e;--tone-neutral:#6b6b66;--tone-blue:#2563c9;--tone-green:#1f7a4d;--tone-amber:#96610a;--tone-red:#b3261e;--tone-purple:#6d3fc4;--tone-pink:#b02a6f;--tone-teal:#0f766e}[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#151514;--surface:#1f1f1d;--surface-2:#2a2a27;--text:#ececea;--muted:#a3a39c;--border:#33332f;--accent:#93a5ff;--accent-text:#11131f;--danger:#ff8a80;--tone-neutral:#a8a8a1;--tone-blue:#7fb0ff;--tone-green:#6fd3a0;--tone-amber:#e5b567;--tone-red:#ff8a80;--tone-purple:#bda2ff;--tone-pink:#f28cc3;--tone-teal:#5fd0c4}[data-accent=green]{--accent:#1f7a4d}[data-accent=rose]{--accent:#b02a6f}[data-accent=amber]{--accent:#96610a}[data-accent=teal]{--accent:#0f766e}[data-theme=dark][data-accent=green]{--accent:#6fd3a0}[data-theme=dark][data-accent=rose]{--accent:#f28cc3}[data-theme=dark][data-accent=amber]{--accent:#e5b567}[data-theme=dark][data-accent=teal]{--accent:#5fd0c4}*{box-sizing:border-box}html,body,#root{height:100%}body{background:var(--bg);color:var(--text);margin:0;font-family:system-ui,-apple-system,Segoe UI,sans-serif;line-height:1.45}h1{margin:0;font-size:1.5rem}h2{margin:0;font-size:1rem}h3{color:var(--muted);margin:0 0 6px;font-size:.85rem;font-weight:600}button,input,select,textarea{font:inherit;color:inherit}button{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:8px;min-height:36px;padding:6px 12px}button:hover:not(:disabled){background:var(--surface-2)}button:disabled{opacity:.5;cursor:default}button.primary{border-color:var(--accent);background:var(--accent);color:var(--accent-text)}button.primary:hover:not(:disabled){opacity:.9;background:var(--accent)}button.danger{color:var(--danger)}button.ghost{min-width:36px;color:var(--muted);background:0 0;border-color:#0000}button.link{text-align:left;overflow-wrap:anywhere;background:0 0;border:0;min-height:0;padding:0}button.link:hover{background:0 0;text-decoration:underline}button.link.strong{font-weight:600}input:not([type=checkbox]),select,textarea{border:1px solid var(--border);background:var(--surface);border-radius:8px;width:100%;min-height:36px;padding:6px 10px}input[type=checkbox]{width:18px;height:18px;accent-color:var(--accent);flex:none}textarea{resize:vertical}:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.muted{color:var(--muted)}.error{color:var(--danger);margin:0}.danger-text{color:var(--danger)}.plain-list{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.actions{flex-wrap:wrap;gap:8px;display:flex}.check{cursor:pointer;align-items:center;gap:8px;display:inline-flex}.badge{background:color-mix(in srgb, var(--tone) 15%, transparent);color:var(--tone);white-space:nowrap;border-radius:999px;padding:1px 8px;font-size:.8rem;display:inline-block}.tone-neutral{--tone:var(--tone-neutral)}.tone-blue{--tone:var(--tone-blue)}.tone-green{--tone:var(--tone-green)}.tone-amber{--tone:var(--tone-amber)}.tone-red{--tone:var(--tone-red)}.tone-purple{--tone:var(--tone-purple)}.tone-pink{--tone:var(--tone-pink)}.tone-teal{--tone:var(--tone-teal)}.shell{grid-template-columns:220px minmax(0,1fr);height:100%;display:grid}.shell.with-panel{grid-template-columns:220px minmax(0,1fr) 360px}.sidebar{padding:calc(16px + env(safe-area-inset-top)) 12px 12px;border-right:1px solid var(--border);background:var(--surface);flex-direction:column;gap:12px;display:flex}.brand{padding:0 8px;font-size:1.1rem;font-weight:700}.palette-trigger{color:var(--muted);background:var(--bg);justify-content:space-between;align-items:center;display:flex}kbd{border:1px solid var(--border);font:inherit;border-radius:4px;padding:0 5px;font-size:.72rem}.nav-list{flex-direction:column;flex:1;gap:2px;margin:0;padding:0;list-style:none;display:flex}.nav-list button{text-align:left;background:0 0;border-color:#0000;width:100%}.nav-list button[aria-current=page]{background:color-mix(in srgb, var(--accent) 14%, transparent);color:var(--accent);font-weight:600}.sync-state{color:var(--muted);padding:4px 8px;font-size:.8rem}.status-idle{color:var(--tone-green)}.status-offline{color:var(--tone-amber)}.status-error{color:var(--danger)}.content{min-width:0;overflow-y:auto}.page{flex-direction:column;gap:16px;max-width:1200px;margin:0 auto;padding:24px;display:flex}.page-head{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.subtitle{margin:2px 0 0}.subtitle:first-letter{text-transform:uppercase}.toolbar{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.search{max-width:240px}.count{margin-left:auto;font-size:.85rem}.segmented{border:1px solid var(--border);border-radius:8px;flex-wrap:wrap;display:inline-flex;overflow:hidden}.segmented button{border:0;border-radius:0}.segmented button[aria-pressed=true]{background:var(--accent);color:var(--accent-text)}.empty{color:var(--muted);text-align:center;padding:48px 16px}.empty p{margin:0 0 12px}.table-wrap{border:1px solid var(--border);background:var(--surface);border-radius:10px;overflow-x:auto}.table{border-collapse:collapse;width:100%}.table th,.table td{border-bottom:1px solid var(--border);text-align:left;vertical-align:top;padding:8px 12px}.table tbody tr:last-child td{border-bottom:0}.th-button{min-height:0;color:var(--muted);white-space:nowrap;background:0 0;border:0;padding:0;font-size:.85rem;font-weight:600}.th-button:hover{color:var(--text);background:0 0}.kanban{grid-template-columns:repeat(3,minmax(220px,1fr));gap:12px;display:grid;overflow-x:auto}.kanban-column{border:1px solid var(--border);background:var(--surface-2);border-radius:10px;flex-direction:column;gap:8px;min-height:200px;padding:10px;display:flex}.kanban-column.drop{outline:2px dashed var(--accent);outline-offset:-2px}.kanban-column header{justify-content:space-between;display:flex}.kanban-more{margin:0;font-size:.8rem}.card{text-align:left;overflow-wrap:anywhere;flex-direction:column;gap:2px;width:100%;display:flex}.card strong{font-weight:500}.card .muted{font-size:.8rem}.calendar{flex-direction:column;gap:12px;display:flex}.calendar-nav{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.calendar-nav h2{text-align:center;min-width:170px}.calendar-nav h2:first-letter{text-transform:uppercase}.calendar-grid{border:1px solid var(--border);background:var(--border);border-radius:10px;grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;display:grid;overflow:hidden}.calendar-label{background:var(--surface);color:var(--muted);padding:4px 8px;font-size:.8rem}.calendar-day{background:var(--surface);flex-direction:column;gap:2px;min-height:96px;padding:4px;display:flex}.calendar-day.outside{background:var(--bg)}.calendar-day.outside .calendar-date{color:var(--muted)}.calendar-date{background:0 0;border:0;align-self:flex-start;min-width:26px;min-height:26px;padding:0 4px;font-size:.85rem}.calendar-day.today .calendar-date{background:var(--accent);color:var(--accent-text);border-radius:50%}.calendar-item{background:color-mix(in srgb, var(--accent) 14%, transparent);text-align:left;text-overflow:ellipsis;white-space:nowrap;border:0;border-radius:4px;min-height:0;padding:1px 6px;font-size:.8rem;overflow:hidden}.panel{border-left:1px solid var(--border);background:var(--surface);overflow-y:auto}.panel-form{flex-direction:column;gap:12px;padding:16px;display:flex}.panel-head{justify-content:space-between;align-items:center;display:flex}.field{flex-direction:column;gap:4px;display:flex}.field>span,.field>label{color:var(--muted);font-size:.85rem}.title-input{font-size:1.05rem;font-weight:600}.panel-section{border-top:1px solid var(--border);flex-direction:column;gap:8px;padding-top:12px;display:flex}.palette-backdrop{z-index:10;background:#0006;justify-content:center;padding:10vh 16px 16px;display:flex;position:fixed;inset:0}.palette{border:1px solid var(--border);background:var(--surface);border-radius:12px;flex-direction:column;align-self:flex-start;width:100%;max-width:560px;max-height:60vh;display:flex;overflow:hidden}.palette input{border:0;border-bottom:1px solid var(--border);border-radius:0;min-height:48px}.palette ul{margin:0;padding:6px;list-style:none;overflow-y:auto}.palette li{cursor:pointer;overflow-wrap:anywhere;border-radius:8px;justify-content:space-between;gap:12px;padding:8px 10px;display:flex}.palette li.active{background:var(--surface-2)}.palette .muted{flex:none;font-size:.8rem}.palette-empty{color:var(--muted);cursor:default}.widgets{grid-template-columns:repeat(auto-fill,minmax(320px,1fr));align-items:start;gap:16px;display:grid}.widget{border:1px solid var(--border);background:var(--surface);border-radius:12px;flex-direction:column;gap:10px;min-width:0;padding:14px;display:flex}.widget[draggable=true]{cursor:grab}.widget-hidden{opacity:.55}.widget-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.widget-tools{gap:4px;display:flex}.widget-tools button{min-height:28px;padding:2px 8px;font-size:.8rem}.widget-empty{flex-direction:column;align-items:flex-start;gap:8px;display:flex}.widget-empty p,.widget>p{margin:0}.capture{flex-direction:column;gap:6px;display:flex}.hint-line{margin:0;font-size:.8rem}.task-groups{flex-direction:column;gap:12px;display:flex}.task-row{align-items:flex-start;gap:8px;display:flex}.task-main{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.task-main .link{padding:1px 0}.task-meta{align-items:center;gap:8px;display:flex}.task-meta:empty{display:none}.task-meta .badge{text-overflow:ellipsis;min-width:0;overflow:hidden}.row-date{flex:none;margin-left:auto;font-size:.8rem}.show-more{color:var(--muted);margin-top:6px;font-size:.85rem}.class-row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.class-dot{background:var(--tone);border-radius:50%;width:8px;height:8px}.class-time{font-variant-numeric:tabular-nums}.week-strip{flex-direction:column;gap:2px;margin:0;padding:0;list-style:none;display:flex}.week-strip li{border-radius:6px;justify-content:space-between;gap:12px;padding:3px 8px;font-size:.9rem;display:flex}.week-strip li.today{background:color-mix(in srgb, var(--accent) 14%, transparent);font-weight:600}.week-day:first-letter{text-transform:uppercase}.timetable-scroll{border:1px solid var(--border);background:var(--surface);border-radius:10px;overflow-x:auto}.timetable{grid-template-columns:52px repeat(7,minmax(110px,1fr));min-width:820px;display:grid}.timetable-corner,.timetable-head{border-bottom:1px solid var(--border);padding:6px}.timetable-head{border-left:1px solid var(--border);flex-direction:column;gap:3px;font-size:.85rem;display:flex}.timetable-head.today strong{color:var(--accent)}.timetable-head strong:first-letter{text-transform:uppercase}.due-chip{background:var(--surface-2);text-align:left;text-overflow:ellipsis;white-space:nowrap;border:0;border-radius:4px;min-height:0;padding:1px 6px;font-size:.75rem;overflow:hidden}.due-chip.exam{background:color-mix(in srgb, var(--tone-red) 18%, transparent);color:var(--tone-red)}.timetable-hours{position:relative}.timetable-hours span{color:var(--muted);font-size:.7rem;position:absolute;right:6px;transform:translateY(-50%)}.timetable-hours span:first-child{transform:none}.timetable-day{border-left:1px solid var(--border);position:relative}.timetable-line{border-top:1px solid var(--border);opacity:.6;position:absolute;left:0;right:0}.class-block{border:0;border-left:3px solid var(--tone);background:color-mix(in srgb, var(--tone) 16%, var(--surface));text-align:left;border-radius:6px;flex-direction:column;gap:0;min-height:0;padding:3px 6px;font-size:.75rem;line-height:1.25;display:flex;position:absolute;left:3px;right:3px;overflow:hidden}.class-block:hover:not(:disabled){background:color-mix(in srgb, var(--tone) 26%, var(--surface))}.class-block strong{overflow-wrap:break-word;font-weight:600}.settings{max-width:720px}.settings-section{flex-direction:column;align-items:flex-start;gap:10px;display:flex}.settings-section>p{margin:0}.settings-section h3{margin:8px 0 0}.module-row{align-items:flex-start}.account{overflow-wrap:anywhere;flex-wrap:wrap;align-items:center;gap:12px;display:flex}.login{flex-direction:column;gap:8px;width:100%;max-width:360px;display:flex}.diagnostic{border:1px solid var(--border);background:var(--surface);border-radius:10px;width:100%;margin:0}.diagnostic>div{border-bottom:1px solid var(--border);justify-content:space-between;gap:16px;padding:6px 12px;display:flex}.diagnostic>div:last-child{border-bottom:0}.diagnostic dt{color:var(--muted)}.diagnostic dd{overflow-wrap:anywhere;text-align:right;margin:0}.boot-error{max-width:560px;margin:0 auto;padding:24px 16px}.boot-error pre{color:var(--muted);font-size:.8rem;overflow-x:auto}@media (width<=860px){input:not([type=checkbox]),select,textarea{min-height:44px;font-size:16px}input[type=checkbox]{width:24px;height:24px}button{touch-action:manipulation;-webkit-tap-highlight-color:transparent;min-height:44px}body{overscroll-behavior:none}h1{font-size:1.3rem}.shell,.shell.with-panel{flex-direction:column;display:flex}.sidebar{padding:calc(6px + env(safe-area-inset-top)) 16px 6px;border-right:0;border-bottom:1px solid var(--border);flex-direction:row;flex:none;justify-content:space-between;align-items:center}.brand,.sync-state{padding:0}.palette-trigger{display:none}.nav-list{z-index:4;padding:4px 4px calc(4px + env(safe-area-inset-bottom));border-top:1px solid var(--border);background:var(--surface);flex-direction:row;position:fixed;bottom:0;left:0;right:0;overflow-x:auto}.nav-list li{flex:1 0 56px}.nav-list button{text-align:center;white-space:nowrap;padding:4px 2px;font-size:.72rem}.content{padding-bottom:calc(128px + env(safe-area-inset-bottom));flex:1}.page{gap:12px;padding:16px}.page-head{align-items:center}.customize{min-height:32px;color:var(--muted);background:0 0;border-color:#0000;padding:2px 8px;font-size:.85rem}.panel{z-index:5;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom);border-left:0;position:fixed;inset:0}.panel-head .ghost{font-size:1.5rem;line-height:1}.widgets{grid-template-columns:minmax(0,1fr);gap:12px}.capture-help{display:none}.toolbar{gap:8px}.search{flex:100%;max-width:none}.object-list{gap:0}.object-list>li{border-bottom:1px solid var(--border);padding:10px 0}.object-list>li:last-child{border-bottom:0}.object-row .link{width:100%;display:block}.object-details{flex-wrap:wrap;align-items:center;gap:8px;font-size:.85rem;display:flex}.object-details:empty{display:none}.due-chip{border-radius:8px;width:100%;padding:6px 10px;font-size:.85rem}.add-button{right:16px;bottom:calc(68px + env(safe-area-inset-bottom));z-index:3;border-radius:50%;width:52px;height:52px;padding:0;font-size:1.6rem;line-height:1;position:fixed;box-shadow:0 2px 8px #00000040}.capture-sheet{border:1px solid var(--border);background:var(--surface);border-radius:12px;align-self:flex-start;width:100%;max-width:560px;padding:12px}.day-nav{align-items:center;gap:2px;margin:0 -8px;display:flex}.day-nav>.ghost{flex:none;min-width:28px;padding:0}.day-strip{flex:1;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;min-width:0;display:grid}.day-strip button{background:0 0;border-color:#0000;flex-direction:column;align-items:center;gap:1px;padding:4px 0;display:flex}.day-strip button.today strong{color:var(--accent)}.day-strip button[aria-pressed=true]{background:var(--accent);color:var(--accent-text)}.day-strip button[aria-pressed=true] .day-letter,.day-strip button[aria-pressed=true] strong{color:inherit}.day-strip button[aria-pressed=true] .day-dot.busy{background:var(--accent-text)}.day-letter{color:var(--muted);font-size:.7rem}.day-dot{border-radius:50%;width:5px;height:5px}.day-dot.busy{background:var(--accent)}.agenda-item{border:0;border-left:3px solid var(--tone);background:color-mix(in srgb, var(--tone) 12%, var(--surface));text-align:left;border-radius:8px;gap:12px;width:100%;padding:10px 12px;display:flex}.agenda-time{font-variant-numeric:tabular-nums;flex-direction:column;flex:none;display:flex}.agenda-time .muted{font-size:.8rem}.agenda-text{overflow-wrap:anywhere;flex-direction:column;flex:1;min-width:0;display:flex}.agenda-text strong{font-weight:600}.agenda-text .muted{font-size:.85rem}}
