/* Ариадна — тема «Маяк». Цвета приходят из движка фаз (app.js) как CSS-переменные на :root. */
@font-face{font-family:"Onest";font-style:normal;font-weight:100 900;font-display:swap;src:url(/static/fonts/onest-cyrillic.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Onest";font-style:normal;font-weight:100 900;font-display:swap;src:url(/static/fonts/onest-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-weight:100 800;font-display:swap;src:url(/static/fonts/jbmono-cyrillic.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-weight:100 800;font-display:swap;src:url(/static/fonts/jbmono-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Spectral";font-style:italic;font-weight:300;font-display:swap;src:url(/static/fonts/spectral-cyrillic-300i.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Spectral";font-style:italic;font-weight:300;font-display:swap;src:url(/static/fonts/spectral-latin-300i.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Spectral";font-style:italic;font-weight:400;font-display:swap;src:url(/static/fonts/spectral-cyrillic-400i.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Spectral";font-style:italic;font-weight:400;font-display:swap;src:url(/static/fonts/spectral-latin-400i.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body{margin:0;background-color:var(--bg);color:var(--text);background-image:linear-gradient(var(--grid) 1px,transparent 1px),linear-gradient(90deg,var(--grid) 1px,transparent 1px);background-size:var(--grid-step) var(--grid-step);background-position:-1px -1px;background-attachment:fixed}
.sprite{position:absolute;width:0;height:0;overflow:hidden}
/* ================= Приложение ================= */
.i{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.i.sm{width:15px;height:15px}.i.xs{width:13px;height:13px}
.app{position:relative;max-width:1280px;margin:0 auto;min-height:100vh;container-type:inline-size;font-family:var(--font-ui);font-size:15px;line-height:1.5;color:var(--text);padding:16px 22px 34px;-webkit-font-smoothing:antialiased}
html.fading,html.fading *{transition:background-color var(--fade) ease,color var(--fade) ease,border-color var(--fade) ease,box-shadow var(--fade) ease,fill var(--fade) ease,stroke var(--fade) ease,opacity var(--fade) ease!important}
:where(.app) button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;text-align:inherit}
:where(.app) :is(input,textarea){font:inherit;color:inherit}
:where(.app) ul{list-style:none;margin:0;padding:0}
:where(.app) :is(h1,h2,h3){margin:0;font-weight:inherit;font-size:inherit}
.app button:focus-visible,.app [tabindex]:focus-visible,.app a:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.mono{font-family:var(--font-mono);font-variant-numeric:tabular-nums}
.screen[hidden]{display:none}

.top{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:8px;font-weight:600;font-size:15px}
.brand .i{width:22px;height:22px;color:var(--accent)}
.tabs{display:flex;gap:2px}
.tabs button{font-size:14px;padding:4px 11px;color:var(--text-2);border:1px solid transparent}
.tabs button:hover{color:var(--text)}
.tabs button[aria-current="page"]{color:var(--text);border-color:var(--line);background:var(--surface)}
.coords{margin-left:10px;font-size:11px;color:var(--text-3);white-space:nowrap}

/* солнце над Киевом: полоса сверху, как в «Лоции» */
.ins{margin-top:16px;border:1px solid var(--line);background:var(--surface);padding:10px 14px 6px}
.ins-head{display:flex;align-items:center;flex-wrap:wrap;gap:6px 16px;font-size:12.5px;color:var(--text-3);margin-bottom:6px}
.ins-head .readout{color:var(--text);font-size:12px}
.phase-wrap{position:relative;margin-left:auto}
.phase{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;font-size:12.5px;color:var(--accent);padding:3px 9px;border:1px solid var(--line);background:var(--bg)}
.phase:hover{border-color:var(--accent)}
.phase .i{width:14px;height:14px}
.menu{position:absolute;right:0;top:calc(100% + 8px);z-index:40;width:230px;padding:6px;background:var(--surface);color:var(--text);border:1px solid var(--line);box-shadow:var(--shadow-pop);display:none;font-size:14px}
.menu.open{display:block}
.menu button{display:flex;align-items:center;gap:9px;width:100%;padding:7px 10px}
.menu button:hover{background:var(--surface-2)}
.menu button[aria-checked="true"]{color:var(--accent)}
.menu button[aria-checked="true"]::after{content:"✓";margin-left:auto}
.sun-plot{position:relative;height:64px}
.sun-plot svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.sun-plot svg *{vector-effect:non-scaling-stroke}
.sun-plot .sl{position:absolute;font-family:var(--font-mono);font-size:10px;color:var(--text-3);white-space:nowrap}
.sun-plot .sl.rise{transform:translateX(calc(-100% - 6px))}
.sun-plot .sl.set{transform:translateX(6px)}
.sdot{position:absolute;width:11px;height:11px;border-radius:50%;transform:translate(-50%,-50%);background:var(--sun);box-shadow:0 0 0 3px var(--surface),0 0 0 6px var(--sky)}
.sdot.below{background:var(--surface);border:1.6px solid var(--sun);box-shadow:0 0 0 3px var(--surface)}
.ins-ticks{position:relative;height:16px;margin-top:4px;font-family:var(--font-mono);font-size:10px;color:var(--text-3)}
.ins-ticks span{position:absolute;transform:translateX(-50%)}
.vg{stroke:var(--line);stroke-width:.8}
.hz{stroke:var(--text-3);stroke-width:1;stroke-dasharray:3 3}
.cv{fill:none;stroke:var(--sun);stroke-width:1.6}
.sky-up{fill:var(--sky)}
.sky-dn{fill:var(--deep)}
.nowl{stroke:var(--accent);stroke-width:1;stroke-dasharray:4 3;opacity:.7}
.nowd{fill:var(--sun);stroke:var(--surface);stroke-width:3}
.nowd.below{fill:var(--surface);stroke:var(--sun);stroke-width:1.8}

/* Дни: портрет суток — роза или аркада */
.portrait{margin:24px 0 30px;scroll-margin-top:12px}
.p-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:6px}
.p-head .label{margin:0}
.p-body{position:relative}
.portrait.rose .p-body{display:grid;grid-template-columns:minmax(0,1fr) min(460px,100%) minmax(0,1fr);gap:8px 40px;align-items:center}
.portrait.arcade .p-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"plot plot" "l r";gap:16px 40px}
.portrait.arcade .p-plot{grid-area:plot;aspect-ratio:960/250}
.portrait.arcade .p-side.l{grid-area:l}.portrait.arcade .p-side.r{grid-area:r}
.portrait.rose .ins-ticks{display:none}
.p-plot{position:relative;aspect-ratio:1}
.p-plot svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.sky-l{position:absolute;left:0;right:0;top:0;height:28%;pointer-events:none}
.sky-l span{position:absolute;font-family:var(--font-mono);font-size:10px;color:var(--text-3);white-space:nowrap}
.sky-l .rise{transform:translateX(calc(-100% - 6px))}
.sky-l .set{transform:translateX(6px)}
.pn{stroke:var(--stone);stroke-width:.8}
.glass .pn{opacity:var(--glass)}
.pn.clear{fill:var(--clear)}
.bloom{opacity:var(--bloom)}
.bloom .pn{stroke:none}
.bloom .pn.clear{fill:transparent}
.fut{fill:var(--future)}
.tr{fill:none;stroke:var(--stone);stroke-width:2.6}
.rdl{fill:var(--clear);stroke:var(--stone);stroke-width:1.3}
.cor{stroke:var(--stone);stroke-width:1.6}
.sill{fill:var(--surface-2);stroke:var(--stone);stroke-width:.8}
.floor{fill:var(--sun);opacity:var(--pool)}
.sel{fill:none;stroke:var(--accent);stroke-width:2.2}
.p-plot svg :is(.bloom,.futs,.tr,.rdl,.cor,.sill,.floor,.sel,.nowl,.nowd,.rim,.ocr,.oc,.rtime,.notch){pointer-events:none}

/* общее для экранов */
.label{display:flex;align-items:center;gap:10px;font-family:var(--font-serif);font-style:italic;font-size:20px;line-height:1.2;margin:0 0 12px}
.label::before{content:"";width:7px;height:7px;border:1.3px solid var(--accent);transform:rotate(45deg);flex:none}
.label .meta{margin-left:auto;font-style:normal;font-family:var(--font-mono);font-size:11.5px;color:var(--text-3)}
.btn{display:inline-flex;align-items:center;gap:7px;font-size:13.5px;padding:5px 12px;border:1px solid var(--line);background:var(--surface);color:var(--accent);white-space:nowrap}
.btn:hover{border-color:var(--accent)}
.btn.primary{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.btn.primary:hover{filter:brightness(1.06)}
.empty{color:var(--text-3);padding:8px 0;font-size:14.5px}

/* Сегодня */
.daterow{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:22px 0 18px}
.date{font-family:var(--font-serif);font-style:italic;font-weight:300;font-size:36px;line-height:1.1}
.nav-btn{width:34px;height:32px;display:grid;place-items:center;color:var(--text-2)}
.today-btn{font-size:13.5px;height:32px;padding:0 12px;border-left:1px solid var(--line);border-right:1px solid var(--line);color:var(--accent)}
.nav-btn:hover,.today-btn:hover{background:var(--surface-2);color:var(--text)}
.log{position:relative;background:var(--surface);border:1px solid var(--line);padding:14px 16px}
.log::before,.log::after{content:"";position:absolute;width:11px;height:11px;border:1.5px solid var(--accent)}
.log::before{top:-4px;left:-4px;border-right:0;border-bottom:0}
.log::after{right:-4px;bottom:-4px;border-left:0;border-top:0}
.sum-text p{margin:0 0 4px}
.log-foot{display:flex;justify-content:flex-end;margin-top:8px}
.legend{display:flex;flex-wrap:wrap;gap:4px 16px;font-size:12.5px;color:var(--text-2);margin-bottom:8px}
.legend span{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.legend i{width:9px;height:9px;display:inline-block}
.legend b{font-family:var(--font-mono);font-weight:500;font-size:11.5px;color:var(--text)}
.strip{position:relative;height:8px;background:var(--c-gap);overflow:hidden}
.strip i{position:absolute;top:0;bottom:0}
.ticks{position:relative;height:16px;margin-top:3px;font-family:var(--font-mono);font-size:10px;color:var(--text-3)}
.ticks span{position:absolute;top:0;transform:translateX(-50%)}
.ticks span:first-child{transform:none}
.ticks span:last-child{transform:translateX(-100%)}
.thread{position:relative;padding-left:32px}
.thread::before{content:"";position:absolute;left:10px;top:18px;bottom:20px;border-left:1.5px solid var(--accent)}
.task{position:relative;display:flex;align-items:flex-start;gap:12px;padding:9px 8px 9px 6px;margin-left:-6px}
.task:hover{background:var(--surface)}
.check{position:absolute;left:-25px;top:10px;display:block;cursor:pointer}
.check input{position:absolute;inset:0;opacity:0;margin:0;width:100%;height:100%;cursor:pointer;z-index:1}
.box{width:20px;height:20px;border-radius:var(--r-round);border:1.5px solid var(--accent);background:var(--bg);display:grid;place-items:center;color:transparent}
.check:hover .box{background:var(--accent-soft,transparent);box-shadow:0 0 0 3px var(--focus)}
.check input:checked+.box{background:var(--accent);color:var(--accent-ink)}
.check input:focus-visible+.box{outline:2px solid var(--focus);outline-offset:2px}
.box .i{width:12px;height:12px;stroke-width:2.8}
.t-body{flex:1;min-width:0}
.t-text{font-size:15.5px;outline:none;cursor:text;overflow-wrap:anywhere}
.t-text[contenteditable="true"]{box-shadow:0 0 0 2px var(--focus);background:var(--surface)}
.t-note{font-family:var(--font-mono);font-size:11.5px;color:var(--text-2);margin-top:3px}
.task.done .t-text{color:var(--text-3);text-decoration:line-through;text-decoration-thickness:1px}
.task.done .t-note{opacity:.6}
.t-actions{display:flex;gap:2px;opacity:0;transition:opacity .15s}
.task:hover .t-actions,.task:focus-within .t-actions{opacity:1}
.icon-btn{width:28px;height:28px;display:grid;place-items:center;color:var(--text-3)}
.icon-btn:hover{color:var(--text);background:var(--surface-2)}
.new{position:relative;display:flex;align-items:center;gap:12px;padding:8px 0 0 6px;margin-left:-6px;color:var(--text-3)}
.new .node{position:absolute;left:-25px;top:13px;width:20px;height:20px;border-radius:var(--r-round);border:1.5px dashed var(--accent);display:grid;place-items:center;color:var(--accent);background:var(--bg)}
.new .node .i{width:12px;height:12px;stroke-width:2.2}
.new input{flex:1;min-width:0;border:0;background:transparent;outline:none;padding:6px 0}
.new input::placeholder,.composer textarea::placeholder{color:var(--text-3);opacity:1}
.undo{display:flex;align-items:center;gap:10px;font-size:13.5px;color:var(--text-3);padding:9px 0 9px 6px}
.undo span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.undo button,.lnk{flex:none;color:var(--accent);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.carry{position:relative;padding-left:32px}
.carry::before{content:"";position:absolute;left:10px;top:8px;bottom:8px;border-left:1.5px dashed var(--text-3)}
.carry li{position:relative;display:flex;align-items:center;gap:12px;padding:8px 0}
.carry li::before{content:"";position:absolute;left:-26px;top:50%;width:9px;height:9px;margin-top:-4.5px;border:1.5px solid var(--text-3);background:var(--bg);transform:rotate(45deg)}
.c-date{font-family:var(--font-mono);font-size:11.5px;color:var(--text-3);flex:none;width:44px}
.c-text{flex:1;min-width:0}
.btn-line{font-size:13px;color:var(--accent);padding:3px 9px;border:1px solid var(--line);background:var(--surface);white-space:nowrap}
.btn-line:hover{border-color:var(--accent)}
.task.fresh{animation:appear .3s ease}
@keyframes appear{from{opacity:0;transform:translateY(-4px)}}

/* Чат: прокручивается только переписка, поле ввода всегда внизу экрана */
@media (max-width:640px){html.in-chat .app{padding-left:6px;padding-right:6px}}
html.in-chat,html.in-chat body{height:100%;overflow:hidden}
html.in-chat .app{height:100vh;height:100dvh;display:flex;flex-direction:column;padding-bottom:0}
html.in-chat main,html.in-chat .screen[data-screen="chat"]{flex:1;min-height:0;display:flex;flex-direction:column}
html.in-chat .sun-plot,html.in-chat #sunTicks{display:none}
html.in-chat .ins{padding-bottom:2px}
.chat{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);position:relative}
.chat-main{display:flex;flex-direction:column;min-height:0;min-width:0}
.chat-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-mask-image:linear-gradient(transparent,#000 18px);mask-image:linear-gradient(transparent,#000 18px)}
.msgs{max-width:768px;margin:0 auto;padding:22px 16px 14px}
.msg{margin:0 0 22px}
.msgs>.msg:last-child{margin-bottom:0}
.tm{font-size:11px;color:var(--text-3)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.day-sep{display:flex;align-items:center;gap:12px;margin:4px 0 18px;font-size:12px;color:var(--text-3)}
.day-sep::before,.day-sep::after{content:"";flex:1;border-top:1px solid var(--line)}
.msg.me{display:flex;justify-content:flex-end}
.msg.me .bubble{max-width:min(80%,580px);background:var(--surface);border:1px solid var(--line);padding:8px 13px 5px}
.msg.me .txt{white-space:pre-wrap;overflow-wrap:anywhere}
.msg.me .tm{display:block;text-align:right;margin-top:2px}
.mrow{display:flex;align-items:center;flex-wrap:wrap;gap:2px 4px;margin-top:6px;font-size:12.5px;color:var(--text-3)}
.mrow .tm{margin-right:4px}
.mbtn{display:inline-flex;align-items:center;gap:6px;padding:3px 6px;color:var(--text-3)}
.mbtn:hover{color:var(--text)}
.mbtn.done{color:var(--accent)}
.mbtn.warn{color:var(--warn)}
.mbtn[aria-expanded="true"] .i.xs{transform:rotate(180deg)}
.edits{display:flex;flex-direction:column;margin-top:4px;padding:4px 0 0 2px;border-left:1px solid var(--line)}
.edit{display:flex;align-items:center;gap:9px;font-size:13px;padding:3px 0 3px 10px;color:var(--text-2)}
.edit .i{color:var(--accent)}
.edit.failed .i{color:var(--warn)}
.edit .t{min-width:0}
.edit button{margin-left:auto;flex:none;padding-left:12px;color:var(--accent);text-decoration:underline;text-underline-offset:3px;font-size:12.5px}
.edit.undone .t{text-decoration:line-through;color:var(--text-3)}
.msg.sys{display:flex;gap:12px;align-items:flex-start;padding:10px 14px 12px;border:1px dashed var(--warn);background:var(--warn-soft)}
.msg.sys>.i{color:var(--warn);margin-top:2px}
.msg.sys p{margin:0 0 8px}
.msg.sys .btn{color:var(--warn);border-color:var(--warn);background:transparent}
.think{display:flex;align-items:center;gap:12px;color:var(--text-2);font-size:14.5px}
.msg.thinking .md:empty{display:none}
.msg.thinking.writing .think{margin-top:8px;gap:10px}
.msg.thinking.writing .think svg{width:30px;height:19px}
.think-t{min-width:0;overflow-wrap:anywhere}
.think svg{width:40px;height:25px;flex:none}
.think .lw{fill:var(--accent);opacity:.12;animation:lw 2.4s ease-in-out infinite}
.think .lw.l2{animation-delay:.8s}
.think .lw.l3{animation-delay:1.6s}
.think .lt{fill:none;stroke:var(--text-3);stroke-width:1.2}
@keyframes lw{0%,100%{opacity:.12}40%{opacity:.9}}
@keyframes pulse{50%{box-shadow:0 0 0 6px var(--focus)}}
.composer-wrap{position:relative;padding:6px 16px 16px}
.composer{max-width:736px;margin:0 auto;display:flex;gap:10px;align-items:flex-end;border:1px solid var(--line);background:var(--surface);padding:8px 8px 8px 14px;box-shadow:0 -10px 24px -14px var(--bg)}
.composer:focus-within{border-color:var(--accent)}
.composer textarea{flex:1;border:0;background:transparent;resize:none;outline:none;line-height:1.45;padding:6px 0}
.send{width:36px;height:36px;display:grid;place-items:center;background:var(--accent);color:var(--accent-ink)}
.send:disabled{opacity:.35;cursor:default}
.to-end{position:absolute;left:50%;bottom:calc(100% + 4px);transform:translateX(-50%);z-index:5;display:inline-flex;align-items:center;gap:6px;padding:5px 12px 5px 9px;font-size:13px;border:1px solid var(--line);background:var(--surface);color:var(--text-2);box-shadow:var(--shadow-pop)}
.to-end:hover{color:var(--text)}
.to-end.new{color:var(--accent);border-color:var(--accent)}
.md p{margin:0 0 9px}
.md ul{margin:0 0 9px;padding-left:20px;list-style:disc}
.md li{margin:3px 0}
.md li::marker{color:var(--accent)}
.md strong{font-weight:600}
.md em{font-family:var(--font-serif);font-style:italic;font-size:1.05em}
.md code{font-family:var(--font-mono);font-size:.88em;background:var(--surface-2);padding:1px 5px}
.md h1,.md h2,.md h3{font-family:var(--font-serif);font-style:italic;font-weight:400;line-height:1.2}
.md>*:last-child{margin-bottom:0}

/* План */
.plan{margin-top:20px}
.doctabs{display:flex;gap:2px;border-bottom:1px solid var(--line);overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
.doctabs button{padding:8px 14px;font-size:14px;color:var(--text-2);border:1px solid transparent;border-bottom:0;margin-bottom:-1px;white-space:nowrap}
.doctabs button:hover{color:var(--text)}
.doctabs button[aria-selected="true"]{color:var(--text);background:var(--surface);border-color:var(--line)}
.plan-grid{display:grid;gap:30px;margin-top:22px}
.doc-h{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:12px}
.doc-h .meta{font-family:var(--font-mono);font-size:11.5px;color:var(--text-3)}
.doc-h .acts{margin-left:auto;display:flex;gap:8px}
.banner{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:13.5px;padding:8px 12px;margin-bottom:14px;border:1px dashed var(--accent);color:var(--text-2)}
.doc .md{max-width:68ch;font-size:15.5px;line-height:1.62}
.doc .md h1{font-size:34px;font-weight:300;margin:0 0 6px}
.doc .md h2{display:flex;align-items:center;gap:10px;font-size:23px;margin:28px 0 8px}
.doc .md h2::before{content:"";width:7px;height:7px;border:1.3px solid var(--accent);transform:rotate(45deg);flex:none}
.doc .md h3{font-size:19px;margin:20px 0 6px}
.editor textarea{display:block;width:100%;min-height:440px;font-family:var(--font-mono);font-size:13px;line-height:1.65;padding:14px 16px;border:1px solid var(--accent);background:var(--surface);color:var(--text);resize:vertical;outline:none}
.ed-act{display:flex;gap:8px;margin-top:10px;align-items:center}
.side .label{font-size:18px;margin-top:4px}
.side section+section{margin-top:26px}
.vlist li{display:flex;gap:10px;align-items:baseline;padding:8px 6px;border-bottom:1px solid var(--line);font-size:13.5px;cursor:pointer}
.vlist li:hover{background:var(--surface)}
.vlist li[aria-current="true"]{background:var(--surface)}
.vlist .v{font-family:var(--font-mono);font-size:11.5px;color:var(--accent);flex:none;width:30px}
.vlist .what{min-width:0}
.vlist .w{font-family:var(--font-mono);font-size:11px;color:var(--text-3);margin-left:auto;white-space:nowrap}
.jlist li{padding:9px 0;border-bottom:1px solid var(--line);font-size:13.5px}
.jlist .row{display:flex;gap:10px;align-items:baseline}
.jlist .w{font-family:var(--font-mono);font-size:11px;color:var(--text-3)}
.jlist button{margin-left:auto;flex:none;color:var(--accent);text-decoration:underline;text-underline-offset:3px;font-size:13px}
.jlist li.undone .what{text-decoration:line-through;color:var(--text-3)}

/* Дни */
.days{margin-top:22px}
.dlegend{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:12.5px;color:var(--text-2);margin:0 0 14px}
.dlegend span{display:inline-flex;align-items:center;gap:6px}
.dlegend i{width:12px;height:10px;display:inline-block}
.dlegend .nb{background:var(--night-band);border:1px solid var(--line)}
.dlegend .hatch{background:var(--c-games);position:relative}
.dlegend .hatch::after,.seg.corr::after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(135deg,transparent 0 3px,var(--hatch) 3px 5px)}
.dtab-wrap{overflow-x:auto}
.dtab{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;min-width:520px}
.dtab th,.dtab td{text-align:right;padding:8px 8px 4px;font-weight:400;white-space:nowrap}
.dtab thead th{font-size:12.5px;color:var(--text-3);padding-bottom:6px;vertical-align:bottom}
.dtab thead th i{display:inline-block;width:8px;height:8px;margin-right:5px}
.dtab th[scope="row"]{text-align:left;font-family:var(--font-mono);font-size:12.5px;color:var(--text-2)}
.dtab th[scope="row"] small{display:block;font-family:var(--font-ui);font-size:11.5px;color:var(--accent)}
.dtab td{font-family:var(--font-mono);font-size:13px}
.dtab td.sl{text-align:left}
.dtab td.sl span{color:var(--text-3);font-size:12px;margin-right:6px}
.dtab td.z{color:var(--text-3)}
.tickrow td{padding:0 8px 4px;border-bottom:1px solid var(--line)}
.dticks{position:relative;height:14px;font-family:var(--font-mono);font-size:10px;color:var(--text-3)}
.dticks span{position:absolute;transform:translateX(-50%)}
.dstrip td{padding:0 8px 10px;border-bottom:1px solid var(--line)}
.bar{position:relative;height:14px;background-color:var(--c-gap)}
.seg{position:absolute;top:0;bottom:0;cursor:pointer}
.seg:hover{box-shadow:inset 0 0 0 1.5px var(--text);z-index:1}
.tip{position:absolute;z-index:45;pointer-events:none;background:var(--text);color:var(--bg);font-size:12.5px;line-height:1.4;padding:7px 10px;max-width:270px;box-shadow:var(--shadow-pop)}
.tip b{font-weight:600}
.tip em{display:block;font-style:normal;opacity:.75;margin-top:2px}
.fix{position:absolute;z-index:46;width:250px;padding:10px 12px 12px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-pop)}
.fix p{margin:0 0 8px;font-size:13px;color:var(--text-2)}
.fix .opts{display:flex;flex-wrap:wrap;gap:6px}
.fix .opts button{display:inline-flex;align-items:center;gap:6px;font-size:13px;padding:4px 9px;border:1px solid var(--line);background:var(--bg)}
.fix .opts button:hover{border-color:var(--text-2)}
.fix .opts button[aria-pressed="true"]{border-color:var(--text);font-weight:500}
.fix .opts i{width:9px;height:9px;display:inline-block}
.fix .lnk{display:inline-block;margin-top:10px;font-size:12.5px}

@container (min-width:900px){
  .app{padding:20px 34px 40px}
  .date{font-size:42px}
  .plan-grid{grid-template-columns:minmax(0,1fr) 300px}
}
@container (max-width:640px){html.in-chat .ins{display:none}.coords{display:none}.ins-head .lbl-long{display:none}.date{font-size:28px}}
@media (prefers-reduced-motion:reduce){
  html.fading,html.fading *{transition:none!important}
  .task.fresh,.think .lw{animation:none}
  .think .lw{opacity:.6}
}

/* ---- дополнения к макету: классы вместо инлайн-стилей (строгий CSP) ---- */
.k-sleep{--k:var(--c-sleep)}.k-work{--k:var(--c-work)}.k-personal{--k:var(--c-personal)}.k-games{--k:var(--c-games)}.k-other{--k:var(--c-other)}
.pn[class*="k-"]{fill:var(--k)}
.legend i,.dlegend i[class*="k-"],.dtab thead th i,.strip i,.seg,.fix .opts i{background:var(--k)}
.fix .opts i.k-away{background:transparent;border:1px solid var(--text-3)}
.dtab th.l{text-align:left}
.busy{display:inline-block;width:6px;height:6px;margin-left:6px;border-radius:50%;background:var(--accent);vertical-align:2px;animation:pulse 1.8s ease-in-out infinite}
.days-nav{display:flex;gap:8px;margin:0 0 12px}
.days-nav button:disabled{opacity:.4;cursor:default}
.dtab th[scope="row"] small.fixd{color:var(--text-3)}
.toast{position:fixed;left:50%;top:14px;transform:translateX(-50%);z-index:60;padding:9px 14px;border:1px dashed var(--warn);background:var(--surface);color:var(--text);font-size:14px;box-shadow:var(--shadow-pop)}
.md h4{font-family:var(--font-serif);font-style:italic;font-weight:400;font-size:17px;margin:14px 0 4px}
.md ol{margin:0 0 9px;padding-left:22px}
.md table{border-collapse:collapse;margin:6px 0 10px;font-size:13.5px}
.md td,.md th{border:1px solid var(--line);padding:4px 9px;text-align:left}
.md blockquote{margin:6px 0;padding-left:12px;border-left:2px solid var(--accent);color:var(--text-2)}
.md pre{background:var(--surface-2);padding:10px 12px;overflow-x:auto;font-family:var(--font-mono);font-size:12.5px}
.md pre code{background:none;padding:0}
.doc .md h4{font-size:17px}
.dayline .none,.empty{color:var(--text-3)}
.t-text.saving{opacity:.6}
.msg.her .md{overflow-wrap:anywhere}
.md a{color:var(--accent);text-underline-offset:3px}
.md a:hover{color:var(--text)}

/* ---- окно-роза ---- */
.view-sw{margin-left:auto;display:inline-flex;border:1px solid var(--line);background:var(--bg)}
.view-sw button{font-size:12.5px;padding:3px 9px;color:var(--text-3)}
.view-sw button+button{border-left:1px solid var(--line)}
.view-sw button:hover{color:var(--text)}
.view-sw button[aria-pressed="true"]{color:var(--accent);background:var(--surface)}
.p-side{min-width:0;font-size:13.5px;color:var(--text-2)}
.portrait.rose .p-side.l{justify-self:end;width:min(230px,100%)}
.portrait.rose .p-side.r{justify-self:start;width:min(250px,100%);min-height:150px}
.side-h{display:flex;align-items:baseline;gap:10px;font-family:var(--font-serif);font-style:italic;font-size:19px;line-height:1.2;color:var(--text);margin:0 0 8px}
.side-h .meta{font-family:var(--font-ui);font-style:normal;font-size:12px;color:var(--accent)}
.rhour li{display:flex;align-items:center;gap:9px;padding:2px 0}
.rhour i{width:10px;height:10px;flex:none;display:inline-block}
.p-side i[class*="k-"]{background:var(--k)}
.rhour b{margin-left:auto;padding-left:10px;font-family:var(--font-mono);font-weight:500;font-size:12px;color:var(--text);white-space:nowrap}
.rhour .mono{font-size:11.5px;color:var(--text-3)}
.rhour .none{color:var(--text-3)}
.p-side .apps{margin:8px 0 0;padding-top:7px;border-top:1px dashed var(--line);font-size:12.5px;color:var(--text-3);overflow-wrap:anywhere}
.rose-svg .rhz{fill:none;stroke:var(--text-3);stroke-width:1;stroke-dasharray:3 3;opacity:.7}
.rose-svg .rnum{font-family:var(--font-mono);font-size:11px;fill:var(--text-3)}
.rose-svg .rst{stroke:var(--sun);stroke-width:1.6}
.rose-svg .rsl{font-family:var(--font-mono);font-size:10.5px;fill:var(--sun)}
.rose-svg .fut{fill:var(--surface)}
.rose-svg .rpool{fill:none;stroke:var(--sun);stroke-width:12;opacity:var(--pool)}
.rose-svg .disc{fill:var(--stone)}
.app.day .rose-svg .disc{opacity:.42}
.rose-svg .rim{fill:none;stroke:var(--stone);stroke-width:3.4}
.rose-svg .ocr{fill:var(--stone)}
.rose-svg .oc{fill:var(--surface);stroke:var(--stone);stroke-width:1.5}
.rose-svg .rtime{font-family:var(--font-serif);font-style:italic;font-size:15px;fill:var(--text)}
.rose-svg .notch{stroke:var(--accent);stroke-width:2.6}
.rose-svg .nowl{opacity:.85}
.dpick{display:inline-flex;align-items:baseline;gap:6px;text-align:left}
.dpick:hover{color:var(--accent)}
.drow.picked th{box-shadow:inset 3px 0 0 var(--accent)}
.drow.picked .dpick{color:var(--accent)}
/* дата по центру, как в «Кафедре» */
.daterow{justify-content:center;gap:14px}
.dt{text-align:center}
.yr{font-size:11.5px;letter-spacing:.34em;padding-left:.34em;color:var(--text-3);margin-top:5px}
.daterow .nav-btn{width:34px;height:34px;border:1px solid var(--line);background:var(--surface)}
.today-wrap{flex-basis:100%;text-align:center;margin-top:-4px}
.today-wrap .today-btn{height:auto;padding:0;border:0;font-family:var(--font-serif);font-style:italic;font-size:15px;color:var(--accent);border-bottom:1px dotted currentColor;line-height:1.25;background:none}
.today-wrap .today-btn:hover{background:none;color:var(--text)}
.app[data-off="0"] .today-wrap{display:none}
@container (max-width:760px){
  .portrait.rose .p-body{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"plot plot" "l r";gap:14px 22px}
  .portrait.rose .p-plot{grid-area:plot;justify-self:center;width:min(460px,100%)}
  .portrait.rose .p-side.l{grid-area:l;justify-self:stretch;width:auto}
  .portrait.rose .p-side.r{grid-area:r;justify-self:stretch;width:auto}
}

/* главная под датой: сетка Ариадны */
.home{display:flex;flex-direction:column;gap:26px}
.sec{display:flex;flex-direction:column;gap:26px}
.sec .stack{display:contents}
.blk .label .fold{display:inline-flex;align-items:center;gap:8px;font:inherit;color:inherit;text-align:left}
.blk .fold .i{color:var(--text-3);opacity:0;transition:transform .2s ease,opacity .2s ease}
.blk:hover .fold .i,.blk.folded .fold .i,.blk .fold:focus-visible .i{opacity:1}
.blk.folded .fold .i{transform:rotate(-90deg)}
.blk.folded .blk-body{display:none}
.blk.folded .label{font-size:16px;color:var(--text-2);margin-bottom:0}
.blk .label .lnk{font-family:var(--font-ui);font-style:normal;font-size:12.5px;color:var(--accent)}
.note .blk-body{padding:12px 16px;border:1px solid var(--line);background:var(--surface)}
.note.tone-quiet .blk-body{background:none;border-style:dashed;color:var(--text-2)}
.note.tone-accent .blk-body{border-color:var(--accent);box-shadow:inset 3px 0 0 var(--accent)}
.note .blk-body > :last-child,.docblk .blk-body > :last-child{margin-bottom:0}
.dayline+.dayline{margin-top:14px}
.dayline .dl-day{font-size:11.5px;color:var(--text-3)}
.dayline .ticks{position:relative;height:14px;margin-top:3px;font-family:var(--font-mono);font-size:10px;color:var(--text-3)}
.dayline .ticks span{position:absolute;transform:translateX(-50%)}
.dticks span{position:absolute;transform:translateX(-50%)}
@container (min-width:900px){
  .sec{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);align-items:start;gap:30px 36px}
  .sec.solo{grid-template-columns:minmax(0,1fr)}
  .sec .stack{display:flex;flex-direction:column;gap:26px;min-width:0}
}
.dtab td.sl small.nap{margin-left:7px;font-size:11.5px;color:var(--text-3);white-space:nowrap}

/* ---- разговоры ---- */
.threads{display:none;flex-direction:column;gap:10px;min-height:0;padding:14px 14px 14px 0;border-right:1px solid var(--line)}
.threads.open{display:flex;position:absolute;inset:0;z-index:20;background:var(--bg);border-right:0;padding:12px 10px}
.th-new{display:flex;align-items:center;gap:8px;padding:7px 10px;border:1px solid var(--line);background:var(--surface);color:var(--accent);font-size:13.5px}
.th-new:hover{border-color:var(--accent)}
.th-list{display:flex;flex-direction:column;gap:2px;overflow-y:auto;min-height:0}
.th{position:relative;display:flex;align-items:baseline;gap:8px;padding:7px 22px 7px 10px;border:1px solid transparent;color:var(--text-2)}
.th:hover{color:var(--text);background:var(--surface)}
.th.on{color:var(--text);background:var(--surface);border-color:var(--line)}
.th-t{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.th-m{flex:none;font-size:11px;color:var(--text-3)}
.th-dot{position:absolute;right:8px;top:50%;width:7px;height:7px;margin-top:-3.5px;border-radius:50%;background:var(--accent)}
.th-dot.busy-dot{animation:pulse 1.8s ease-in-out infinite}
.chat-head{display:flex;align-items:center;gap:8px;width:100%;max-width:768px;margin:12px auto 0;padding:0 16px;min-height:34px}
.th-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--font-serif);font-style:italic;font-size:19px;padding:1px 6px;border:1px solid transparent;color:var(--text)}
.th-title:not(:disabled):hover{border-color:var(--line)}
.th-title:disabled{cursor:default}
.th-edit{flex:1;min-width:0;font-family:var(--font-serif);font-style:italic;font-size:19px;padding:1px 6px;border:1px solid var(--accent);background:var(--surface);outline:none}
.th-toggle,.th-new-sm{position:relative;flex:none;display:inline-flex;align-items:center;gap:6px;padding:5px 9px;font-size:13px;color:var(--text-2);border:1px solid var(--line);background:var(--surface)}
.th-toggle .th-dot{position:static;margin:0 0 0 2px}
.th-new-sm{margin-left:auto;padding:5px 7px;color:var(--accent)}
.edit button.go{margin-left:auto;padding-left:12px}
.edit button.go+button{margin-left:0}
@container (min-width:900px){
  .chat{grid-template-columns:236px minmax(0,1fr)}
  .threads{display:flex}
  .th-toggle,.th-new-sm{display:none}
}
.rhour li.sub{display:block;padding-left:22px;font-size:12px;color:var(--text-3);margin-top:-2px}

/* Задача раскрывается в подробности, которые пишет Ариадна */
.has-more .t-note{cursor:pointer}
.t-more{display:inline-flex;align-items:center;gap:4px;margin-top:4px;font-size:12.5px;color:var(--accent);padding:2px 0}
.t-more:hover{color:var(--text)}
.t-more .i{transition:transform .2s ease}
.t-more[aria-expanded="true"] .i{transform:rotate(180deg)}
.t-details{margin:8px 0 4px;padding:10px 0 2px 12px;border-left:1.5px solid var(--line);font-size:14.5px;line-height:1.55}
.t-details[hidden]{display:none}
.task.done .t-details{opacity:.75}

/* Картинки: упражнения из каталога (два кадра движения по очереди) и Wikimedia */
.pic{display:inline-block;vertical-align:top;width:min(100%,300px);margin:4px 10px 6px 0;cursor:zoom-in}
.pic.big{width:min(100%,640px);cursor:zoom-out}
.pic img{display:block;width:100%;height:auto;background:var(--surface-2)}
.pic .frames{position:relative;display:block;overflow:hidden}
.pic.ex .frames img{aspect-ratio:850/569;object-fit:cover}
.pic.ex .frames img+img{position:absolute;inset:0;height:100%;animation:exflip 2.6s linear infinite}
@keyframes exflip{0%,44%{opacity:0}50%,94%{opacity:1}100%{opacity:0}}
.pic .cap{display:block;margin-top:4px;font-size:12px;color:var(--text-2);line-height:1.35}
.pic.broken{cursor:default;width:auto}
.pic.broken .frames,.pic.broken>img{display:none}
.pic.broken .cap::after{content:" (картинка не загрузилась)";color:var(--text-3)}
.md p.pics{margin-bottom:6px}
.t-details .pic{width:min(100%,260px)}
.t-details .pic.big{width:min(100%,640px)}
@media (prefers-reduced-motion:reduce){
  .pic.ex .frames img+img{position:static;animation:none;margin-top:4px}
}

/* her site (life-site): her tabs only, one conversation, no coordinates of Kyiv */
.her .tabs [data-go="days"],.her .tabs [data-go="settings"],.her .chat-head,.her .ins .coords{display:none}
.her .chat .threads{display:none}
.her .chat{grid-template-columns:minmax(0,1fr)}
.logout{margin-left:auto;border:0;background:transparent;color:var(--text-3);font:inherit;font-size:13px;cursor:pointer;padding:6px 10px}
.logout:hover{color:var(--text)}
.gate{max-width:440px;margin:22vh auto 0;padding:0 24px;text-align:center;line-height:1.6;color:var(--text)}
.gate h1{font-weight:400;font-size:28px;margin:0 0 12px}
