:root{color-scheme:dark;--bg:#17121f;--panel:#241b30;--raised:#30233e;--text:#f5edf8;--muted:#b8a9c7;--gold:#edca80;--green:#a1d5b9;--warning:#efb9a1;--line:#ffffff13;--shadow:0 12px 40px #05030925;--lecture:#e9ad77;--written:#aad2ed;--test:#c6dd90;--client:#edcd83;--gentle:#dfaac62a;--flower:#e7b4ba;--clean:#c1b5d0;--therapy:#bad1d0}
:root[data-theme=light]{color-scheme:light;--bg:#f6f1f9;--panel:#fffbff;--raised:#eee5f4;--text:#30223e;--muted:#74617e;--gold:#856027;--green:#306e53;--warning:#9b4837;--line:#4431531b;--shadow:0 12px 40px #30223d08;--gentle:#efd5e4}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.45 'Segoe UI',Arial,sans-serif;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{color:inherit;background:transparent;border:0;cursor:pointer}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--gold);outline-offset:2px}button:hover:not(:disabled){filter:brightness(1.1)}a{color:var(--gold)}h1,h2,h3,p{margin:0}h1{font-size:29px;line-height:1.2;letter-spacing:-.8px;font-weight:600}h2{font-size:16px;font-weight:600;display:flex;align-items:center;gap:6px}h3{font-size:15px;margin-top:14px}small,.helper,.muted{font-size:12px;color:var(--muted)}p{margin:9px 0}b,strong{font-weight:600}svg{flex-shrink:0}input,textarea,select{width:100%;background:var(--bg);border:1px solid var(--line);border-radius:9px;color:var(--text);padding:10px 11px;min-height:44px;min-width:0;outline:none}input:focus,textarea:focus,select:focus{border-color:var(--gold)}textarea{min-height:80px;resize:vertical}label{display:block;font-size:13px;color:var(--muted);margin:12px 0}label input,label select,label textarea{display:block;margin-top:5px;color:var(--text)}label.checkbox{display:flex;align-items:center;gap:9px;color:var(--text);min-height:44px;margin:3px 0}.checkbox input{accent-color:var(--gold);min-height:20px;width:20px;height:20px;margin:0;flex-shrink:0}.row{display:flex;align-items:center;justify-content:space-between;gap:8px}.gold{color:var(--gold)}.tabular{font-variant-numeric:tabular-nums}.tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.tag{font-size:12px;color:var(--muted);border-radius:7px;background:var(--raised);padding:4px 8px;display:inline-flex}.gentle-text{background:var(--gentle)}.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:.5px;color:var(--muted)}.button,.outline,.gold-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:10px;padding:10px 13px;min-height:44px;text-decoration:none;font-size:13px}.outline{background:var(--raised);color:var(--gold)}.gold-button{background:linear-gradient(120deg,#f5dfaa,#d4ad66);color:#30223d;margin-top:12px}.button-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px}.text-button{min-height:44px;display:inline-flex;align-items:center;gap:5px;color:var(--gold);font-size:12px;padding:5px 0}.icon-button{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;flex-shrink:0;color:var(--muted)}.icon-button:hover{background:var(--raised)}.card{padding:14px;border-radius:16px;background:var(--panel);border:1px solid var(--line);margin:12px 0;box-shadow:var(--shadow)}.card h2{margin-bottom:6px}.warning{color:var(--warning);background:color-mix(in srgb,var(--warning) 10%,transparent);border-radius:11px;padding:11px 12px;margin:10px 0;font-size:12px}.warning p{margin:6px 0}.notice{display:flex;align-items:center;justify-content:space-between;color:var(--green);font-size:12px;background:var(--panel);padding:4px 10px;border-radius:10px;margin:5px 0}.empty{padding:30px 12px;text-align:center;color:var(--muted)}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.topbar{position:fixed;top:0;left:0;right:0;height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 26px;border-bottom:1px solid var(--line);background:var(--bg);z-index:10}.brand{color:var(--gold);font-size:17px;white-space:nowrap}.top-actions{display:flex;gap:12px;align-items:center}.today-button{min-height:44px;padding:0 12px;background:var(--raised);border-radius:11px;color:var(--gold);display:flex;align-items:center;gap:7px}.today-button.active{background:#d9b57020;box-shadow:inset 0 0 0 1px #d9b57040}.sync{font-size:11px;color:var(--muted)}.sidebar{width:216px;position:fixed;top:64px;left:0;bottom:0;padding:28px 16px;background:var(--panel);border-right:1px solid var(--line);display:flex;flex-direction:column;gap:8px}.sidebar-title{font-size:9px;letter-spacing:1px;color:var(--muted);margin:2px 5px 20px}.sidebar>button{display:flex;align-items:center;gap:12px;border-radius:10px;padding:13px 14px;text-align:left;color:var(--muted)}.sidebar>button.active{background:#d9b57017;color:var(--gold)}.sidebar-bottom{margin-top:auto;padding-top:30px;font-size:11px;color:var(--muted);overflow-wrap:anywhere}.content{padding:12px 30px 30px;margin:64px auto 0 216px;max-width:1500px;min-height:calc(100dvh - 64px)}.connection{display:flex;align-items:center;justify-content:flex-end;gap:3px;color:var(--muted);font-size:11px;min-height:26px;margin-bottom:4px}.connection .icon-button{height:28px;width:28px}.page-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0 12px}.page-title h1{margin:0}.dashboard-heading h1{margin:3px 0 8px}.dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:8px}.dashboard-grid>div{min-width:0}.section-heading{display:flex;align-items:center;justify-content:space-between;margin:16px 0 5px;gap:8px}.day-section{max-width:860px}.day-section .page-title{margin-top:22px}.page-footer{font-size:11px;color:var(--muted);text-align:center;margin-top:28px}.bottom-nav{display:none}.segments{display:flex;background:var(--bg);padding:3px;border-radius:10px;gap:3px;margin:9px 0}.segments button{flex:1;min-height:44px;padding:5px 8px;color:var(--muted);border-radius:8px;font-size:13px}.segments .active{background:var(--raised);color:var(--text)}.alarm{background:radial-gradient(ellipse at 100% 0%,#b986e31d,transparent 60%),var(--panel);border-color:#ebc67d30}.alarm-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.alarm-options button{min-height:72px;padding:7px 2px;background:var(--raised);border-radius:10px;text-align:center}.alarm-options strong{display:block;font-size:23px;letter-spacing:-.5px}.alarm-options small,.alarm-options em{display:block;font-size:11px;font-style:normal;color:var(--muted)}.alarm-options button.selected{box-shadow:inset 0 0 0 1px #e8c58388;background:#caa96517}.alarm-caption{font-size:12px;color:var(--muted);margin-top:7px}.inline-label{margin:0}.inline-label select{padding:5px;width:81px;min-height:44px;font-size:12px;margin:0}.quiet{font-size:11px;display:block;margin-top:5px}.quick-journal .row h2{font-size:14px}.quick-journal .row .text-button{min-height:36px}.quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:9px}.record-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:75px;width:100%;border-radius:10px;background:linear-gradient(120deg,#f5dfaa,#d4ad66);color:#30223d;padding:7px 3px;font-size:12px}.record-button b{font-weight:600}.record-button.recorded{opacity:1;background:var(--raised);color:var(--gold);box-shadow:inset 0 0 0 1px #c6a0e34a}.last-event small{display:block;font-size:10px;margin-top:6px;line-height:1.4}.last-event .button-row{display:grid;grid-template-columns:1fr 1fr;gap:2px}.last-event button{font-size:10px;color:var(--gold);min-height:44px;padding:0}.task-row{display:flex;align-items:center;border-bottom:1px solid var(--line);min-height:65px;gap:5px}.task-row time{width:42px;flex-shrink:0;font-size:13px;color:var(--gold)}.task-check{width:44px;height:44px;flex-shrink:0;display:flex;align-items:center;justify-content:center;color:var(--gold);font-size:25px}.task-check:before{content:'';position:absolute;width:26px;height:26px;border:1px solid #a890bd60;border-radius:8px}.task-row.done .task-check{color:var(--green)}.task-row.done .task-copy{opacity:.75}.task-row.done b{text-decoration:line-through}.task-row.cancelled .task-copy{color:var(--muted);text-decoration:line-through}.task-row.overdue .task-copy small{color:var(--warning)}.task-copy{display:block;text-align:left;flex:1;min-width:0;padding:9px 0}.task-copy b{font-weight:500;display:block;overflow-wrap:anywhere}.task-copy small{display:block;font-size:12px;margin-top:3px}.setup-note{color:var(--gold);padding:12px;background:var(--panel);border-radius:10px;min-height:44px;font-size:12px;width:100%;text-align:left;margin-top:12px}.lunch{margin:10px 0;padding:4px 11px;background:var(--panel);border-radius:11px;font-size:12px;color:var(--muted)}.period{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:9px 0}.period strong{font-size:14px;font-weight:500}.calendar-content{max-width:1300px}.calendar-head,.calendar-grid,.week-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.calendar-head{padding:10px 0 6px;text-align:center;font-size:12px;color:var(--muted)}.calendar-cell{height:90px;border-radius:9px;background:var(--panel);padding:6px 8px;text-align:left;min-width:0;position:relative;overflow:hidden}.cell-date{display:flex;align-items:center;gap:4px;font-size:17px}.cell-date small{font-size:11px}.cell-marks{display:flex;flex-wrap:wrap;align-items:center;gap:3px;margin-top:5px;min-width:0}.mark{display:inline-block;font-style:normal;padding:2px 4px;border-radius:4px;font-size:11px;line-height:16px;color:#30223d}.mark.flower,.mark.clean,.mark.therapy{border-radius:50%}.lecture{background:var(--lecture);color:#30223d}.written{background:var(--written);color:#30223d}.test{background:var(--test);color:#30223d}.client{background:var(--client);color:#30223d}.flower{background:var(--flower);color:#30223d}.clean{background:var(--clean);color:#30223d}.therapy{background:var(--therapy);color:#30223d}.neutral{background:var(--raised);color:var(--muted)}.gentle{background:var(--gentle)}.calendar-cell.current{box-shadow:inset 0 0 0 2px var(--gold)}.calendar-cell.cycle-start{outline:1px solid #c58aaa;outline-offset:-2px}.vacation{background:repeating-linear-gradient(135deg,var(--panel),var(--panel) 4px,#b6a0cf2a 4px,#b6a0cf2a 6px)}.vacation.gentle{background:repeating-linear-gradient(135deg,var(--gentle),var(--gentle) 4px,#b6a0cf35 4px,#b6a0cf35 6px)}.past-symbols{color:var(--green);font-size:13px;letter-spacing:2px}.legend-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:10px 0;font-size:12px}.legend-grid i{display:inline-block;width:10px;height:10px;margin-right:5px;border-radius:3px}.legend p{font-size:12px}.legend summary{color:var(--gold)}summary{min-height:44px;display:flex;align-items:center;gap:6px;cursor:pointer;font-size:13px}summary:before{content:'⌄';margin-right:3px}details[open]>summary:before{content:'⌃'}.week-grid{margin-top:12px}.week-col{min-width:0}.week-day{width:100%;border-radius:10px;min-height:65px;color:var(--muted);padding:4px 0;display:flex;flex-direction:column;align-items:center;justify-content:center}.week-day strong{font-size:18px;color:var(--text)}.week-day small{font-size:11px}.week-day.active{box-shadow:inset 0 0 0 1px #dfbd7870;background:#d9b5701c}.week-cards{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:8px 0;display:flex;flex-direction:column;gap:5px}.week-mini{height:44px;width:100%;border-radius:6px;padding:3px 0;display:flex;align-items:center;justify-content:center;gap:3px;font-size:12px}.week-mini small{font-size:10px;color:inherit}.week-mini.empty-mini{color:var(--muted);background:transparent}.week-mini.cancelled{opacity:.5;text-decoration:line-through}.week-more{min-height:44px;font-size:12px;color:var(--gold)}.gentle-col{background:var(--gentle);border-radius:10px}.range,.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.range{max-width:600px}.metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}.metric{border-radius:13px;padding:13px;background:var(--panel);min-width:0}.metric span{font-size:12px;color:var(--muted);display:block}.metric strong{display:block;font-size:24px;color:var(--gold);margin:6px 0;line-height:1.3;overflow-wrap:anywhere}.metric small{display:block}.category-bar{margin:15px 0}.track{height:7px;background:var(--raised);border-radius:10px;margin-top:7px;overflow:hidden}.track i{display:block;background:var(--gold);height:7px;border-radius:10px}.setting-row{padding:12px 0;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.setting-row small{display:block;margin-top:4px}.setting-row strong{font-size:13px}.setting-row p{font-size:12px;margin:4px 0}.setting-row .text-button{flex-shrink:0}.setting-row .button-row{flex-wrap:nowrap}.night-events{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:10px 0}.night-event{display:flex;flex-direction:column;align-items:flex-start;background:var(--raised);border-radius:10px;padding:10px;gap:5px;text-align:left;min-height:110px;min-width:0}.night-event small{font-size:11px}.night-event b{font-size:22px}.night-event.missing{color:var(--muted)}.night .row h2{font-size:15px}.night>.row{font-size:12px;flex-wrap:wrap}.deviation{font-size:12px;color:var(--gold)}.dev-track{width:100%;height:7px;background:linear-gradient(90deg,transparent 49%,var(--muted) 49%,var(--muted) 51%,transparent 51%),var(--bg);border-radius:3px;display:block}.dev-track i{display:block;background:var(--gold);height:7px;border-radius:3px}.event.cancelled{opacity:.7}.modal{position:fixed;margin:auto;padding:0;max-width:620px;width:calc(100vw - 32px);max-height:90dvh;border:1px solid var(--line);border-radius:20px;background:var(--panel);color:var(--text);box-shadow:0 20px 100px #0005;overflow:auto}.modal::backdrop{background:#0b0712aa;backdrop-filter:blur(3px)}.modal-inner{padding:28px 20px 20px}.modal-inner>h2{padding-right:30px}.close-modal{position:sticky;float:right;top:7px;right:7px;margin:5px 5px -49px 0;background:var(--raised);z-index:2}.modal form>h2{padding-right:40px}.modal .button-row{margin:12px 0}.modal .outline{margin:4px 0}.day-picker{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.day-picker button{min-height:44px;border-radius:8px;background:var(--bg);font-size:12px}.day-picker button.active{background:var(--raised);color:var(--gold);box-shadow:inset 0 0 0 1px var(--gold)}.login{max-width:520px;min-height:100dvh;margin:auto;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:30px}.login h1{font-size:48px;margin:24px 0}.login p{font-size:16px;color:var(--muted);line-height:1.7}.login small{margin-top:22px}.gold-dust-canvas{position:fixed;inset:0;pointer-events:none;z-index:99999}html[data-dust=rich] *,html[data-dust=delicate] *{cursor:url('/gold-cursor.svg') 2 2,auto}html[data-dust=rich] input,html[data-dust=rich] textarea,html[data-dust=delicate] input,html[data-dust=delicate] textarea{cursor:text}html[data-glow=on] .brand,html[data-glow=on] h1 .gold{text-shadow:0 0 18px #d9b66e28}html[data-glow=off] *{text-shadow:none!important}.app{min-height:100dvh}@media(min-width:1400px){.content{padding-left:50px;padding-right:50px}.dashboard-grid{max-width:1150px}}@media(max-width:900px){.sidebar{display:none}.content{margin-left:0;padding:10px 20px 100px;margin-top:58px}.topbar{height:58px;padding:0 16px}.bottom-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;min-height:65px;padding:5px 6px max(7px,env(safe-area-inset-bottom));background:var(--panel);border-top:1px solid #d5b2762c;box-shadow:0 -6px 24px #deb96e06;z-index:15}.bottom-nav button{font-size:11px;min-height:49px;color:var(--muted);border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:3px 0}.bottom-nav button.active{background:#d9b57017;color:var(--gold)}.desktop{display:none!important}.dashboard-grid{gap:18px}.calendar-cell{height:75px}.calendar-content{padding-left:16px;padding-right:16px}}@media(max-width:600px){h1{font-size:27px}.brand{font-size:15px}.content{padding:6px 16px 100px}.connection{font-size:10px;min-height:21px;margin-bottom:4px}.connection .icon-button{height:24px;width:26px}.dashboard-grid{display:block;margin-top:4px}.dashboard-heading h1{margin-top:2px}.card{padding:11px;margin:10px 0}.alarm-options strong{font-size:21px}.alarm-options button{min-height:70px}.quick-journal .row h2{font-size:14px}.last-event small{font-size:10px}.quick-actions{gap:5px}.record-button{min-height:70px;font-size:12px}.page-title{margin:8px 0 10px}.task-row{gap:1px;min-height:63px}.task-row>.icon-button{width:36px}.task-row time{width:38px;font-size:12px}.task-copy b{font-size:14px}.task-copy small{font-size:11px}.task-check{width:42px}.period strong{font-size:13px}.week-grid{gap:4px}.week-mini{font-size:11px;flex-direction:column;gap:0}.week-cards{gap:4px}.week-day{min-height:58px}.calendar-grid{gap:4px}.calendar-head{gap:4px}.calendar-cell{height:48px;padding:3px 4px;border-radius:7px}.cell-date{font-size:13px;gap:2px}.cell-date small{font-size:9px}.cell-marks{gap:2px;margin-top:2px;flex-wrap:nowrap}.cell-marks small{font-size:10px}.mark{font-size:9px;padding:0 2px;line-height:15px}.past-symbols{font-size:12px;letter-spacing:0}.legend-grid{grid-template-columns:1fr 1fr;gap:8px}.night-event{padding:8px}.night-event b{font-size:21px}.night-events{gap:5px}.night-event small{font-size:10px}.setting-row{flex-wrap:wrap;gap:4px}.setting-row .button-row{margin-top:0}.metrics{gap:8px}.metric{padding:12px}.metric strong{font-size:22px}.modal{width:100%;max-width:100%;margin:auto 0 0;border-radius:20px 20px 0 0;max-height:92dvh}.modal-inner{padding:26px 16px 20px}.page-footer{font-size:10px}.login h1{font-size:40px}.top-actions{gap:4px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.alarm-help{margin-top:3px}.alarm-help summary{min-height:28px;font-size:11px;color:var(--muted)}.mark.test{border-radius:50%}.last-event small{font-size:11px}.last-event button{font-size:11px}.record-button:hover:not(:disabled){box-shadow:0 0 18px #e5bd7933}.task-row .task-check:hover:not(:disabled){background:var(--raised);border-radius:9px}
@media(max-width:600px){.alarm-help summary{min-height:25px}.alarm-options button{min-height:62px}.alarm-options em{font-size:10px}.quick-journal .row h2{font-size:13px}.quick-actions .record-button{min-height:65px}.alarm .segments{margin:5px 0}.dashboard-grid .card{margin:8px 0}.quick-journal .text-button{min-height:32px}.content>.connection{min-height:18px}.last-event .button-row{display:flex;flex-wrap:wrap}.last-event button{flex:1 1 44px}.alarm-caption{gap:4px;font-size:11px}}
.week-boundary{display:block;font-size:11px;color:var(--muted);margin:6px 0}.week-grid{margin-top:5px}
a.text-button{display:flex;width:fit-content}
@media(pointer:fine) and (prefers-reduced-motion:no-preference){html[data-glow=on] .alarm{animation:alarm-breathe 9s ease-in-out infinite}html[data-dust=rich] button:hover,html[data-dust=delicate] button:hover,html[data-dust=rich] a:hover,html[data-dust=delicate] a:hover{cursor:url('/gold-cursor-bright.svg') 2 2,pointer}}
@keyframes alarm-breathe{0%,100%{box-shadow:0 0 12px #e3bc7110}50%{box-shadow:0 0 23px #be92e418,0 0 9px #e3bc7115}}
.weekly-checklists{margin:22px 0 12px;max-width:860px}.checklist-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--raised);border-radius:12px;padding:12px;margin:10px 0;font-size:13px}.checklist-summary strong{font-size:24px;color:var(--gold);font-weight:600}.checklist-group{padding:10px 12px}.checklist-group>summary{display:block;padding:5px 0;position:relative;min-height:58px}.checklist-group>summary:before{position:absolute;right:0;top:4px}.checklist-group-title{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-right:15px}.checklist-group-title b{font-size:16px}.checklist-group-title>span{font-size:12px;color:var(--gold);text-align:right}.checklist-progress{height:4px;border-radius:5px;background:var(--bg);display:block;margin-top:11px;overflow:hidden}.checklist-progress i{display:block;background:var(--gold);height:100%;border-radius:5px}.checklist-row{display:flex;align-items:center;gap:9px;min-height:58px;padding:6px 0;border-bottom:1px solid var(--line)}.checklist-mark{width:44px;height:44px;flex-shrink:0;border-radius:10px;background:var(--raised);color:var(--gold);font-size:23px;display:flex;align-items:center;justify-content:center;position:relative}.checklist-mark.status-done{color:var(--green);background:color-mix(in srgb,var(--green) 13%,var(--raised))}.checklist-mark.status-cancelled,.checklist-mark.status-moved{font-size:20px;color:var(--muted)}.checklist-mark:disabled{opacity:.7}.checklist-copy{min-width:0;flex:1}.checklist-copy strong{display:block;font-size:14px;font-weight:500;overflow-wrap:anywhere}.checklist-copy small{display:block;margin-top:3px;font-size:12px}.checklist-undo{display:flex;align-items:center;justify-content:center;gap:4px;min-height:44px;padding:5px 3px;font-size:11px;color:var(--gold);flex-shrink:0}.checklist-completed,.checklist-excluded{margin-top:7px}.checklist-completed>summary,.checklist-excluded>summary{min-height:44px;color:var(--muted);font-size:12px}.checklist-row.status-done .checklist-copy strong{color:var(--muted)}.checklist-row.status-cancelled .checklist-copy strong{text-decoration:line-through;color:var(--muted)}.checklist-upcoming{font-size:12px;color:var(--muted);margin:10px 0}.checklist-hint{font-size:12px;color:var(--muted);line-height:1.6}.checklist-results{margin:18px 0}.check-matrix-head,.check-matrix-row{display:grid;grid-template-columns:minmax(120px,1.5fr) repeat(7,minmax(44px,1fr));align-items:center;gap:2px}.check-matrix-head{font-size:12px;color:var(--muted);border-bottom:1px solid var(--line);padding-bottom:5px}.check-matrix-head>span:not(:first-child){text-align:center}.check-matrix-head small{display:block;color:var(--gold)}.check-matrix-row{border-bottom:1px solid var(--line);min-height:51px;padding:3px 0}.check-matrix-title{font-size:13px;overflow-wrap:anywhere;padding-right:6px}.check-matrix-cell{min-width:0;display:flex;align-items:center;justify-content:center;min-height:44px}.check-matrix-cell .checklist-mark{background:transparent}.check-matrix-cell .checklist-mark.status-done{background:color-mix(in srgb,var(--green) 13%,transparent)}.matrix-empty{color:var(--muted);display:block;text-align:center;font-size:18px}.matrix-multiple{width:44px;min-height:44px;padding:2px 0;font-size:14px;color:var(--gold);overflow-wrap:anywhere}.matrix-multiple small{display:block;font-size:9px}.checklist-key p{font-size:12px;color:var(--muted)}
@media(max-width:650px){.check-matrix-head,.check-matrix-row{grid-template-columns:repeat(7,minmax(44px,1fr));gap:1px}.matrix-title-head{display:none}.check-matrix-title{grid-column:1/-1;padding:7px 0 3px;font-size:13px}.check-matrix-row{padding:3px 0 5px}.checklist-results.card{padding:10px}.checklist-group-title b{font-size:15px}.checklist-group-title>span{font-size:11px}.checklist-summary{padding:10px;font-size:12px}.checklist-summary small{font-size:11px}.checklist-undo{font-size:11px;flex-direction:column;gap:1px;min-width:44px}.checklist-group-title{gap:5px}.checklist-copy small{font-size:11px}}
.calendar-cell .cell-top{display:flex;align-items:flex-start;justify-content:space-between;gap:3px}.calendar-cell .cell-date{display:flex;flex-direction:column;align-items:flex-start;gap:0;line-height:1.05}.calendar-cell .cell-date small{font-size:11px;color:var(--muted);line-height:1.2;margin-top:2px}.cell-cycle{font-size:11px;line-height:18px;min-width:19px;padding:0 3px;text-align:center;border-radius:6px;background:var(--raised);color:var(--muted)}.calendar-cell.gentle{background:#e6bed2;color:#352139}.calendar-cell.gentle .cell-date small,.calendar-cell.gentle .cell-cycle{color:#68465d}.calendar-cell.gentle .cell-cycle{background:#f7dfeb}.calendar-cell.cycle-start{outline:none;padding:6px 5px}.calendar-cell.cycle-start::after{content:"";position:absolute;inset:0;border:4px solid #b05a87;border-radius:inherit;pointer-events:none}.calendar-cell.cycle-start .cell-cycle{background:#814464;color:#fff1f8}.calendar-cell.vacation{background:repeating-linear-gradient(135deg,#44334f,#44334f 5px,#685071 5px,#685071 8px);box-shadow:inset 0 -4px 0 #c9b0de;color:#fff4fc}.calendar-cell.vacation .cell-date small{color:#eadcf3}.calendar-cell.vacation.gentle{background:repeating-linear-gradient(135deg,#e6bed2,#e6bed2 5px,#cfa0bf 5px,#cfa0bf 8px);color:#352139}.calendar-cell.vacation.gentle .cell-date small{color:#68465d}.vacation-label{font-size:10px;font-weight:600;line-height:15px;background:#eedcf8;color:#4e2b63;border-radius:3px;padding:0 3px}.calendar-cell.current{box-shadow:inset 0 0 0 2px var(--gold)}:root[data-theme=light] .calendar-cell.vacation{background:repeating-linear-gradient(135deg,#e4d5f0,#e4d5f0 5px,#c3acd6 5px,#c3acd6 8px);color:#30223d}:root[data-theme=light] .calendar-cell.vacation .cell-date small{color:#5d416f}:root[data-theme=light] .calendar-cell.vacation.gentle{background:repeating-linear-gradient(135deg,#e6bed2,#e6bed2 5px,#cfa0bf 5px,#cfa0bf 8px)}
@media(max-width:600px){.calendar-cell{height:72px;padding:5px 3px}.calendar-cell .cell-date{font-size:13px}.calendar-cell .cell-date small{font-size:10px}.cell-cycle{font-size:10px;min-width:16px;line-height:17px;padding:0 2px}.calendar-cell .cell-top{gap:1px}.cell-marks{flex-wrap:wrap;gap:2px}.vacation-label{font-size:9px}}
.password-login form,.owner-setup form{width:100%}.password-login h1,.owner-setup h1{font-size:38px;margin:18px 0}.login-lock{color:var(--gold);padding:17px;border-radius:16px;background:var(--panel);margin-top:25px}.password-login form .button{width:100%}.password-login>.text-button{margin-top:12px}.owner-setup{max-width:570px}.owner-setup label.checkbox{margin-top:14px}.owner-setup .button{width:100%}
.continuing-day{padding:10px 12px;border-radius:11px;background:var(--panel);color:var(--gold);font-size:12px;margin:12px 0 5px;line-height:1.6}

/* Compact daily dashboard; touch targets remain at least 44px. */
.settings-button.active{background:var(--raised);color:var(--gold);border-radius:10px}
.alarm.card,.quick-journal.card{padding:12px 14px;margin:8px 0}
.alarm .segments{margin:6px 0}.alarm .segments button{min-height:34px;padding:5px 9px}
.alarm-options{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
.alarm-options button{min-height:58px;padding:5px 2px;border-radius:8px}
.alarm-options strong{font-size:20px;line-height:1.15}.alarm-options small,.alarm-options em{font-size:10px;line-height:1.35}
.alarm-caption{margin-top:4px;justify-content:flex-end;gap:8px}.alarm-caption .inline-label{margin:0}.alarm-caption select{min-height:32px;padding:3px 6px;width:88px}
.alarm h2{font-size:15px}.alarm>label{margin:7px 0}.alarm input{min-height:38px;padding:6px 9px}
.quick-journal .row h2{font-size:15px}.quick-journal .row>.text-button{min-height:32px;padding:2px 0}.rhythm-clock{font-size:12px;margin-left:auto}
.quick-actions{margin-top:5px}.quick-actions .record-button{min-height:65px;gap:3px;padding:6px 3px;font-size:12px}.record-button small{font-size:11px;color:inherit}
.dashboard-heading h1{font-size:25px;margin:1px 0 4px}.dashboard-heading .tags{margin:3px 0 5px}.continuing-day{font-size:11px;padding:5px 8px;margin:5px 0}
.compact-day-heading{display:flex;align-items:center;gap:10px;margin:16px 0 2px}.compact-day-heading h2{font-size:18px;white-space:nowrap}.compact-day-heading>span{font-size:14px;color:var(--muted)}.compact-day-heading>.icon-button{margin-left:auto}
.day-category{display:grid;grid-template-columns:94px minmax(0,1fr);gap:8px;border-bottom:1px solid var(--line)}
.day-category h3{font-size:12px;font-weight:500;color:var(--muted);margin:0;padding:12px 0;display:flex;align-items:flex-start;gap:5px;overflow-wrap:anywhere}.day-category h3>span:first-child{font-size:18px;line-height:1.2}
.day-category>div{min-width:0}.home-day .task-row{min-height:54px;gap:2px}.home-day .task-row:last-child{border-bottom:0}.home-day .task-copy{padding:7px 0}.home-day .task-copy b{font-size:13px}.home-day .task-copy small{font-size:11px}.home-day .task-check{position:relative;width:36px;height:44px;color:var(--gold);font-size:22px}.home-day .task-check:before{width:23px;height:23px;border-radius:7px;border-color:#d5ad6755}.home-day .task-row.done .task-check{color:var(--gold);filter:drop-shadow(0 0 5px #f1ce7280)}.home-day .task-row.done .task-check:before{border-color:#d5ad6790;box-shadow:0 0 9px #f1ce7225}.home-day .task-row>.icon-button{width:30px;flex-shrink:0}.home-day .warning{margin:6px 0;padding:7px 9px}
@media(max-width:600px){.alarm.card,.quick-journal.card{padding:10px 12px}.alarm-options strong{font-size:18px}.alarm-options button{min-height:56px}.alarm-caption{font-size:11px}.day-category{grid-template-columns:70px minmax(0,1fr);gap:4px}.day-category h3{flex-direction:column;gap:3px;font-size:11px}.compact-day-heading{gap:7px}.compact-day-heading h2{font-size:17px}.compact-day-heading>span{font-size:13px}.dashboard-grid{margin-top:2px}.home-day .task-check{width:32px}.home-day .task-copy b{font-size:12px}.home-day .task-copy small{font-size:10px}.rhythm-clock{font-size:11px}.quick-journal .row h2{font-size:14px}}

.day-browser{gap:3px}.day-browser>.icon-button{width:30px;min-width:30px;height:44px;margin-left:0}.day-browser>.icon-button:last-child{margin-left:auto}.day-browser-date{font-size:17px;font-weight:600;white-space:nowrap;padding:0 2px;min-height:44px}.day-browser>span{font-size:13px;white-space:nowrap;margin-left:5px}@media(max-width:600px){.day-browser-date{font-size:15px}.day-browser>span{font-size:12px;margin-left:2px}.day-browser>.icon-button{width:27px;min-width:27px}}

/* Approved deadline variant 5: fixed masthead and frame prevent downward growth. */
.home-masthead{height:123px;display:grid;grid-template-columns:minmax(0,1fr) 110px;gap:10px;align-items:center;max-width:480px}
.home-masthead .dashboard-heading{min-width:0;max-height:120px}.home-masthead .eyebrow{font-size:10px;letter-spacing:.3px}.home-masthead h1{font-size:22px;line-height:1.15;font-weight:500;letter-spacing:-.5px;margin:3px 0}.home-masthead .tags{gap:3px;margin:3px 0}.home-masthead .tag{font-size:10px;padding:3px 5px}.masthead-plan{display:block;font-size:10px;line-height:1.35;color:var(--muted);margin-top:4px}
.home-deadlines{height:120px;padding:6px 8px;border:1px solid #d9b76bb0;border-radius:13px;box-shadow:0 0 12px #f1ce7230,inset 0 0 10px #e3b45d09;background:linear-gradient(125deg,#33263e,#241d30);color:#eee2f4;min-width:0;overflow:hidden}
.home-deadlines button{padding:0;min-width:0;text-align:left}.deadline-hero{display:flex;align-items:center;justify-content:space-between;gap:5px;height:32px;border-bottom:1px solid #dab77525;width:100%;padding-bottom:3px!important}.deadline-hero>span:first-child{font-size:11px;line-height:1.2}.deadline-hero>span:first-child>small{display:block;font-size:10px;color:#bcaacc;margin-top:2px}.deadline-value{font-size:18px;font-weight:300;line-height:1;color:#f1ce72;text-shadow:0 0 8px #f1ce7280;white-space:nowrap;font-variant-numeric:tabular-nums;flex-shrink:0}.deadline-hero>.deadline-value{font-size:29px}.deadline-value small{display:inline;font-size:9px;font-weight:400;margin-left:3px;color:#c2ab7e;text-shadow:none}
.deadline-constants{display:grid;gap:1px;margin:3px 0}.deadline-constants button{display:flex;align-items:center;justify-content:space-between;gap:4px;height:17px;width:100%}.deadline-label{font-size:11px;color:#d2c5db;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.deadline-label i{font-style:normal;font-size:12px;margin-right:3px}
.deadline-near{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 8px)/3);gap:4px;padding-top:2px;border-top:1px solid #dab77525;overflow-x:auto;overflow-y:hidden;height:36px;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#bd9a5340 transparent}.deadline-near button{text-align:center;background:#f1ce720a;border-radius:6px;scroll-snap-align:start;height:30px}.deadline-near .deadline-label{display:block;font-size:10px;line-height:11px}.deadline-near .deadline-label i{font-size:11px;margin-right:2px}.deadline-near .deadline-value{display:block;font-size:18px;line-height:19px}.deadline-none{font-size:10px;color:#bcaacc;white-space:nowrap;grid-column:span 3;align-self:center}.deadline-late{background:#c5687c22!important}.deadline-late .deadline-value small{font-size:8px;color:#edb6c4}
.deadline-editor{border:1px solid var(--line);border-radius:12px;padding:0 12px 12px;margin:14px 0}.deadline-editor legend{padding:0 6px;color:var(--gold);font-size:13px}.deadline-editor label{margin:8px 0}.deadline-detail{padding:12px 0;border-bottom:1px solid var(--line)}
:root[data-theme=light] .home-deadlines{background:linear-gradient(125deg,#fff9ed,#f2e8f3);color:#49324c;border-color:#b68c4db0;box-shadow:0 0 12px #cba35c25}:root[data-theme=light] .deadline-label{color:#634f68}:root[data-theme=light] .deadline-value{color:#946629;text-shadow:0 0 7px #d1a95760}:root[data-theme=light] .deadline-value small{color:#82653a}:root[data-theme=light] .deadline-hero>span:first-child>small,:root[data-theme=light] .deadline-none{color:#7a6682}:root[data-theme=light] .deadline-near button{background:#ad854d0d}
@media(min-width:901px){.home-masthead{max-width:520px;grid-template-columns:minmax(0,1fr) 160px;gap:18px}.home-masthead h1{font-size:26px}.deadline-label{font-size:12px}}

/* Approved refined layout 5 with compact day rows from layout 6. */
.header-day{text-align:right;display:flex;flex-direction:column;gap:2px}.header-day strong{font-size:15px;font-weight:500;line-height:1.2}.header-day small{font-size:10px;color:var(--muted)}
.home-masthead{display:block;height:auto;max-width:860px;margin:0 0 8px}.home-deadlines{height:166px;width:100%;display:grid;grid-template-rows:34px 16px 50px 36px;gap:4px;padding:8px 10px;background:linear-gradient(125deg,#33263e,#241d30)}
.deadline-hero{height:34px;padding:0!important;border:0}.deadline-hero .mmu-title{font-size:12.5px;font-weight:500;line-height:1.2;text-align:left;color:inherit}.deadline-hero>.deadline-value{font-size:35px;text-align:right;color:#f1ce72}.semester-meta{display:flex;gap:5px;align-items:center;margin-top:1px;color:#bfaacd;font-size:11px;min-height:17px}.semester-meta select{font-size:11px;min-height:0;height:18px;padding:0;width:auto;max-width:105px;border:0;border-radius:0;background:transparent;color:inherit;margin:0}.semester-meta option{background:var(--panel);color:var(--text)}.semester-meta .semester-date{font-size:11px;color:inherit;white-space:nowrap}.lumina-dot{width:5px;height:5px;border-radius:50%;background:#90c9ad;flex-shrink:0}.lumina-dot.stale{background:#e1b36b;box-shadow:0 0 6px #f1ce7240}
.lumina-progress-row{display:flex;align-items:center;gap:9px}.lumina-progress{height:9px;flex:1;background:#ffffff0c;border:1px solid #d8bf722c;border-radius:20px;overflow:hidden}.lumina-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#c4a45a,#f4db92);box-shadow:0 0 17px #efcc6255;transition:width .4s ease}.lumina-progress-row strong{font-size:13px;font-weight:500;color:#ead18c;min-width:33px;text-align:right;font-variant-numeric:tabular-nums}
.deadline-constants{height:50px;grid-template-rows:23px 23px;gap:4px;margin:0}.deadline-constants button{height:23px;border-bottom:1px solid #d9b66a15;padding:0 1px}.deadline-constants .deadline-label{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.constant-date{display:inline;font-size:11px;margin-left:4px;color:#d1b68a;white-space:nowrap}.deadline-constants .deadline-value{font-size:22px}.deadline-near{height:36px}.deadline-near .deadline-label{font-size:11px;line-height:12px}.deadline-near .deadline-value{font-size:20px;line-height:21px}.deadline-near button{height:33px}.deadline-near .deadline-none{height:33px;display:flex;align-items:center}
.home-utilities{max-width:860px;display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);gap:0;border:1px solid #d6b56b80;border-radius:14px;background:linear-gradient(105deg,#2a2035,#221c2d);box-shadow:0 0 13px #e1bd6b17;overflow:hidden;margin:0 0 9px}
.home-utilities>.card{margin:0!important;padding:7px;min-width:0;min-height:154px;border:0;border-radius:0;background:none;box-shadow:none!important;animation:none!important}.home-utilities>.alarm{border-right:1px solid #d6b56b35}.home-utilities .row{gap:3px}.home-utilities h2,.home-utilities .quick-journal .row h2{font-size:12px;font-weight:500;white-space:nowrap;gap:3px}.home-utilities .alarm>.row{min-height:18px}.home-utilities .alarm>.row small{font-size:10px;white-space:nowrap}.home-utilities .alarm .segments{display:grid;grid-template-columns:1fr 1fr;gap:2px;margin:4px 0;padding:2px;border-radius:7px}.home-utilities .alarm .segments button{font-size:11px;min-height:25px;height:25px;padding:0 1px;border-radius:5px}.home-utilities .alarm-options{grid-template-columns:repeat(5,minmax(0,1fr));gap:2px}.home-utilities .alarm-options button{min-height:44px;padding:4px 0;border-radius:6px;min-width:0}.home-utilities .alarm-options strong{font-size:12px;font-weight:500;line-height:1.15;letter-spacing:-.25px;white-space:nowrap}.home-utilities .alarm-options small{font-size:10px;line-height:1.4;margin-top:2px}.home-utilities .alarm-options em{display:none}.alarm-selected-date{font-size:9px;line-height:12px;color:var(--muted);text-align:center;white-space:nowrap}.home-utilities .alarm-caption{min-height:25px;margin-top:3px;font-size:10px;justify-content:space-between;gap:3px}.home-utilities .alarm-caption select{height:25px;min-height:25px;padding:2px 5px;width:69px;font-size:10px}.home-utilities .alarm-caption .inline-label{margin:0}.home-utilities .alarm input{font-size:11px;min-height:34px;padding:5px}.home-utilities .alarm>label{font-size:11px;margin:4px 0}.home-utilities .alarm .warning{font-size:10px;margin:3px 0;padding:4px}
.home-utilities .quick-journal>.row{height:18px}.home-utilities .quick-journal .row h2{font-size:11.5px}.home-utilities .rhythm-clock{font-size:9.5px}.rhythm-current-day{font-size:10px;line-height:12px;color:var(--muted);margin:2px 0 4px}.home-utilities .quick-actions{gap:3px;margin-top:4px}.home-utilities .record-button{min-height:84px;height:84px;padding:5px 1px;gap:5px;font-size:11px;border-radius:8px}.home-utilities .record-button.recorded{background:linear-gradient(120deg,#f5dfaa,#d4ad66);color:#30223d;box-shadow:inset 0 0 0 1px #d5b36a33}.home-utilities .record-button b{white-space:nowrap;font-size:11px;font-weight:500;line-height:1.1}.home-utilities .record-button svg{width:18px;height:18px}.home-utilities .record-button small{font-size:9px;line-height:12px;white-space:nowrap}.home-utilities .journal-link{min-height:16px;height:16px;line-height:16px;font-size:10px;width:100%;justify-content:flex-end;text-align:right;margin:0;padding:0}.home-plan-hint{font-size:10px;line-height:1.3;color:var(--muted);margin:3px 0 2px}
.home-day .day-category{border-left:2px solid #c6a1d333;padding-left:3px;grid-template-columns:40px minmax(0,1fr);gap:3px}.home-day .day-category h3{padding:5px 0;font-size:10px;gap:2px}.home-day .day-category h3>span:first-child{font-size:14px}.home-day .task-row.compact-task{display:grid;grid-template-columns:20px minmax(0,1fr) 30px 49px 12px;gap:3px;min-height:28px}.home-day .compact-task .task-copy{padding:0!important;min-height:28px;min-width:0;overflow:hidden;text-align:left}.home-day .compact-task .task-copy b{font-size:11.5px;font-weight:500;line-height:1.3;white-space:nowrap;overflow:hidden;display:block;text-overflow:ellipsis;letter-spacing:-.1px}.home-day .compact-task .task-check{width:20px;height:28px;min-width:0;font-size:18px}.home-day .compact-task .task-check:before{width:18px;height:18px;border-radius:5px}.home-day .compact-task .task-check svg{width:16px;height:16px}.home-day .compact-task .task-duration{font-size:10px;text-align:right;white-space:nowrap;color:var(--muted);background:#a488bf12;border-radius:4px;padding:3px 0}.home-day .compact-task .task-due{font-size:10px;text-align:right;white-space:nowrap;padding:0;color:var(--gold);min-width:0;overflow:hidden;text-overflow:ellipsis}.home-day .compact-task.overdue .task-due{color:var(--warning)}.home-day .compact-task>.icon-button{width:12px;min-width:12px;height:28px;min-height:28px;padding:0}.home-day .compact-task>.icon-button svg{width:13px;height:13px}.home-day .warning{margin:3px 0;padding:5px 8px;font-size:10px}
:root[data-theme=light] .semester-meta,:root[data-theme=light] .constant-date{color:#826b50}:root[data-theme=light] .deadline-hero>.deadline-value{color:#946629}:root[data-theme=light] .lumina-progress{background:#8c6ea31a;border-color:#b7935140}:root[data-theme=light] .lumina-progress-row strong{color:#946629}:root[data-theme=light] .home-utilities{background:linear-gradient(110deg,#fcf7f1,#f1e8f5);border-color:#b8955b66}:root[data-theme=light] .home-utilities .alarm{border-color:#b8955b35}
@media(max-width:900px){.topbar .brand{font-size:12px}.top-actions{gap:6px}.top-actions .settings-button{width:34px;min-width:34px}.header-day strong{font-size:14px}.header-day small{font-size:10px}.home-masthead{max-width:none}.home-deadlines{max-width:none}}
@media(min-width:901px){.home-deadlines{height:180px;grid-template-rows:38px 18px 54px 40px}.deadline-hero .mmu-title{font-size:16px}.semester-meta,.semester-meta select,.semester-meta .semester-date{font-size:12px}.deadline-constants{height:54px;grid-template-rows:25px 25px}.deadline-constants button{height:25px}.deadline-constants .deadline-label{font-size:14px}.constant-date{font-size:12px}.deadline-near{height:40px}.deadline-near button{height:37px}.home-utilities>.card{padding:12px;min-height:175px}.home-utilities h2,.home-utilities .quick-journal .row h2{font-size:15px}.home-utilities .alarm>.row small{font-size:12px}.home-utilities .alarm-options strong{font-size:22px;letter-spacing:0}.home-utilities .alarm-options em{display:block;font-size:10px}.alarm-selected-date{display:none}.home-utilities .alarm-options button{min-height:62px}.home-utilities .alarm .segments button{font-size:12px;min-height:28px}.home-utilities .alarm-caption,.home-utilities .alarm-caption select{font-size:11px}.home-utilities .rhythm-clock{font-size:12px}.home-utilities .record-button{height:100px;font-size:12px}.home-utilities .record-button b{font-size:12px}.home-utilities .record-button small{font-size:11px}.home-day .day-category{grid-template-columns:72px minmax(0,1fr)}.home-day .day-category h3{flex-direction:row;align-items:center;font-size:11px;gap:6px}.home-day .compact-task .task-copy b{font-size:13px}.home-day .task-row.compact-task{grid-template-columns:24px minmax(0,1fr) 48px 70px 22px;min-height:32px}.home-day .compact-task .task-duration,.home-day .compact-task .task-due{font-size:11px}.home-day .compact-task>.icon-button{width:22px}.home-day .compact-task .task-check{width:24px;height:32px}}
@media(prefers-reduced-motion:reduce){.lumina-progress i{transition:none}}

.home-day .warning summary{min-height:24px;font-size:10px}
/* Compact header sync and approved home refinements */
.header-sync{position:relative;display:flex;align-items:center;justify-content:center;width:31px;height:36px;flex-shrink:0;color:var(--muted)}.header-sync .sync-check{position:absolute;right:0;bottom:5px;color:var(--green);background:var(--bg);border-radius:50%}.header-sync.unconfirmed{color:var(--red)}.header-sync.saving svg{animation:sync-spin 1.3s linear infinite}@keyframes sync-spin{to{transform:rotate(360deg)}}
.home-deadlines{height:auto!important;min-height:178px}.home-deadlines .lumina-progress-row{margin-bottom:10px}.home-deadlines .deadline-constants{padding-bottom:8px}.home-deadlines .deadline-near{margin-top:5px}.home-day .day-category{border-left:0!important}.home-day .day-category+.day-category{border-top:2px solid color-mix(in srgb,var(--gold) 36%,transparent);margin-top:5px;padding-top:4px}.home-utilities .quick-journal .record-button{background:var(--raised)!important;color:var(--text)!important;box-shadow:inset 0 0 0 1px var(--line)!important}.home-utilities .quick-journal .record-button.recorded{background:color-mix(in srgb,var(--green) 16%,var(--panel))!important;color:var(--green)!important;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--green) 45%,transparent)!important}.home-utilities .quick-journal .record-button:not(.recorded)>svg{color:var(--gold)}
@media(max-width:700px){.top-actions{gap:5px}.header-day{margin-right:1px}.topbar .brand{font-size:11px}.topbar{padding-left:14px;padding-right:12px}}
/* Approved deadline grid: fixed five columns, including incomplete final rows. */
.home-deadlines .deadline-near{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));overflow:visible;gap:5px;align-items:stretch;padding-top:7px;border-top:1px solid color-mix(in srgb,var(--gold) 18%,transparent)}
.home-deadlines .deadline-near>button{min-width:0;width:auto;flex:initial;padding:6px 2px;border-radius:7px;min-height:68px;background:color-mix(in srgb,var(--gold) 4%,transparent)}
.home-deadlines .deadline-near .deadline-label{display:flex;flex-direction:column;align-items:center;justify-content:center;white-space:normal;overflow-wrap:anywhere;font-size:10px;line-height:1.15;min-height:31px;gap:2px}
.home-deadlines .deadline-near .deadline-label i{font-size:15px;line-height:17px}.home-deadlines .deadline-near .deadline-value{display:block;font-size:23px;line-height:1.15}.home-deadlines .deadline-near .deadline-value small{font-size:8px;margin-left:2px}.home-deadlines .deadline-none{grid-column:1/-1}
.weekly-table-checklists{margin-top:20px}.weekly-table-heading{display:flex;align-items:center;justify-content:space-between;gap:5px}.weekly-table-heading h2{font-size:16px;white-space:nowrap}.weekly-week-picker{display:flex;align-items:center;gap:0}.weekly-week-picker .icon-button{width:28px;min-height:32px;height:32px}.weekly-week-label{font-size:10px;color:var(--muted);padding:4px 0;min-height:32px;white-space:nowrap}.weekly-total-progress{display:flex;align-items:center;gap:8px;margin:7px 0 10px;font-size:10px;color:var(--muted)}.weekly-total-progress>span:first-child,.weekly-total-progress>span:last-child{white-space:nowrap}.weekly-gradient-progress{display:block;position:relative;flex:1;height:5px;background:var(--raised);border:1px solid var(--line);border-radius:10px;overflow:hidden;min-width:10px}.weekly-gradient-progress>i{height:100%;display:block;border-radius:inherit;background:linear-gradient(90deg,#9672bb,#dfbf83)}
.weekly-group-icons{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin-bottom:12px}.weekly-group-icons>button{min-width:0;display:flex;flex-direction:column;align-items:center;gap:3px;padding:6px 5px;border:1px solid transparent;border-radius:8px;background:var(--panel);min-height:76px;color:var(--muted)}.weekly-group-icons>button.has-pending{border-color:color-mix(in srgb,var(--gold) 58%,transparent);box-shadow:0 0 9px color-mix(in srgb,var(--gold) 18%,transparent),inset 0 0 7px color-mix(in srgb,var(--gold) 5%,transparent)}.weekly-group-icons>button>span:first-child{font-size:17px;line-height:19px}.weekly-group-icons b{font-size:10px;font-weight:500;line-height:12px}.weekly-group-icons small{font-size:9px;line-height:11px}.weekly-group-icons .weekly-gradient-progress{flex:initial;width:100%;height:4px;margin-top:2px}.weekly-table-group{margin:0 0 8px;scroll-margin:80px;border-radius:7px;background:color-mix(in srgb,var(--panel) 60%,transparent);overflow:hidden}.weekly-group-heading{display:flex;align-items:center;gap:8px;padding:6px 8px;background:var(--raised)}.weekly-group-heading h3{font-size:11px;font-weight:500;margin:0;white-space:nowrap}.weekly-group-heading>small{font-size:10px;color:var(--muted)}.weekly-table-row{display:grid;grid-template-columns:32px minmax(0,1fr) 53px;align-items:center;min-height:33px;padding:0 7px;border-bottom:1px solid var(--line)}.weekly-table-row:last-child{border-bottom:0}.weekly-table-row .checklist-mark{height:32px;min-height:32px;width:30px;min-width:30px;font-size:15px;display:flex;align-items:center;justify-content:center;background:none;border:0;box-shadow:none;color:var(--gold)}.weekly-table-row .checklist-mark svg{width:17px;stroke-width:1.5;filter:drop-shadow(0 0 4px color-mix(in srgb,var(--gold) 45%,transparent))}.weekly-task-name{font-size:12px;line-height:18px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.weekly-task-date{font-size:9px;text-align:right;color:var(--muted);white-space:nowrap}.weekly-table-row.status-done .weekly-task-name{color:var(--muted);text-decoration:line-through;text-decoration-color:var(--line)}.weekly-no-tasks{font-size:10px;color:var(--muted);padding:5px 8px;margin:0}.weekly-excluded{padding:0 8px;color:var(--muted)}.weekly-excluded summary{min-height:23px;font-size:9px}.weekly-excluded p{font-size:10px;margin:3px 0}.weekly-table-checklists .weekly-tables{margin-top:0}
@media(min-width:900px){.weekly-group-icons>button{flex-direction:row;flex-wrap:wrap;justify-content:center;min-height:54px;padding:8px}.weekly-group-icons .weekly-gradient-progress{flex-basis:100%}.weekly-task-name{font-size:13px}.weekly-table-row{min-height:35px}.weekly-week-label{font-size:12px}.weekly-group-heading h3{font-size:12px}}
.home-deadlines{grid-template-rows:minmax(34px,auto) minmax(16px,auto) auto auto}
.home-deadlines .deadline-near{grid-auto-flow:row;grid-auto-columns:auto;height:auto;min-height:0;scroll-snap-type:none;overflow:visible}
.home-deadlines .deadline-near>button{height:auto}
/* Approved November review: gold before recording; confirmed marks stay green. */
.home-utilities .quick-journal .record-button:not(.recorded){background:linear-gradient(120deg,#f5dfaa,#d4ad66)!important;color:#30223d!important;box-shadow:inset 0 0 0 1px #d5b36a55,0 2px 10px #d5b36a15!important}.home-utilities .quick-journal .record-button:not(.recorded)>svg{color:#533c24}
.task-catalog{min-width:0}.catalog-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.catalog-title h2{margin:0;font:25px Georgia,serif}.catalog-title>.outline{font-size:11px;min-height:32px;padding:6px 9px}.catalog-search{display:flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:8px;padding:0 8px;margin:9px 0!important}.catalog-search input{border:0!important;background:none!important;margin:0!important;min-width:0;padding:9px 0!important;min-height:32px!important;font-size:12px!important}.catalog-filters{display:flex;gap:5px;overflow:auto;margin:0 0 8px;padding:0 0 3px}.catalog-filters button{white-space:nowrap;min-height:29px;font-size:10px;padding:5px 8px;border-radius:6px;background:var(--raised);display:flex;align-items:center;gap:3px}.catalog-filters .active{color:var(--gold);box-shadow:inset 0 0 0 1px var(--gold)}.catalog-list{max-height:39vh;overflow:auto;min-height:60px}.catalog-list h3{font-size:9px;letter-spacing:.8px;color:var(--muted);margin:8px 2px 3px;text-transform:uppercase}.catalog-entry{display:grid;grid-template-columns:23px minmax(0,1fr) 34px 27px;gap:3px;align-items:center;min-height:34px;border-bottom:1px solid var(--line);padding:2px 0}.catalog-entry.selected{background:color-mix(in srgb,var(--gold) 5%,transparent)}.catalog-entry>input{width:14px;height:14px;min-height:14px;margin:auto;accent-color:var(--gold)}.catalog-entry>span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:12px}.catalog-entry>small{text-align:right;font-size:10px;color:var(--lavender,#b89aef)}.catalog-entry .icon-button{width:27px;height:28px;min-height:28px}.catalog-batch{border-top:1px solid var(--line);padding-top:9px;margin-top:8px}.catalog-batch>strong{font-size:11px}.catalog-batch .segments{display:flex;gap:4px;margin:7px 0}.catalog-batch .segments button{flex:1;font-size:10px;min-height:29px;padding:5px}.catalog-batch>small{display:block;font-size:9px;color:var(--muted);margin:6px 0}.catalog-date{display:flex!important;justify-content:space-between;align-items:center;gap:10px;font-size:11px!important;margin:4px 0!important}.catalog-date input{width:140px!important;min-height:30px!important;height:30px;margin:0!important;padding:4px!important;font-size:11px!important}.catalog-batch>.button{width:100%;min-height:36px;margin-top:5px}.catalog-distribute{max-height:110px;overflow:auto}.catalog-distribute label{display:flex;align-items:center;gap:8px;font-size:10px;margin:4px 0}.catalog-distribute span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.catalog-distribute input{width:128px;font-size:10px;min-height:30px;padding:3px;margin:0}.catalog-create>label{font-size:12px}.catalog-create .form-grid{grid-template-columns:1fr 1fr}.catalog-create .checkbox input{min-height:14px}.catalog-modal{max-width:530px}.catalog-modal .modal-inner{padding-top:7px}.catalog-modal .close-modal{top:5px;right:4px}.catalog-title{padding-right:21px}
.week-tiles{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin-top:10px}.week-tile-col{min-width:0}.week-date-fixed{height:89px!important;min-height:89px;max-height:89px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:100%;border:1px solid var(--line-strong);background:var(--panel);border-radius:8px;padding:5px 2px;overflow:hidden}.week-date-fixed strong{font-size:21px;font-weight:400;line-height:1.1}.week-date-fixed small{font-size:8px;white-space:nowrap}.week-date-fixed>span{font-size:11px;color:var(--gold)}.week-date-fixed.gentle{background:#e6bed2;color:#352139}.week-date-fixed.gentle>span{color:#62402d}.week-date-fixed.gentle small{color:#68485e}.week-date-fixed.vacation{background:repeating-linear-gradient(135deg,#44334f 0 5px,#685071 5px 7px);color:#fff}.week-date-fixed.current{border:2px solid var(--gold)}.week-date-fixed .capacity-track{width:80%;height:3px}.week-tile-stack{display:flex;flex-direction:column;gap:3px;padding-top:5px}.time-tile{position:relative;display:flex;justify-content:center;align-items:center;gap:1px;border:1px solid var(--line);background:var(--raised);border-radius:5px;width:100%;min-height:0;padding:1px;overflow:hidden}.time-tile>span{font-size:14px;line-height:1}.time-tile>small{font-size:8px;color:var(--gold)}.time-tile.cat-Учёба{background:#36586655}.time-tile.cat-Английский{background:#745d8955}.time-tile.cat-Работа{background:#b58a3655}.time-tile.done{opacity:.6}.time-tile.combined{background:linear-gradient(90deg,#61487988 50%,#42715788 50%)}.time-tile.combined>span{width:50%;font-size:13px}.tile-merge{position:absolute;right:1px;top:0;font-size:8px;color:var(--gold);font-style:normal}.week-tile-hint{display:block;font-size:9px;color:var(--muted);margin:8px 0}.week-stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.week-stat-grid>.card{margin:0;min-width:0;padding:10px}.week-stat-grid h2{font-size:12px;margin:0 0 8px}.week-stat-grid small{display:block;font-size:9px;color:var(--muted);text-align:center}.week-load-chart,.week-reserve{grid-column:1/-1}.week-bars{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;margin:14px 0 3px}.week-bars>div{text-align:center;min-width:0}.week-chart-pair{height:105px;display:flex;align-items:flex-end;justify-content:center;gap:3px}.week-chart-pair i,.week-chart-pair b{display:block;min-height:1px;width:25%;border-radius:3px 3px 0 0}.week-chart-pair i{background:var(--lavender,#b89aef);opacity:.4}.week-chart-pair b{background:linear-gradient(#efd295,#a17abd)}.week-bars>div>span{font-size:9px;color:var(--gold)}.week-ring{width:92px;height:92px;border-radius:50%;display:grid;place-items:center;position:relative;margin:8px auto}.week-ring:before{content:'';position:absolute;inset:11px;border-radius:50%;background:var(--panel)}.week-ring b{position:relative;font-weight:400;font-size:22px;color:var(--gold)}.week-reserve>div{display:grid;grid-template-columns:28px 1fr 43px;align-items:center;gap:8px;margin:8px 0;font-size:11px}.week-reserve>div b{text-align:right;color:var(--gold);font-weight:400}.capacity-track{display:block;background:var(--raised);border-radius:5px;height:5px;overflow:hidden}.capacity-track em{display:block;height:100%;background:linear-gradient(90deg,#a17abd,#dfbf83);border-radius:5px}.capacity-track.actual em{background:linear-gradient(90deg,#8f78bb,#8ac8b0)}.capacity-track.over em{background:linear-gradient(90deg,#c783a3,#dcaaa5)}.window-bars{margin:9px 0 11px}.window-bars>div{display:flex;justify-content:space-between;gap:7px;font-size:9px;color:var(--muted);line-height:16px}.window-bars b{font-size:9px;color:var(--gold);font-weight:400;white-space:nowrap}.window-bars>.capacity-track{height:4px;margin:2px 0}.day-task-editor h2{font:25px Georgia,serif;margin:0 0 8px}.day-editor-tabs{display:flex;margin:7px 0}.day-editor-tabs>button{flex:1;padding:6px;font-size:11px;min-height:31px}.day-editor-list{max-height:52vh;overflow:auto}.day-editor-row{display:grid;grid-template-columns:24px minmax(0,1fr) 46px 22px;align-items:center;gap:5px;padding:5px 0;border-bottom:1px solid var(--line);min-height:43px}.day-editor-row>input[type=checkbox]{width:14px;height:14px;min-height:14px;accent-color:var(--gold)}.day-editor-title{text-align:left;padding:0;min-width:0}.day-editor-title b{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:12px;font-weight:500}.day-editor-title small{display:block;font-size:9px;color:var(--muted);margin-top:2px}.day-editor-minutes{font-size:11px;color:var(--gold);text-align:right}.day-editor-row>input[type=number]{width:46px;padding:3px;min-height:28px;margin:0;font-size:12px}.day-editor-order{display:flex;flex-direction:column}.day-editor-order button{min-height:19px;height:19px;padding:1px;color:var(--muted)}.editor-mark{color:var(--gold);padding:0}.editor-mark.done{filter:drop-shadow(0 0 4px #e4bd75);color:var(--green)}.day-editor-row.is-merged{border-left:2px solid var(--gold);padding-left:3px}.day-combine{margin:10px 0;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.day-combine>small{width:100%;font-size:10px;color:var(--muted)}.day-combine button{font-size:11px;min-height:31px}.day-editor-footer{display:flex;justify-content:space-between;align-items:center;margin-top:12px;gap:8px}.day-editor-footer .button{font-size:12px;min-height:35px;margin:0}.day-editor-modal{max-width:580px}
@media(min-width:901px){.week-tiles{gap:9px}.week-date-fixed{height:96px!important;min-height:96px;max-height:96px}.week-tile-stack{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:4px}.week-stat-grid{max-width:800px}.time-tile>span{font-size:16px}.catalog-list{max-height:43vh}.catalog-entry{min-height:37px}.catalog-entry>span{font-size:13px}}

.compact-task.overdue .task-due{color:#e6a7c5;text-shadow:0 0 6px #dc8caf66;font-size:9px}.capacity-track.over{box-shadow:0 0 4px #d98bad55}
/* D2 calendar: retain the existing seven day widths and 72/75/90px heights. */
.quiet-calendar{width:calc(100% + 38px);margin-left:-19px;margin-top:10px}.quiet-calendar-head,.quiet-calendar-row{display:grid;grid-template-columns:10px repeat(7,minmax(0,1fr)) 18px;gap:5px}.quiet-calendar-head{font-size:9px;color:var(--muted);text-align:center;margin-bottom:6px}.quiet-calendar-row{align-items:stretch;margin-bottom:5px}.quiet-week-number{font-size:9px;color:var(--muted);display:flex;align-items:center;justify-content:center}.quiet-calendar .calendar-cell{height:90px;border-radius:4px;padding:6px 5px;border:1px solid var(--line);border-bottom-color:#b89aef45}.quiet-calendar .cell-top{display:flex;align-items:baseline;justify-content:space-between;gap:2px;white-space:nowrap}.quiet-calendar .cell-date{display:flex;flex-direction:row;align-items:baseline;gap:2px;line-height:1;white-space:nowrap;font-size:15px}.quiet-calendar .cell-date small{font-size:11px;margin:0;line-height:1;white-space:nowrap}.quiet-calendar .cell-cycle{min-width:0;padding:0;background:transparent;border-radius:0;font-size:11px;line-height:1;color:var(--muted)}.quiet-ribbon{display:flex;gap:1px;height:3px;max-width:92%;margin-top:22px;border-radius:2px;overflow:hidden}.quiet-ribbon>i{display:block;height:100%;min-width:1px;flex-basis:0}.quiet-calendar .past-symbols{display:block;margin-top:10px;line-height:14px;font-size:12px;letter-spacing:0}.quiet-calendar .cycle-start::after{border-width:4px}.quiet-calendar .calendar-cell.cycle-start .cell-cycle{background:none;color:#ffedf6}.quiet-calendar .calendar-cell.gentle:not(.cycle-start) .cell-cycle{background:none;color:#68465d}.quiet-week-load{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;min-width:0}.quiet-week-load>span{display:flex;align-items:flex-end;justify-content:center;height:32px;width:14px;gap:0}.quiet-week-load i{width:2px;flex:1;min-height:2px;max-height:100%;background:linear-gradient(#dfbf83,#9672bb);border-radius:1px}.quiet-week-load b{font-size:7px;color:var(--gold);font-weight:400;white-space:nowrap}.quiet-vacation-label{display:block;font-size:7px;color:inherit;line-height:10px;margin-top:8px}.quiet-unknown{font-size:8px;position:absolute;bottom:3px;right:3px;color:var(--muted)}.quiet-calendar-key{display:flex;gap:10px;flex-wrap:wrap;margin:10px 15px 4px;color:var(--muted);font-size:9px}.quiet-calendar-key span{display:flex;align-items:center;gap:4px}.quiet-calendar-key i{width:12px;height:3px;border-radius:2px}.calendar-content>.page-title h1{font:400 29px/1.2 Georgia,serif}
@media(min-width:601px) and (max-width:900px){.quiet-calendar .calendar-cell{height:75px}}
@media(max-width:600px){html:has(.quiet-calendar){scrollbar-width:none}html:has(.quiet-calendar)::-webkit-scrollbar{display:none}.quiet-calendar{width:calc(100% + 28px);margin-left:-14px}.quiet-calendar-head,.quiet-calendar-row{gap:3px}.quiet-calendar-row{margin-bottom:4px}.quiet-calendar .calendar-cell{height:72px;padding:6px 3px}.quiet-calendar .cell-top{gap:1px}.quiet-calendar .cell-date{font-size:10px;letter-spacing:-.3px;gap:0}.quiet-calendar .cell-date small{font-size:6.5px;margin-left:1px}.quiet-calendar .cell-cycle{font-size:8px;letter-spacing:-.4px}.quiet-calendar .quiet-ribbon{margin-top:17px}.quiet-calendar .past-symbols{font-size:11px;margin-top:8px}.quiet-week-number{font-size:8px}.quiet-week-load b{font-size:6px}.quiet-calendar .calendar-cell.cycle-start{padding:6px 3px}.quiet-calendar-key{gap:8px;font-size:8px}}
/* I1: one compact console, six independent views. */
.reports-console{max-width:1100px;margin:8px 0 0;--report-rose:#e6a5b5;--report-peach:#efb8a4}.report-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px}.report-heading h1{font:400 29px/1.2 Georgia,serif;letter-spacing:-.4px}.report-heading>span{font-size:10px;color:var(--muted)}.report-period{display:flex;align-items:center;gap:5px;margin-bottom:7px;min-width:0}.report-period>button{display:flex;align-items:center;gap:2px;min-height:30px;font-size:10px;border:1px solid var(--line);border-radius:6px;padding:5px 8px;background:var(--raised);white-space:nowrap}.report-period>.selected{border-color:#d9b57055;color:var(--gold)}.report-period>small{margin-left:auto;font-size:9px;white-space:nowrap}.report-custom-dates{display:grid;grid-template-columns:1fr 1fr;gap:8px}.report-custom-dates label{font-size:10px;margin:5px 0 9px}.report-custom-dates input{min-height:32px;font-size:12px;padding:5px;margin-top:3px}.report-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;margin:8px 0 9px}.report-tabs>button{min-height:33px;border:1px solid transparent;border-radius:6px;background:var(--raised);font-size:11px;padding:5px 2px;white-space:nowrap}.report-tabs>.selected{border-color:#d9b57066;color:var(--gold);background:color-mix(in srgb,var(--gold) 9%,var(--panel))}.report-panel{border:1px solid var(--line);border-radius:12px;background:var(--panel);padding:11px;margin:0 0 8px;min-width:0}.report-panel h2{font-size:12px;font-weight:500;line-height:1.3;margin:0 0 8px}.report-chart{display:block;width:100%;height:150px;overflow:visible}.report-chart text{font:9px 'Segoe UI',Arial,sans-serif;fill:var(--muted)}.report-chart .report-data-label{font-size:9px;fill:var(--text)}.report-axis{stroke:var(--line);stroke-width:1}.report-guide{stroke:#8ac8b077;stroke-dasharray:3 3}.report-sleep-zone{fill:#8ac8b018}.report-planned-bar{fill:#ad8ac6;opacity:.55}.report-trend{stroke:var(--gold);stroke-width:2;stroke-linejoin:round}.report-fact-dot{fill:var(--gold)}.report-plan-dot{fill:#ad8ac6}.report-hero-donut{display:flex;align-items:center;gap:20px;padding:7px 1px 4px;min-width:0}.report-donut{width:124px;height:124px;border-radius:50%;position:relative;flex-shrink:0}.report-donut:after{content:'';position:absolute;inset:16px;background:var(--panel);border-radius:50%}.report-donut>span{position:absolute;inset:0;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center}.report-donut strong{font-size:29px;color:var(--gold);font-weight:400;line-height:1.1}.report-donut small{display:block;font-size:9px;margin-top:5px}.report-donut-legend{min-width:0;font-size:11px;display:flex;flex-direction:column;gap:4px}.report-donut-legend>span{display:flex;align-items:center;gap:5px}.report-donut-legend i,.report-plot-key i{width:6px;height:6px;border-radius:2px;background:var(--raised);display:inline-block;flex-shrink:0}.report-donut-legend .gold-dot,.report-plot-key .gold-dot{background:var(--gold)}.report-donut-legend .purple-dot,.report-plot-key .purple-dot{background:#a080c4}.report-donut-legend>small{margin-top:7px;font-size:10px}.report-rose{color:var(--report-rose)}.report-duo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:8px}.report-duo>.report-panel{margin:0;height:100%;padding:10px}.report-ring-block{text-align:center;min-width:0}.report-ring{position:relative;width:79px;height:79px;border-radius:50%;margin:6px auto 8px;display:grid;place-items:center}.report-ring:after{content:'';position:absolute;inset:10px;border-radius:50%;background:var(--panel)}.report-ring b{font-size:22px;font-weight:400;color:var(--gold);position:relative;z-index:1}.report-ring-block>small{font-size:9px;display:block;line-height:1.3}.report-bar-row{display:grid;grid-template-columns:62px minmax(0,1fr) 48px;gap:7px;align-items:center;margin:7px 0;font-size:11px}.report-bar-row>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.report-bar-row>strong{text-align:right;font-size:10px;color:var(--gold);font-weight:400;white-space:nowrap}.report-track{display:block;height:6px;background:var(--raised);overflow:hidden;border-radius:5px}.report-track>b{height:100%;display:block;background:linear-gradient(90deg,#a17abd,#dfbf83);border-radius:5px}.report-track.capacity{height:8px;margin-top:9px}.report-heat-labels,.report-heat{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.report-heat-labels{font-size:9px;text-align:center;color:var(--muted);margin-bottom:4px}.report-heat>button{height:27px;min-width:0;border-radius:4px;font-size:9px;border:1px solid transparent;color:#f8e9ef;transition:background-color .2s}.report-heat .heat-level-0{background:var(--raised);color:var(--muted);border-style:dashed;border-color:var(--line)}.report-heat .heat-level-1{background:#513544}.report-heat .heat-level-2{background:#805064}.report-heat .heat-level-3{background:#b1748e}.report-heat .heat-level-4{background:#df9fa6;color:#4e293a}.report-heat .heat-level-5{background:#f3bfb0;color:#4e293a}.report-heat .future{opacity:.45}.report-plot-key{display:flex;gap:14px;margin-top:3px;font-size:9px;color:var(--muted)}.report-plot-key>span{display:flex;align-items:center;gap:4px}.report-capacity-label{display:flex;justify-content:space-between;gap:7px;align-items:center}.report-capacity-label b{font-size:14px;font-weight:500;color:var(--gold)}.report-capacity-label>span{font-size:10px;color:var(--muted)}.report-data-note,.report-week-label{display:block;font-size:10px;color:var(--muted);line-height:1.4}.report-week-label{text-align:right;margin-top:2px}.report-empty{font-size:11px;color:var(--muted);padding:15px 0;text-align:center;margin:0}.report-sleep-caption{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:10px;color:var(--gold);margin-top:5px}.report-sleep-caption>small{font-size:9px;color:var(--muted)}.report-night-facts>span{display:flex;justify-content:space-between;gap:5px;align-items:center;min-height:29px;border-bottom:1px solid var(--line);font-size:9px;color:var(--muted)}.report-night-facts b{font-size:9px;color:var(--gold);font-weight:400;text-align:right;white-space:nowrap}.report-duo .report-bar-row{grid-template-columns:48px minmax(0,1fr) 14px;gap:4px;font-size:9px}.report-deviation{display:grid;grid-template-columns:56px minmax(0,1fr) 40px;gap:8px;align-items:center;font-size:10px;margin:12px 0}.report-deviation>div{position:relative;height:6px;background:var(--raised);border-radius:4px}.report-deviation>div>i{position:absolute;display:block;height:100%;border-radius:4px}.report-deviation>div>b{position:absolute;left:50%;width:1px;height:10px;top:-2px;background:var(--muted)}.report-deviation>strong{font-weight:400;color:var(--gold);text-align:right}.report-three-times{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:6px 0}.report-three-times>span{display:flex;flex-direction:column;align-items:center;gap:5px;font-size:13px}.report-three-times b{font-size:20px;color:var(--gold);font-weight:400}.report-three-times small{font-size:9px}.report-semester-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.report-semester-row>strong{font-size:38px;line-height:1.2;color:var(--gold);font-weight:400}.report-semester-row>select{width:auto;max-width:190px;font-size:11px;min-height:32px;padding:5px;border:1px solid var(--line)}.report-source{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--muted);font-size:9px;margin-top:5px;min-height:25px}.report-source>button{width:29px;min-height:29px;color:var(--gold);display:flex;align-items:center;justify-content:center}.report-next-deadline{display:flex;flex-direction:column;gap:6px;margin-top:8px}.report-next-deadline b{font-size:17px;font-weight:400;color:var(--gold)}.report-next-deadline>small{font-size:9px}.report-next-deadline>span{font-size:10px;color:var(--muted);padding-top:6px;border-top:1px solid var(--line)}.report-checklist{background:var(--panel);border:1px solid var(--line);border-radius:10px;margin-top:8px;padding:0 10px}.report-checklist>summary{font-size:11px;color:var(--gold);min-height:36px}.report-checklist .card{box-shadow:none;border:0;padding:0}.report-checklist .check-matrix{max-width:100%}
:root[data-theme=light] .report-heat .heat-level-0{background:#f1e9ef}:root[data-theme=light] .report-heat .heat-level-1{background:#eddde5;color:#614453}:root[data-theme=light] .report-heat .heat-level-2{background:#e4c0d0;color:#614453}:root[data-theme=light] .report-heat .heat-level-3{background:#dca3bc;color:#512f40}:root[data-theme=light] .report-heat .heat-level-4{background:#e6a8af;color:#512f40}:root[data-theme=light] .report-heat .heat-level-5{background:#f4bea9;color:#512f40}
@media(max-width:600px){.reports-console{margin-top:7px}.report-heading h1{font-size:27px}.report-tabs{gap:3px}.report-tabs>button{font-size:9px;min-height:32px}.report-panel{padding:10px}.report-panel h2{font-size:11px;margin-bottom:7px}.report-chart{height:132px}.report-hero-donut{gap:17px}.report-donut-legend{font-size:10px}.report-bar-row{grid-template-columns:58px minmax(0,1fr) 45px;gap:6px;font-size:10px}.report-duo>.report-panel{padding:9px}.report-sleep-caption{font-size:9px}.report-night-facts>span{font-size:8px;gap:3px}.report-night-facts b{font-size:8px}.report-next-deadline b{font-size:16px}.report-capacity-label b{font-size:13px}}
@media(min-width:901px){.report-heading h1{font-size:32px}.report-tabs>button{min-height:37px;font-size:12px}.report-period>button{font-size:11px}.report-workspace{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.report-workspace>.report-panel{margin:0;padding:15px}.report-workspace>.report-duo,.report-checklist,.report-data-note{grid-column:1/-1}.report-duo{gap:10px;margin:0}.report-duo>.report-panel{padding:15px}.report-panel h2{font-size:14px;margin-bottom:12px}.report-hero-donut{justify-content:center;min-height:200px;gap:25px}.report-donut{width:156px;height:156px}.report-donut:after{inset:20px}.report-donut strong{font-size:35px}.report-donut-legend{font-size:12px}.report-chart{height:205px}.report-ring{width:100px;height:100px;margin:12px auto}.report-ring b{font-size:28px}.report-ring:after{inset:13px}.report-ring-block>small{font-size:11px}.report-heat>button{height:34px;font-size:11px}.report-bar-row{margin:11px 0;font-size:12px;grid-template-columns:80px minmax(0,1fr) 58px}.report-bar-row>strong{font-size:12px}.report-night-facts>span,.report-night-facts b{font-size:12px;min-height:34px}.report-duo .report-bar-row{grid-template-columns:85px minmax(0,1fr) 22px;font-size:12px}.report-next-deadline b{font-size:23px}.report-next-deadline>span,.report-next-deadline>small{font-size:12px}}
.quiet-calendar .calendar-cell.gentle.cycle-start{background:#6f344e;color:#fff0f7;padding-left:5px;padding-right:5px}.quiet-calendar .calendar-cell.gentle.cycle-start .cell-date small,.quiet-calendar .calendar-cell.gentle.cycle-start .cell-cycle{color:#f1c9df}.quiet-calendar .calendar-cell.gentle.cycle-start.vacation{background:repeating-linear-gradient(135deg,#6f344e,#6f344e 5px,#884a67 5px,#884a67 8px)}.quiet-calendar .calendar-cell.gentle.cycle-start .past-symbols{color:#c9ead9}
.report-chart .report-plan-number{font-size:8px;fill:#bd9ad5}.report-chart .report-done-number{font-size:8px;fill:var(--gold)}
/* Calendar refinements: same cell dimensions, larger date and a corner cycle. */
.quiet-calendar .cell-top{display:block}.quiet-calendar .cell-date{font-size:20px;gap:3px;line-height:1.15}.quiet-calendar .cell-date small{font-size:14px;line-height:1.15}.quiet-calendar .cell-cycle{position:absolute;right:2px;bottom:2px;line-height:1;font-size:10px;padding:0;min-width:0}.quiet-calendar .quiet-unknown{right:2px;bottom:15px}.quiet-calendar .quiet-ribbon{margin-top:15px}.quiet-week-load>span{height:55px}.quiet-week-load{gap:3px}.quiet-week-load b{line-height:8px}
@media(min-width:601px) and (max-width:900px){.quiet-week-load>span{height:45px}}
@media(max-width:600px){.quiet-calendar .cell-date{font-size:14px;gap:2px;letter-spacing:-.3px}.quiet-calendar .cell-date small{font-size:9px;letter-spacing:-.2px}.quiet-calendar .cell-cycle{font-size:8px;right:2px;bottom:2px;letter-spacing:0}.quiet-calendar .quiet-ribbon{margin-top:13px}.quiet-week-load>span{height:44px}.quiet-calendar .past-symbols{margin-top:7px;font-size:10px}.quiet-calendar .cycle-start .cell-cycle{right:4px;bottom:4px}.quiet-calendar .quiet-vacation-label{margin-top:6px}}
.day-editor-tabs>button{padding:6px 2px;font-size:10px}.batch-move-groups{display:flex;gap:4px;overflow-x:auto;padding:2px 0 7px}.batch-move-groups button{white-space:nowrap;font-size:10px;min-height:29px;background:var(--raised);border:1px solid var(--line);padding:4px 7px;border-radius:6px}.batch-move-groups .selected{border-color:var(--gold);color:var(--gold)}.batch-move-panel{margin-top:9px;border:1px solid #d9b57033;border-radius:9px;padding:8px}.batch-move-title{display:flex;justify-content:space-between;gap:8px;align-items:center}.batch-move-title>b{font-size:11px;font-weight:500;color:var(--gold)}.batch-move-title>small{font-size:9px}.batch-move-date{display:grid;grid-template-columns:70px minmax(0,1fr) 70px;gap:4px;align-items:center;margin-top:7px}.batch-move-date button{font-size:10px;min-height:32px;display:flex;align-items:center;justify-content:center;gap:1px;color:var(--gold);background:var(--raised);border-radius:6px}.batch-move-date input{font-size:11px;padding:4px;min-height:32px;margin:0;text-align:center}.batch-move-target{font-size:10px;color:var(--gold);margin-top:7px}.batch-move-panel .window-bars{margin:4px 0 0}.batch-move-late{font-size:9px;color:var(--warning);display:block;margin-top:5px}.day-task-editor:has(.batch-move-panel) .day-editor-list{max-height:33vh}.batch-move-panel>small{font-size:9px;color:var(--muted)}
.day-editor-title small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Saved heatmap palette and week browsing, approved November 8. */
.report-week-navigation{display:flex;align-items:center;gap:2px;min-width:0}.report-week-navigation>span{font-size:10px;color:var(--muted);white-space:nowrap;text-align:center;font-variant-numeric:tabular-nums}.report-week-navigation>button{width:28px;min-height:34px;display:flex;align-items:center;justify-content:center;padding:0;border-radius:6px;color:var(--gold);flex-shrink:0}.report-week-navigation>button:hover:not(:disabled){background:var(--raised)}.report-palette-picker{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin:0 0 9px}.report-palette-picker button{display:flex;align-items:center;justify-content:center;gap:5px;min-height:29px;padding:4px 8px;border:1px solid var(--line);border-radius:6px;font-size:10px;background:transparent;white-space:nowrap;color:var(--muted)}.report-palette-picker .selected{border-color:color-mix(in srgb,var(--gold) 65%,transparent);color:var(--gold);background:color-mix(in srgb,var(--gold) 6%,transparent)}.palette-swatch{width:10px;height:10px;border-radius:3px;display:inline-block;box-shadow:inset 0 0 0 1px #ffffff16}.palette-swatch.pink{background:#df9fa6}.palette-swatch.gold{background:#ffd85d}.reports-console[data-report-palette=gold] .report-heat .heat-level-1{background:#493715;color:#fff1cd}.reports-console[data-report-palette=gold] .report-heat .heat-level-2{background:#846020;color:#fff1cd}.reports-console[data-report-palette=gold] .report-heat .heat-level-3{background:#bd8b28;color:#fff1cd}.reports-console[data-report-palette=gold] .report-heat .heat-level-4{background:#e9b743;color:#443017}.reports-console[data-report-palette=gold] .report-heat .heat-level-5{background:#ffd85d;color:#443017;box-shadow:inset 0 0 9px #ffe7a255}:root[data-theme=light] .reports-console[data-report-palette=gold] .report-heat .heat-level-1{background:#f3e4bf;color:#664b15}:root[data-theme=light] .reports-console[data-report-palette=gold] .report-heat .heat-level-2{background:#e7cd8d;color:#664b15}:root[data-theme=light] .reports-console[data-report-palette=gold] .report-heat .heat-level-3{background:#d8b15c;color:#443017}:root[data-theme=light] .reports-console[data-report-palette=gold] .report-heat .heat-level-4{background:#efc34d;color:#443017}:root[data-theme=light] .reports-console[data-report-palette=gold] .report-heat .heat-level-5{background:#ffd85d;color:#443017}
@media(max-width:600px){.report-heading{gap:5px}.report-week-navigation>span{font-size:9px}.report-week-navigation>button{width:25px;min-height:32px}.report-palette-picker{gap:4px}.report-palette-picker button{font-size:9px;min-height:28px;padding:4px 7px}}
@media(min-width:901px){.report-week-navigation>span{font-size:12px}.report-week-navigation>button{width:34px;min-height:36px}.report-palette-picker button{font-size:11px;min-height:32px}}

/* Shared overdue occurrence, without increasing calendar cell dimensions. */
.time-tile.overdue{box-shadow:inset 0 0 0 1px #e7a0be,0 0 7px #df8fb450;position:relative}.tile-overdue{position:absolute;left:2px;top:0;font-size:10px;font-style:normal;color:#9a315c;text-shadow:0 0 4px #ffc2de}.calendar-overdue{position:absolute;left:3px;bottom:1px;width:12px;height:12px;border-radius:50%;background:#f1b5ce;color:#6f2448;font-size:10px;font-weight:700;text-align:center;line-height:12px;box-shadow:0 0 7px #ee92bd88}.task-row.overdue .task-due{text-shadow:0 0 6px #dc8caf66}

.day-editor-row.overdue .day-editor-title small{color:#df99b8;text-shadow:0 0 5px #dc8caf44}
/* Continuous, whole-task lanes share one interval. */
.week-flow-block{width:100%;min-width:0;border:1px dashed #d6b8759c;border-radius:7px;padding:2px;background:#d9b5700b;display:flex;flex-direction:column;gap:2px;color:var(--gold)}.week-flow-name{font-size:8px;white-space:nowrap;letter-spacing:-.5px}.week-flow-lanes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;min-width:0}.week-flow-lane{display:flex;flex-direction:column;min-width:0}.week-flow-task{display:flex;flex-direction:column;align-items:center;justify-content:center;flex-shrink:0;min-width:0;border-radius:3px;background:#9878b2;color:#fff3ff;border-bottom:1px solid var(--panel);background-image:repeating-linear-gradient(to bottom,transparent,transparent 45px,#ffffff1a 45px,#ffffff1a 46px)}.week-flow-lane.lane-1 .week-flow-task{background-color:#8ebaa7;color:#173d2d}.week-flow-task b{font-size:11px;font-weight:400}.week-flow-task small{font-size:7px;color:inherit}.week-flow-task.done{background-color:#79ad98;color:#163f32}.week-flow-foot{font-size:8px;white-space:nowrap}.week-flow-block.overdue{box-shadow:0 0 7px #df8fb450;border-color:#df99b8}.time-tile.cat-Уход{background:#b68fa9;color:#251d2b}
.flow-editor{margin:7px 0}.flow-editor label,.plan-dates>label{font-size:11px}.flow-editor input:not([type=checkbox]),.flow-editor select{min-height:36px;margin-top:4px}.flow-template-label{color:var(--gold)}.flow-base{display:flex;align-items:center;gap:8px;padding:9px;border:1px solid #b49ac34a;background:linear-gradient(100deg,#9473b329,var(--panel));border-radius:10px;margin:7px 0}.flow-base div{flex:1}.flow-base b{font-size:12px;font-weight:500}.flow-base strong{font-size:22px;color:var(--gold)}.flow-base small{display:block;font-size:9px;margin-top:3px}.flow-base .text-button{font-size:10px}.flow-choice-heading{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:8px 0 3px;font-size:11px}.flow-choice-heading b{font-weight:500}.flow-choice-heading .text-button{font-size:10px}.flow-choices{border-top:1px solid var(--line)}.flow-choices>label{display:grid;grid-template-columns:19px minmax(0,1fr) 34px;align-items:center;gap:6px;min-height:33px;padding:3px 0;margin:0;border-bottom:1px solid var(--line);cursor:pointer}.flow-choices label>input{margin:0;width:16px;height:16px;accent-color:#d6b36d}.flow-choices label>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px}.flow-choices small{text-align:right;font-size:10px}.flow-remaining{display:flex;justify-content:space-between;gap:5px;font-size:10px;color:var(--green);padding:6px 8px;background:#80b19513;border-radius:6px;margin-top:8px}.flow-remaining b{font-weight:500}.flow-remaining.over{color:#e8a5bd;background:#d899b617}.flow-result{padding:8px 9px;background:var(--raised);border-radius:8px;display:grid;grid-template-columns:1fr auto;gap:4px;font-size:11px;margin:8px 0}.flow-result strong{color:var(--gold)}.flow-result small{grid-column:1/-1;font-size:9px}.flow-actions .button{width:100%}.flow-actions .text-button{font-size:11px}.flow-help{font-size:9px;display:block;margin-top:7px}.day-editor-tabs{gap:2px}.day-editor-tabs button{padding:7px 5px;font-size:11px;min-width:0}.remove-day-info{margin:8px 0}.remove-day-info small{font-size:10px;display:block;margin-top:7px}.remove-day-button{background:#ac668927;color:#e6abc5;border:1px solid #dc8caf66}.plan-date-add{display:flex;gap:7px;align-items:center}.plan-date-add input{width:auto;flex:1;min-width:0}.plan-date-add button{white-space:nowrap;font-size:11px}.plan-dates-catalog{max-height:260px;overflow:auto;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:6px 0}.plan-date-rule{display:flex;align-items:center;gap:5px;border-bottom:1px solid var(--line);min-height:37px}.plan-date-rule label{display:flex;gap:6px;align-items:center;flex:1;min-width:0;margin:0;font-size:11px}.plan-date-rule label span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.plan-date-rule label input{width:15px;height:15px;flex-shrink:0;accent-color:#d7b672}.plan-date-rule>input{width:48px;min-height:30px;padding:3px;margin:2px 0;text-align:center;font-size:11px}.plan-date-rule .text-button{font-size:9px;flex-shrink:0}.plan-dates-preview{padding:9px;border:1px solid #d3b26c44;border-radius:9px;margin:10px 0;font-size:11px}.plan-dates-preview>div{display:grid;grid-template-columns:1fr 40px 95px;gap:5px;padding:5px 0}.plan-dates-preview small{text-align:right;font-size:9px}.plan-dates-preview b{color:var(--gold);font-weight:500}.plan-exclusions{font-size:10px;color:var(--warning)}.plan-dates>.button{width:100%}
.flow-choices label>input{min-height:16px;height:16px;padding:0}.flow-selects{display:grid;grid-template-columns:1fr 1fr;gap:8px}.flow-selects>label{margin:5px 0;min-width:0;font-size:10px}.flow-selects>label:first-child:last-child{grid-column:1/-1}.flow-selects .flow-missing{grid-column:1/-1}.flow-editor select,.flow-editor input:not([type=checkbox]){padding:5px 8px;min-height:32px;font-size:11px}.flow-name-row{display:grid;grid-template-columns:minmax(0,1fr) 115px;gap:8px;align-items:end;margin:5px 0}.flow-name-row>label{margin:0;font-size:10px}.flow-name-row>.checkbox{min-height:32px;margin:0;font-size:10px;gap:5px}.flow-name-row .checkbox input{width:16px;height:16px;min-height:16px}.flow-choices{margin:4px 0}.flow-editor .flow-result{margin:6px 0;padding:6px 8px}.flow-editor .flow-base{padding:7px;margin:5px 0}.flow-actions{margin-top:8px}.flow-actions .button{min-height:36px;padding:6px;font-size:12px}.flow-help{line-height:1.3}
/* Missed work stays visible, with its original plan and an undoable mark. */
.time-tile.skipped{background:#b885a821;color:#d89bbd;border:1px solid #cb92b75c;box-shadow:inset 0 0 7px #e7b1cb0b;position:relative;display:flex;flex-direction:column;gap:1px}.time-tile.skipped>span{font-size:16px;line-height:17px}.time-tile .tile-skip-label{font-size:7px;line-height:10px;letter-spacing:-.35px;color:inherit;white-space:nowrap}.time-tile.skipped.unknown small{font-size:7px}.week-flow-task.skipped,.week-flow-lane.lane-1 .week-flow-task.skipped{background-color:#b885a82b;color:#e1aac7;box-shadow:inset 0 0 0 1px #d9a2c055;background-image:none}.week-flow-task.skipped b{font-size:17px}.editor-mark.skipped{color:#db9cba}.task-row.skipped .task-check{color:#db9cba}.week-mark-toolbar{display:flex;justify-content:flex-end;margin:-4px 0 2px}.week-mark-toolbar .text-button{font-size:10px;min-height:25px}.week-mark-editor h2{padding-right:35px}.week-mark-period{color:var(--gold);font-size:11px;margin:4px 0 7px}.week-mark-editor>small{font-size:10px;display:block;line-height:1.5}.week-mark-filters{margin:9px 0 4px;display:flex}.week-mark-filters button{flex:1;font-size:11px}.week-mark-select{display:flex;justify-content:space-between;gap:6px}.week-mark-select .text-button{font-size:10px}.week-mark-list{max-height:46vh;overflow:auto;border-block:1px solid var(--line);margin:6px 0}.week-mark-day{display:flex;justify-content:space-between;align-items:center;width:100%;padding:6px 1px;color:var(--gold);font-size:11px;text-align:left}.week-mark-day span{font-size:9px;color:var(--muted)}.week-mark-list label{display:grid;grid-template-columns:17px minmax(0,1fr) 68px;gap:6px;align-items:center;min-height:34px;padding:3px 0;margin:0;border-bottom:1px solid var(--line);cursor:pointer}.week-mark-list label input{width:15px;height:15px;min-height:15px;margin:0;padding:0;accent-color:#d4b16e}.week-mark-list label>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10.5px;color:var(--text)}.week-mark-list label small{font-size:9px;text-align:right}.week-mark-footer{display:flex;align-items:center;gap:6px;margin-top:9px}.week-mark-footer>span{font-size:10px;color:var(--gold);flex:1}.week-mark-footer .button,.week-mark-footer .outline{font-size:10px;min-height:34px;padding:6px 8px;margin:0}.week-mark-footer .outline{color:#d39ebd}
html[data-theme=light] .time-tile.skipped{background:#f3dfe9;color:#874664;border-color:#ba7d9d}html[data-theme=light] .week-flow-task.skipped,html[data-theme=light] .week-flow-lane.lane-1 .week-flow-task.skipped{background-color:#efd8e4;color:#83435f}html[data-theme=light] .editor-mark.skipped,html[data-theme=light] .task-row.skipped .task-check{color:#8b4565}

/* Category area is proportional to minutes, independently of its position. */
.report-time-comparison{display:flex;flex-direction:column;gap:8px;min-width:0;align-self:start}.report-time-comparison>.report-panel{margin:0}.time-area-total{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;color:var(--muted);margin-bottom:7px;min-height:17px}.time-area-total b{color:var(--gold);font-weight:500}.time-area-total small{font-size:9px}.time-area-plot{height:190px;position:relative;width:100%;overflow:hidden;border-radius:7px;background:var(--raised)}.time-area-block{position:absolute;box-sizing:border-box;border:0;box-shadow:inset 0 0 0 1px var(--panel);padding:0;overflow:hidden;display:flex;flex-direction:column;justify-content:center;gap:2px;min-width:0;min-height:0}.time-area-caption>span{font-size:11px;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.time-area-caption>b{font-size:20px;font-weight:500;line-height:1.25;white-space:nowrap}.time-area-caption.short>b{font-size:10px}.time-area-key{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 10px;margin-top:7px}.time-area-key>div{display:grid;grid-template-columns:7px minmax(0,1fr) auto;gap:4px;align-items:center;min-width:0;font-size:9px;line-height:1.4}.time-area-key i{width:7px;height:7px;border-radius:2px}.time-area-key span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:var(--muted)}.time-area-key b{font-weight:500;color:var(--gold);white-space:nowrap}@media(min-width:901px){.report-time-comparison{gap:10px}.report-time-comparison>.report-panel{padding:15px}.time-area-plot{height:185px}.time-area-caption>span{font-size:12px}.time-area-caption>b{font-size:24px}.time-area-key>div{font-size:10px}.reports-console[data-report-section="1"] .report-workspace>.report-panel{align-self:start}}

.time-area-caption{position:absolute;inset:6px;display:flex;flex-direction:column;justify-content:center;gap:2px;overflow:hidden;min-width:0}.time-area-caption.short{inset:2px}
/* A shared canvas scale: less completed time leaves more of the frame empty. */
.time-area-plot{height:230px;background-color:var(--raised);background-image:radial-gradient(#b69bc326 .7px,transparent .7px);background-size:12px 12px}.time-area-plot.mosaic{background-color:transparent;box-shadow:inset 0 0 0 1px var(--line)}.time-area-plot.mosaic .time-area-block{box-shadow:inset 0 0 0 1px var(--panel);background-image:linear-gradient(135deg,#ffffff12,#ffffff00 55%);border-radius:5px}.time-comparison-scale{font-size:10px;color:var(--gold);padding:2px 3px 0}.time-area-total>span{display:flex;align-items:center;gap:4px;flex-wrap:wrap}.time-area-total em{font-style:normal;border-left:1px solid var(--line);padding-left:6px;margin-left:3px;color:var(--gold);font-size:9px}.time-unknown-toggle{font-size:9px;min-height:27px;padding:3px 6px;border:1px solid #d3b47440;border-radius:6px;color:var(--gold);background:#d1ad6910;white-space:nowrap}.time-unknown-list{border:1px solid var(--line);border-radius:8px;padding:7px;margin:0 0 8px;background:var(--raised);max-height:200px;overflow:auto}.time-unknown-list>small{font-size:10px;display:block;margin-bottom:4px}.time-unknown-list>button{display:flex;align-items:center;justify-content:space-between;gap:7px;text-align:left;min-height:43px;width:100%;padding:5px 0;border-top:1px solid var(--line)}.time-unknown-list>button>span{font-size:11px;min-width:0}.time-unknown-list small{display:block;color:var(--muted);font-size:9px}.time-unknown-list b{font-size:9px;color:var(--gold);font-weight:500;white-space:nowrap}@media(min-width:901px){.time-area-plot{height:230px}}

.home-deadlines .deadline-near>button.deadline-today{border:1px solid color-mix(in srgb,var(--gold) 88%,transparent);background:linear-gradient(145deg,color-mix(in srgb,var(--gold) 13%,transparent),color-mix(in srgb,var(--gold) 4%,transparent));box-shadow:0 0 9px color-mix(in srgb,var(--gold) 25%,transparent),inset 0 0 8px color-mix(in srgb,var(--gold) 10%,transparent)}.deadline-today-word{display:block;color:var(--gold);font-size:12px;line-height:26px;font-weight:600;text-shadow:0 0 9px color-mix(in srgb,var(--gold) 50%,transparent);white-space:nowrap;letter-spacing:-.3px}

.home-moved-tasks{margin-top:5px;color:var(--muted);font-size:12px}.home-moved-tasks>summary{cursor:pointer;padding:8px 4px;color:var(--gold);list-style-position:inside}.home-moved-tasks>div{border-top:1px solid var(--line)}.home-moved-tasks .task-row{min-height:44px}.home-moved-tasks .task-copy b{font-size:12px}.home-moved-tasks .task-copy small{font-size:10px}

.week-tiles .time-tile.cat-Работа{background:linear-gradient(145deg,#357d83,#24565f);color:#f3ffff;box-shadow:inset 0 0 0 1px #9adbd054}.week-tiles .time-tile.cat-Работа small{color:#d4f7ed}[data-theme="light"] .week-tiles .time-tile.cat-Работа{background:linear-gradient(145deg,#92d3c9,#6eb5b5);color:#143d45;box-shadow:inset 0 0 0 1px #376f7655}[data-theme="light"] .week-tiles .time-tile.cat-Работа small{color:#24545c}

.time-tile .tile-week-number{position:absolute;bottom:2px;left:0;right:0;font-size:8px;line-height:10px;font-weight:600;letter-spacing:-.2px;text-align:center;color:var(--text);text-shadow:0 1px 2px var(--bg)}

.weekly-group-icons{grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}.weekly-group-icons>button{padding-left:3px;padding-right:3px}.weekly-table-row.status-done .weekly-task-name,.weekly-table-row.status-cancelled .weekly-task-name{text-decoration:none}.weekly-table-row.status-cancelled .weekly-task-name{color:var(--muted)}.weekly-closed-tasks>summary{padding:7px 9px;font-size:11px;color:var(--muted);cursor:pointer;list-style-position:inside}.weekly-closed-tasks[open]>summary{color:var(--gold)}.weekly-no-tasks{font-size:11px;color:var(--muted);margin:0;padding:6px 9px}.weekly-table-checklists .weekly-table-row.status-done .checklist-mark{color:var(--green)}

/* Compact task marks: keep the existing type and row height. */
.home-day .task-row.compact-task{grid-template-columns:20px minmax(0,1fr) 30px 49px 48px;min-height:28px;gap:3px}
.home-day .compact-task .task-copy b{display:flex;align-items:center;white-space:nowrap;font-size:11.5px;font-weight:500;line-height:1.3;letter-spacing:-.1px;overflow:hidden}
.compact-task-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.compact-task-number{flex-shrink:0;white-space:pre}
.compact-work-actions{display:flex;align-items:center;width:48px}
.home-day .compact-task .compact-work-actions button{width:24px;height:28px;min-height:28px;min-width:24px;padding:0;border:0;border-radius:5px;background:transparent;position:relative;isolation:isolate;display:inline-flex;align-items:center;justify-content:center;font-size:18px;line-height:1;color:var(--muted)}
.compact-work-actions button:before{content:'';position:absolute;pointer-events:none;width:22px;height:22px;box-sizing:border-box;border-radius:5px;z-index:-1}
.home-day .compact-task .work-partial[aria-pressed=true]{color:#d4adff;text-shadow:0 0 5px #c092ff,0 0 11px #ac73e590}
.work-partial[aria-pressed=true]:before{border:1px solid #c79af77d;background:#a77bd724;box-shadow:0 0 8px #b789e340}
.home-day .compact-task .work-skip[aria-pressed=true]{color:#ff7587;text-shadow:0 0 5px #ff536b,0 0 11px #ff536b99}
.work-skip[aria-pressed=true]:before{border:1px solid #ff718594;background:#f25b731c;box-shadow:0 0 8px #ff617849}
html[data-theme=light] .home-day .compact-task .work-partial[aria-pressed=true]{color:#7947aa;text-shadow:0 0 7px #ac73e540}html[data-theme=light] .home-day .compact-task .work-skip[aria-pressed=true]{color:#bb304f;text-shadow:0 0 7px #ff536b40}
.home-day .compact-task.skipped .task-copy b{text-decoration:none;color:var(--text)}
.compact-day-heading .work-pick{font-size:17px;color:var(--gold);margin-left:auto}.compact-day-heading .work-pick.active{background:var(--raised)}.compact-day-heading .work-pick+.icon-button{margin-left:0}
.work-pick-toolbar{display:flex;align-items:center;gap:8px;justify-content:space-between;margin:4px 0 7px;font-size:11px}.work-pick-toolbar .outline{font-size:11px;min-height:30px;padding:4px 7px}
.work-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.work-fields label{min-width:0}.work-time-editor .work-fields label{margin:5px 0}.work-time-editor .helper{line-height:1.5}.work-history{margin:12px 0}.work-history>summary{color:var(--gold);cursor:pointer;padding:7px 0}.work-record{border-top:1px solid var(--line);padding:10px 0}.work-record small{display:block;margin-top:5px;line-height:1.6}.work-record .row span{color:var(--muted);font-size:11px}.work-record.cancelled{opacity:.65}.work-record .outline{min-height:32px;padding:5px 8px;font-size:11px}.work-record details summary{font-size:11px;color:var(--muted);margin-top:8px;cursor:pointer}.work-time-editor .button-row{margin-top:8px}.work-time-editor .gold-button{margin-top:0}.work-record-list{display:flex;flex-direction:column;margin-top:8px}.work-record-list button{display:flex;justify-content:space-between;gap:8px;padding:7px 0;border-top:1px solid var(--line);font-size:11px;text-align:left}.work-record-list small{font-size:10px;display:block;color:var(--muted)}.work-actual-total{display:flex;align-items:baseline;gap:10px;margin:7px 0;color:var(--gold)}.work-actual-total strong{font-size:28px;font-weight:500}.work-actual-total span{font-size:12px;color:var(--muted)}
@media(min-width:901px){.home-day .task-row.compact-task{grid-template-columns:24px minmax(0,1fr) 48px 70px 56px;min-height:32px}.home-day .compact-task .task-copy b{font-size:13px}.compact-work-actions{width:56px}.home-day .compact-task .compact-work-actions button{width:28px;min-width:28px;height:32px;min-height:32px}}
.work-time-editor .work-outcome{margin:12px 0 7px}.work-time-editor .work-outcome button{min-height:36px;font-size:12px}.work-time-editor .work-outcome button.active{box-shadow:inset 0 0 0 1px #d5ad6755;color:var(--gold)}
/* The main list has no deadline column; right-hand actions gain horizontal space. */
.home-day .task-row.compact-task{grid-template-columns:20px minmax(0,1fr) 30px 80px}.home-day .compact-task .task-due{display:none}.compact-work-actions{width:80px}.home-day .compact-task .compact-work-actions button{width:40px;min-width:40px}.home-day .compact-task .mark-not-applicable{visibility:hidden;pointer-events:none}
@media(min-width:901px){.home-day .task-row.compact-task{grid-template-columns:24px minmax(0,1fr) 48px 88px}.compact-work-actions{width:88px}.home-day .compact-task .compact-work-actions button{width:44px;min-width:44px}}

/* A single shared time segment, with an independent outcome for each task. */
.work-time-editor .work-entry-fields{display:grid;grid-template-columns:minmax(130px,1.5fr) minmax(58px,.7fr) minmax(58px,.7fr);gap:8px;margin:12px 0}.work-time-editor .work-entry-fields label{min-width:0;margin:0;font-size:11px}.work-time-editor .work-entry-fields input{padding:7px;min-width:0;font-size:16px;min-height:40px}.work-result-heading,.work-task-result{display:grid;grid-template-columns:minmax(0,1fr) 44px 44px;gap:4px;align-items:center}.work-result-heading{font-size:10px;color:var(--muted);margin:12px 0 4px}.work-result-heading>span:not(:first-child){text-align:center}.work-task-result{min-height:44px;border-bottom:1px solid var(--line)}.work-task-result>span{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.work-task-result button{width:44px;min-height:40px;background:transparent;color:var(--muted);border:1px solid transparent;border-radius:8px;font-size:20px;padding:0}.work-task-result .work-result-done[aria-pressed=true]{color:var(--gold);background:#b98b3622;border-color:#cda75b66;text-shadow:0 0 9px #edce8680}.work-task-result .work-result-continue[aria-pressed=true]{color:#b993e4;background:#9772cb22;border-color:#a27bd066;text-shadow:0 0 9px #c2a3ef70}.work-time-editor .work-next-date{display:grid;grid-template-columns:minmax(0,1fr) 151px;gap:8px;align-items:center;font-size:12px;margin:14px 0 8px}.work-next-date input{min-width:0;padding:7px;font-size:16px;min-height:40px}.work-remaining-fields{display:grid;grid-template-columns:minmax(0,1fr) 70px 70px;gap:8px;align-items:end}.work-remaining-fields>div{font-size:12px;align-self:center}.work-remaining-fields small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.work-time-editor .work-remaining-fields label{min-width:0;margin:0;font-size:11px}.work-remaining-fields input{min-width:0;padding:7px;font-size:16px;min-height:40px}.work-result-summary{font-size:12px;color:var(--muted);margin:14px 0 10px}.work-time-editor .button-row>.gold-button{flex:1}.work-time-editor .work-record .helper{font-size:11px}.work-time-editor .work-task-result button:focus-visible{outline:2px solid var(--gold);outline-offset:1px}

/* Selection buttons replace only the small checkboxes in transfer/remove modes. */
.day-editor-row.is-selecting{grid-template-columns:minmax(0,1fr) 33px 76px 22px}.day-editor-row.is-selecting:has(.day-select-button):not(:has(.day-editor-order)){grid-template-columns:minmax(0,1fr) 33px 76px}.day-editor-row.is-selected{background:color-mix(in srgb,var(--gold) 7%,transparent)}.day-editor-row .day-select-button{min-height:42px;width:76px;font-size:11px;padding:5px 3px;border:1px solid var(--line);border-radius:8px;color:var(--muted)}.day-editor-row .day-select-button[aria-pressed=true]{border-color:var(--gold);background:color-mix(in srgb,var(--gold) 12%,var(--panel));color:var(--gold)}.day-editor-row .day-select-button:disabled{opacity:.4}.new-task-form h2{margin:0 0 12px}.new-task-form .form-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.new-task-form .form-grid label{min-width:0;font-size:12px}.new-task-form input,.new-task-form select{min-width:0;font-size:16px}.new-task-form input[type=checkbox]{font-size:14px}.new-task-scope{display:block;color:var(--muted);font-size:11px;margin:8px 0}.new-task-deadline{border-top:1px solid var(--line);margin-top:12px;padding-top:4px}.new-task-form details>summary{color:var(--muted);font-size:12px;cursor:pointer;padding:9px 0}.new-task-form>.gold-button{width:100%;margin-top:14px;min-height:44px}.new-task-form .checkbox{font-size:12px}.new-task-form .form-grid input{padding:8px}

.home-deadlines .deadline-constants{height:auto;grid-template-rows:auto auto}
.deadline-constants .gentle-toggle{height:auto;min-height:36px;gap:5px}
.gentle-number{margin-left:auto;color:var(--gold);font-weight:600;white-space:nowrap;text-align:right}
.gentle-number small{display:block;font-size:10px;font-weight:400}
.gentle-toggle>span:last-child,.gentle-confirmed{color:var(--gold)}
.gentle-form{padding:8px;border:1px solid var(--line-strong);border-radius:10px;background:var(--panel);box-shadow:0 0 9px #dcb97025}
.gentle-form label{display:block;font-size:12px;margin:0 0 4px;color:var(--gold)}
.gentle-inputs{display:grid;grid-template-columns:minmax(0,1fr) 46px;gap:6px}
.gentle-inputs input{height:44px;min-width:0;width:100%;margin:0;font-size:16px}
.deadline-constants .gentle-inputs button{height:44px;justify-content:center;background:linear-gradient(135deg,#ffe7ac,#c99e58);color:#392818;border-radius:8px;font-size:22px}
.deadline-constants .gentle-quick{min-height:42px;justify-content:center;color:var(--gold);font-size:13px}
.gentle-form>small,.gentle-confirmed{display:block;font-size:11px;line-height:1.4}

.home-day .day-list-switches{display:flex;gap:8px;margin:6px 0 8px}
.day-list-switches button{flex:1;min-width:0;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:4px 8px;border:1px solid color-mix(in srgb,var(--muted) 32%,var(--panel));border-radius:9px;background:var(--panel);color:var(--muted);font-size:12px;font-weight:500;touch-action:manipulation}
.day-list-switches button[aria-expanded=true]{color:var(--gold);border-color:var(--gold);background:color-mix(in srgb,var(--gold) 9%,var(--panel));box-shadow:0 0 7px color-mix(in srgb,var(--gold) 15%,transparent)}
.day-list-switches button[aria-expanded=true] svg{transform:rotate(180deg)}


/* Lunaria reference components, scoped to rhythm */
.lunaria-rhythm{color-scheme:dark;--bg:#15111e;--side:#191421;--panel:#211b2c;--raised:#292135;--input:#191421;--line:#ffffff10;--line-strong:#ffffff1c;--text:#f2ecf5;--muted:#aaa0b8;--faint:#7e738e;--gold:#e8c583;--gold-dark:#b58b4d;--purple:#b89aef;--green:#8ac8b0;--red:#ec9a9f;--shadow:0 14px 40px #08051024;font-family:Inter,"Segoe UI",Arial,sans-serif;line-height:1.5;}
:root[data-theme=light] .lunaria-rhythm{color-scheme:light;--bg:#f6f2f8;--side:#fcf9fd;--panel:#fffcff;--raised:#f0eaf5;--input:#fbf8fd;--line:#44315313;--line-strong:#44315329;--text:#33253f;--muted:#776681;--faint:#91819a;--gold:#95703a;--gold-dark:#a57c3f;--purple:#8060b0;--green:#4c927a;--red:#b55865;--shadow:0 8px 36px #3d264508}
:where(.lunaria-rhythm) .eyebrow{font-size:9px;letter-spacing:1.9px;color:var(--gold);font-weight:550;text-transform:uppercase}
:where(.lunaria-rhythm) .gold,:where(.lunaria-rhythm) .outline{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:9px;padding:10px 16px;font-size:12px;font-weight:550;white-space:nowrap;min-height:39px}
:where(.lunaria-rhythm) .gold{background:linear-gradient(125deg,#f1d7a4 0%,#e0b86f 60%,#bf9455 100%);color:#31243b;box-shadow:0 4px 17px #d5ab5f1b,inset 0 1px 0 #fff6d399;border:1px solid #f9ddaa73}
:where(.lunaria-rhythm) .gold:hover:not(:disabled){box-shadow:0 0 25px #dfb66c38,0 0 10px #a98af12b;transform:translateY(-1px)}
:where(.lunaria-rhythm) .outline{background:var(--panel);border:1px solid var(--line-strong);color:var(--muted)}
:where(.lunaria-rhythm) .outline:hover{border-color:#cbad7550;color:var(--text)}
:where(.lunaria-rhythm) .text-button{display:inline-flex;align-items:center;gap:6px;font-size:11px;color:var(--gold);padding:3px 0}
:where(.lunaria-rhythm) .button-row{display:flex;align-items:center;gap:9px}
:where(.lunaria-rhythm) .date-strip{display:flex;align-items:center;gap:7px;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:10px;margin-bottom:18px}
:where(.lunaria-rhythm) .panel{background:var(--panel);border:1px solid var(--line);border-radius:13px;padding:21px;min-width:0;box-shadow:var(--shadow)}
:where(.lunaria-rhythm) .panel-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
:where(.lunaria-rhythm) .panel-title h2{display:flex;align-items:center;gap:8px;font-size:14px}
:where(.lunaria-rhythm) .panel-title h2>svg{color:var(--gold)}
:where(.lunaria-rhythm) .helper{font-size:10px;color:var(--faint);line-height:1.7;display:flex;align-items:center;gap:5px}
:where(.lunaria-rhythm) .tag{font-size:8px;border:1px solid var(--line-strong);color:var(--muted);padding:3px 7px;border-radius:5px;white-space:nowrap}
:where(.lunaria-rhythm) .sleep-numbers{display:flex;justify-content:space-between;gap:15px;margin:25px 0}
:where(.lunaria-rhythm) .sleep-numbers span{font-size:10px;color:var(--muted)}
:where(.lunaria-rhythm) .sleep-numbers strong{font-size:24px;font-weight:400;display:block;margin:6px 0}
:where(.lunaria-rhythm) .sleep-numbers strong>small{font-size:12px;color:var(--muted)}
:where(.lunaria-rhythm) .sleep-numbers p{font-size:8px;color:var(--faint)}
:where(.lunaria-rhythm) .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
:where(.lunaria-rhythm) .modal-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-top:25px}
:where(.lunaria-rhythm) .modal-actions>.danger{margin-right:auto}
@media(min-width:1550px){:where(.lunaria-rhythm) .panel-title h2{font-size:16px}}
@media(max-width:1200px){:where(.lunaria-rhythm) .panel{padding:17px}
:where(.lunaria-rhythm) .panel-title h2{font-size:13px}}
@media(max-width:1000px){:where(.lunaria-rhythm) .eyebrow{font-size:8px;letter-spacing:1.3px}
:where(.lunaria-rhythm) .date-strip{gap:3px;padding:7px}
:where(.lunaria-rhythm) .date-strip>.icon{width:22px}
:where(.lunaria-rhythm) .panel-title>.text-button{font-size:9px}
:where(.lunaria-rhythm) .panel-title h2{font-size:12px}}
@media(max-width:760px){:where(.lunaria-rhythm) .date-strip>.icon{width:24px}
:where(.lunaria-rhythm) .date-strip{margin-bottom:13px}
:where(.lunaria-rhythm) .panel{padding:18px}
:where(.lunaria-rhythm) .panel-title h2{font-size:14px}
:where(.lunaria-rhythm) .helper{font-size:10px}
:where(.lunaria-rhythm) .modal-actions .gold,:where(.lunaria-rhythm) .modal-actions .outline{font-size:11px}
:where(.lunaria-rhythm) .modal-actions{flex-wrap:wrap}
:where(.lunaria-rhythm) .form-grid{gap:0 10px}}
@media(max-width:390px){:where(.lunaria-rhythm) .form-grid{grid-template-columns:1fr}}
@media(max-width:760px){:where(.lunaria-rhythm) .date-strip{gap:2px}}
@media(max-width:700px){:where(.lunaria-rhythm) .gold,:where(.lunaria-rhythm) .outline{min-height:44px}
:where(.lunaria-rhythm) .helper{font-size:12px}}
@media(prefers-reduced-motion:reduce){:where(.lunaria-rhythm) .gold-dust-canvas{display:none}}
:where(.lunaria-rhythm) .rhythm-quick{margin:-3px 0 24px}
:where(.lunaria-rhythm) .rhythm-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:12px}
:where(.lunaria-rhythm) .rhythm-heading>div{display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px}
:where(.lunaria-rhythm) .rhythm-heading .eyebrow{font-size:10px;letter-spacing:1.2px}
:where(.lunaria-rhythm) .rhythm-clock{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
:where(.lunaria-rhythm) .rhythm-clock svg{color:var(--gold)}
:where(.lunaria-rhythm) .rhythm-heading>.text-button{font-size:12px;min-height:40px;white-space:nowrap}
:where(.lunaria-rhythm) .rhythm-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
:where(.lunaria-rhythm) .rhythm-card{--mark:#e2ba77;border:1px solid color-mix(in srgb,var(--mark) 30%,transparent);background:linear-gradient(125deg,color-mix(in srgb,var(--mark) 10%,var(--panel)),var(--panel));border-radius:14px;min-width:0;overflow:hidden}
:where(.lunaria-rhythm) .rhythm-sleep{--mark:#bf9ce9}
:where(.lunaria-rhythm) .rhythm-wake{--mark:#a9c7ef}
:where(.lunaria-rhythm) .rhythm-record{display:flex;align-items:center;gap:10px;min-height:66px;width:100%;padding:13px 14px;text-align:left;color:var(--text);font-size:15px;font-weight:550}
:where(.lunaria-rhythm) .rhythm-record:hover{background:color-mix(in srgb,var(--mark) 10%,transparent);box-shadow:inset 0 0 25px color-mix(in srgb,var(--mark) 10%,transparent)}
:where(.lunaria-rhythm) .rhythm-symbol{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:color-mix(in srgb,var(--mark) 12%,transparent);color:var(--mark);flex-shrink:0}
:where(.lunaria-rhythm) .rhythm-tick{margin-left:auto;color:var(--mark)}
:where(.lunaria-rhythm) .rhythm-placeholder{padding:0 14px 12px;font-size:11px;color:var(--muted)}
:where(.lunaria-rhythm) .rhythm-last{border-top:1px solid color-mix(in srgb,var(--mark) 13%,transparent);padding:5px 8px 5px 14px;display:flex;align-items:center;gap:3px;flex-wrap:wrap}
:where(.lunaria-rhythm) .rhythm-last-time{display:grid;gap:2px;text-align:left;padding:4px 0;flex:1;min-width:140px}
:where(.lunaria-rhythm) .rhythm-last-time>span{font-size:10px;color:var(--muted)}
:where(.lunaria-rhythm) .rhythm-last-time>time{font-size:11px;white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--mark)}
:where(.lunaria-rhythm) .rhythm-actions{display:flex;align-items:center;gap:2px;margin-left:auto}
:where(.lunaria-rhythm) .rhythm-actions>button{width:36px;min-height:40px;display:grid;place-items:center;color:var(--muted);border-radius:8px;padding:3px}
:where(.lunaria-rhythm) .rhythm-actions>button:hover{background:var(--raised);color:var(--gold)}
:where(.lunaria-rhythm) .rhythm-actions>.text-button{width:auto;padding:5px 9px;font-size:12px}
:where(.lunaria-rhythm) .rhythm-hint{font-size:11px;color:var(--muted);margin:8px 0 0}
:where(.lunaria-rhythm) .rhythm-feedback{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;font-size:13px;padding:10px 12px;margin:10px 0 0;border-radius:10px;background:color-mix(in srgb,var(--green) 9%,var(--panel));color:var(--green)}
:where(.lunaria-rhythm) .rhythm-feedback.error{background:color-mix(in srgb,var(--red) 8%,var(--panel));color:var(--red);border:1px solid color-mix(in srgb,var(--red) 30%,transparent)}
:where(.lunaria-rhythm) .rhythm-feedback .outline{font-size:12px;min-height:40px}
:where(.lunaria-rhythm) .rhythm-feedback .text-button{font-size:13px;min-height:36px}
:where(.lunaria-rhythm) .rhythm-journal{margin-bottom:18px}
:where(.lunaria-rhythm) .rhythm-journal>.helper{font-size:12px;line-height:1.7;margin-bottom:14px}
:where(.lunaria-rhythm) .rhythm-journal .panel-title h2{font-size:16px}
:where(.lunaria-rhythm) .rhythm-empty{padding:18px 0;font-size:14px;max-width:620px}
:where(.lunaria-rhythm) .rhythm-entry{display:flex;align-items:center;gap:13px;padding:13px 0;border-bottom:1px solid var(--line-strong)}
:where(.lunaria-rhythm) .rhythm-entry>svg{color:var(--gold)}
:where(.lunaria-rhythm) .rhythm-entry>div:first-of-type{display:grid;gap:4px;min-width:0}
:where(.lunaria-rhythm) .rhythm-entry strong{font-size:14px;font-weight:550;display:flex;align-items:center;flex-wrap:wrap;gap:10px}
:where(.lunaria-rhythm) .rhythm-entry strong small{font-size:11px;font-weight:400;color:var(--red)}
:where(.lunaria-rhythm) .rhythm-entry time{font-size:13px;color:var(--gold);font-variant-numeric:tabular-nums}
:where(.lunaria-rhythm) .rhythm-morning{font-size:11px;color:var(--muted)}
:where(.lunaria-rhythm) .rhythm-entry.cancelled>div:first-of-type{opacity:.65}
:where(.lunaria-rhythm) .rhythm-entry.cancelled strong{text-decoration:line-through}
:where(.lunaria-rhythm) .rhythm-journal-footer{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px}
:where(.lunaria-rhythm) .rhythm-journal-footer>.text-button{font-size:12px;min-height:40px}
:where(.lunaria-rhythm) .rhythm-dialog .rhythm-edit-hint{font-size:14px;margin-bottom:20px}
:where(.lunaria-rhythm) .rhythm-dialog label{font-size:13px}
:where(.lunaria-rhythm) .rhythm-dialog label input{font-size:16px;min-height:48px}
:where(.lunaria-rhythm) .rhythm-dialog .helper{font-size:12px;margin:5px 0 15px}
:where(.lunaria-rhythm) .rhythm-dialog .modal-actions{flex-wrap:wrap}
:where(.lunaria-rhythm) .rhythm-dialog .modal-actions>button{min-height:44px}
:where(.lunaria-rhythm) .rhythm-linked{display:grid;gap:6px;font-size:12px;align-content:start;margin-bottom:14px}
:where(.lunaria-rhythm) .rhythm-linked>span{color:var(--muted)}
:where(.lunaria-rhythm) .rhythm-linked>strong{font-size:12px;font-weight:500}
:where(.lunaria-rhythm) .rhythm-linked>.text-button{font-size:11px;justify-content:flex-start;min-height:32px}
@media(max-width:1100px){:where(.lunaria-rhythm) .rhythm-record{font-size:14px;gap:7px;padding:12px 10px}
:where(.lunaria-rhythm) .rhythm-symbol{width:30px;height:30px}
:where(.lunaria-rhythm) .rhythm-tick{width:13px}
:where(.lunaria-rhythm) .rhythm-last{padding-left:10px}
:where(.lunaria-rhythm) .rhythm-last-time{min-width:130px}
:where(.lunaria-rhythm) .rhythm-actions>button{width:32px}
:where(.lunaria-rhythm) .rhythm-placeholder{padding-left:10px;font-size:10px}}
@media(max-width:600px){:where(.lunaria-rhythm) .rhythm-heading{align-items:flex-start;gap:8px}
:where(.lunaria-rhythm) .rhythm-heading>div{display:grid;gap:6px}
:where(.lunaria-rhythm) .rhythm-heading .eyebrow{font-size:9px;letter-spacing:1px}
:where(.lunaria-rhythm) .rhythm-clock{font-size:11px}
:where(.lunaria-rhythm) .rhythm-buttons{gap:7px}
:where(.lunaria-rhythm) .rhythm-record{position:relative;flex-direction:column;justify-content:center;align-items:flex-start;gap:8px;padding:11px 9px;min-height:92px;font-size:13px;line-height:1.3}
:where(.lunaria-rhythm) .rhythm-symbol{width:28px;height:28px}
:where(.lunaria-rhythm) .rhythm-tick{position:absolute;right:9px;top:17px}
:where(.lunaria-rhythm) .rhythm-placeholder{font-size:10px;padding:0 9px 10px;line-height:1.5}
:where(.lunaria-rhythm) .rhythm-last{padding:6px 7px;gap:0}
:where(.lunaria-rhythm) .rhythm-last-time{min-width:0;width:100%;flex-basis:100%}
:where(.lunaria-rhythm) .rhythm-last-time>time{font-size:10px;white-space:normal;line-height:1.6}
:where(.lunaria-rhythm) .rhythm-last-time>span{font-size:9px}
:where(.lunaria-rhythm) .rhythm-actions{margin-left:0}
:where(.lunaria-rhythm) .rhythm-last .rhythm-actions{justify-content:space-between;width:100%}
:where(.lunaria-rhythm) .rhythm-actions>button{width:40px;min-height:44px}
:where(.lunaria-rhythm) .rhythm-hint{font-size:11px;line-height:1.6}
:where(.lunaria-rhythm) .rhythm-journal .panel-title{align-items:flex-start;flex-wrap:wrap}
:where(.lunaria-rhythm) .rhythm-entry{gap:9px;flex-wrap:wrap}
:where(.lunaria-rhythm) .rhythm-entry>.rhythm-actions{margin-left:auto}
:where(.lunaria-rhythm) .rhythm-entry time{font-size:12px}
:where(.lunaria-rhythm) .rhythm-entry strong{font-size:13px}
:where(.lunaria-rhythm) .rhythm-dialog .form-grid{grid-template-columns:1fr}
:where(.lunaria-rhythm) .rhythm-dialog .modal-actions>.gold{font-size:13px}}
:where(.lunaria-rhythm) .rhythm-record:not(.recorded){background:linear-gradient(125deg,#f1d7a4 0%,#e0b86f 60%,#bf9455 100%);color:#31243b;box-shadow:0 4px 17px #d5ab5f1b,inset 0 1px 0 #fff6d399;border-bottom:1px solid #f9ddaa73}
:where(.lunaria-rhythm) .rhythm-record:not(.recorded):hover{box-shadow:0 0 25px #dfb66c38,0 0 10px #a98af12b}
:where(.lunaria-rhythm) .rhythm-record:not(.recorded) .rhythm-symbol{color:#503955;background:#ffffff30}
:where(.lunaria-rhythm) .rhythm-record:not(.recorded) .rhythm-tick{color:#503955}
:where(.lunaria-rhythm) .rhythm-card.has-record{--mark:#bf9ce9}
:where(.lunaria-rhythm) .rhythm-record.recorded{background:linear-gradient(125deg,color-mix(in srgb,var(--purple) 12%,var(--panel)),var(--panel))}
:where(.lunaria-rhythm) .rhythm-placeholder{padding-top:9px}
:where(.lunaria-rhythm) .rhythm-done-time{display:block;margin-top:3px;font-size:11px;line-height:1.5;font-weight:400;color:var(--mark);font-variant-numeric:tabular-nums}
:where(.lunaria-rhythm) .rhythm-journal-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px 18px;margin:14px 0}
:where(.lunaria-rhythm) .rhythm-journal-toolbar>button{min-height:44px;font-size:13px}
:where(.lunaria-rhythm) .rhythm-selection{margin:12px 0;padding:14px;border:1px solid color-mix(in srgb,var(--purple) 35%,transparent);border-radius:11px;background:color-mix(in srgb,var(--purple) 7%,var(--panel))}
:where(.lunaria-rhythm) .rhythm-selection>div:first-child{display:flex;align-items:center;gap:10px 16px;flex-wrap:wrap}
:where(.lunaria-rhythm) .rhythm-selection strong{font-size:14px}
:where(.lunaria-rhythm) .rhythm-selection span,:where(.lunaria-rhythm) .rhythm-selection p{font-size:12px;color:var(--muted)}
:where(.lunaria-rhythm) .rhythm-selection .button-row{flex-wrap:wrap;margin-top:9px}
:where(.lunaria-rhythm) .rhythm-selection .text-button{min-height:36px;font-size:12px}
:where(.lunaria-rhythm) .rhythm-selection p{margin-top:9px}
:where(.lunaria-rhythm) .rhythm-entry.selected{background:color-mix(in srgb,var(--purple) 8%,transparent);border-radius:9px}
:where(.lunaria-rhythm) .rhythm-select-box{width:40px;min-width:40px;min-height:44px;display:grid;place-items:center;cursor:pointer}
:where(.lunaria-rhythm) .rhythm-select-box input[type=checkbox]{width:21px;height:21px;min-height:21px;accent-color:var(--purple);cursor:pointer;margin:0}
:where(.lunaria-rhythm) .rhythm-dialog .rhythm-confirm-check{display:flex;align-items:flex-start;gap:12px;padding:13px;border-radius:10px;background:var(--raised);line-height:1.65;font-size:13px;margin:3px 0 18px}
:where(.lunaria-rhythm) .rhythm-confirm-check input[type=checkbox]{width:22px;height:22px;min-height:22px;flex-shrink:0;margin:2px 0 0}
:where(.lunaria-rhythm) .rhythm-confirm-count{font-weight:600;color:var(--text);margin-bottom:8px}
:where(.lunaria-rhythm) .rhythm-confirm-list{list-style:none;padding:0;margin:0 0 18px;max-height:250px;overflow:auto}
:where(.lunaria-rhythm) .rhythm-confirm-list li{padding:9px 0;border-bottom:1px solid var(--line-strong);display:grid;gap:3px}
:where(.lunaria-rhythm) .rhythm-confirm-list strong{font-weight:500;font-size:13px}
:where(.lunaria-rhythm) .rhythm-confirm-list span{font-size:12px;color:var(--muted)}
@media(max-width:600px){:where(.lunaria-rhythm) .rhythm-done-time{font-size:10px}
:where(.lunaria-rhythm) .rhythm-record.recorded{min-height:112px}
:where(.lunaria-rhythm) .rhythm-journal-toolbar{align-items:stretch;flex-direction:column;gap:7px}
:where(.lunaria-rhythm) .rhythm-journal-toolbar .text-button{align-self:flex-start}
:where(.lunaria-rhythm) .rhythm-entry:has(.rhythm-select-box){gap:6px}
:where(.lunaria-rhythm) .rhythm-entry:has(.rhythm-select-box)>svg{width:16px}
:where(.lunaria-rhythm) .rhythm-entry:has(.rhythm-select-box)>.rhythm-actions{flex-basis:100%;justify-content:flex-end}
:where(.lunaria-rhythm) .rhythm-selection .button-row>button{min-height:44px;white-space:normal;text-align:left}
:where(.lunaria-rhythm) .rhythm-select-box{width:32px;min-width:32px}
:where(.lunaria-rhythm) .rhythm-dialog .modal-actions{gap:8px}
:where(.lunaria-rhythm) .rhythm-dialog .modal-actions>.gold{white-space:normal;text-align:center}}
:where(.lunaria-rhythm) .night-analysis>.panel-title{margin-bottom:16px}
:where(.lunaria-rhythm) .night-analysis h2{font-size:20px;margin-top:6px}
:where(.lunaria-rhythm) .night-toolbar{display:flex;justify-content:space-between;align-items:flex-end;gap:15px;flex-wrap:wrap;margin-bottom:15px}
:where(.lunaria-rhythm) .night-dates{display:flex;gap:9px}
:where(.lunaria-rhythm) .night-dates label{font-size:11px;color:var(--muted);display:grid;gap:4px}
:where(.lunaria-rhythm) .night-dates input{width:150px;min-height:42px;font-size:13px;padding:8px 10px}
:where(.lunaria-rhythm) .night-toolbar .button-row{flex-wrap:wrap;gap:13px}
:where(.lunaria-rhythm) .night-toolbar .outline{min-height:42px;font-size:12px}
:where(.lunaria-rhythm) .night-toolbar .text-button{min-height:40px;font-size:12px}
:where(.lunaria-rhythm) .night-summary{display:flex;align-items:center;flex-wrap:wrap;gap:10px 22px;padding:12px 14px;margin-bottom:16px;border-radius:10px;background:color-mix(in srgb,var(--purple) 7%,var(--panel));border:1px solid var(--line)}
:where(.lunaria-rhythm) .night-summary>span{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}
:where(.lunaria-rhythm) .night-summary strong{color:var(--text);font-weight:600}
:where(.lunaria-rhythm) .night-summary svg{color:var(--gold)}
:where(.lunaria-rhythm) .night-summary>small{width:100%;font-size:11px;color:var(--muted)}
:where(.lunaria-rhythm) .night-list{display:grid;gap:10px}
:where(.lunaria-rhythm) .night-row{padding:12px 14px;border:1px solid var(--line-strong);border-radius:12px;background:var(--input)}
:where(.lunaria-rhythm) .night-row.pending{border-style:dashed}
:where(.lunaria-rhythm) .night-row-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:11px}
:where(.lunaria-rhythm) .night-row-head>div:first-child{display:flex;align-items:center;flex-wrap:wrap;gap:5px 10px}
:where(.lunaria-rhythm) .night-row-head strong{font-size:14px;color:var(--gold)}
:where(.lunaria-rhythm) .night-row-head span,:where(.lunaria-rhythm) .night-row-head small{font-size:10px;color:var(--muted)}
:where(.lunaria-rhythm) .night-row-actions{display:flex;gap:15px;flex-wrap:wrap;justify-content:flex-end}
:where(.lunaria-rhythm) .night-row-actions .text-button{font-size:11px;min-height:32px}
:where(.lunaria-rhythm) .night-chain{display:grid;grid-template-columns:minmax(0,1fr) 16px minmax(0,1fr) 16px minmax(0,1fr) minmax(160px,1.25fr);gap:12px;align-items:center}
:where(.lunaria-rhythm) .night-event{min-width:0}
:where(.lunaria-rhythm) .night-event-label{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted)}
:where(.lunaria-rhythm) .night-event-label svg{color:var(--gold)}
:where(.lunaria-rhythm) .night-event>strong{display:block;font-size:21px;font-weight:550;letter-spacing:.3px;font-variant-numeric:tabular-nums;margin:5px 0 0}
:where(.lunaria-rhythm) .night-event>small{display:block;font-size:10px;color:var(--muted)}
:where(.lunaria-rhythm) .night-planned{font-size:10px;color:var(--muted);display:block;margin-top:7px}
:where(.lunaria-rhythm) .night-arrow{color:var(--faint)}
:where(.lunaria-rhythm) .night-delta{display:flex;align-items:center;gap:8px;margin-top:5px}
:where(.lunaria-rhythm) .night-delta>span{font-size:11px;white-space:nowrap;min-width:62px}
:where(.lunaria-rhythm) .night-delta>div{flex:1;max-width:75px;height:6px;background:var(--line-strong);position:relative;border-radius:3px}
:where(.lunaria-rhythm) .night-delta i{position:absolute;height:6px;background:var(--purple);border-radius:3px}
:where(.lunaria-rhythm) .night-delta b{position:absolute;left:50%;width:1px;top:-2px;bottom:-2px;background:var(--muted)}
:where(.lunaria-rhythm) .night-delta.later{color:var(--gold)}
:where(.lunaria-rhythm) .night-delta.later i{background:var(--gold)}
:where(.lunaria-rhythm) .night-delta.earlier{color:var(--purple)}
:where(.lunaria-rhythm) .night-delta.ontime{color:var(--green)}
:where(.lunaria-rhythm) .night-delta.ontime i{background:var(--green)}
:where(.lunaria-rhythm) .night-no-plan{display:block;font-size:10px;color:var(--faint);margin-top:6px}
:where(.lunaria-rhythm) .night-sleep-result{padding-left:14px;border-left:1px solid var(--line-strong);min-width:0}
:where(.lunaria-rhythm) .night-hours{display:flex;align-items:center;gap:8px;margin:6px 0 2px}
:where(.lunaria-rhythm) .night-hours>strong{font-size:17px;font-weight:550;white-space:nowrap}
:where(.lunaria-rhythm) .night-band-label{font-size:10px;display:block;color:var(--muted)}
:where(.lunaria-rhythm) .night-hours svg{color:var(--purple)}
:where(.lunaria-rhythm) .sleep-range-bar{height:7px;position:relative;background:var(--line-strong);margin:9px 0 3px;border-radius:4px;overflow:visible}
:where(.lunaria-rhythm) .sleep-range-bar>span{position:absolute;left:58.333%;width:16.667%;height:13px;top:-3px;border:1px solid var(--green);border-radius:3px;background:color-mix(in srgb,var(--green) 13%,transparent)}
:where(.lunaria-rhythm) .sleep-range-bar>i{display:block;position:relative;height:7px;max-width:100%;border-radius:4px;background:linear-gradient(90deg,#9672bb,#dfbf83)}
:where(.lunaria-rhythm) .sleep-range-labels{display:flex;justify-content:space-between;font-size:8px;color:var(--faint)}
:where(.lunaria-rhythm) .sleep-range-labels>span:nth-child(2){margin-left:30%;color:var(--green)}
:where(.lunaria-rhythm) .night-sleep-result>small{display:block;font-size:10px;color:var(--muted);margin-top:4px}
:where(.lunaria-rhythm) .night-row-note{display:flex;align-items:flex-start;gap:6px;font-size:11px;margin-top:10px;line-height:1.6}
:where(.lunaria-rhythm) .night-row-note svg{color:var(--gold);flex-shrink:0;margin-top:2px}
:where(.lunaria-rhythm) .night-empty{padding:22px 5px;font-size:14px;max-width:650px}
:where(.lunaria-rhythm) .sleep-evidence{border-top:1px solid var(--line-strong);margin-top:17px;padding-top:9px;font-size:12px;color:var(--muted);line-height:1.7}
:where(.lunaria-rhythm) .sleep-evidence summary{display:flex;align-items:center;gap:8px;color:var(--gold);cursor:pointer;min-height:40px}
:where(.lunaria-rhythm) .sleep-evidence p{margin:9px 0}
:where(.lunaria-rhythm) .sleep-evidence ul{padding-left:18px}
:where(.lunaria-rhythm) .sleep-evidence a{color:var(--gold);text-decoration:underline;text-underline-offset:3px}
:where(.lunaria-rhythm) .sleep-editor fieldset{border:0;padding:0;margin:0;min-width:0}
:where(.lunaria-rhythm) .sleep-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:16px 0 20px}
:where(.lunaria-rhythm) .sleep-choices>button{border:1px solid var(--line-strong);border-radius:9px;min-height:44px;font-size:13px;background:var(--input);color:var(--muted)}
:where(.lunaria-rhythm) .sleep-choices>button.chosen{color:var(--gold);background:color-mix(in srgb,var(--gold) 13%,var(--panel));border-color:var(--gold)}
:where(.lunaria-rhythm) .sleep-saved{display:flex;align-items:center;gap:7px;color:var(--green)!important}
:where(.lunaria-rhythm) .sleep-estimate-preview{padding:13px;border:1px solid var(--line-strong);border-radius:11px;background:var(--raised);display:flex;align-items:center;gap:12px;margin:10px 0}
:where(.lunaria-rhythm) .sleep-estimate-preview svg{color:var(--gold)}
:where(.lunaria-rhythm) .sleep-estimate-preview strong{display:block;font-size:17px}
:where(.lunaria-rhythm) .sleep-estimate-preview span{display:block;font-size:11px;color:var(--muted);margin-top:4px}
@media(max-width:1100px){:where(.lunaria-rhythm) .night-chain{grid-template-columns:minmax(0,1fr) 12px minmax(0,1fr) 12px minmax(0,1fr);gap:9px}
:where(.lunaria-rhythm) .night-sleep-result{grid-column:1/-1;padding:10px 0 0;border-left:0;border-top:1px solid var(--line-strong);display:grid;grid-template-columns:1fr 1fr;gap:2px 18px}
:where(.lunaria-rhythm) .night-sleep-result>.night-event-label{grid-column:1}
:where(.lunaria-rhythm) .night-hours{grid-column:1}
:where(.lunaria-rhythm) .night-band-label{grid-column:1}
:where(.lunaria-rhythm) .sleep-range-bar{grid-column:2;grid-row:2;align-self:center}
:where(.lunaria-rhythm) .sleep-range-labels{grid-column:2;grid-row:3}
:where(.lunaria-rhythm) .night-sleep-result>small{grid-column:1/-1}
:where(.lunaria-rhythm) .night-event>strong{font-size:19px}}
@media(max-width:600px){:where(.lunaria-rhythm) .night-analysis{padding:14px 11px}
:where(.lunaria-rhythm) .night-analysis h2{font-size:18px}
:where(.lunaria-rhythm) .night-analysis>.panel-title{align-items:flex-start;flex-wrap:wrap;gap:8px}
:where(.lunaria-rhythm) .night-toolbar{gap:8px}
:where(.lunaria-rhythm) .night-dates{width:100%}
:where(.lunaria-rhythm) .night-dates label{flex:1;min-width:0}
:where(.lunaria-rhythm) .night-dates input{width:100%;padding:8px 6px}
:where(.lunaria-rhythm) .night-toolbar .button-row{width:100%;justify-content:space-between;gap:8px}
:where(.lunaria-rhythm) .night-toolbar .outline{font-size:12px}
:where(.lunaria-rhythm) .night-summary{padding:11px;gap:8px}
:where(.lunaria-rhythm) .night-summary>span{font-size:11px;flex-wrap:wrap}
:where(.lunaria-rhythm) .night-summary>small{font-size:10px}
:where(.lunaria-rhythm) .night-row{padding:11px 9px}
:where(.lunaria-rhythm) .night-row-head{align-items:flex-start;gap:8px}
:where(.lunaria-rhythm) .night-row-head>div:first-child{display:grid;gap:2px}
:where(.lunaria-rhythm) .night-row-actions{gap:5px;max-width:145px}
:where(.lunaria-rhythm) .night-row-actions .text-button{font-size:10px;min-height:30px}
:where(.lunaria-rhythm) .night-chain{grid-template-columns:minmax(0,1fr) 8px minmax(0,1fr) 8px minmax(0,1fr);gap:5px}
:where(.lunaria-rhythm) .night-arrow{width:9px}
:where(.lunaria-rhythm) .night-event-label{font-size:9px;gap:4px;line-height:1.4;min-height:28px}
:where(.lunaria-rhythm) .night-event-label svg{width:12px}
:where(.lunaria-rhythm) .night-event>strong{font-size:16px}
:where(.lunaria-rhythm) .night-event>small{font-size:9px}
:where(.lunaria-rhythm) .night-planned{font-size:9px;line-height:1.5}
:where(.lunaria-rhythm) .night-delta{display:block}
:where(.lunaria-rhythm) .night-delta>span{font-size:10px;min-width:0}
:where(.lunaria-rhythm) .night-delta>div{margin-top:5px;width:100%}
:where(.lunaria-rhythm) .night-no-plan{font-size:9px;line-height:1.5}
:where(.lunaria-rhythm) .night-hours>strong{font-size:15px}
:where(.lunaria-rhythm) .night-hours{gap:5px}
:where(.lunaria-rhythm) .night-hours svg{width:17px}
:where(.lunaria-rhythm) .night-sleep-result{gap:2px 12px;grid-template-columns:1.25fr 1fr}
:where(.lunaria-rhythm) .night-sleep-result>.night-event-label{min-height:0}
:where(.lunaria-rhythm) .night-row-note{font-size:10px}
:where(.lunaria-rhythm) .sleep-evidence{font-size:12px}
:where(.lunaria-rhythm) .sleep-choices{grid-template-columns:repeat(3,minmax(0,1fr))}
:where(.lunaria-rhythm) .sleep-editor .modal-actions>button{flex:1}
:where(.lunaria-rhythm) .sleep-editor .form-grid{grid-template-columns:1fr}}
:where(.lunaria-rhythm) .night-reasons{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}
:where(.lunaria-rhythm) .night-reasons button{border:1px solid #bb88c14d;background:#a879b714;padding:7px 9px;border-radius:8px;text-align:left;font-size:12px;color:var(--muted)}
:where(.lunaria-rhythm) .night-reasons b{color:var(--purple)}
:where(.lunaria-rhythm) .calendar-repair{color:var(--muted);font-size:11px;margin-top:8px}
:where(.lunaria-rhythm) .calendar-repair p{margin-top:7px;max-width:720px}
:where(.lunaria-rhythm) .delay-editor.modal{width:min(470px,calc(100vw - 24px));padding:25px;max-height:85dvh;overflow:auto}
:where(.lunaria-rhythm) .delay-editor h2{font-size:24px;margin:14px 20px 9px 0}
:where(.lunaria-rhythm) .delay-editor .eyebrow{display:flex;gap:6px;align-items:center}
:where(.lunaria-rhythm) .delay-editor label{font-size:12px;display:grid;gap:7px}
:where(.lunaria-rhythm) .delay-options{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:14px 0}
:where(.lunaria-rhythm) .delay-options button{min-height:44px;border:1px solid var(--line-strong);border-radius:9px;background:var(--raised);padding:8px;font-size:13px}
:where(.lunaria-rhythm) .delay-options .chosen{border-color:var(--gold);color:var(--gold);background:#a4865120}
@media(max-width:760px){:where(.lunaria-rhythm) .panel{padding:13px}
:where(.lunaria-rhythm) .rhythm-quick{padding:10px!important;margin:8px 0!important}
:where(.lunaria-rhythm) .night-reasons button{font-size:12px;min-height:36px}
:where(.lunaria-rhythm) .calendar-repair{font-size:11px}
:where(.lunaria-rhythm) .delay-editor.modal{padding:20px}
:where(.lunaria-rhythm) .delay-editor h2{font-size:22px}
:where(.lunaria-rhythm) .delay-editor .modal-actions{display:flex;gap:8px}
:where(.lunaria-rhythm) .delay-editor .modal-actions button{flex:1}}
@media(max-width:360px){:where(.lunaria-rhythm) .date-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
:where(.lunaria-rhythm) .date-strip .day-pill{order:0;min-width:0;width:100%}
:where(.lunaria-rhythm) .date-strip>.icon{order:1;min-width:0;width:100%;min-height:38px}
:where(.lunaria-rhythm) .date-strip>.mobile-date{grid-column:7}}.lunaria-rhythm .rhythm-section-heading{margin:12px 0 22px}.lunaria-rhythm h1{font:400 39px/1.2 Georgia,"Times New Roman",serif;letter-spacing:-1.1px;margin:8px 0 14px}.lunaria-rhythm p{color:var(--muted)}.lunaria-rhythm .panel{padding:22px;border:1px solid var(--line);border-radius:18px;background:var(--panel);margin:16px 0}.lunaria-rhythm .rhythm-date-strip{display:flex;gap:4px;align-items:center;padding:12px;background:var(--panel);border-radius:14px}.lunaria-rhythm .rhythm-date-strip>button{flex:1;min-width:0;min-height:58px;border:1px solid transparent;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}.lunaria-rhythm .rhythm-date-strip>button.selected{border-color:#c9a56865;background:#c9a56813;color:var(--gold)}.lunaria-rhythm .rhythm-date-strip small{font-size:10px}.lunaria-rhythm .rhythm-date-strip b{font-size:17px;font-weight:500}.lunaria-rhythm .rhythm-calendar-input{position:relative;width:27px;flex-shrink:0;margin:0;overflow:hidden}.rhythm-calendar-input input{position:absolute;inset:0;opacity:0;cursor:pointer;padding:0;width:27px}.lunaria-rhythm .night-chain .night-event{background:none;border-radius:0;min-height:0;align-items:stretch}.lunaria-rhythm .night-event-label{min-height:30px}.lunaria-rhythm .night-chain .night-event>strong{font-size:21px}.lunaria-rhythm .rhythm-entry{min-width:0}.lunaria-rhythm .rhythm-entry>div:first-of-type{min-width:0}.lunaria-rhythm .rhythm-entry>div>small{display:block;font-size:10px;color:var(--muted)}.lunaria-rhythm .rhythm-entry>input{width:18px;flex-shrink:0}.lunaria-rhythm .rhythm-actions{margin-left:auto;gap:4px;flex-shrink:0}.lunaria-rhythm .rhythm-actions>button{min-height:40px;min-width:35px}.lunaria-rhythm summary{font-size:13px;line-height:1.5}.lunaria-rhythm .rhythm-import{font-size:12px}.lunaria-rhythm .rhythm-import details{margin:8px 0}.lunaria-rhythm .rhythm-import p{overflow-wrap:anywhere}.lunaria-rhythm fieldset{padding:0;margin:0;border:0;min-width:0}.lunaria-rhythm label{display:block;margin:15px 0 8px;color:var(--muted);font-size:12px}.lunaria-rhythm label>input,.lunaria-rhythm label>select{margin-top:6px;background:var(--input);color:var(--text);border:1px solid var(--line-strong);border-radius:10px;padding:10px 12px;width:100%;min-height:44px}.lunaria-rhythm .gold:not(p):not(h2){background:linear-gradient(120deg,#efdaa2,#d9b678);color:#3e2d18;padding:11px 17px;border-radius:10px}.lunaria-modal{max-width:600px}.lunaria-modal .modal-inner{padding:28px}.lunaria-modal .modal-inner>.lunaria-rhythm{background:transparent}.lunaria-rhythm .sleep-choices button{min-height:48px}.lunaria-rhythm .sleep-choices button.chosen,.lunaria-rhythm .delay-options button.chosen{border-color:var(--gold);background:#c9a56820}.lunaria-rhythm .sleep-choices{margin:24px 0}.lunaria-rhythm .sleep-estimate-preview{margin:20px 0}.lunaria-rhythm .modal-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:22px;position:sticky;bottom:-28px;background:var(--panel);padding:12px 0}.lunaria-rhythm .rhythm-feedback.error{color:var(--red)}
@media(max-width:700px){.lunaria-rhythm h1{font-size:32px}.lunaria-rhythm .panel{padding:16px 12px}.lunaria-rhythm .night-chain .night-event>strong{font-size:17px}.lunaria-rhythm .night-event-label{font-size:9px;gap:3px}.lunaria-rhythm .night-event-label svg{width:12px}.lunaria-rhythm .night-chain .night-event>small{font-size:10px}.lunaria-rhythm .rhythm-date-strip{padding:8px 4px;gap:0}.lunaria-rhythm .rhythm-date-strip>button{min-height:57px}.lunaria-rhythm .rhythm-calendar-input{width:24px}.lunaria-modal .modal-inner{padding:26px 18px 18px}.lunaria-rhythm .modal-actions{bottom:-18px}.lunaria-rhythm .rhythm-entry{gap:8px}.lunaria-rhythm .rhythm-entry time{font-size:11px}.lunaria-rhythm .rhythm-actions>button{min-width:30px}.lunaria-rhythm .rhythm-entry strong{font-size:12px}}
.lunaria-modal .lunaria-rhythm>h2{font:400 28px/1.25 Georgia,"Times New Roman",serif;letter-spacing:-.4px;margin:8px 0 14px}.lunaria-rhythm .night-chain .night-event{border:0}.lunaria-rhythm .night-toolbar .button-row{display:flex;align-items:center}
/* Compact sleep overview and weekly vertical chart. */
.lunaria-rhythm .sleep-week-chart{margin:9px 0 12px;padding:10px 12px 23px;border-radius:12px;background:var(--panel);border:1px solid var(--line)}.lunaria-rhythm .sleep-chart-caption{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;color:var(--muted);margin-bottom:13px}.sleep-chart-caption small{font-size:9px;display:flex;align-items:center;gap:4px}.sleep-chart-caption i{width:12px;height:6px;display:inline-block;border:1px solid var(--green);background:color-mix(in srgb,var(--green) 14%,transparent);border-radius:2px}.sleep-chart-layout{display:flex;gap:7px;height:76px;margin-top:5px}.sleep-chart-axis{position:relative;width:24px;flex-shrink:0;font-size:8px;color:var(--muted)}.sleep-chart-axis>span{position:absolute;right:0;transform:translateY(50%);line-height:9px}.sleep-chart-plot{position:relative;flex:1;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;border-bottom:1px solid var(--line-strong)}.sleep-recommended-zone{position:absolute;left:0;right:0;border-top:1px dashed color-mix(in srgb,var(--green) 65%,transparent);border-bottom:1px dashed color-mix(in srgb,var(--green) 65%,transparent);background:color-mix(in srgb,var(--green) 9%,transparent);pointer-events:none}.sleep-chart-column{position:relative;display:flex;align-items:flex-end;justify-content:center;min-width:0;padding:0;height:76px;z-index:1;border-radius:4px 4px 0 0}.sleep-chart-column.selected{background:color-mix(in srgb,var(--gold) 7%,transparent)}.sleep-chart-bar{position:relative;display:block;width:60%;max-width:34px;min-height:1px;background:linear-gradient(0deg,#9672bb,#dfbf83);border-radius:4px 4px 0 0}.sleep-chart-bar b{position:absolute;left:50%;transform:translate(-50%,-100%);top:-2px;font-size:9px;font-weight:500;color:var(--text);white-space:nowrap;line-height:12px}.sleep-chart-column>small{position:absolute;top:calc(100% + 5px);font-size:9px;line-height:12px;color:var(--muted)}.sleep-chart-column.selected>small{color:var(--gold)}
.lunaria-rhythm .night-analysis{padding:13px 14px;margin-top:10px}.lunaria-rhythm .night-compact-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}.lunaria-rhythm .night-compact-heading>div:first-child{min-width:0;flex:1}.lunaria-rhythm .night-compact-heading h2{font-size:17px;line-height:1.2;margin:0 0 4px}.night-compact-heading>div>small{font-size:9px;color:var(--muted)}.lunaria-rhythm .night-compact-heading .night-dates{width:auto;flex-shrink:0;gap:6px}.lunaria-rhythm .night-compact-heading .night-dates label{display:flex;align-items:center;gap:4px;font-size:10px;margin:0;flex:initial}.lunaria-rhythm .night-compact-heading .night-dates input{width:126px;font-size:11px;min-height:32px;height:32px;padding:4px 5px;margin:0}.lunaria-rhythm .night-toolbar{margin:0 0 6px;gap:6px;justify-content:flex-end}.lunaria-rhythm .night-toolbar .button-row{gap:14px;width:auto;justify-content:flex-end}.lunaria-rhythm .night-toolbar .text-button,.lunaria-rhythm .night-toolbar .outline{min-height:30px;padding:3px 7px;font-size:10px;margin:0}.lunaria-rhythm .night-summary{gap:6px 20px;padding:8px 10px;margin-bottom:10px}.lunaria-rhythm .night-summary>span{font-size:11px;gap:5px}.lunaria-rhythm .night-summary svg{width:15px;height:15px}.lunaria-rhythm .night-row{padding:9px 10px}.lunaria-rhythm .night-row-head{margin-bottom:5px}.lunaria-rhythm .night-chain{margin-top:5px;margin-bottom:5px}.lunaria-rhythm .night-event-label{min-height:23px}.lunaria-rhythm .night-list{gap:8px}
@media(max-width:700px){.lunaria-rhythm .night-analysis{padding:11px 10px}.lunaria-rhythm .night-compact-heading{gap:6px;align-items:flex-start}.lunaria-rhythm .night-compact-heading h2{font-size:13px;line-height:1.25}.lunaria-rhythm .night-compact-heading>div:first-child{flex:1}.lunaria-rhythm .night-compact-heading .night-dates{flex-direction:column;gap:3px}.lunaria-rhythm .night-compact-heading .night-dates label{justify-content:space-between;font-size:9px;gap:3px}.lunaria-rhythm .night-compact-heading .night-dates input{width:108px;min-height:29px;height:29px;font-size:10px;padding:3px}.lunaria-rhythm .night-compact-heading>div>small{font-size:8px}.lunaria-rhythm .night-toolbar{margin-top:2px;margin-bottom:5px}.lunaria-rhythm .night-toolbar .button-row{width:100%;gap:5px;justify-content:flex-end}.lunaria-rhythm .night-summary{gap:5px;padding:7px 8px}.lunaria-rhythm .night-summary>span{width:100%;flex-wrap:nowrap;font-size:10px;min-height:17px}.lunaria-rhythm .night-summary strong{white-space:nowrap}.lunaria-rhythm .sleep-chart-caption{font-size:9px}.sleep-chart-plot{gap:4px}.sleep-chart-bar b{font-size:8px}.lunaria-rhythm .night-event-label{min-height:22px}}
.sleep-chart-bar.unknown{background:none;min-height:0}
/* +30% from the approved original 76px chart; one-line Journal controls. */
.lunaria-rhythm .sleep-chart-layout,.lunaria-rhythm .sleep-chart-column{height:98.8px}.lunaria-rhythm .journal-one-line{display:flex;align-items:center;gap:5px;white-space:nowrap;margin-bottom:8px;min-width:0}.lunaria-rhythm .journal-one-line h2{font:19px Georgia,serif;margin:0 auto 0 0;flex-shrink:0}.lunaria-rhythm .journal-one-line label{margin:0;min-width:0}.lunaria-rhythm .journal-one-line input{width:120px;min-height:29px;height:29px;padding:3px;margin:0;font-size:11px;box-sizing:border-box}.lunaria-rhythm .journal-one-line button{min-height:29px;height:29px;min-width:25px;padding:3px;font-size:10px;display:flex;align-items:center;justify-content:center;color:var(--gold);border:1px solid var(--line);border-radius:5px}.lunaria-rhythm .night-summary{padding:6px 7px;gap:4px 10px}.lunaria-rhythm .night-row{padding:8px}.lunaria-rhythm .night-list{gap:6px}.lunaria-rhythm .night-chain{margin-top:4px;margin-bottom:4px}
@media(max-width:700px){.lunaria-rhythm .night-analysis{padding:9px 7px}.lunaria-rhythm .journal-one-line{gap:3px}.lunaria-rhythm .journal-one-line h2{font-size:16px}.lunaria-rhythm .journal-one-line label{flex:1}.lunaria-rhythm .journal-one-line input{width:100%;min-width:0;max-width:99px;font-size:8.5px;letter-spacing:-.3px;padding:3px 1px}.lunaria-rhythm .journal-one-line input::-webkit-calendar-picker-indicator{width:9px;margin:0;padding:0}.lunaria-rhythm .journal-one-line button{font-size:9px;min-width:24px}.lunaria-rhythm .journal-one-line button:last-child{min-width:25px}.lunaria-rhythm .night-summary>span{font-size:10px;min-height:15px}}

.lunaria-rhythm .journal-one-line .journal-date-control{position:relative;min-width:0;flex:1;max-width:130px;height:29px;border:1px solid var(--line);border-radius:5px;display:flex;align-items:center;justify-content:center;cursor:pointer}.lunaria-rhythm .journal-one-line .journal-date-control input{position:absolute;inset:0;width:100%;max-width:none;height:100%;opacity:0;cursor:pointer}.journal-date-visible{font-size:12px;font-variant-numeric:tabular-nums}.journal-date-control:focus-within{outline:1px solid var(--gold)}@media(max-width:700px){.journal-date-visible{font-size:10.5px}.lunaria-rhythm .journal-one-line .journal-date-control{max-width:none}.lunaria-rhythm .journal-one-line h2{font-size:17px}}
