@font-face{font-family:Nunito;src:url("/static/nunito-latin.woff2") format("woff2");font-style:normal;font-weight:200 900;font-display:swap}
*{box-sizing:border-box}
:root{color-scheme:light;--ink:#30273f;--muted:#6b6375;--line:#e4deea;--paper:#faf8fc;--plum:#5d4488;--h:clamp(45px,5.1vh,65px);font:15px/1.4 Nunito,"Segoe UI",Roboto,Arial,sans-serif;color:var(--ink);background:var(--paper)}
body{margin:0}button,input,select{font:inherit;color:inherit}button{cursor:pointer;background:white;border:1px solid var(--line);border-radius:10px;min-height:42px;font-weight:600}button:hover{filter:brightness(.96)}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #845cc7;outline-offset:2px}button:disabled{cursor:default;opacity:.55}button svg,.clock svg{width:19px;height:19px;display:block}button [data-icon]{display:inline-flex}
[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1{font-size:clamp(32px,3.1vw,52px);line-height:1.1;letter-spacing:-.058em;font-weight:650}h2{font-size:23px;letter-spacing:-.035em}
#app-screen{display:grid;grid-template-columns:94px minmax(0,1fr);min-height:100vh}.rail{background:var(--plum);color:#eff7ed;display:flex;flex-direction:column;align-items:center;padding:23px 8px;gap:35px;position:sticky;top:0;height:100vh;height:100dvh}.brand-mark{display:grid;grid-template-columns:repeat(2,13px);grid-template-rows:repeat(2,13px);gap:2px;transform:rotate(-8deg);margin:2px auto 6px}.brand-mark i{border-radius:9px 9px 2px 9px;background:#e6dca5}.brand-mark i:nth-child(2){transform:rotate(90deg);background:#bbd1bd}.brand-mark i:nth-child(3){transform:rotate(270deg);background:#f3ba99}.brand-mark i:nth-child(4){transform:rotate(180deg);background:#e2e9cf}
.nav-group{display:grid;gap:9px;width:100%}.rail button{width:100%;display:grid;justify-items:center;align-content:center;gap:5px;min-height:66px;border:0;background:transparent;color:#d3e1d8;font-size:11px;letter-spacing:.01em}.rail button svg{width:23px;height:23px}.rail button[aria-current=page]{background:#43655a;color:#fff}.rail button:hover{background:#36594f}.rail .nav-settings{margin-top:auto}
.workspace{min-width:0}.topbar{height:74px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:22px;padding:0 clamp(18px,3vw,52px);background:#fff}.wordmark{font-size:21px;font-weight:700;letter-spacing:-.055em}.top-date{font-size:14px;color:var(--muted);padding-left:22px;border-left:1px solid var(--line)}.clock{margin-left:auto;display:flex;align-items:center;gap:8px;font-weight:600;font-variant-numeric:tabular-nums}.clock svg{color:var(--muted);width:16px}.profile,.avatar{border-radius:50%;background:#f2eafa;color:#594074;display:inline-grid;place-items:center}.profile{width:37px;height:37px;min-height:37px;font-size:14px;border:1px solid #d0c0e0}
.page{padding:clamp(18px,2.5vw,44px) clamp(14px,3vw,52px) 24px;max-width:2050px;margin:auto}.page-head,.page-actions,#week-controls,#toolbar,#filters,.period,.example,.primary{display:flex;align-items:center}.page-head,#toolbar{justify-content:space-between;gap:12px}.page-head{align-items:flex-end}.period{gap:10px;margin-top:8px;color:var(--muted);font-size:15px}.kw{background:#f3e9fb;color:#6c467a;border-radius:6px;padding:2px 7px;font-size:11px;font-weight:700;letter-spacing:.04em}.page-actions{gap:12px}.primary{background:#684c9b;color:white;border:1px solid #684c9b;gap:7px;padding:0 18px;justify-content:center}.primary:hover{background:#51377d}.primary svg{width:17px}#week-controls{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:white}#week-controls button{border:0;border-radius:0;min-width:40px;padding:0 10px}#toolbar{margin:23px 0 15px;min-height:35px;flex-wrap:wrap}#filters{gap:7px;flex-wrap:wrap}.filter,.example{min-height:35px;border-radius:22px;padding:4px 12px;font-size:13px;gap:7px}.filter{display:flex;align-items:center}.filter[aria-pressed=true]{background:#ede5fc;border-color:#bfadd2;color:#573377}.filter i,.person-dot{width:10px;height:10px;border-radius:50%;background:var(--accent);display:inline-block;flex:none}.example{background:transparent;border-color:transparent;color:var(--muted);margin-left:auto}.example svg,.filter svg{width:15px;height:15px}#demo-note{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #ddd7b9;background:#f6f1da;font-size:13px;color:#665c33;border-radius:9px;padding:4px 12px;margin:0 0 12px}#demo-note button{background:transparent;border:0;font-size:13px;min-height:32px}
#board{background:white;border:1px solid var(--line);border-radius:15px;overflow:hidden;box-shadow:0 3px 11px #39244c0a}.calendar-scroll{max-height:calc(100vh - 265px);min-height:300px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#cfc4dd transparent}.week-head,.time-body{display:grid;grid-template-columns:58px repeat(7,minmax(0,1fr))}.week-head{position:sticky;top:0;z-index:5;background:#fff;border-bottom:1px solid var(--line)}.time-cap{display:grid;place-content:center;color:#8b988f}.time-cap svg{width:16px;height:16px}.day-head{min-height:74px;display:flex;flex-direction:column;justify-content:center;align-items:center;border-left:1px solid var(--line);gap:1px;background:#fff}.day-head small,.mobile-day small{font-size:11px;letter-spacing:.095em;text-transform:uppercase;font-weight:700;color:var(--muted)}.day-head strong,.mobile-day strong{font-size:24px;font-weight:600;line-height:34px;letter-spacing:-.045em;text-align:center;min-width:34px}.day-head.today,.day-col.today{background-color:#fcf6ed}.today strong{background:#b34539;border-radius:50%;color:#fff}.weekend{background-color:#faf8fc}.hours,.day-col{position:relative;height:calc(var(--n) * var(--h))}.hours{background:#fff}.hour{height:var(--h);text-align:center;padding-top:3px;font-size:11px;color:#716978;font-variant-numeric:tabular-nums}.day-col{border-left:1px solid var(--line);background-image:linear-gradient(to bottom,#e7e1ed 1px,transparent 1px),linear-gradient(to bottom,transparent calc(50% - 1px),#f3eff6 calc(50% - 1px),#f3eff6 50%,transparent 50%);background-size:100% var(--h)}.slot{position:absolute;left:0;width:100%;height:var(--h);border:0;border-radius:0;background:transparent;min-height:0}.slot:hover{background:#c8abff29}.slot:focus-visible{outline-offset:-3px}
.c0{--tint:#eae6ee;--accent:#968b9e;--tone:#483c53}.c1{--tint:#a7e1dc;--accent:#2d9390;--tone:#214e49}.c2{--tint:#ffccc3;--accent:#da7968;--tone:#653e39}.c3{--tint:#d1c7ff;--accent:#8771d6;--tone:#4b426d}.c4{--tint:#ffdaaa;--accent:#d88f38;--tone:#684b26}.c5{--tint:#a9ddfa;--accent:#419ccc;--tone:#354c6c}
.event{position:absolute;z-index:2;border:0;border-left:3px solid var(--accent);border-radius:6px;background:var(--tint);color:var(--tone);text-align:left;padding:4px 7px;display:flex;flex-direction:column;gap:1px;min-height:0;overflow:hidden;line-height:1.22}.event b,.task-name{overflow-wrap:anywhere}.event b{font-size:clamp(12px,.95vw,16px);font-weight:650}.event time{font-size:11px;font-variant-numeric:tabular-nums}.event .by{margin-top:auto;font-size:10px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.now-line{position:absolute;left:0;right:0;z-index:3;height:2px;background:#cb7151;pointer-events:none}.now-line:before{content:"";display:block;width:7px;height:7px;border-radius:50%;background:inherit;transform:translate(-2px,-3px)}#mobile-days{display:none}
.task-section{padding:20px clamp(14px,2vw,30px)}.task-section+.task-section{border-top:1px solid var(--line)}.task-section h2{font-size:18px;margin-bottom:14px}.task-row{display:flex;align-items:center;gap:13px;border-top:1px solid #edf0eb;min-height:58px}.task-row input{width:20px;height:20px;accent-color:#78579c}.task-open{border:0;background:transparent;text-align:left;flex:1;min-width:0;padding:8px 0;display:grid;gap:3px}.task-open small,.quiet{color:var(--muted);font-size:13px}.done .task-name{text-decoration:line-through;color:var(--muted)}.empty{padding:28px;text-align:center;color:var(--muted)}
.meals-grid{display:grid;grid-template-columns:95px repeat(7,minmax(0,1fr))}.meal-row-label{background:#fafbf8;display:grid;place-content:center;justify-items:center;font-size:12px;gap:7px;font-weight:650;color:var(--muted);border-top:1px solid var(--line)}.meal-row-label svg{width:21px;height:21px}.meal-cell{min-width:0;min-height:108px;margin:6px 4px;overflow:hidden;padding:0;text-align:center;display:flex;align-items:stretch;flex-direction:column;justify-content:center;gap:4px;border:1px solid transparent}.meal-cell:not(.filled){background:#fafbf8;border:1px dashed #d3dbd0;font-size:22px;color:#839380}.meal-cell.breakfast.filled{background:#f6e8cf}.meal-cell.lunch.filled{background:#ffe2d9}.meal-cell.dinner.filled{background:#e6e2f3}.meal-cell b{font-size:13px;padding:5px 5px 7px;overflow-wrap:anywhere}.food{display:block;background-image:url('/static/gerichte.jpg');background-size:300% 200%;background-repeat:no-repeat;width:100%;aspect-ratio:1.7;flex:1}.granola{background-position:0% 0%}.toast{background-position:50% 0%}.pasta{background-position:100% 0%}.salad{background-position:0% 100%}.pizza{background-position:50% 100%}.soup{background-position:100% 100%}
#login-screen{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(at 15% 12%,#eeddfc,transparent 45%),var(--paper)}.login-card,dialog{background:#fff;border:1px solid var(--line);border-radius:20px;padding:28px;box-shadow:0 14px 50px #19382d16}.login-card{width:min(100%,375px);display:grid;gap:16px}.login-card h1{font-size:32px;text-align:center;margin-bottom:10px}.login-card .brand-mark{background:var(--plum);padding:8px;box-sizing:content-box;border-radius:10px}label{display:grid;gap:5px;font-weight:600;font-size:14px}input,select{width:100%;min-width:0;border:1px solid #cac2d4;border-radius:8px;padding:9px 10px;background:#fff}dialog{color:var(--ink);width:min(460px,calc(100% - 24px));max-height:90vh;overflow:auto}dialog::backdrop{background:#32254182}dialog header{display:flex;align-items:center;justify-content:space-between;margin-bottom:19px}dialog form{display:grid;gap:14px}.icon-button{display:grid;place-items:center;width:42px;background:transparent;border:0}dialog footer{display:flex;gap:10px;justify-content:flex-end;margin-top:8px}.danger{color:#954536;background:#fff5ef;border-color:#f0d3c7;padding:0 12px;margin-right:auto}.account-actions{display:grid;gap:10px}.account-actions button{text-align:left;padding:0 14px}#dialog-error,#login-message{color:#9b4135;font-size:14px}#dialog-error:not(:empty){margin-top:12px}#toast{position:fixed;z-index:10;bottom:20px;left:50%;transform:translateX(-50%);background:var(--plum);color:#fff;padding:10px 18px;border-radius:10px;box-shadow:0 3px 15px #0002}
@media(max-width:1000px){#app-screen{grid-template-columns:76px minmax(0,1fr)}.rail{padding-inline:4px}.page{padding-inline:15px}.meals-grid{grid-template-columns:75px repeat(7,minmax(0,1fr))}.week-head,.time-body{grid-template-columns:42px repeat(7,minmax(0,1fr))}.topbar{height:61px}}
@media(max-width:720px){:root{--h:52px}#app-screen{display:block;padding-bottom:75px}.rail{position:fixed;z-index:8;top:auto;bottom:0;height:auto;width:100%;padding:4px 6px max(4px,env(safe-area-inset-bottom));flex-direction:row;gap:0}.rail>.brand-mark{display:none}.nav-group{display:contents}.rail button,.rail .nav-settings{min-height:51px;flex:1;width:auto;margin:0;font-size:10px;gap:2px}.rail button svg{width:20px}.topbar{height:54px;padding:0 15px;gap:12px}.top-date{display:none}.wordmark{font-size:20px}.page{padding:18px 10px 0}.page-head{flex-wrap:wrap;align-items:center}.page-actions{gap:6px;flex-wrap:wrap}.page-actions .primary{padding:0 11px}.period{margin-top:5px;font-size:13px}#toolbar{margin:12px 0 10px;gap:4px}#filters{gap:3px}.filter,.example{padding:4px 8px}.week-head{display:none}.time-body{grid-template-columns:43px minmax(0,1fr)}.time-body .day-col:not(.selected-day),.meals-grid .day-head,.meals-grid .time-cap,.meals-grid .meal-cell:not(.selected-day){display:none}.calendar-scroll{max-height:calc(100dvh - 325px);min-height:265px}.meals-grid{grid-template-columns:75px minmax(0,1fr)}.meal-cell{min-height:85px}.meal-cell .food{max-height:120px}.event b{font-size:15px}.event time{font-size:12px}#mobile-days:not(:empty){display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;margin-bottom:8px}.mobile-day{display:grid;justify-items:center;padding:4px 0;background:transparent;border-color:transparent}.mobile-day[aria-pressed=true]{border-color:#baa5da;background:#f2eafc}.mobile-day small{font-size:10px}.mobile-day strong{font-size:17px;line-height:26px;min-width:26px}#demo-note{font-size:11px;flex-wrap:wrap}#demo-note button{min-height:28px}#toast{bottom:70px}}
@media(max-height:620px) and (min-width:721px){.page{padding-block:12px}.topbar{height:46px}h1{font-size:30px}#toolbar{margin:8px 0}.calendar-scroll{max-height:calc(100vh - 165px);min-height:150px}.day-head{min-height:47px;flex-direction:row;gap:5px}}
#modes{display:flex;border:1px solid var(--line);background:white;border-radius:10px;padding:2px;margin-left:auto}#modes:empty{display:none}#modes button{min-height:30px;border:0;padding:2px 10px;font-size:12px;border-radius:7px}#modes button[aria-pressed=true]{background:#eadff9;color:#55377a}.example{margin-left:0}.weather{margin-left:auto;display:flex;align-items:center;gap:7px;border:0;color:#784e27;font-size:13px;background:#fff2d8;padding:0 10px;min-height:32px}.clock{margin-left:0}.profile img,.photo-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}.profile{padding:0}.photo-avatar{width:25px;height:25px;border-radius:50%;overflow:hidden;display:inline-grid;place-items:center;background:var(--tint);color:var(--tone);font-size:11px;font-weight:bold}.filter:has(.photo-avatar){padding:3px 9px 3px 4px}.single .week-head,.single .time-body{grid-template-columns:58px 1fr}.month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.month-grid>b{text-align:center;font-size:13px;color:var(--muted);padding:10px}.month-day{border:solid var(--line);border-width:1px 0 0 1px;min-height:90px;padding:4px;display:flex;flex-direction:column;align-items:stretch}.month-day>button{min-height:26px;font-size:12px;border:0;background:transparent;text-align:left}.month-day.today{background:#fff0e7}.month-day .month-event,.agenda-event{background:var(--tint);color:var(--tone);border-left:3px solid var(--accent);border-radius:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:2px 0}.agenda-event{padding:5px 10px;margin:4px}.agenda-event time{font-weight:400}.actions,.subnav{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.actions button,.subnav button,.panel button.secondary{padding:4px 12px}.panel{padding:20px}.panels{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:14px;padding:16px;background:var(--paper)}.panel-card{display:flex;flex-direction:column;align-items:stretch;gap:11px;padding:19px;border-radius:12px;border:1px solid var(--line);background:white}.panel-card h3{font-size:17px}.panel-card.note{background:#fbf0c9;min-height:135px;box-shadow:0 3px 0 #eee4c6}.panel-card.note p{white-space:pre-wrap;overflow-wrap:anywhere}.panel-card.note small{margin-top:auto}.panel-card button{align-self:flex-start}.grow{flex:1}.line{display:flex;align-items:center;gap:10px;min-height:42px}.line input[type=checkbox]{width:20px;height:20px;accent-color:#78579c}.line .secondary{background:transparent;border:0;min-width:35px}.task-open{max-width:100%}.member-row{border-bottom:1px solid var(--line);padding:6px 0}.member-row .photo-avatar{width:35px;height:35px}.member-row small{display:block}.points-number{font-weight:650;font-size:28px;color:#844383}.task-section button+button{margin-left:5px}.rail{gap:22px}.nav-group{gap:3px}.rail button{min-height:58px}.empty-block{display:grid;justify-items:start;padding:30px;gap:10px}.empty-block svg{width:26px;height:26px;color:#82539a}.empty-block button{padding:0 14px}.forecast{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin:14px 0}.forecast>div{display:grid;justify-items:center;gap:5px;border-radius:7px;background:#faf0de;padding:8px 2px}.forecast svg{width:22px;height:22px}.forecast small{font-size:11px}#dialog-content>.actions{margin-top:14px}#board{position:relative}.board-empty{position:absolute;left:50%;top:45%;transform:translate(-50%,-50%);text-align:center;background:#fffdf8f5;border:1px solid #d9cbe0;border-radius:12px;padding:14px 20px;box-shadow:0 5px 24px #46335215}.board-empty button{display:block;margin:7px auto 0;min-height:30px;border:0;background:transparent;color:var(--plum);text-decoration:underline}
@media(max-width:720px){.rail button,.rail .nav-settings{min-width:55px;min-height:49px;flex:1 0 55px}.rail{overflow-x:auto;gap:0;padding-inline:2px}.rail button{font-size:10px}.topbar{gap:8px}.weather{font-size:11px;gap:3px}.clock{font-size:13px}.clock svg{display:none}#modes{order:3;margin-left:0}#filters{flex:1}.month-day{min-height:68px;padding:1px}.month-day>button{font-size:10px}.calendar-scroll.single .time-body{grid-template-columns:43px 1fr}.board-empty{max-width:80%;width:max-content}.rail .nav-settings{margin:0}.month-grid>b{font-size:11px}}
@media(max-height:620px) and (min-width:721px){.rail{overflow:auto;gap:5px;padding:8px 4px}.rail button{min-height:42px}.rail .brand-mark{margin:0 auto}.rail button svg{width:17px;height:17px}}

.c6{--tint:#f6bde5;--accent:#ca62a6;--tone:#663c53}.c7{--tint:#ffe8a2;--accent:#b1993c;--tone:#62571d}.c8{--tint:#d6e88a;--accent:#8ba33b;--tone:#465b34}.c9{--tint:#e8c9fa;--accent:#a77bb3;--tone:#5b3f60}.c10{--tint:#eadfcd;--accent:#a38a68;--tone:#594b35}
.clock{font-size:clamp(20px,2.1vw,34px);line-height:1;letter-spacing:-.045em}.clock svg{width:19px;height:19px}.weather-trend{display:block;font-size:10px;font-weight:500}.weather{text-align:left;padding:4px 11px}.food{position:relative;overflow:hidden;background-image:none}.food:before{content:"";position:absolute;top:50%;left:0;transform:translateY(-50%);width:100%;aspect-ratio:1;background-image:url('/static/gerichte.jpg');background-size:300% 200%;background-position:inherit}.event .by{flex-shrink:1;min-height:0}.event b,.event time{flex-shrink:0}.topbar{gap:16px}.line input[type=checkbox]{flex:none}
@media(max-width:720px){.clock{font-size:19px}.topbar{gap:7px}.weather-trend{display:none}.weather{padding:3px 5px}}

/* Wall display */
.agenda-card{flex-direction:row;align-items:center;justify-content:flex-start;gap:7px}.agenda-card>.photo-avatar{flex:none;width:27px;height:27px;border:2px solid var(--accent);font-size:12px}.agenda-card .photo-avatar svg{width:17px;height:17px}.agenda-details{display:flex;flex-direction:column;min-width:0;gap:1px}.reward-photo{width:100%;max-height:210px;aspect-ratio:4/3;object-fit:cover;border-radius:9px}.claim-entry{display:grid;gap:3px;padding-block:8px;border-top:1px solid var(--line)}.claim-entry small{color:var(--muted)}
.calendar-notices{margin:12px clamp(7px,3vw,48px) 0;padding:10px 13px;background:#f0e9fa;border:1px solid #d7c8ec;border-radius:12px;color:#55406c}
.calendar-notices>header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px}.calendar-notices strong{display:flex;align-items:center;gap:6px;font-size:15px}.calendar-notices strong span{display:grid;place-items:center;background:#8e6eb0;color:white;border-radius:50%;width:21px;height:21px}.calendar-notices header button{background:transparent;border:0;min-height:28px;font-size:12px;text-decoration:underline;padding:0 3px;color:inherit}
.calendar-note-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:8px;max-height:150px;overflow:auto}.calendar-note-list article{min-width:0;padding:8px 10px;border-radius:8px;background:#fffaf0}.calendar-note-list p{margin:0 0 4px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.35}.calendar-note-list small{font-size:11px;color:#806842}
@media(max-width:720px){.calendar-notices{margin-top:7px;padding:7px 9px}.calendar-notices>header{margin-bottom:4px}.calendar-notices strong{font-size:13px}.calendar-note-list{display:flex;overflow-x:auto;max-height:130px;scroll-snap-type:x proximity}.calendar-note-list article{flex:1 0 86%;scroll-snap-align:start}.calendar-note-list article:only-child{flex-basis:100%}.calendar-note-list p{font-size:12px}}
.rail{background:#f2ecfa;color:var(--ink);border-right:1px solid var(--line)}
.rail button{color:#5d526e}.rail button[aria-current=page]{color:#51367a;background:#e0d2f4}.rail button:hover{background:#e7ddf3}
.rail [data-icon]{display:grid;place-content:center;width:29px;height:29px;border-radius:9px;background:var(--nav-tint,#eee7fb);color:var(--nav-ink,#665099)}
[data-view=calendar]{--nav-tint:#ded6ff;--nav-ink:#6548a0}[data-view=tasks]{--nav-tint:#ffe4b4;--nav-ink:#875522}
[data-view=meals]{--nav-tint:#ffd8cf;--nav-ink:#944838}[data-view=lists]{--nav-tint:#cfe8fc;--nav-ink:#366583}
[data-view=rewards]{--nav-tint:#ffdf91;--nav-ink:#805312}[data-view=notes]{--nav-tint:#f9cfe9;--nav-ink:#8a4273}
.brand-mark i:nth-child(1){background:#9880d9}.brand-mark i:nth-child(2){background:#68b9db}.brand-mark i:nth-child(3){background:#efa5cb}.brand-mark i:nth-child(4){background:#c0d65a}
.topbar{height:auto;min-height:80px;padding-block:5px;gap:15px}.top-date{padding-left:12px}.clock,.clock time{color:#463554}.wordmark{letter-spacing:-.04em}.profile{flex:none}
#filters{display:flex;flex-wrap:nowrap;align-items:center;overflow-x:auto;scrollbar-width:thin;min-width:0;gap:5px;max-width:52%;padding:2px}
.person-chip{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:3px 4px;flex:none;min-width:48px;min-height:0;background:transparent;border:1px solid transparent;border-radius:12px}
.person-chip[aria-pressed=true]{background:#f0eafa;border-color:#d5c4e9}
.person-chip small{max-width:12ch;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:11px;font-weight:750;line-height:1.3}
.portrait-wrap{position:relative;display:block;padding:0 4px}.person-chip .photo-avatar{height:38px;width:38px;border:3px solid var(--accent);background:var(--tint);font-size:16px;box-shadow:inset 0 0 0 2px white}
.group-chip .photo-avatar{border:1px solid #cfc3dd;background:#faf7fd}.star-count{position:absolute;right:-3px;bottom:-2px;background:#fff4cb;color:#604916;border:1px solid #efd480;border-radius:9px;padding:0 3px;font:800 9px/13px Nunito,sans-serif;white-space:nowrap}
.page{padding-top:20px}.page h1{font-size:clamp(26px,2.55vw,39px);font-weight:760;letter-spacing:-.04em}.period{margin-top:4px}.page-head{align-items:center}#toolbar{margin:12px 0;justify-content:flex-start;min-height:0}#modes{margin:0}.example{margin-left:auto}
#mobile-view,#mobile-mode{display:none}.event{border-radius:8px}.agenda-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:var(--line)}
.agenda-tile,.agenda-next{min-width:0;min-height:clamp(175px,27vh,340px);padding:10px;background:white}
.agenda-tile header,.agenda-next b,.person-tasks header{display:flex;align-items:center;gap:7px}
.agenda-tile header{justify-content:space-between}.agenda-tile header button,.agenda-next{border:0;color:var(--ink)}
.agenda-tile header button:first-child{padding:0;background:none;font-size:20px;min-height:30px;font-weight:620}
.agenda-tile.today header strong{background:#bd4e3d;color:white;padding:1px 6px;border-radius:12px}
.tile-plus{display:grid;place-content:center;min-height:29px;min-width:29px;background:#f1ebf7;border:0;border-radius:50%}.tile-plus svg{width:16px;height:16px}
.agenda-count{display:block;color:var(--muted);font-size:11px;margin:2px 0 8px}
.agenda-card{display:flex;flex-direction:column;width:100%;min-height:40px;justify-content:center;gap:1px;text-align:left;border:0;border-left:4px solid var(--accent);border-radius:6px;margin:4px 0;padding:5px 8px;background:var(--tint);color:var(--tone)}
.agenda-card b{font-size:14px;line-height:1.2;overflow-wrap:anywhere}.agenda-card small{font-size:11px;font-weight:550}.agenda-next{text-align:left;align-self:stretch;align-content:start;border-radius:0;background:#f8f5fc;display:grid;gap:7px}.agenda-next b{justify-content:space-between;font-size:19px}.agenda-next small{color:var(--muted)}
.task-board{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,215px),1fr));gap:1px;background:var(--line)}
.person-tasks{min-width:0;background:white;padding:12px}.person-tasks header{background:var(--tint);color:var(--tone);padding:7px;border-radius:10px;border-left:4px solid var(--accent);margin-bottom:10px}.person-tasks header>svg{width:20px;height:20px}.person-tasks h2{font-size:17px;overflow-wrap:anywhere;flex:1}.person-tasks h3{font-size:13px;margin:12px 0 4px}.task-tools{padding:10px}.task-tools button{padding-inline:12px}
.color-picks{min-width:0;margin:0;padding:6px 0;border:0;display:flex;flex-wrap:wrap;gap:5px}.color-picks legend{font-size:14px;font-weight:700}.color-picks label{display:grid;position:relative;cursor:pointer;padding:2px}.color-picks input{position:absolute;opacity:0;width:100%;height:100%;inset:0;margin:0;cursor:pointer}.swatch{display:grid;place-items:center;width:27px;height:27px;background:var(--tint);color:var(--tone);border:2px solid var(--accent);border-radius:50%}.color-picks input:checked+.swatch,.color-picks input:focus-visible+.swatch{outline:2px solid #463554;outline-offset:1px}
@media(max-width:1050px){.top-date{display:none}.topbar{gap:10px}.agenda-tile{padding:7px}}
@media(max-width:720px){
 :root{font-size:13px;--h:43px}#app-screen{padding-bottom:0}.rail{display:none}.topbar{display:flex;flex-wrap:wrap;gap:4px 7px;min-height:0;padding:5px 9px}
 .wordmark{display:none}.clock{font-size:21px}#mobile-view,#mobile-mode{display:block;width:auto;font-size:12px;font-weight:750;line-height:1.2;padding:6px;border:1px solid var(--line);border-radius:7px}
 #filters{order:5;flex:1 0 100%;max-width:100%;gap:4px;padding:0}.person-chip{min-width:41px;padding:1px 3px;gap:1px}.person-chip .photo-avatar{width:28px;height:28px;border-width:2px;font-size:13px}.person-chip small{font-size:10px}.star-count{font-size:8px;line-height:10px;bottom:-1px}.topbar .profile{width:29px;height:29px;min-height:29px}.topbar .profile svg{width:15px}.weather{min-height:29px}
 .page{padding:8px 7px}.page-head{flex-wrap:nowrap;align-items:center;gap:4px}.page h1{font-size:19px}.period{font-size:11px;gap:4px;margin:1px 0}.kw{font-size:9px}.page-actions{flex-wrap:nowrap;gap:4px}#week-controls button{min-width:25px;min-height:30px;padding:0 4px;font-size:11px}#week-controls svg{width:13px}
 .page-actions .primary{width:31px;height:31px;min-height:31px;padding:0}.page-actions #add-label{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
 #modes{display:none}#toolbar{margin:5px 0;flex-wrap:nowrap}.example{min-height:25px;font-size:11px}.mobile-day{min-height:32px;padding:0}.mobile-day small{font-size:9px}.mobile-day strong{font-size:13px;line-height:18px;min-width:20px}
 .calendar-scroll{max-height:calc(100dvh - 195px);min-height:180px}.agenda-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.agenda-tile,.agenda-next{min-height:111px;padding:5px}.agenda-tile header button:first-child,.agenda-next b{font-size:15px}.agenda-card{min-height:31px;padding:3px 5px}.agenda-card b{font-size:12px}.agenda-card small,.agenda-count{font-size:10px}.agenda-count{margin:0 0 3px}.event b{font-size:13px}.event time{font-size:11px}
 .task-board{grid-template-columns:repeat(2,minmax(0,1fr))}.person-tasks{padding:5px}.person-tasks header{gap:4px;padding:4px}.person-tasks h2{font-size:13px}.task-row{gap:4px;min-height:39px}.task-row input{flex:none;width:16px}.person-tasks .tile-plus{min-width:24px;min-height:24px}
 #toast{bottom:12px}.board-empty{font-size:12px}
}


.agenda-card{flex-direction:row;align-items:center;justify-content:flex-start;gap:7px}
.calendar-task-row{display:grid;grid-template-columns:58px repeat(7,minmax(0,1fr));background:#fffaf0;border-bottom:1px solid var(--line)}.single .calendar-task-row{grid-template-columns:58px 1fr}.calendar-task-row>div{padding:3px;border-left:1px solid var(--line)}.calendar-task-row>small{padding:5px;font-size:10px}.calendar-task-row button{display:block;white-space:normal;text-align:left;width:100%;min-height:25px;font-size:11px;padding:3px;overflow-wrap:anywhere}
.gallery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:12px;padding:12px}.gallery-open{padding:0;border:0;overflow:hidden;aspect-ratio:4/3;width:100%;background:#eee5f6}.gallery-open img{height:100%;width:100%;object-fit:cover}.photo-tools{padding:12px}.photo-tools button{padding-inline:16px}
dialog.slideshow{position:fixed;inset:0;max-width:none;width:100vw;height:100dvh;max-height:none;margin:0;border:0;border-radius:0;background:#211b29;color:white;padding:0;overflow:hidden;cursor:none}
dialog.slideshow>header,dialog.slideshow #dialog-error{display:none}
dialog.slideshow #dialog-content,#slide-stage{position:absolute;inset:0;width:100%;height:100%;overflow:hidden}
#slide-stage:focus{outline:none}.slide-frame{position:absolute;inset:0;display:grid;place-items:center;isolation:isolate;overflow:hidden;opacity:0;transition:opacity 1s ease}
.slide-frame.visible{opacity:1}.slide-ambient{position:absolute;inset:-10%;width:120%;height:120%;object-fit:cover;filter:blur(55px) saturate(1.15);opacity:.85;z-index:-2}
.slide-frame:before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at center,transparent 40%,#211b2933);z-index:-1}
.slide-photo-wrap{width:min(100vw,calc(100dvh * var(--photo-ratio)));aspect-ratio:var(--photo-ratio);max-height:100dvh;position:relative;display:grid;place-items:center}
.slide-photo{display:block;width:100%;height:100%;object-fit:contain;-webkit-mask-image:linear-gradient(to right,transparent,#000 12px,#000 calc(100% - 12px),transparent),linear-gradient(to bottom,transparent,#000 12px,#000 calc(100% - 12px),transparent);mask-image:linear-gradient(to right,transparent,#000 12px,#000 calc(100% - 12px),transparent),linear-gradient(to bottom,transparent,#000 12px,#000 calc(100% - 12px),transparent);-webkit-mask-composite:source-in;mask-composite:intersect}
@media(prefers-reduced-motion:reduce){.slide-frame{transition:none}}
@media(max-width:720px){.agenda-card{gap:4px}.agenda-card>.photo-avatar{width:22px;height:22px;font-size:10px}.calendar-task-row{grid-template-columns:43px repeat(7,minmax(0,1fr))}.single .calendar-task-row{grid-template-columns:43px 1fr}}

@media(max-width:720px){.calendar-task-row{grid-template-columns:43px 1fr}.calendar-task-row>div:not(.selected-day){display:none}}

.important-notes{display:grid;gap:12px}.important-notes article{padding:18px;background:#fff1c7;border:1px solid #e6c477;border-radius:12px}.important-notes p{font-size:20px;white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:8px}.important-notes small{color:#806842}

.calendar-task-row .month-event{background:var(--tint);color:var(--tone);border-left:3px solid var(--accent);border-radius:5px}


#repeat-weekdays{display:flex;flex-wrap:wrap;gap:9px;border:1px solid var(--line);border-radius:9px;padding:10px}#repeat-weekdays label{display:flex;align-items:center;gap:4px;font-size:13px}#repeat-weekdays input{width:18px;height:18px;margin:0}.task-name svg,.agenda-details b svg,.calendar-task-row button svg,.month-event svg{display:inline-block;width:15px;height:15px;vertical-align:middle;margin-right:4px;flex:none}

.calendar-note-list article,.important-notes article,.panel-card.note{background:var(--tint);color:var(--tone);border-left:4px solid var(--accent)}.calendar-note-list small,.important-notes small,.panel-card.note small{color:inherit;opacity:.8}.photo-tools{display:flex;gap:8px;flex-wrap:wrap}

.calendar-note-list article{position:relative;padding-right:35px}.note-dismiss{position:absolute;right:4px;top:4px;min-width:27px;min-height:27px;border:0;background:#ffffff88;color:inherit;font-size:20px;line-height:1}

.profile-notice-count{display:inline-flex;align-items:center;gap:3px;background:#ffe7ac;color:#73501f;border:1px solid #edcf87;padding:0 5px;border-radius:9px;font-size:10px;font-weight:800;line-height:15px}.profile-notice-count svg{width:11px;height:11px}@media(max-width:720px){.profile-notice-count{font-size:9px;line-height:12px}.profile-notice-count svg{width:10px;height:10px}}

.completion-time{display:block;font-size:10px;line-height:1.3;white-space:normal;overflow-wrap:anywhere;opacity:.8}.claim-entry button{margin-top:4px}.month-day .month-event:has(.completion-time){white-space:normal}

.favorite-section{padding:18px;background:white}.favorite-section h2{font-size:20px;margin-bottom:10px}.favorite-row{display:flex;gap:15px;align-items:flex-start;padding:12px 0;border-top:1px solid var(--line)}.favorite-row>header{display:flex;align-items:center;gap:8px;min-width:190px;background:var(--tint);color:var(--tone);border-radius:9px;padding:8px}.favorite-row h3{font-size:15px;flex:1}.favorite-row header>svg{width:22px;height:22px}.favorite-row header button{font-size:12px;min-height:30px;padding:2px 7px}.favorite-dishes{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.favorite-dish{display:flex;flex-direction:column;gap:4px;padding:6px;background:var(--tint);border-left:3px solid var(--accent);border-radius:9px}.favorite-dish button{padding:5px 9px;min-height:30px;font-size:13px}.favorite-owners{display:flex;flex-wrap:wrap;gap:12px}.favorite-owners label{display:flex;align-items:center;gap:5px}.favorite-owners input{width:18px;height:18px}.meal-wish{padding:10px;margin:6px 0;background:var(--tint);color:var(--tone);display:flex;align-items:center;gap:10px;flex-wrap:wrap;border-radius:9px}.meal-wish button{padding:4px 9px;min-height:30px;font-size:12px}@media(max-width:720px){.favorite-row{flex-direction:column;gap:8px}.favorite-row>header{width:100%;min-width:0}.favorite-section{padding:10px}}
/* Readable wall display */
.routine-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  cursor: pointer;
  font-size: 14px;
}
.routine-filter input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--plum);
  cursor: pointer;
}
@media (min-width: 721px) {
  :root {
    font-size: clamp(17px, 1.1vw, 24px);
    --h: clamp(56px, 5.1vh, 82px);
    --profile-size: clamp(64px, 4.2vw, 100px);
    --event-profile-size: clamp(48px, 3vw, 72px);
  }
  .topbar { min-height: 108px; }
  #filters { gap: 8px; max-width: 55%; }
  .person-chip { min-width: calc(var(--profile-size) + 12px); gap: 5px; }
  .person-chip .photo-avatar {
    width: var(--profile-size);
    height: var(--profile-size);
    font-size: 1.7rem;
  }
  .person-chip small { font-size: .85rem; }
  .star-count { font-size: .7rem; line-height: 1.35; padding: 0 5px; }
  .profile-notice-count { font-size: .7rem; line-height: 1.35; }
  .profile-notice-count svg { width: .8rem; height: .8rem; }
  .topbar .profile { width: 44px; height: 44px; }
  .wordmark { font-size: 1.35rem; }
  .top-date, .weather { font-size: .85rem; }
  .weather-trend { font-size: .7rem; }
  .page h1 { font-size: clamp(34px, 2.3vw, 56px); }
  .period { font-size: .95rem; }
  .kw { font-size: .8rem; }
  #toolbar { gap: 12px; }
  #modes button { font-size: .9rem; min-height: 38px; padding-inline: 14px; }
  .routine-filter { font-size: .85rem; }
  #week-controls button { font-size: .95rem; min-height: 42px; min-width: 42px; }
  .rail button { font-size: .8rem; min-height: 66px; }
  .agenda-card { min-height: calc(var(--event-profile-size) + 16px); gap: 12px; padding: 8px 10px; }
  .agenda-card > .photo-avatar {
    width: var(--event-profile-size);
    height: var(--event-profile-size);
    border-width: 3px;
    font-size: 1.3rem;
  }
  .agenda-card .photo-avatar svg { width: 1.5rem; height: 1.5rem; }
  .agenda-card b, .event b { font-size: 1.1rem; }
  .agenda-card small, .event time { font-size: .85rem; }
  .agenda-card .completion-time { font-size: .75rem; }
  .agenda-tile header button:first-child, .agenda-next b { font-size: 1.35rem; }
  .agenda-count, .agenda-next small { font-size: .8rem; }
  .event .by { font-size: .75rem; }
  .day-head small, .hour { font-size: .8rem; }
  .calendar-task-row button { font-size: .85rem; padding: 5px; }
  .calendar-task-row > small { font-size: .7rem; }
  .month-grid > b, .month-day > button { font-size: .85rem; }
  .month-day { min-height: 120px; }
  .month-event .completion-time { font-size: .7rem; }
  .person-tasks h2, .panel-card h3 { font-size: 1.1rem; }
  .task-name, .meal-cell b { font-size: 1rem; }
  .task-row small, .calendar-note-list p { font-size: .85rem; }
  .calendar-note-list small { font-size: .75rem; }
  .calendar-notices strong { font-size: 1rem; }
  .calendar-notices header button { font-size: .85rem; }
}
@media (min-width: 721px) and (max-width: 1400px) {
  .top-date { display: none; }
}
@media (max-width: 720px) {
  .routine-filter { min-height: 30px; padding: 3px 7px; gap: 5px; font-size: 11px; }
  .routine-filter input { width: 16px; height: 16px; }
}
.weather-condition { display: block; font-size: 12px; font-weight: 600; }
.weather-summary { display: flex; align-items: center; gap: 18px; }
.weather-summary > svg { width: 60px; height: 60px; color: #94652b; }
.weather-summary b { font-size: 30px; }
.weather-summary small { color: var(--muted); }
.weather-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.weather-metrics > div { display: grid; gap: 4px; padding: 12px; background: #fbf2e1; border-radius: 10px; }
.weather-metrics small { color: var(--muted); }
.weather-metrics b { font-size: 16px; }
.forecast > div { text-align: center; align-content: start; }
.weather-sun { margin: 12px 0; font-size: 13px; color: var(--muted); }
@media (min-width: 721px) {
  .weather { min-height: 76px; padding: 8px 14px; gap: 12px; flex-shrink: 0; }
  .weather > [data-icon] svg { width: 36px; height: 36px; }
  .weather-current { font-size: 1.15rem; }
  .weather-condition { font-size: .8rem; }
  .weather-trend { font-size: .75rem; }
  .weather-metrics b { font-size: 1rem; }
  .forecast small { font-size: .75rem; }
}
@media (max-width: 720px) {
  .weather-condition { display: none; }
  .weather-current { font-size: 11px; }
  .forecast { gap: 4px; }
  .forecast > div { padding: 7px 2px; }
  .forecast b { font-size: 11px; }
  .forecast small { font-size: 10px; }
}
dialog.weather-dialog { width: min(760px, calc(100vw - 24px)); }
@media (min-width: 721px) {
  .weather { max-width: clamp(240px, 23vw, 420px); }
  #weather-label { min-width: 0; }
  .weather-current { white-space: nowrap; }
  .weather-condition { line-height: 1.25; }
}
@media (max-width: 720px) {
  .weather-dialog .forecast { grid-template-columns: repeat(5, 90px); overflow-x: auto; }
}
@media (min-width: 721px) {
  #app-screen { grid-template-columns: clamp(100px, 6vw, 140px) minmax(0, 1fr); }
  .clock { font-size: clamp(28px, 2.5vw, 48px); }
}

/* Compact controls leave the available screen height to the calendar. */
.workspace { display: flex; flex-direction: column; }
.page { width: 100%; flex: 1; display: flex; flex-direction: column; }
.page-head { flex-wrap: wrap; gap: 10px 14px; margin-bottom: 12px; }
.heading-tools { display: flex; align-items: center; gap: 14px; min-width: 0; }
.heading-tools h1 { flex: none; }
.heading-tools #toolbar { margin: 0; flex-wrap: nowrap; gap: 8px; }
.page-head > .period { flex-basis: 100%; margin: 0; }
.page-actions { margin-left: auto; }
#modes, .routine-filter { flex: none; white-space: nowrap; }
#board { flex: 1; min-width: 0; }
#app-screen[data-section=calendar] .page { max-width: none; }
#board:has(> .agenda-grid) { display: flex; }
.agenda-grid { flex: 1; min-width: 0; align-items: stretch; }
.agenda-tile { min-height: 220px; }
.profile-notice-count { position: absolute; left: -3px; bottom: -2px; }
.sync-info { margin: 14px 0; }
.calendar-connection { display: grid; gap: 5px; border-top: 1px solid var(--line); padding: 12px 0; }
.calendar-connection small { color: var(--muted); }
.setup-steps { padding-left: 22px; font-size: 14px; display: grid; gap: 9px; }
.setup-uri { padding: 10px; border-radius: 8px; background: #f2ecfa; overflow-wrap: anywhere; font-size: 13px; user-select: all; }
#event-all-day input { width: 20px; height: 20px; }
.meal-slot-choices { display: grid; gap: 8px; }
.meal-slot-choices input { width: 21px; height: 21px; }
#meal-settings { padding-inline: 10px; font-size: .85rem; }
:is(.routine-done, .routine-missed) {
  position: relative; background: #d9f0de !important; color: #245d3e !important;
  border-left-color: #54a273 !important; padding-right: 34px !important;
}
.done-mark {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  color: #25834d; width: 25px; height: 25px; display: grid; place-items: center;
  font-size: 28px; font-weight: 900; line-height: 1; pointer-events: none;
}
.done-mark svg { width: 100%; height: 100%; }
.agenda-card:is(.routine-done, .routine-missed) { min-height: 42px; padding-block: 4px; gap: 7px; }
.agenda-card:is(.routine-done, .routine-missed) > .photo-avatar { width: 30px; height: 30px; font-size: 12px; }
.agenda-card:is(.routine-done, .routine-missed) b { font-size: .85rem; }
.agenda-card:is(.routine-done, .routine-missed) .agenda-details > small:not(.completion-time) { display: none; }
.agenda-card:is(.routine-done, .routine-missed) .completion-time { font-size: .65rem; }
.month-event:is(.routine-done, .routine-missed) { padding-block: 3px; }
.month-event:is(.routine-done, .routine-missed) .done-mark { width: 19px; height: 19px; right: 4px; }
.task-row:is(.routine-done, .routine-missed) { min-height: 40px; margin-block: 3px; border-radius: 7px; padding-left: 5px; gap: 8px; }
:is(.routine-done, .routine-missed) .task-open { padding-block: 2px; gap: 1px; }
:is(.routine-done, .routine-missed) .task-name { color: #245d3e; text-decoration: none; font-size: .8rem; line-height: 1.2; }
:is(.routine-done, .routine-missed) .task-open small { color: #376c4c; font-size: .65rem; line-height: 1.15; }
:is(.routine-done, .routine-missed) input { accent-color: #25834d; }

@media (min-width: 721px) {
  :root { --profile-size: clamp(56px, 4.2vw, 90px); }
  #app-screen { grid-template-columns: clamp(76px, 5.5vw, 120px) minmax(0, 1fr); }
  .rail button { min-width: 0; padding-inline: 2px; font-size: clamp(11px, .75vw, 18px); }
  .topbar {
    min-height: 0; height: auto; padding: 6px clamp(12px, 1.5vw, 32px);
    gap: clamp(8px, 1vw, 20px);
  }
  .clock { font-size: clamp(34px, 3vw, 60px); }
  .wordmark { font-size: clamp(25px, 2.1vw, 42px); line-height: 1.05; }
  .clock, .wordmark { flex: none; }
  .top-date { display: none; }
  #filters { gap: 4px; max-width: none; flex: 0 1 auto; }
  .person-chip { min-width: calc(var(--profile-size) + 10px); padding: 2px 3px; gap: 4px; }
  .person-chip small { font-size: .8rem; }
  .group-chip .photo-avatar { width: calc(var(--profile-size) * .8); height: calc(var(--profile-size) * .8); }
  .group-chip { min-width: calc(var(--profile-size) * .8 + 10px); }
  .star-count, .profile-notice-count { font-size: .65rem; line-height: 1.3; padding: 0 4px; }
  .profile-notice-count svg { width: .7rem; height: .7rem; }
  .weather { min-height: 60px; padding: 6px 9px; gap: 8px; flex: 0 1 auto; }
  .weather > [data-icon] svg { width: 28px; height: 28px; }
  .weather-current { font-size: 1rem; }
  .weather-condition { font-size: .7rem; }
  .weather-trend { font-size: .65rem; }
  .topbar .profile { width: 38px; height: 38px; min-height: 38px; }
  .page { padding: 12px clamp(12px, 1.5vw, 32px) 16px; }
  .page h1 { font-size: clamp(26px, 2vw, 44px); }
  #modes button { min-height: 36px; padding: 2px 9px; font-size: .8rem; }
  .routine-filter { min-height: 40px; padding: 4px 8px; font-size: .75rem; gap: 5px; }
  .routine-filter input { width: 18px; height: 18px; }
  #week-controls button { min-height: 40px; min-width: 32px; padding-inline: 7px; font-size: .8rem; }
  .page-actions { gap: 8px; }
  .page-actions .primary { min-height: 42px; padding-inline: 12px; font-size: .85rem; }
  .calendar-scroll { max-height: calc(100dvh - 160px); }
  .agenda-tile { padding: clamp(8px, 1vw, 20px); }
}
@media (min-width: 721px) and (max-width: 1100px) {
  .topbar { flex-wrap: wrap; }
  .wordmark { max-width: 12ch; }
  .weather { margin-left: auto; }
  .weather-trend { display: none; }
  #filters { flex-shrink: 1; }
  .heading-tools { gap: 10px; }
  .page-head { gap: 8px; }
  .agenda-card { gap: 7px; padding: 7px; }
  .agenda-card > .photo-avatar { width: 42px; height: 42px; }
}
@media (min-width: 721px) and (max-width: 900px) {
  .topbar { display: grid; grid-template-columns: auto 1fr auto auto; gap: 6px 10px; }
  .wordmark { max-width: none; }
  #filters { grid-column: 1 / -1; grid-row: 2; }
  .weather-current { font-size: .85rem; }
  .weather-condition { display: none; }
  .weather { min-height: 40px; }
}
@media (max-width: 720px) {
  .heading-tools { flex: 1 1 100%; gap: 8px; }
  .heading-tools #toolbar { flex: 1; justify-content: flex-end; gap: 5px; }
  #mobile-mode { order: 0; }
  .page-head { gap: 6px; margin-bottom: 7px; }
  .page-actions { margin-left: auto; }
  .person-chip .profile-notice-count { left: -5px; }
  .agenda-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agenda-tile { min-height: 160px; }
}

/* On phones the month is an overview; the day dialog contains the full cards. */
.month-mobile-summary { display: none; }
.connection-title { display: flex; align-items: center; gap: 8px; }
.month-source-colors { display: flex; align-items: center; justify-content: center; gap: 3px; height: 6px; flex: none; }
.month-source-colors i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
dialog.day-agenda-dialog { width: min(620px, calc(100vw - 20px)); }
.day-agenda .agenda-grid { display: block; background: transparent; }
.day-agenda .agenda-tile { min-height: 0; padding: 0; }
.day-agenda .agenda-tile > header { display: none; }
.day-agenda .agenda-count { margin: 0 0 12px; }
.day-agenda > .quiet { margin-block: 12px; }
@media (max-width: 720px) {
  .month-day { min-height: 76px; padding: 3px; }
  .month-day > button[data-day-view]:first-child { min-height: 22px; padding: 1px 2px; }
  .month-day > .month-event, .month-day > .month-more { display: none; }
  .month-day .month-mobile-summary {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    flex: 1; min-height: 42px; width: 100%; padding: 2px; gap: 0;
    border: 0; border-radius: 7px; background: #f6f3fa; color: #8a8292;
  }
  .month-day .month-mobile-summary.has-entries { background: #eae0f8; color: #583d80; }
  .month-mobile-summary strong { font-size: 16px; line-height: 19px; }
  .month-mobile-summary small { font-size: 8px; line-height: 12px; white-space: nowrap; }
  .today .month-mobile-summary strong { background: none; color: inherit; border-radius: 0; }
  .day-agenda-dialog { padding: 18px; }
  .day-agenda-dialog h2 { font-size: 21px; }
  .day-agenda .agenda-card { min-height: 56px; padding: 8px; gap: 9px; }
  .day-agenda .agenda-card > .photo-avatar { width: 36px; height: 36px; font-size: 15px; }
  .day-agenda .agenda-card b { font-size: 15px; }
  .day-agenda .agenda-card small { font-size: 12px; }
  .day-agenda .agenda-card:is(.routine-done, .routine-missed) { min-height: 42px; padding-block: 5px; }
  .day-agenda .agenda-card:is(.routine-done, .routine-missed) > .photo-avatar { width: 28px; height: 28px; }
  .day-agenda .agenda-card:is(.routine-done, .routine-missed) b { font-size: 13px; }
  .day-agenda .agenda-card:is(.routine-done, .routine-missed) .completion-time { font-size: 11px; }
}

/* Shared header date and a larger, cool-toned weather panel. */
.clock { display: grid; justify-items: start; gap: 3px; }
.clock-date { display: block; font-size: 11px; line-height: 1.2; letter-spacing: 0; font-weight: 650; color: #756784; white-space: nowrap; }
.weather { background: linear-gradient(135deg, #e5f0ff, #eee4fc); color: #435483; border: 1px solid #d7dff1; }
.weather-summary > svg { color: #596ba2; }
.weather-metrics > div, .forecast > div { background: #edf0fb; }
.meal-week-mobile { display: none; }
.list-card { background: linear-gradient(155deg, var(--tint), #fff 75%); border-top: 5px solid var(--accent); }
.list-heading { display: flex; align-items: center; gap: 10px; }
.list-heading > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #ffffffa8; color: var(--tone); flex: none; }
.list-heading svg { width: 25px; height: 25px; }
.list-heading > div { min-width: 0; }
.list-card h3, .list-card .grow { overflow-wrap: anywhere; }
.list-progress { color: var(--tone); }
.list-card .line { background: #ffffffa8; border-radius: 8px; padding: 3px 6px; }
.list-card input[type=checkbox] { accent-color: var(--accent); }
.point-accounts { grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.point-account { display: grid; grid-template-columns: minmax(0, 1fr) clamp(100px, 9vw, 150px); align-items: center; gap: 6px 16px; min-height: 180px; background: linear-gradient(120deg, #fff 40%, var(--tint)); }
.point-account > b { grid-column: 1; font-size: 1.2rem; overflow-wrap: anywhere; }
.point-account > .points-number { grid-column: 1; font-size: 2.5rem; line-height: 1.1; }
.point-account > .photo-avatar { grid-column: 2; grid-row: 1 / 5; width: 100%; height: auto; aspect-ratio: 1; border: 4px solid var(--accent); font-size: 3rem; }
.point-account > button { grid-column: 1; min-height: 34px; padding: 4px 8px; font-size: .8rem; }
@media (min-width: 721px) {
  .weather { min-height: 80px; max-width: 390px; min-width: 240px; padding: 8px 14px; gap: 12px; flex: 1 1 260px; }
  .weather > [data-icon] svg { width: 44px; height: 44px; }
  .weather-current { font-size: 1.5rem; line-height: 1.15; }
  .weather-condition { font-size: .8rem; }
  .weather-trend { font-size: .7rem; }
  .clock-date { font-size: .6rem; }
}
@media (min-width: 721px) and (max-width: 1100px) {
  .weather { min-width: 200px; max-width: 260px; padding-inline: 9px; gap: 8px; }
  .weather-current { font-size: 22px; }
  .weather > [data-icon] svg { width: 35px; height: 35px; }
  .wordmark { max-width: 10ch; }
}
@media (max-width: 720px) {
  .clock { gap: 1px; }
  .clock-date { font-size: 8px; }
  #app-screen[data-section=meals] .meals-grid { display: none; }
  .meal-week-mobile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 8px; background: #faf7fe; }
  .mobile-meal-day { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
  .mobile-meal-day.today { border: 2px solid #a68bd0; padding: 7px; }
  .mobile-meal-day > header { display: flex; justify-content: space-between; align-items: center; gap: 4px; font-size: 12px; margin-bottom: 6px; }
  .mobile-meal-day.today > header > strong { background: #eee4fb; color: #634290; border-radius: 5px; padding: 1px 4px; }
  .mobile-meal-day > header > span { font-size: 10px; color: var(--muted); }
  .mobile-meal-slots { display: grid; gap: 5px; }
  .mobile-meal-slot { display: grid; text-align: left; min-width: 0; width: 100%; min-height: 45px; padding: 6px; gap: 2px; border: 0; }
  .mobile-meal-slot.breakfast { background: #fff1d9; }
  .mobile-meal-slot.lunch { background: #e8def9; }
  .mobile-meal-slot.dinner { background: #e2f0fb; }
  .mobile-meal-slot small { font-size: 9px; color: #71647c; }
  .mobile-meal-slot b { font-size: 12px; line-height: 1.2; overflow-wrap: anywhere; }
  .point-account { grid-template-columns: minmax(0, 1fr) 100px; min-height: 150px; padding: 15px; }
  .point-account > b { font-size: 17px; }
  .point-account > .points-number { font-size: 32px; }
}

/* Missed routine status */
.routine-missed { background: #fbe0e1 !important; color: #8e303c !important; border-left-color: #d46a79 !important; }
.routine-missed .task-name, .routine-missed .task-open small { color: #8e303c; }
.routine-missed .done-mark { color: #b8344a; }

/* The calendar owns the remaining viewport, with one scrolling content area. */
#app-screen[data-section=calendar] { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; padding-bottom: 0; }
#app-screen[data-section=calendar] .workspace { height: 100%; min-height: 0; overflow: hidden; }
#app-screen[data-section=calendar] .topbar { flex: none; }
#app-screen[data-section=calendar] .calendar-notices { flex: none; max-height: 25dvh; overflow-y: auto; }
#app-screen[data-section=calendar] .page { min-height: 0; flex: 1 1 0; margin: 0 auto; }
#app-screen[data-section=calendar] .page-head, #app-screen[data-section=calendar] #mobile-days { flex: none; }
#app-screen[data-section=calendar] #board { min-height: 0; flex: 1 1 0; overflow: auto; }
#app-screen[data-section=calendar] #board:has(> .calendar-scroll) { overflow: hidden; }
#app-screen[data-section=calendar] .calendar-scroll { min-height: 0; max-height: none; height: 100%; }
#app-screen[data-section=calendar] .agenda-grid { min-height: 100%; }
#app-screen[data-section=calendar] .rail { overflow-y: auto; }
@media (min-width: 901px) and (max-width: 1100px) {
  .topbar { flex-wrap: nowrap; }
  .weather { flex: 1 1 210px; max-width: 240px; }
  #filters .group-chip { min-width: 44px; padding-inline: 2px; }
  #filters .group-chip .photo-avatar { width: 38px; height: 38px; }
  #filters .group-chip small { font-size: 11px; }
}
