:root{--live-bar:#5b6cff;--live-bar-hi:#8b97ff;--tok0:#5b6cff;--tok1:#c98500}   /* Overview's --accent: live data in colour, previews stay grey */
.kpis .k .value.live{color:var(--ink)}
.live-chart{margin:6px 0 4px}
.tile .live-chart svg{display:block;width:auto;height:auto;max-width:100%}   /* drawn at its own pixel size; beats the preview's .tile svg{height:180px} */
.live-empty{color:var(--muted);font-size:12px;padding:40px 0;text-align:center;border:1px dashed var(--hair)}
.live-tip{position:fixed;z-index:50;pointer-events:none;background:#0b0b0b;border:1px solid var(--hair);padding:6px 9px;font-size:12px;color:var(--ink-2)}
.live-tip b{color:var(--ink)}
.live-legend{display:flex;gap:16px;font-size:11.5px;color:var(--ink-2);margin:0 0 4px}
.live-legend i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:6px;vertical-align:-1px}
.live-tip .tr{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-top:3px}
.live-tip .tr i{width:8px;height:8px;border-radius:2px;display:inline-block;margin-right:-4px}
.live-tip .tr span{margin-left:auto;color:var(--ink);font-variant-numeric:tabular-nums}
.live-tip .tr.tot{border-top:1px solid var(--hair);padding-top:3px}
.live-zoom{display:flex;gap:6px;margin:0 0 8px}
.live-zoom button{background:#000;color:var(--ink-2);border:1px solid var(--hair);padding:4px 10px;font:500 11.5px "Inter Tight",system-ui,sans-serif;cursor:pointer}
.live-zoom button[aria-pressed="true"]{color:var(--ink);border-color:var(--ink)}
.live-zoom button:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.live-zoom span{font-size:11px;color:var(--muted);align-self:center;margin-left:6px}
.live-chart svg[tabindex]:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.live-zoom .seg{display:inline-flex;margin-right:10px}
.live-zoom .seg button+button{border-left:0}
.live-poslist{margin:12px 0 0;overflow-x:auto}
.live-poslist table{width:100%;border-collapse:collapse;font-size:12px;font-variant-numeric:tabular-nums}
.live-poslist th{font-weight:600;font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);text-align:left;padding:6px 10px 6px 0;border-bottom:1px solid var(--hair)}
.live-poslist td{padding:6px 10px 6px 0;border-bottom:1px solid var(--hair-2);color:var(--ink-2);white-space:nowrap}
.live-poslist td i{display:inline-block;width:9px;height:9px;border-radius:2px;margin-right:7px;vertical-align:-1px}
.live-poslist .n{text-align:right}
/* ticks: two cells under one "Ticks" header -- lower tick under the header's left edge, "→ upper" starts at the same x */
.live-poslist td.tkl{padding-right:8px;width:1%}
.live-poslist td.tkr{width:1%;padding-right:24px}   /* shrink-wrap both: spare table width goes to other columns */
.live-poslist td.notes{font-size:11px;line-height:1.4;color:var(--muted);min-width:190px}
.live-poslist td.notes .nmore{font:inherit;font-size:11px;color:var(--ink-2);background:transparent;border:1px solid var(--hair);border-radius:4px;padding:0 5px;margin-left:4px;cursor:pointer}
/* right-aligned headers: cancel the trailing letter-spacing and put the sort arrow on the left, so the header's last
   letter sits exactly over the numbers' right edge */
.live-poslist th.n{padding-right:calc(10px - .12em)}
.live-poslist th.n[aria-sort=ascending]::after,.live-poslist th.n[aria-sort=descending]::after{content:none}
.live-poslist th.n[aria-sort=ascending]::before{content:"↑ "}
.live-poslist th.n[aria-sort=descending]::before{content:"↓ "}
/* open-positions table (user 2026-10-26): every column left-aligned, header and values start at the same x */
.live-poslist table.aleft .n,.live-poslist table.aleft th.n{text-align:left}
.live-poslist table.aleft th.n{padding-right:10px}
.live-poslist table.aleft th.n[aria-sort=ascending]::before,.live-poslist table.aleft th.n[aria-sort=descending]::before{content:none}
.live-poslist table.aleft th.n[aria-sort=ascending]::after{content:" ↑"}
.live-poslist table.aleft th.n[aria-sort=descending]::after{content:" ↓"}
.live-poslist td a{color:inherit;text-decoration:underline;text-decoration-color:var(--hair);text-underline-offset:3px}
.live-poslist td a:hover{text-decoration-color:currentColor}
.live-poslist .mut,.live-poslist p.mut{color:var(--muted)}
.live-poslist p{font-size:11px;margin:8px 0 0}
.live-poslist th[data-k]{cursor:pointer;user-select:none}
.live-poslist th[aria-sort=ascending]::after{content:" ↑"}
.live-poslist th[aria-sort=descending]::after{content:" ↓"}
.live-postools{display:flex;align-items:center;gap:12px;margin:0 0 8px;font-size:12px}
.live-postools input{font:inherit;color:var(--ink);background:transparent;border:1px solid var(--hair);border-radius:6px;padding:5px 9px;width:min(240px,60vw)}
.live-poslist .pager{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin:10px 0 0;font-size:12px;font-variant-numeric:tabular-nums}
.live-poslist .pager button{font:inherit;font-size:14px;line-height:1;color:var(--ink-2);background:transparent;border:1px solid var(--hair);border-radius:6px;width:30px;height:26px;cursor:pointer}
.live-poslist .pager button:hover:not(:disabled){border-color:var(--ink)}
.live-poslist .pager button:disabled{opacity:.35;cursor:default}
.live-poslist .pbox{width:12px;height:12px;padding:0;margin:0 8px 0 0;vertical-align:-1px;border:1.5px solid var(--muted);border-radius:3px;background:transparent;cursor:pointer}
.live-poslist .pbox:hover:not(:disabled){border-color:var(--ink)}
.live-poslist .pbox[data-full]{opacity:.5}
.live-poslist .pbox:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.live-postools .pick{display:none;margin-left:auto;align-items:center;gap:8px}
.live-poslist.picking .live-postools .pick{display:flex}
.live-postools .pick button{font:inherit;font-size:12px;color:var(--ink-2);background:transparent;border:1px solid var(--hair);border-radius:6px;padding:4px 10px;cursor:pointer}
.live-poslist.picking tr.on td{color:var(--ink)}
.live-pnote{position:absolute;z-index:30;font-size:12px;color:var(--ink);background:#0b0b0b;border:1px solid var(--hair);border-radius:6px;padding:6px 10px;box-shadow:0 4px 14px rgba(0,0,0,.35);white-space:nowrap;pointer-events:none}
.live-pnote[hidden]{display:none}
.live-legend i.dash{width:14px;height:0;border-radius:0;border-top:1.5px dashed var(--muted);vertical-align:3px}
.live-legend-depth{flex-wrap:wrap;gap:6px 14px}
.live-legend-depth .lg{color:var(--muted);margin-left:4px}
.live-legend-depth .lg:not(:first-child){margin-left:14px}
.kpis .k .value.live.up{color:#5cc58a}
.kpis .k .value.live.down{color:#ec6d6d}
/* KPI cards: the status line sits at the card bottom, so every "● Live" lines up whatever the sub-text length */
.kpis .k{display:flex;flex-direction:column}
.kpis .k .st{margin-top:auto;padding-top:8px;align-self:flex-start}
.live-heatctl{flex-wrap:wrap;row-gap:6px}
.live-heatkey{flex-wrap:wrap;gap:6px 14px;margin:8px 0 0}
.live-heatkey i.wk{height:2px;vertical-align:3px;background:var(--muted)}
.live-sizes{font-size:12.5px;color:var(--ink-2);margin:6px 0 10px}
.live-sizes b{color:var(--ink);font-weight:600}
/* strategies table: best row lifted, gains green / losses red (text tokens, not series colours) */
.live-poslist tr.best td{color:var(--ink)}
.live-poslist tr td.up{color:#5cc58a}
.live-poslist tr td.down{color:#ec6d6d}
/* LP-returns tooltip: one row per range with its result, price edges and tick bounds */
.live-tip .mut{color:var(--muted)}
.live-rtip{border-collapse:collapse;margin-top:6px;font-size:11.5px;font-variant-numeric:tabular-nums}
.live-rtip th{font-weight:500;color:var(--muted);text-align:right;padding:2px 0 2px 12px;font-size:10.5px}
.live-rtip td{padding:2px 0 2px 12px;color:var(--ink);white-space:nowrap}
.live-rtip td:first-child{padding-left:0;color:var(--ink-2)}
.live-rtip td.n{text-align:right}
.live-rtip td i{display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:6px}
/* strategy explainer tooltip */
.live-stip{max-width:380px;white-space:normal;line-height:1.45}
.live-stip p{margin:6px 0 0}
.live-stip i{font-style:normal;color:var(--ink)}
.live-poslist td.strat{cursor:help;text-decoration:underline dotted var(--muted);text-underline-offset:3px}
/* while a newly picked pool loads, its tiles are dimmed so the previous pool's numbers never pass for the new one */
body.pool-loading .kpis .k,body.pool-loading .tile:not(:has(.menu)){opacity:.35;transition:opacity .15s}
.kpis .k,.tile{transition:opacity .15s}
/* 7 cards on the Pools page (Fee APR added 2026-10-17): smaller figures so "+$14,196" and "$44,411" never touch */
.kpis .k .value{font-size:clamp(22px,2.3vw,34px);white-space:nowrap}
/* Price tile: three charts side by side, a third each (2026-10-17) */
.live-px3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 28px;margin-top:6px}
.px3-cell{min-width:0}
.px3-head{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;white-space:nowrap;overflow:hidden;height:24px;font-size:12px;margin:0 0 4px}
.px3-head b{color:var(--ink);font-weight:600}
.px3-head .mut{color:var(--muted);font-variant-numeric:tabular-nums}
.px3-flip{margin-left:auto;flex:none;background:#000;color:var(--ink-2);border:1px solid var(--hair);padding:0 8px;height:22px;font:500 11px "Inter Tight",system-ui,sans-serif;cursor:pointer}
.px3-flip:hover{color:var(--ink);border-color:var(--ink)}
@media (max-width:900px){.live-px3{grid-template-columns:1fr;gap:18px}}

/* user 2026-11-03: explainer for the since-last-change columns */
.live-poslist .pexp{margin:10px 0 0;font-size:12px;line-height:1.55;color:var(--ink-2);max-width:880px;white-space:normal}
.live-poslist .pexp summary{cursor:pointer;color:var(--ink);font-weight:600}
.live-poslist .pexp p{margin:8px 0}
.live-poslist .pexp dl{display:grid;grid-template-columns:max-content 1fr;gap:4px 14px;margin:8px 0}
.live-poslist .pexp dt{font-weight:600;color:var(--ink)}
.live-poslist .pexp dd{margin:0}
.live-poslist .pexp .ex{border-left:2px solid var(--hair);padding-left:10px}
@media (max-width:600px){.live-poslist .pexp dl{grid-template-columns:1fr}.live-poslist .pexp dd{margin-bottom:6px}}
.live-poslist tr.grp th{border-bottom:0;padding-bottom:0;cursor:default}
.live-poslist tr.grp th.g{color:var(--ink-2);border-bottom:1px solid var(--hair);text-align:center;letter-spacing:.14em}
