:root{--amber:#e7c780;--ok-bg:#16382f;--bad-bg:#3b232c;--warn-bg:#2d261b}
[hidden]{display:none!important}
a{color:var(--blue)}
nav{display:flex;gap:4px}nav a{color:var(--muted);text-decoration:none;font-size:11px;letter-spacing:1px;padding:8px 12px;border-radius:5px;border:1px solid transparent}nav a.active{color:var(--green);border-color:#3b5b56}nav a:hover{color:var(--text)}
.badge.danger{color:var(--red);border-color:#6b3a43}.badge.warn{color:var(--amber);border-color:#6a5938}
.gate{max-width:460px;margin:60px auto;padding:10px 0}.gate h2{padding:0 19px;font-size:16px}.gate p{padding:0 19px}.err{color:var(--red)!important}
code{font:11px ui-monospace,monospace;background:#0c1420;border:1px solid var(--line);padding:1px 5px;border-radius:4px}
.pad{padding:16px 20px}
.now{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px;margin-bottom:20px;background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:24px}
.now h1{margin:8px 0 4px}.now-main p{max-width:760px}
.todo-title{padding:0;margin:20px 0 8px;font-size:12px;letter-spacing:1px;color:var(--green);text-transform:uppercase}
.todo{margin:0;padding-left:20px;color:var(--text);font-size:13px;line-height:1.9}.todo li::marker{color:var(--green)}.todo small{color:var(--muted)}
.alert{padding:10px 14px;border-radius:7px;margin:12px 0 0;font-size:12px;border:1px solid #6a5938;background:var(--warn-bg);color:var(--amber)}.alert.bad{border-color:#6b3a43;background:var(--bad-bg);color:var(--red)}
.now-side{display:flex;flex-direction:column;gap:14px}
.countdown{border:1px solid var(--line);border-radius:9px;padding:18px;text-align:center;background:#0e1520}.countdown span{display:block;font-size:10px;letter-spacing:1.5px;color:var(--muted);text-transform:uppercase}.countdown strong{display:block;font:500 44px ui-monospace,monospace;margin:10px 0 6px;font-variant-numeric:tabular-nums}.countdown small{color:var(--muted);font-size:11px}
.countdown.urgent strong{color:var(--amber)}.countdown.late strong{color:var(--red)}
.clocks{display:grid;grid-template-columns:1fr 1fr;gap:10px}.clocks div{border:1px solid var(--line);border-radius:8px;padding:10px;text-align:center}.clocks span{display:block;font-size:9px;letter-spacing:1.5px;color:var(--muted)}.clocks b{font:500 17px ui-monospace,monospace;font-variant-numeric:tabular-nums}
.steps{list-style:none;padding:0;margin:0 0 20px;display:grid;grid-template-columns:repeat(6,1fr);gap:8px}
.steps li{border:1px solid var(--line);border-radius:8px;padding:12px;background:var(--panel);font-size:12px;position:relative}.steps li small{display:block;color:var(--muted);font-size:10px;margin-top:4px;line-height:1.4}
.steps li b{display:block;font-weight:550}.steps li::before{content:attr(data-n);display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;border:1px solid var(--line);font-size:10px;color:var(--muted);margin-bottom:8px}
.steps li.done::before{content:'✓';background:var(--ok-bg);color:var(--green);border-color:#3b5b56}.steps li.done{opacity:.75}
.steps li.current{border-color:var(--green);box-shadow:0 0 0 1px var(--green) inset}.steps li.current::before{background:var(--green);color:#0b1019;border-color:var(--green)}
.steps li.stopped{border-color:#6b3a43}.steps li.stopped::before{content:'■';background:var(--bad-bg);color:var(--red);border-color:#6b3a43}
.desk-metrics strong{font-size:23px}.bar{height:4px;background:#1a2535;border-radius:2px;margin:4px 0 8px;overflow:hidden}.bar i{display:block;height:100%;width:0;background:var(--red)}
.pos{color:var(--green)}.neg{color:var(--red)}.mut{color:var(--muted)}
.day-picker{display:flex;align-items:center;gap:10px;margin:0 0 16px;font-size:12px;color:var(--muted);flex-wrap:wrap}.day-picker select{font-size:12px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:20px}
section.panel{margin-bottom:20px}
.views{display:grid;grid-template-columns:1fr 1fr;gap:6px 14px;font-size:12px;margin:0 0 14px;padding:0;list-style:none}.views li{color:var(--muted)}.views li.seen{color:var(--text)}.views li::before{content:'○ ';color:var(--muted)}.views li.seen::before{content:'● ';color:var(--green)}
.thumbs{display:flex;flex-wrap:wrap;gap:8px}.thumbs figure{margin:0;width:118px;font-size:10px;color:var(--muted)}.thumbs img{width:118px;height:76px;object-fit:cover;border:1px solid var(--line);border-radius:5px;display:block;background:#0c1420;cursor:zoom-in}.thumbs figcaption{margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.group-title{font-size:10px;letter-spacing:1.5px;color:var(--muted);text-transform:uppercase;margin:14px 0 8px}.group-title:first-child{margin-top:0}
.kv{display:grid;grid-template-columns:minmax(110px,max-content) 1fr;gap:7px 16px;font-size:12px;margin:0}.kv dt{color:var(--muted)}.kv dd{margin:0;font-variant-numeric:tabular-nums}
.empty{color:var(--muted);font-size:12px;margin:0}
table.paths tr{cursor:default}table.paths td{vertical-align:top}table.paths tr.dead td{opacity:.5}table.paths tr.dead td:last-child{opacity:1}table.paths tr.traded{background:#14262a}
.side{font-weight:600}.side.LONG{color:var(--green)}.side.SHORT{color:var(--red)}
.cond{display:block;font:11px ui-monospace,monospace;white-space:nowrap;line-height:1.7}.cond.met{color:var(--green)}.cond.met::before{content:'✓ '}.cond.todo::before{content:'· ';color:var(--muted)}
.pill.alive{background:#1c2d45;color:var(--blue)}.pill.dead{background:var(--bad-bg);color:var(--red)}.pill.ok{background:var(--ok-bg);color:var(--green)}.pill.warn{background:var(--warn-bg);color:var(--amber)}
.tabs{display:flex;gap:6px;flex-wrap:wrap}.tabs button{font-size:10px;padding:6px 10px}.tabs button.on{border-color:var(--green);color:var(--green)}
.summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:16px}.summary div{border:1px solid var(--line);border-radius:8px;padding:12px}.summary span{display:block;font-size:9px;letter-spacing:1.3px;color:var(--muted);text-transform:uppercase}.summary b{display:block;font-size:16px;font-weight:550;margin-top:5px}.summary small{color:var(--muted);font-size:10px}
.conclusion{border-left:3px solid var(--green);padding:4px 14px;margin:0 0 16px;color:var(--text);font-size:13px;line-height:1.6}
details{border:1px solid var(--line);border-radius:8px;margin:8px 0;background:#0f1722}details summary{cursor:pointer;padding:11px 14px;font-size:12px;font-weight:550;list-style:none}details summary::before{content:'▸ ';color:var(--green)}details[open] summary::before{content:'▾ '}details summary small{font-weight:400;color:var(--muted);margin-left:6px}details>div{padding:4px 14px 14px}
details ul{margin:6px 0;padding-left:18px;color:var(--text)}details li{line-height:1.6;font-size:12px}
.mini{width:100%;border-collapse:collapse;font-size:11px;margin:6px 0}.mini th{padding:7px 8px;font-size:9px}.mini td{padding:7px 8px;font-size:11px}
.progress{list-style:none;padding:0;margin:0;font-size:12px;line-height:2}.progress li::before{content:'○ ';color:var(--muted)}.progress li.done::before{content:'✓ ';color:var(--green)}.progress li.active::before{content:'◌ ';color:var(--amber)}.progress li time{color:var(--muted);margin-left:8px;font-size:11px}
pre.tv{max-height:260px;margin:8px 0}
.journal{max-height:520px;overflow:auto}
.entry{display:grid;grid-template-columns:70px 150px 1fr;gap:14px;padding:11px 20px;border-bottom:1px solid #202b3b;font-size:12px}.entry time{color:var(--muted);font:11px ui-monospace,monospace}.entry .who{color:#9bb8de;font-size:11px}.entry .what{white-space:pre-wrap;line-height:1.55}.entry .what small{color:var(--muted)}
.entry details{margin:6px 0 0}.entry details summary{padding:6px 10px;font-size:10px;font-weight:400;color:var(--muted)}.entry details pre{margin:0 10px 10px;max-height:300px}
.danger-btn{border-color:#6b3a43;color:var(--red)}.danger-btn:hover{border-color:var(--red);color:var(--red)}
footer div{display:flex;gap:8px;flex-wrap:wrap}
.lightbox{position:fixed;inset:0;background:rgba(5,8,13,.92);display:grid;place-items:center;z-index:10;cursor:zoom-out;padding:16px}.lightbox img{max-width:100%;max-height:92vh;border-radius:6px}
@media(max-width:1100px){.steps{grid-template-columns:repeat(3,1fr)}.summary{grid-template-columns:1fr 1fr}}
@media(max-width:950px){.now{grid-template-columns:1fr}.now-side{order:-1}.grid2{grid-template-columns:1fr}nav a{padding:6px 8px}}
@media(max-width:600px){.now{padding:16px}.steps{grid-template-columns:1fr 1fr}.countdown strong{font-size:36px}.entry{grid-template-columns:52px 1fr;gap:6px 10px}.entry .who{grid-column:2}.entry .what{grid-column:1/-1}.views{grid-template-columns:1fr}.kv{grid-template-columns:1fr}.kv dt{margin-top:6px}.summary{grid-template-columns:1fr}}
.chat-fab{position:fixed;right:24px;bottom:24px;z-index:8;border-radius:24px;padding:12px 18px;background:#16382f;border-color:#3b5b56;color:var(--green);font-weight:550;box-shadow:0 6px 20px rgba(0,0,0,.4)}
.chat{position:fixed;top:0;right:0;bottom:0;width:440px;max-width:100vw;z-index:9;background:var(--panel);border-left:1px solid var(--line);display:flex;flex-direction:column;box-shadow:-10px 0 30px rgba(0,0,0,.35)}
.chat-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:16px 18px;border-bottom:1px solid var(--line)}.chat-head small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.chat-head div:last-child{display:flex;gap:6px}.chat-head button{font-size:11px;padding:6px 10px}
.chat-log{flex:1;overflow:auto;padding:16px 18px;display:flex;flex-direction:column;gap:12px}
.msg{max-width:92%;padding:10px 13px;border-radius:10px;font-size:13px;line-height:1.55;white-space:pre-wrap;word-wrap:break-word}.msg.user{align-self:flex-end;background:#1c2d45;color:var(--text)}.msg.assistant{align-self:flex-start;background:#0f1722;border:1px solid var(--line)}.msg.error{align-self:flex-start;background:var(--bad-bg);color:var(--red)}.msg.wait{color:var(--muted);font-style:italic}
.msg code{font-size:11px}
.chips{display:flex;flex-wrap:wrap;gap:8px}.chips button{font-size:11px;padding:7px 10px;border-radius:16px}
.chat-intro{color:var(--muted);font-size:12px;line-height:1.6;margin:0}
.chat-form{display:flex;gap:8px;padding:12px 18px;border-top:1px solid var(--line)}.chat-form textarea{flex:1;resize:none;font:inherit;font-size:13px;border:1px solid var(--line);background:#172231;color:var(--text);border-radius:6px;padding:9px 12px}.chat-form button{align-self:flex-end}
#toast{z-index:11}
@media(max-width:600px){.chat{width:100vw}.chat-fab{right:16px;bottom:16px}}
/* ---- paths chart ---- */
.chart-box{position:relative;padding:8px 6px 0}#pchart{display:block;width:100%;font:10px ui-monospace,monospace;user-select:none}
.pc-grid{stroke:#1c2738;stroke-width:1}.pc-axis{fill:var(--muted);font-size:10px}.pc-future{fill:#0d1622}
.pc-up line,.pc-up rect{stroke:#58c7a3;fill:#58c7a3}.pc-down line,.pc-down rect{stroke:#e9737c;fill:#e9737c}.pc-up line,.pc-down line{stroke-width:1}
.pc-zone{fill:#8fa3bf1f;stroke:#8fa3bf66;stroke-width:1}.pc-zone.tt{fill:#82aaff2b;stroke:#82aaffaa}.pc-zone.ta{fill:#c792ea2b;stroke:#c792eaaa}.pc-zone.ext{fill:#e7c78017;stroke:#e7c78077;stroke-dasharray:4 3}
.pc-zone-label{font-size:9.5px;fill:#a9b8cc;paint-order:stroke;stroke:#0b1019;stroke-width:3px}.pc-zone-label.tt{fill:#82aaff;font-weight:700}.pc-zone-label.ta{fill:#c792ea;font-weight:700}.pc-zone-label.ext{fill:#e7c780}.pc-zone-label.dim{opacity:.35}
.pc-pool{stroke:none}.pc-pool.above{fill:#ff9f4314}.pc-pool.below{fill:#ffcf5c12}.pc-pool.strong.above{fill:#ff9f4330}.pc-pool.strong.below{fill:#ffcf5c2b}
.pc-pool-label{font-size:9px;paint-order:stroke;stroke:#0b1019;stroke-width:3px}.pc-pool-label.above{fill:#ffb36b}.pc-pool-label.below{fill:#ffd77a}
.sw{display:inline-block;width:14px;height:8px;border-radius:2px}.sw.sw-zone{background:#82aaff55;border:1px solid #82aaff}.sw.sw-pool{background:#ff9f4355;border:1px solid #ff9f43}
.pc-t0{stroke:#e7c780;stroke-dasharray:4 3}.pc-t0-label{fill:var(--amber);font-size:10px}
.pc-now{stroke:#82aaff88;stroke-dasharray:2 3}.pc-now-label{fill:var(--blue);font-size:10px}
.pc-mark{stroke:#82aaff66;stroke-dasharray:1 3}.pc-cross{stroke:#8997ad66;pointer-events:none}
.pc-path polyline{fill:none;stroke:var(--c);stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round;opacity:.9}
.pc-path circle{fill:var(--c)}.pc-path .pc-dest{fill:var(--c);opacity:.85}
.pc-path.dead polyline{stroke-dasharray:4 4;opacity:.45}.pc-path.dead circle,.pc-path.dead .pc-dest{opacity:.4}
.pc-path.hot polyline{stroke-width:3.2}.pc-path.focus polyline{stroke-width:3;opacity:1}
.pc-path.faded{opacity:.12}.pc-path polyline.pc-hit{stroke:transparent;stroke-width:12;opacity:1;cursor:pointer;stroke-dasharray:none}
.pc-wp{fill:var(--text);font-size:9px;paint-order:stroke;stroke:#0b1019;stroke-width:3px}
.pc-kill{fill:var(--red);font-size:13px;font-weight:700;paint-order:stroke;stroke:#0b1019;stroke-width:3px}
.pc-end{font-size:10px;font-weight:700;cursor:pointer;paint-order:stroke;stroke:#0b1019;stroke-width:3px}.pc-end.dead{fill:#6b778a!important;text-decoration:line-through}
.pc-lv{fill:none;stroke-width:1.2}.pc-lv.act{stroke:var(--blue);stroke-dasharray:5 4}.pc-lv.act.done{stroke:#67d8b1;stroke-dasharray:none;opacity:.7}
.pc-lv.inv{stroke:var(--red);stroke-dasharray:5 4}.pc-lv.tp{stroke:var(--green);stroke-dasharray:2 3}.pc-lv.sl{stroke:var(--red)}.pc-lv.slz{fill:#f38b9118;stroke:#f38b9155}
.pc-lv-label{font-size:9.5px;paint-order:stroke;stroke:#0b1019;stroke-width:3px}.pc-lv-label.act{fill:var(--blue)}.pc-lv-label.act.done{fill:var(--green)}.pc-lv-label.inv,.pc-lv-label.sl,.pc-lv-label.slz{fill:var(--red)}.pc-lv-label.tp{fill:var(--green)}
.pc-trade{stroke-width:1.5}.pc-trade.entry{stroke:var(--blue)}.pc-trade.sl{stroke:var(--red)}.pc-trade.tp{stroke:var(--green)}.pc-trade.be{stroke:var(--amber);stroke-dasharray:4 3}
.pc-tag rect{fill:#172231;stroke:#3a4a62}.pc-tag text{fill:var(--text);font-size:10px}.pc-tag.mark rect{fill:#1c2d45;stroke:var(--blue)}.pc-tag.entry rect{stroke:var(--blue)}.pc-tag.sl rect{stroke:var(--red)}.pc-tag.tp rect{stroke:var(--green)}.pc-tag.be rect{stroke:var(--amber)}
.pc-empty{fill:var(--muted);font-size:12px}
.ptip{position:absolute;pointer-events:none;background:#172231ee;border:1px solid #3a4a62;border-radius:6px;padding:7px 9px;font-size:11px;line-height:1.5;max-width:280px;z-index:2}.ptip small{color:var(--muted)}
.plegend{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:10px 16px 14px;border-top:1px solid var(--line)}
.pchip{display:inline-flex;align-items:center;gap:6px;font-size:11px;padding:5px 9px}.pchip i{width:10px;height:10px;border-radius:2px;display:inline-block}.pchip small{font-size:9px;color:var(--muted)}.pchip small.side.LONG{color:var(--green)}.pchip small.side.SHORT{color:var(--red)}
.pchip.dead{opacity:.6;text-decoration:line-through}.pchip.off{opacity:.3}.pchip.on{border-color:var(--blue);color:var(--blue);background:#1c2d45}
.pc-toggle{font-size:11px;color:var(--muted);margin-left:6px;display:inline-flex;gap:5px;align-items:center}.pc-toggle input{padding:0}
.pc-detail{flex-basis:100%;font-size:12px;color:var(--text);line-height:1.6;margin-top:4px}.pc-detail small{color:var(--muted)}.pc-detail .link{margin-left:8px;font-size:10px;padding:4px 8px}
table.paths tr[data-prow]{cursor:pointer}table.paths tr.focus{background:#1c2d45}table.paths tr.focus td:first-child{box-shadow:inset 3px 0 var(--blue)}
.pc-leader{stroke-width:.8;opacity:.6}.pc-wp{font-weight:700;font-size:10px}
.pc-wps{display:flex;flex-wrap:wrap;gap:4px 18px;margin:6px 0;padding-left:20px;font-size:11px}.pc-wps li{padding-left:2px}.pc-wps li::marker{color:var(--blue);font-weight:700}
#chart-tf{flex-shrink:0;flex-wrap:nowrap}
