/* PULSE reference direction: translucent ice, lilac, a quiet mountain horizon. */
:root{--bg:#e7edf8;--surface:#f7faffc9;--hero:transparent;--text:#152441;--muted:#596b87;--accent:#365f9d;--soft:#eff6ffad;--line:#ffffffbd;--shadow:0 12px 36px #6480aa13;color:var(--text);background:var(--bg)}
body{background:linear-gradient(#e8edf64d,#e7edf899),url('/landscape.png') center top/100% auto fixed no-repeat;min-height:100dvh}
.shell{max-width:1440px;grid-template-columns:190px 1fr}.navigation{background:#edf3fc65;border-right:1px solid #ffffff90;backdrop-filter:blur(18px);padding:42px 20px}.brand{padding:0;font-size:25px;font-weight:450;letter-spacing:5px;gap:0}.brand img{display:none}.brand small{font-size:11px;letter-spacing:.2px;max-width:120px;line-height:1.5}.nav-item.selected{background:#ffffffae;color:#254c84;box-shadow:0 4px 18px #79a9e720}.nav-footer{font-size:11px}.nav-items{gap:12px}main{padding:35px 40px 24px;max-width:1140px}header{margin-bottom:20px}.header-actions{display:flex;gap:12px;align-items:center}.icon-button,.avatar{background:#f6fbff88;border:1px solid #ffffffab;backdrop-filter:blur(15px);height:44px;width:44px;border-radius:50%;display:grid;place-items:center}.avatar{position:relative}.avatar i{position:absolute;bottom:1px;right:1px;width:9px;height:9px;border:2px solid white;border-radius:50%;background:#bea076}.avatar i.online{background:#3bc8a1}.mobile-brand{display:none}.page-heading h1{font-size:31px;font-weight:500}.date{font-size:12px}.now-layout{grid-template-columns:minmax(0,1.55fr) minmax(260px,1fr);gap:28px}.focus{padding:0;border:0;background:none;box-shadow:none}.orbit-wrap{position:relative;max-width:520px;margin:0 auto}.orbit{width:340px;max-width:78%;margin:0 auto;filter:drop-shadow(0 10px 25px #6981e233)}.orbit>svg{transform:rotate(-90deg)}.outer-halo{stroke:#edf9ffb3;stroke-width:1;filter:drop-shadow(0 0 7px white)}.glass-ring{stroke-width:25;paint-order:stroke;filter:drop-shadow(0 0 3px #ffffff) drop-shadow(0 0 9px #b1dbff)}.live-progress{stroke:#426ce0;stroke-width:3;opacity:.75}.orbit-center{gap:6px}.orbit-center>small{font-size:13px;color:#5d7191}.orbit-center strong{font-size:35px;font-weight:450;color:var(--text);letter-spacing:-1px}.week-dots{display:flex;gap:9px;font-size:10px;margin-top:8px;color:#63718b}.week-dots span{padding:5px 2px}.week-dots .current{background:#d5f4ffbd;border:1px solid #fff;border-radius:50%;padding:5px;color:#3676ba;box-shadow:0 0 10px #c8efff}.orbit-chip{position:absolute;display:flex;align-items:center;gap:8px;min-height:48px;padding:10px 12px;border-radius:22px;background:#f5faff99;border:1px solid #ffffffa6;backdrop-filter:blur(10px);box-shadow:0 6px 18px #9db6dd12;font-size:11px;line-height:1.35}.orbit-chip svg{width:21px;height:21px;color:#3e587d}.orbit-chip small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.chip-a{left:0;top:14%}.chip-b{right:0;top:14%}.chip-c{left:0;bottom:12%}.chip-d{right:0;bottom:12%}.rhythm-title{text-align:center;margin:10px 0 24px}.rhythm-title h2{font-size:25px;font-weight:500;margin:0 0 6px;letter-spacing:-.7px}.rhythm-title p{color:var(--muted);font-size:12px;margin:0}.rhythm-title i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#4bc7ac;margin-right:6px}
.session-card,.next-event,.intake,.panel,.week-chart,.timeline{border:1px solid #ffffffdf;background:linear-gradient(135deg,#ffffffbf,#f3f7ff9c);box-shadow:inset 0 1px 2px #fff,0 14px 38px #6789b513;backdrop-filter:blur(16px);border-radius:26px}.session-card{text-align:left;padding:25px}.session-eyebrow{display:flex;justify-content:space-between;color:var(--muted);font-size:12px;letter-spacing:1.5px;text-transform:uppercase;margin-bottom:18px}.session-eyebrow>span:last-child{letter-spacing:0;text-transform:none}.project-label{display:flex;align-items:center;gap:14px;margin-bottom:17px}.project-icon{width:47px;height:47px;border-radius:17px;background:#c8e2ffb3;display:grid;place-items:center;color:#264a78}.project-label small{display:block;color:var(--muted);font-size:12px;margin-bottom:4px}.project-label strong{font-weight:550;font-size:17px}.focus-copy h2{font-size:24px;font-weight:550;line-height:1.3;letter-spacing:-.6px;margin-bottom:10px}.focus-copy>p:last-child{margin:0 0 20px;font-size:12px;max-width:none;line-height:1.6}.focus-actions{gap:10px}.focus-actions .primary{flex-basis:100%;width:100%}.primary{border-radius:40px;background:linear-gradient(145deg,#3d5169,#182840 55%,#415e85);color:#fff;box-shadow:inset 0 1px 3px #a7d7fa,0 0 0 1px #b0e3ff,0 3px 16px #97ccf6b3;min-height:48px;font-weight:500}.primary:hover{background:#355880}.secondary{border-radius:30px;background:#eef5ff55;color:var(--text);border:1.5px solid #fff;font-weight:450;box-shadow:0 3px 14px #fff3}.session-secondary{display:flex;gap:10px;margin-top:10px}.session-secondary>*{flex:1}.focus-actions .secondary{flex:1}.day-side{padding-top:12px}.section-heading h2{font-size:12px;text-transform:uppercase;letter-spacing:1.2px;font-weight:500}.next-event strong{font-size:19px}.notice{background:#ffffff98;color:#685636;border:1px solid #ffffffba;font-size:12px;border-radius:16px}.notice:not(:first-child){margin-top:5px}textarea,input,select{background:#f9fcff9c;border-color:#d9e3f0}.timeline{background:transparent;box-shadow:none;border:0;padding:4px 0}.timeline-row{gap:12px;padding:10px 0}.timeline-row>div:last-child{background:linear-gradient(135deg,#ffffffb8,#eff6ffa6);border:1px solid white;border-radius:20px;padding:16px 20px;box-shadow:0 8px 25px #7593c814}.timeline-row time{padding-top:18px}.timeline-line{margin-top:21px}.timeline-line:after{background:#acc8e1;bottom:-35px}.timeline-row h3{font-size:16px}.timeline-row .category{font-size:10px}.timeline-row.fixed>div:last-child{background:#edf3ffcc}.timeline-row.lunch>div:last-child,.timeline-row.sport>div:last-child{background:#f4f2ffa6}.two-columns{gap:22px}.week-orbit .orbit-wrap{max-width:550px}.week-orbit .orbit{width:310px}.week-intro{margin:12px 0 20px}.week-intro>p{font-size:12px}.week-chart{padding:20px}.bars{gap:10px}.bar-col{border:1px solid #ffffffd9;background:#f4faff77;border-radius:18px;padding:13px 4px}.bar-track{height:65px;width:12px;background:#c9d8eb77}.bar{background:linear-gradient(#93cfff,#8a8ff0)}.bar-col>span{font-size:10px;min-height:20px}.category-total{flex-wrap:wrap;border-bottom:1px solid #d7e2f080}.category-total:last-child{border:0}.history-row{border-color:#c9d7e880}.heatmap{background:#f5faffb5;border:1px solid white}.search-result{padding:14px 0;border-bottom:1px solid #ccd9e8}.search-result p{margin:6px 0 0}.search-result small{color:var(--muted)}dialog{background:#f1f6ffed;backdrop-filter:blur(25px);border:1px solid white}.page-heading .date{text-transform:capitalize}.busy button{opacity:.6}
[data-theme=dark]{--bg:#142033;--surface:#26354bcc;--text:#e9f0ff;--muted:#b3c2d9;--accent:#b3d7ff;--soft:#334862;--line:#56677c;color:var(--text);background:var(--bg)}[data-theme=dark] body{background:linear-gradient(#0b1a36c9,#142033ee),url('/landscape.png') center top/100% auto fixed no-repeat}[data-theme=dark] .session-card,[data-theme=dark] .panel,[data-theme=dark] .next-event,[data-theme=dark] .intake,[data-theme=dark] .week-chart,[data-theme=dark] .timeline-row>div:last-child,[data-theme=dark] .heatmap,[data-theme=dark] dialog{background:#24344bd9;border-color:#536581;box-shadow:inset 0 1px 1px #7187a550}[data-theme=dark] .orbit-chip,[data-theme=dark] .bar-col,[data-theme=dark] .icon-button,[data-theme=dark] .avatar,[data-theme=dark] .navigation{background:#23344aba;border-color:#4a607c}[data-theme=dark] .secondary,[data-theme=dark] textarea,[data-theme=dark] input,[data-theme=dark] select{background:#283e59;border-color:#536581;color:var(--text)}[data-theme=dark] .orbit-center small,[data-theme=dark] .orbit-chip svg{color:#c5dbf5}[data-theme=dark] .notice{background:#453f35;color:#e2d4b6;border-color:#605845}[data-theme=dark] .nav-item.selected{background:#354e70;color:#fff}[data-theme=dark] .project-icon{background:#36577e;color:#e4f1ff}
@media(max-width:1100px){main{padding:30px}.shell{grid-template-columns:170px 1fr}.now-layout{grid-template-columns:1fr}.day-side{padding:0;grid-template-columns:1fr 1fr}.orbit-wrap{max-width:480px}.focus-copy h2{font-size:24px}.navigation{padding:35px 15px}.brand{font-size:23px}.week-orbit .orbit{width:290px}}
@media(max-width:650px){body{background-size:auto 940px;background-attachment:scroll;background-position:center top}.shell{display:block}main{padding:23px 17px 100px}.navigation{border-radius:26px 26px 0 0;border:1px solid #ffffffd6;background:#f4f8ffd4;padding:8px 8px calc(8px + env(safe-area-inset-bottom));backdrop-filter:blur(25px)}.nav-item{font-size:11px;padding:8px 2px;gap:6px;border-radius:16px}.nav-item svg{width:24px;height:24px}.nav-item.selected{background:#e5f2ff88;color:#183d75;box-shadow:none}.nav-item.selected svg{filter:drop-shadow(0 0 5px #93c2ff)}header{align-items:center;margin-bottom:10px}.mobile-brand{display:block;text-decoration:none;font-size:23px;letter-spacing:5px;font-weight:450;line-height:1.2}.mobile-brand small{display:block;font-size:10px;letter-spacing:1px;color:var(--muted);margin-top:5px;line-height:1.4}.page-heading{display:none}body:has(.two-columns) .page-heading,body:has(.week-intro) .page-heading,body:has(.history-intro) .page-heading,body:has(.settings-grid) .page-heading{display:block;margin-top:18px;flex-basis:100%;order:3}.page-heading h1{font-size:29px}.page-heading .date{margin:0 0 4px;font-size:11px}body:has(.two-columns) header,body:has(.week-intro) header,body:has(.history-intro) header,body:has(.settings-grid) header{flex-wrap:wrap;gap:0}.header-actions{margin-left:auto;gap:10px}.icon-button,.avatar{width:37px;height:37px}.icon-button svg,.avatar svg{width:19px;height:19px}.orbit-wrap{margin:8px -4px 0}.orbit{width:285px;max-width:83%;margin:0 auto}.orbit-center strong{font-size:31px}.orbit-center small{font-size:11px}.week-dots{gap:6px;font-size:9px;margin-top:6px}.orbit-chip{font-size:10px;padding:9px;gap:5px;border-radius:21px;min-height:43px}.orbit-chip svg{width:18px;height:18px}.orbit-chip small{font-size:9px;margin-top:2px}.chip-a,.chip-b{top:11%}.chip-c,.chip-d{bottom:9%}.rhythm-title{margin:12px -5px 24px}.rhythm-title h2{font-size:22px;letter-spacing:-.6px;line-height:1.25}.rhythm-title p{font-size:11px}.session-card{padding:20px 18px;border-radius:25px}.session-eyebrow{font-size:10px;margin-bottom:17px}.project-label{gap:12px;margin-bottom:16px}.project-icon{width:42px;height:42px;border-radius:15px}.project-label strong{font-size:16px}.project-label small{font-size:10px}.focus-copy h2{font-size:21px;line-height:1.35}.focus-copy>p:last-child{font-size:11px;line-height:1.6;margin-bottom:18px}.session-secondary{gap:8px}.secondary{padding:12px 10px;font-size:13px;min-height:43px}.primary{font-size:14px;min-height:46px;padding:13px 15px}.focus-actions .secondary{flex-basis:45%}.day-side{grid-template-columns:1fr;gap:14px}.next-event,.intake,.panel{padding:20px;border-radius:24px}.now-layout{gap:14px}.section-heading{margin-bottom:13px}.section-heading h2{font-size:10px}.next-event strong{font-size:17px}.notice{font-size:10px;padding:9px 12px;margin-bottom:9px}.timeline-row{grid-template-columns:36px 11px 1fr;gap:9px}.timeline-row>div:last-child{padding:14px;border-radius:18px}.timeline-row h3{font-size:14px}.timeline-row time{font-size:11px}.timeline-row .category{font-size:9px}.timeline .section-heading{margin:18px 0}.week-orbit .orbit-wrap{margin-top:12px}.week-orbit .orbit{width:280px}.week-intro{gap:15px}.week-intro>p{font-size:11px}.week-intro strong{font-size:24px}.week-chart{padding:10px;border-radius:21px}.bars{gap:5px}.bar-col{padding:10px 2px;border-radius:14px}.bar-col>span{font-size:8px;min-height:23px}.bar-track{height:50px;width:9px}.bar-col strong{font-size:11px}.bar-col small{font-size:10px}.quiet-note{font-size:11px}footer{font-size:9px}.connection{font-size:9px}.brand{display:none}}
@media(max-width:370px){main{padding-left:12px;padding-right:12px}.orbit{width:258px}.orbit-chip{padding:8px 6px;font-size:9px}.orbit-chip small{font-size:8px}.orbit-chip svg{width:15px}.orbit-center strong{font-size:27px}.rhythm-title h2{font-size:20px}.focus-copy h2{font-size:19px}}

.history-filter{display:block;max-width:300px;font-size:12px;color:var(--muted);margin:20px 0}.history-filter select{margin-top:7px}.legacy-notice summary{font-size:10px;padding:0;color:inherit}.legacy-notice p{margin:8px 0 0;font-size:11px}.glass-ring{filter:drop-shadow(0 0 2px #fff) drop-shadow(0 0 6px #b1dbff)}@media(max-width:650px){[data-theme=dark] body{background-size:auto 940px;background-attachment:scroll}}

.busy-notice{display:none;position:fixed;top:12px;left:50%;transform:translateX(-50%);z-index:20;border:1px solid white;background:#203754;color:white;padding:12px 22px;border-radius:24px;box-shadow:0 8px 30px #24395240;font-size:13px;white-space:nowrap}.busy .busy-notice{display:block}
@media(max-width:650px){.now-layout .orbit{width:245px}.rhythm-title{margin:8px -5px 17px}.session-card{padding:18px}.session-eyebrow{margin-bottom:12px}.project-label{margin-bottom:12px}.focus-copy h2{font-size:19px}.focus-copy>p:last-child{margin-bottom:14px}.now-layout .orbit-chip{font-size:9px;padding:8px}.now-layout .orbit-chip small{font-size:8px}.now-layout .orbit-center strong{font-size:29px}}

/* Telegram chrome, accessible navigation and reliable mobile actions. */
body{padding-top:var(--tg-inset-top,0px);padding-left:var(--tg-inset-left,0px);padding-right:var(--tg-inset-right,0px)}
button,a,input,select,textarea{touch-action:manipulation}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #4174bf;outline-offset:4px}
.skip-link{position:fixed;top:-80px;left:16px;padding:14px;background:#fff;color:#162f4b;z-index:200}
.skip-link:focus{top:12px}
.connection-warning{position:sticky;top:var(--tg-inset-top,0px);z-index:90;background:#fff2ca;color:#543f12;padding:12px 18px;font-size:14px}
.connection-warning[hidden]{display:none}
dialog{overscroll-behavior:contain;max-height:calc(90dvh - var(--tg-inset-top,0px) - var(--tg-inset-bottom,0px))}
.dialog-heading button{min-width:44px;min-height:44px}
h1,h2{text-wrap:balance} .session-card h2,.history-row strong,.search-result p{overflow-wrap:anywhere}
.orbit-center strong,.week-intro strong{font-variant-numeric:tabular-nums}
@media(max-width:760px){.navigation{padding-bottom:max(env(safe-area-inset-bottom),var(--tg-inset-bottom,0px),8px)} main{padding-bottom:calc(115px + var(--tg-inset-bottom,0px))}.settings-save{bottom:calc(82px + var(--tg-inset-bottom,0px))}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Small-screen secondary text remains legible over translucent surfaces. */
@media(max-width:650px){.notice,.hint,.muted,.focus-copy p,.week-intro>p{font-size:12px;line-height:1.55}.connection,footer,.timeline-row .category,.section-heading h2{font-size:11px}.bar-col>span{font-size:10px;min-height:30px}.orbit-chip small{font-size:10px}.text-button{min-height:44px}.legacy-notice summary{font-size:11px}}

.upcoming-agenda{margin-bottom:32px}.agenda-day{margin-top:24px}.agenda-day>h3{text-transform:capitalize;font-size:16px}.agenda-event{display:grid;grid-template-columns:105px 1fr;gap:16px;padding:16px 0;border-top:1px solid var(--line,#aaa4)}.agenda-event time{font-size:14px;font-variant-numeric:tabular-nums}.agenda-event p{margin:5px 0;font-size:13px}.event-description{white-space:pre-line;overflow-wrap:anywhere;font-size:13px}.agenda-event summary{cursor:pointer;font-size:13px;padding:8px 0}@media(max-width:480px){.agenda-event{grid-template-columns:86px 1fr;gap:10px}.agenda-event time{font-size:12px}}
