*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:radial-gradient(circle at 88% 8%,rgba(95,141,247,.09),transparent 26rem),radial-gradient(circle at 10% 18%,rgba(242,169,59,.06),transparent 24rem),var(--t-page);color:var(--t-ink)}
button, select{font:inherit}
.skip-link{position:fixed;left:16px;top:-80px;z-index:100;padding:10px 14px;border-radius:7px;background:var(--t-brand);color:var(--t-on-brand);font-weight:800}
.skip-link:focus{top:12px}
.state-pill{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--t-line-strong);border-radius:999px;background:var(--t-surface-2);color:var(--t-ink-2);white-space:nowrap}
main{width:min(1680px, 100%);margin:0 auto;padding:30px}
.hero{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:20px 32px;margin-bottom:20px}
.eyebrow{display:block;margin-bottom:6px;color:var(--t-accent);font-size:16px;font-weight:800;letter-spacing:.06em}
.hero h1{max-width:24ch;margin:0;font-size:var(--t-fs-h1);font-weight:800;line-height:1.1;letter-spacing:-.01em}
.hero p{max-width:62ch;margin:12px 0 0;color:var(--t-ink-2);font-size:var(--t-fs-lead)}
.chart-controls{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px}
.chart-controls label{display:grid;gap:6px;color:var(--t-ink-2);font-size:17px;font-weight:650}
.chart-controls select, .chart-controls button{min-height:52px;padding:0 14px;border:2px solid var(--t-line-strong);border-radius:10px;background:var(--t-surface);color:var(--t-ink);font-size:18px}
.chart-controls select{min-width:168px}
.chart-controls button{padding:0 22px;border-color:var(--t-brand-line);background:var(--t-brand);color:var(--t-on-brand);font-weight:750;white-space:nowrap;cursor:pointer}
.chart-controls button:hover{filter:brightness(1.06)}
.chart-controls button:disabled{cursor:not-allowed;border-style:dashed;filter:saturate(.5)}
.chart-controls button:focus-visible, .chart-controls select:focus-visible, a:focus-visible{outline:3px solid var(--t-focus);outline-offset:3px}
/* the page's state and its one note: the panel's own dark, edged in what they are (20261017bp) -- green when
   loaded, red on a failure, amber for the note to keep in mind */
.page-message, .boundary-note{margin-bottom:16px;border:1px solid var(--t-line);border-left:4px solid var(--t-line-strong);border-radius:9px;background:var(--t-surface)}
.page-message{padding:12px 16px;color:var(--t-ink-2)}
.page-message.ok{border-left-color:var(--t-good-fill);color:var(--t-good)}
.page-message.error{border-left-color:var(--t-bad-fill);color:var(--t-bad)}
.boundary-note{display:grid;grid-template-columns:auto 1fr;gap:16px;padding:16px 18px;border-left-color:var(--t-brand);line-height:1.6}
.boundary-note strong{color:var(--t-accent)}
.boundary-note span{color:var(--t-ink-2)}
.workspace-grid{display:grid;grid-template-columns:minmax(0, 1fr) minmax(320px, 400px);gap:20px;align-items:start}
.panel{overflow:hidden;border:1px solid var(--t-line);border-radius:12px;background:linear-gradient(145deg,var(--t-surface),#0d0e12);box-shadow:var(--t-shadow)}
.panel-head{min-height:64px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;padding:14px 18px;border-bottom:1px solid var(--t-line);background:var(--t-surface-2)}
.panel-head h2, .disclosure h2{margin:0;font-size:22px;font-weight:800}
.state-pill{max-width:100%;padding:5px 12px;font-size:16px;text-align:center;white-space:nowrap}
/* a side panel's head: the pill drops under the title rather than squeezing it */
.side-column .panel-head{flex-wrap:wrap;gap:8px 16px}
.state-pill.ok{border-color:var(--t-good-line);color:var(--t-good)}
.state-pill.error{border-color:var(--t-bad-line);color:var(--t-bad)}
/* TradingView draws its charts dark, so they sit on the dark board in both themes, like the dashboard's figures */
.widget-host{position:relative;overflow:hidden;width:100%;height:clamp(560px, 74vh, 900px);min-height:560px;background:var(--t-board)}
.symbol-widget-host{position:relative;overflow:hidden;width:100%;height:203px;min-height:203px;background:var(--t-board)}
.widget-host.is-unavailable{height:auto;min-height:240px}
.widget-frame{display:block;width:100%;height:100%;border:0;background:var(--t-board);color-scheme:normal}
.widget-loading, .widget-consent, .widget-error{display:grid;align-content:center;justify-items:center;gap:8px;width:100%;min-height:100%;margin:0;padding:24px;color:var(--t-board-ink-2);text-align:center}
.widget-loading{position:absolute;inset:0;z-index:2;background:var(--t-board)}
.widget-loading strong, .widget-consent strong, .widget-error strong{color:var(--t-board-ink)}
.widget-loading span, .widget-consent span, .widget-error span{max-width:560px}
.widget-consent.compact, .symbol-widget-host .widget-loading, .symbol-widget-host .widget-error{min-height:190px}
.widget-error a{margin-top:5px;color:var(--t-bar-accent);font-weight:750}
.tradingview-widget-container, .tradingview-widget-container__widget{width:100%;height:100%}
.widget-footer{min-height:49px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:11px 16px;border-top:1px solid var(--t-line)}
.widget-footer p{margin:0;color:var(--t-ink-2);font-size:16px}
.tv-attribution{color:var(--t-info);font-size:17px;font-weight:750;white-space:nowrap}
.side-column{display:grid;gap:20px}
.snapshot-grid{margin:0}
.snapshot-grid div{display:flex;justify-content:space-between;gap:16px;padding:13px 18px;border-bottom:1px solid var(--t-line)}
.snapshot-grid dt{color:var(--t-ink-2)}
.snapshot-grid dd{min-width:0;margin:0;overflow-wrap:anywhere;font-weight:750;text-align:right}
.as-of{margin:0;padding:12px 18px;color:var(--t-ink-2);font-size:16px}
.local-link{display:block;margin:0 18px 18px;padding:10px 12px;border:1px solid var(--t-line-strong);border-radius:8px;color:var(--t-ink);text-align:center;text-decoration:none;font-weight:750}
.local-link:hover{border-color:var(--t-accent-line);color:var(--t-accent)}
.disclosure{display:grid;grid-template-columns:minmax(190px, .45fr) 1fr 1fr;gap:28px;margin-top:20px;padding:24px}
.disclosure p{margin:0;color:var(--t-ink-2);line-height:1.65}
footer{display:flex;justify-content:space-between;gap:18px;width:min(1680px, 100%);margin:0 auto;padding:16px 30px 28px;color:var(--t-ink-2);font-size:16px}
@media (max-width: 1080px){
  .workspace-grid{grid-template-columns:1fr}
  .side-column{grid-template-columns:1fr 1fr}
  .hero{align-items:flex-start;flex-direction:column}
  .chart-controls{width:100%}
  .chart-controls label{flex:1}
  .chart-controls select{width:100%}
}
@media (max-width: 760px){
  main{padding:20px 14px 30px}
  .chart-controls{display:grid;grid-template-columns:1fr 1fr}
  .chart-controls label{min-width:0}
  .chart-controls select{width:100%;min-width:0}
  .chart-controls button{grid-column:1 / -1}
  .boundary-note{grid-template-columns:1fr;gap:6px}
  .state-pill{white-space:normal}
  .side-column{grid-template-columns:1fr}
  .widget-host{height:clamp(420px, 65svh, 540px);min-height:420px}
  .widget-host.is-unavailable{height:auto;min-height:220px}
  .widget-footer{align-items:flex-start;flex-direction:column}
  .disclosure{grid-template-columns:1fr;gap:12px}
  footer{padding:14px;flex-wrap:wrap}
}
@media (max-width: 420px){
  .panel-head{flex-wrap:wrap}
  .chart-controls{grid-template-columns:1fr}
  .chart-controls button{grid-column:auto}
}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
}
.boundary-note a, footer a{color:var(--tv-amber, var(--t-accent));text-decoration:none;border-bottom:1px solid var(--t-accent-line)}
.boundary-note a:hover, footer a:hover{border-bottom-color:currentColor}

.hero .mip-view-only{order:3;flex-basis:100%;margin:0}
/* 20261018bz. A transparent frame in a dark page: the frame takes no colour scheme of the page's (normal, as
   TradingView's document has), so the browser draws no white sheet behind it -- the symbol summary showed on
   white, its grey figures barely readable. */
.symbol-widget-host{border-bottom:1px solid var(--t-line)}
.chart-panel .panel-head h2::before{content:"";display:inline-block;width:10px;height:10px;margin-right:10px;border-radius:50%;background:var(--t-brand);box-shadow:0 0 0 4px rgba(242,169,59,.18);vertical-align:2px}
.snapshot-grid dd .up{color:var(--t-good)}
.snapshot-grid dd .down{color:var(--t-bad)}
.quality-meter{display:block;height:8px;margin-top:8px;border-radius:999px;background:var(--t-surface-3);overflow:hidden}
.quality-meter i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#14704f,var(--t-good-fill))}
.quality-meter.is-weak i{background:linear-gradient(90deg,#8a6326,var(--t-brand))}
.quality-meter.is-poor i{background:linear-gradient(90deg,#7c2a35,var(--t-bad-fill))}
.mip-spark{margin:0;padding:14px 18px 4px;border-bottom:1px solid var(--t-line)}
.mip-spark__plot{height:84px}
.mip-spark__plot svg{display:block;width:100%;height:100%;overflow:visible}
.mip-spark figcaption{margin-top:6px;color:var(--t-ink-2);font-size:16px}

/* 20261022cm -------------------------------------------------------------------------------------------------------
   Auto: green while it follows MIP's pick, plain while a person has chosen */
.chart-controls .auto-toggle{border:2px solid var(--t-line-strong);background:var(--t-surface);color:var(--t-ink-2)}
.chart-controls .auto-toggle[aria-pressed="true"]{border-color:var(--t-good-line);background:var(--t-good-bg);color:var(--t-good)}
.chart-controls .auto-toggle[aria-pressed="true"]::before{content:"";display:inline-block;width:9px;height:9px;margin-right:9px;border-radius:50%;background:var(--t-good-fill);box-shadow:0 0 0 3px rgba(40,216,155,.22);vertical-align:1px}
.auto-note{flex-basis:100%;max-width:110ch;margin:4px 0 0;color:var(--t-ink-2);font-size:17px;line-height:1.5}
.auto-note.ok{color:var(--t-ink)}
.auto-note.error{color:var(--t-bad)}
/* MIP's own range buttons over the chart: the chosen one green, the rest purple */
.range-bar{display:flex;flex-wrap:wrap;gap:8px;padding:10px 16px;border-bottom:1px solid var(--t-line);background:var(--t-surface)}
.range-bar button{min-width:52px;min-height:40px;padding:0 12px;border:1px solid #7a5ee0;border-radius:8px;background:#5b3fc4;color:#ffffff;font:inherit;font-size:16px;font-weight:750;cursor:pointer}
.range-bar button:hover{background:#6c50d4}
.range-bar button[aria-pressed="true"]{border-color:#1f8a63;background:var(--t-good-fill);color:var(--t-on-brand)}
.range-bar button:focus-visible{outline:3px solid var(--t-focus);outline-offset:2px}
/* the reading in one line, over the chart */
.reading-strip{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0;padding:12px 18px;border-bottom:1px solid var(--t-line);background:var(--t-surface-2);font-size:18px;line-height:1.5}
.reading-strip__text{flex:1 1 40ch;min-width:0}
.reading-strip__more{color:var(--t-info);font-weight:750;white-space:nowrap}
/* the dashboard link: green */
.local-link{border-color:#1f8a63;background:var(--t-good-fill);color:var(--t-on-brand)}
.local-link:hover{border-color:var(--t-good-fill);color:var(--t-on-brand);filter:brightness(1.07)}
/* What the candles say */
.reading-panel{margin-top:20px}
.reading-body{padding:18px}
.reading-wait, .reading-note{margin:0 0 8px;color:var(--t-ink-2);font-size:17px;line-height:1.6}
.reading-grid{display:grid;grid-template-columns:minmax(260px, 360px) minmax(0, 1fr);gap:24px;align-items:start}
.reading-map{margin:0;padding:14px;border:1px solid var(--t-line);border-radius:10px;background:var(--t-board)}
.reading-map figcaption{margin-bottom:10px;color:var(--t-accent);font-size:17px;font-weight:800}
.reading-parts{columns:2 320px;column-gap:14px}
.reading-part{break-inside:avoid;margin:0 0 14px;padding:14px 16px;border:1px solid var(--t-line);border-radius:10px;background:var(--t-surface-2)}
.reading-part h3{margin:0 0 8px;color:var(--t-accent);font-size:18px;font-weight:800}
.reading-part p, .reading-part li{margin:0 0 6px;color:var(--t-ink);font-size:17px;line-height:1.55}
.reading-part ul{margin:0;padding-left:20px}
.reading-foot{margin:16px 0 0;color:var(--t-ink-2);font-size:16px;line-height:1.55}
@media (max-width: 900px){
  .reading-grid{grid-template-columns:1fr}
}
@media (max-width: 760px){
  .range-bar{gap:6px;padding:8px 10px}
  .range-bar button{min-width:44px;padding:0 8px}
  .reading-body{padding:12px}
}
