/* The dashboard's price chart, shared (20261019cc): the Research page and the ML lab draw the same chart
   (pages/price_history.rs feeding pages/app.rs's chart). Each rule here is app.css's own, word for word, so the
   three pages look the same; app.css keeps them for the dashboard (tests/test_cc_additions.py holds them equal).
   Then the instrument chips this chart has on those two pages. */
.chart-panel{display:flex;flex-direction:column;min-height:520px}
.range-tabs{display:flex;gap:4px;padding:4px;border:1px solid var(--t-line-strong);border-radius:12px;background:var(--t-page)}
.range-tabs button{min-height:44px;min-width:52px;padding:0 12px;border:0;border-radius:8px;background:transparent;color:var(--t-ink);font-size:17px;font-weight:700;cursor:pointer}
.range-tabs button:hover{background:var(--t-surface-3)}
.range-tabs button.active{background:var(--t-brand);color:var(--t-on-brand)}
.chart-meta{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 16px;padding:20px 24px 0}
.chart-meta strong{font-size:var(--t-fs-figure);font-weight:800;line-height:1.1}
/* the rise or fall beside the price: green with an arrow up, red with an arrow down, in a pill that reads at a
   glance (20261018ca) */
.chart-meta span{display:inline-flex;align-items:center;padding:4px 14px;border:1px solid transparent;border-radius:999px;font-size:19px;font-weight:700}
.chart-meta span.positive{border-color:var(--t-good-line);background:var(--t-good-bg);color:var(--t-good)}
.chart-meta span.negative{border-color:var(--t-bad-line);background:var(--t-bad-bg);color:var(--t-bad)}
/* the trend the study sees on the candles drawn: green up, red down, plain sideways (20261018cb) */
.chart-meta span.flat{border-color:var(--t-line-strong);background:var(--t-surface-2);color:var(--t-ink)}
.chart-meta span[hidden]{display:none}
/* the plot fills its panel -- as tall as the status panel beside it, 380px at least: the canvas lies on the
   space it is given and never sizes it (it left the panel's lower half empty) */
.chart-wrap{position:relative;flex:1 1 auto;min-height:380px;padding:4px 14px 0}
.chart-wrap canvas{position:absolute;top:4px;left:14px;display:block}
/* the card beside the point under the pointer: dark like the panel, placed by the page where there is room */
.chart-tooltip{position:absolute;z-index:2;padding:10px 14px;border:1px solid var(--t-line-strong);border-radius:12px;background:var(--t-surface-2);color:var(--t-ink);font-size:16px;line-height:1.35;white-space:nowrap;pointer-events:none;box-shadow:0 14px 34px rgba(0,0,0,.55)}
.chart-tooltip b{display:block;font-size:20px;font-weight:800}
.chart-tooltip span{display:block;color:var(--t-ink-2)}
.chart-tooltip em{display:block;margin-top:4px;font-style:normal;font-weight:700}
.chart-tooltip em.up,.chart-tooltip i.up{color:var(--t-good)}
.chart-tooltip em.down,.chart-tooltip i.down{color:var(--t-bad)}
.chart-tooltip i{display:block;margin-top:2px;font-style:normal;font-weight:700}
.chart-tooltip small{display:block;margin-top:2px;color:var(--t-ink-2);font-size:16px}
.chart-tooltip i.flat{color:var(--t-ink)}
.chart-cross{position:absolute;width:0;border-left:1px solid rgba(255,255,255,.22);pointer-events:none}
.chart-dot{position:absolute;width:14px;height:14px;margin:-7px 0 0 -7px;border:3px solid #08090d;border-radius:50%;background:#28d89b;box-shadow:0 0 0 5px rgba(40,216,155,.25);pointer-events:none}
.chart-dot.down{background:#ef6574;box-shadow:0 0 0 5px rgba(239,101,116,.25)}
/* what the chart's lines and marks mean, as on the Research page (20261018cb): the averages amber and blue, the
   exponential one purple dashes, support green dashes, resistance red dashes */
.chart-legend{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px 18px}
/* the dates at the ends of the first row, what the lines mean on a row of its own under them */
.chart-footer .chart-legend{order:3;flex-basis:100%}
.chart-legend b{display:inline-flex;align-items:center;gap:8px;font-weight:600}
.chart-legend b::before{content:"";display:inline-block;width:22px;height:0;border-top:3px solid currentColor}
.chart-legend .key-fast::before{color:#f2a93b}
.chart-legend .key-slow::before{color:#5f8df7}
.chart-legend .key-ema::before{color:#b29cf0;border-top-style:dashed}
.chart-legend .key-support::before{color:var(--t-good);border-top-style:dashed}
.chart-legend .key-resistance::before{color:var(--t-bad);border-top-style:dashed}
.chart-legend .key-marks::before,.chart-legend .key-note::before{display:none}
.chart-legend .key-marks{gap:6px}
.chart-legend i{font-style:normal}
.chart-legend i.up{color:#28d89b}
.chart-legend i.fake{color:#f2a93b}
.chart-legend i.div{color:#b29cf0}
.chart-footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 16px;padding:8px 24px 20px;color:var(--t-ink-2);font-size:16px}
/* the instruments the scheduler keeps daily bars for, a chip each (20261019cc) */
.chart-symbols{display:flex;flex-wrap:wrap;gap:8px;padding:16px 24px 0}
.chart-chip{min-height:44px;padding:0 16px;border:2px solid var(--t-line-strong);border-radius:999px;background:var(--t-surface-2);color:var(--t-ink);font-size:17px;font-weight:700;cursor:pointer}
.chart-chip[aria-pressed="true"]{border-color:var(--t-brand);background:var(--t-accent-bg);color:var(--t-accent)}
.chart-chip:not([aria-pressed="true"]):hover{border-color:var(--t-brand)}
@media (max-width:760px){.chart-wrap{min-height:280px}.chart-symbols{padding:14px 16px 0}.chart-meta{padding:16px 16px 0}.chart-footer{padding:8px 16px 18px}}
/* The dashboard's Goldbach PO3 range map, shared the same way (20261019cc): under the chart on the Research page and in
   the ML lab, for the instrument the chart shows. Each .po3 rule is app.css's own, word for word; the pills, the
   severity tags and the small lines in its table are app.css's too, kept to this panel (tests/test_cc_additions.py
   holds them equal). */
.po3-badges{display:flex;flex-wrap:wrap;gap:8px}
.po3-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid var(--t-line)}
.po3-summary article{padding:18px 24px;border-right:1px solid var(--t-line)}
.po3-summary article:last-child{border-right:0}
.po3-summary span,.po3-summary small{display:block;color:var(--t-ink-2);font-size:17px}
.po3-summary strong{display:block;margin:6px 0;font-size:26px;font-weight:800}
.po3-grid-wrap{padding:44px 32px 66px}
.po3-grid{position:relative;height:96px;border:1px solid var(--t-line-strong);border-radius:10px;background:linear-gradient(90deg,rgba(39,168,255,.2) 0 11%,rgba(133,98,231,.2) 11% 41%,rgba(242,169,59,.22) 41% 59%,rgba(133,98,231,.2) 59% 89%,rgba(39,168,255,.2) 89% 100%)}
.po3-level{position:absolute;top:0;bottom:0;width:2px;background:var(--t-line-strong)}
.po3-level i{position:absolute;top:-7px;left:-4px;width:10px;height:10px;border-radius:50%;background:var(--t-info-fill)}
.po3-level span{position:absolute;bottom:-28px;left:0;transform:translateX(-50%);color:var(--t-ink-2);font-size:16px;white-space:nowrap}
.po3-level:nth-child(odd) span{bottom:-54px}
.po3-current + .po3-level span{transform:none}
.po3-level:last-child span{transform:translateX(-100%)}
.po3-level.flow i{background:var(--t-violet-fill)}
.po3-level.rebalance i{background:var(--t-brand)}
.po3-level.equilibrium i{background:var(--t-good-fill)}
.po3-current{position:absolute;z-index:4;top:-14px;bottom:-14px;width:4px;margin-left:-2px;background:var(--t-good-fill);box-shadow:0 0 13px var(--t-good-fill)}
.po3-current:before{content:"Price";position:absolute;top:-26px;left:50%;transform:translateX(-50%);color:var(--t-good);font-size:16px;font-weight:800}
.po3-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 24px;padding:0 24px 18px;color:var(--t-ink);font-size:17px}
.po3-legend span{display:flex;align-items:center;gap:8px}
.po3-legend i{width:12px;height:12px;border-radius:50%;background:var(--t-info-fill)}
.po3-legend i.flow{background:var(--t-violet-fill)}
.po3-legend i.rebalance{background:var(--t-brand)}
.po3-legend i.equilibrium{background:var(--t-good-fill)}
.po3-note{margin:0;padding:14px 24px;border-top:1px solid var(--t-line);color:var(--t-ink-2);font-size:17px}
/* 20261026dl: the levels as a trade, after the round trip, under the range figures */
.po3-note.po3-trade{border-top:0;border-bottom:1px solid var(--t-line);color:var(--t-ink)}
.po3-panel .mini-pill{display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border:1px solid var(--t-line-strong);border-radius:999px;background:var(--t-surface-3);color:var(--t-ink);font-size:16px;font-weight:700;white-space:nowrap}
.po3-panel .severity{display:inline-flex;align-items:center;min-height:30px;padding:0 10px;border:1px solid var(--t-line-strong);border-radius:999px;font-size:16px;font-weight:750}
.po3-panel .severity.info{border-color:var(--t-info-line);background:var(--t-info-bg);color:var(--t-info)}
.po3-panel .severity.warning{border-color:var(--t-accent-line);background:var(--t-accent-bg);color:var(--t-accent)}
.po3-panel td small,.po3-panel td .muted{display:block;margin-top:4px;color:var(--t-ink-2);font-size:16px}
@media (max-width:760px){.po3-summary{grid-template-columns:1fr}.po3-summary article{border-right:0;border-bottom:1px solid var(--t-line)}.po3-grid-wrap{padding-bottom:40px}.po3-level span{display:none}.po3-level.boundary span,.po3-level.equilibrium span{display:block;bottom:-28px}.po3-grid-wrap{padding-left:22px;padding-right:22px}}
/* The dashboard's YieldYatra replay, shared the same way (20261019cc): on the Research page and in the ML lab, for
   the instrument the chart shows (yieldyatra.css styles the panel). Its five figures sit in the dashboard's tiles:
   each .metric-strip rule here is app.css's own, word for word, and so is the pill, kept to this panel. */
.metric-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px;margin:0 0 28px}
.metric-strip article{--tile:var(--t-brand);position:relative;container-type:inline-size;min-width:0;padding:24px 24px 20px;border:1px solid var(--t-line);border-radius:var(--t-radius);background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,0) 55%),var(--t-surface);box-shadow:var(--t-shadow);overflow:hidden}
.metric-strip article::before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:var(--tile)}
.metric-strip article:has(#quality){--tile:var(--t-good-fill)}
.metric-strip article:has(#volatility),.metric-strip article:has(#yyRisk){--tile:var(--t-violet-fill)}
.metric-strip article:has(#drawdown),.metric-strip article:has(#yyDrawdown){--tile:var(--t-bad-fill)}
.metric-strip article:has(#drift),.metric-strip article:has(#yyTrades){--tile:var(--t-info-fill)}
.metric-strip article:has(#yyReturn){--tile:var(--t-good-fill)}
.metric-strip span{display:block;color:var(--t-ink-2);font-size:17px;font-weight:700}
.metric-strip strong{display:block;margin:8px 0 6px;color:var(--t-ink);font-size:clamp(24px,16cqi,42px);font-weight:800;line-height:1.1;letter-spacing:-.01em;overflow-wrap:normal}
.metric-strip small{display:block;color:var(--t-ink-2);font-size:16px}
.metric-strip strong.num-up{color:var(--t-good)}
.metric-strip strong.num-down{color:var(--t-bad)}
.yy-panel .mini-pill{display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border:1px solid var(--t-line-strong);border-radius:999px;background:var(--t-surface-3);color:var(--t-ink);font-size:16px;font-weight:700;white-space:nowrap}
@media (max-width:1180px){.metric-strip{grid-template-columns:repeat(6,minmax(0,1fr))}.metric-strip article{grid-column:span 2}.metric-strip article:nth-child(n+4){grid-column:span 3}}
@media (max-width:760px){.metric-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.metric-strip article,.metric-strip article:nth-child(n+4){grid-column:auto}.metric-strip article{padding:20px 18px 16px}.metric-strip article:last-child:nth-child(odd){grid-column:1 / -1}}
@media (max-width:480px){.metric-strip{grid-template-columns:1fr}.metric-strip strong{font-size:clamp(24px,16cqi,36px)}}
/* The dashboard's System status, shared the same way (20261019cc): beside the chart on the Research page and in the
   ML lab, the chart and the status side by side as on the dashboard. Each rule here is app.css's own, word for
   word, and so are the pills, kept to this panel. */
.primary-grid{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(320px,.8fr);gap:24px;margin-bottom:24px}
.system-panel{padding-bottom:16px}
.system-score{display:grid;grid-template-columns:104px 1fr;gap:18px;align-items:center;padding:22px 24px;border-bottom:1px solid var(--t-line)}
.score-ring{display:grid;place-content:center;width:100px;height:100px;border-radius:50%;text-align:center;background:radial-gradient(circle at center,var(--t-surface) 59%,transparent 60%),conic-gradient(var(--t-good-fill) var(--score,0%),var(--t-surface-3) 0);box-shadow:0 0 28px rgba(40,216,155,.12)}
.score-ring strong{font-size:30px;font-weight:800;line-height:1}
.score-ring span{color:var(--t-ink-2);font-size:16px}
.system-score b{font-size:20px}
.system-score p{margin:6px 0 0;color:var(--t-ink-2);font-size:17px}
.status-list{margin:0;padding:8px 24px}
.status-list div{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--t-line)}
.status-list dt{color:var(--t-ink-2)}
.status-list dd{margin:0;font-weight:750;text-align:right}
.source-health{padding:8px 24px}
.source-health div{display:flex;justify-content:space-between;gap:16px;padding:10px 0}
.source-health span{color:var(--t-ink-2)}
.source-health b.ok{color:var(--t-good)}
.source-health b.warning{color:var(--t-accent)}
.system-panel .mini-pill{display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border:1px solid var(--t-line-strong);border-radius:999px;background:var(--t-surface-3);color:var(--t-ink);font-size:16px;font-weight:700;white-space:nowrap}
.system-panel .mini-pill.ok{border-color:var(--t-good-line);background:var(--t-good-bg);color:var(--t-good)}
.system-panel .mini-pill.warning{border-color:var(--t-accent-line);background:var(--t-accent-bg);color:var(--t-accent)}
@media (max-width:1180px){.primary-grid,.secondary-grid,.intelligence-grid{grid-template-columns:1fr}}
@media (max-width:760px){.system-score{padding:18px}.status-list,.source-health,.risk-bars,.feed{padding-left:18px;padding-right:18px}}
