/* The research dashboard (/dashboard). Its colours, type and top bar come from theme.css (20261017bo): this
   sheet lays out the dashboard and its panels. The figures the page is about stand as tiles under the title,
   each with the colour of what it measures, large enough to read across a room. */

*{box-sizing:border-box}
html{scroll-behavior:smooth}
main{max-width:1560px;margin:0 auto;padding:32px clamp(16px,3vw,40px) 56px}
main section[id]{scroll-margin-top:96px}

/* the title, the instrument, the status line */
.page-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px 32px;margin-bottom:20px}
.page-heading h1{margin:0;font-size:var(--t-fs-h1);font-weight:800;line-height:1.1;letter-spacing:-.01em}
.page-heading p:not(.mip-view-only){margin:10px 0 0;max-width:62ch;color:var(--t-ink-2);font-size:var(--t-fs-lead)}
.page-heading .dash-status{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:14px 0 0;color:var(--t-ink-2);font-size:17px}
.page-heading .status-pill{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 14px;border:1px solid var(--t-line-strong);border-radius:999px;background:var(--t-surface-2);color:var(--t-ink);font-size:17px;font-weight:650}
.page-heading .status-pill i{width:10px;height:10px;border-radius:50%;background:var(--t-brand)}
.page-heading .status-pill.ok i{background:var(--t-good-fill);box-shadow:0 0 10px var(--t-good-fill)}
.page-heading .mip-view-only{order:3;flex-basis:100%;margin:0}
.controls{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px}
.controls label{display:grid;gap:6px;color:var(--t-ink-2);font-size:17px;font-weight:650}
.controls select{min-height:52px;min-width:180px;padding:0 14px;border:2px solid var(--t-line-strong);border-radius:10px;background:var(--t-page);color:var(--t-ink);font-size:18px}
.controls button{min-height:52px;padding:0 22px;border:2px solid var(--t-brand-line);border-radius:10px;background:var(--t-brand);color:var(--t-on-brand);font-size:18px;font-weight:750;white-space:nowrap;cursor:pointer;box-shadow:0 8px 24px -10px rgba(242,169,59,.55)}
.controls button:hover{filter:brightness(1.07)}

/* the figures the page is about: a tile each, edged in the colour of what it measures */
.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}
/* the figure sized to its tile (20261017bp): "US$81,616" and "90.0 / 100" stay on one line in any tile, never
   broken inside a number */
.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}

/* panels: above the page, each with a header band */
.panel{background:linear-gradient(145deg,var(--t-surface),#0d0e12);border:1px solid var(--t-line);border-radius:var(--t-radius);box-shadow:var(--t-shadow);overflow:hidden}
.panel-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 20px;min-height:84px;padding:18px 24px;border-bottom:1px solid var(--t-line);background:var(--t-surface-2)}
.panel-head h2{margin:0;font-size:var(--t-fs-h2);font-weight:800;line-height:1.2}
.panel-head-actions{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.panel-link{color:var(--t-accent);font-size:17px;font-weight:750;text-decoration:none}
.panel-link:hover{text-decoration:underline}
.subtle{color:var(--t-ink-2);font-size:17px}
.mini-pill,.count-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}
.mini-pill.ok{border-color:var(--t-good-line);background:var(--t-good-bg);color:var(--t-good)}
.mini-pill.warning{border-color:var(--t-accent-line);background:var(--t-accent-bg);color:var(--t-accent)}
.primary-grid{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(320px,.8fr);gap:24px;margin-bottom:24px}
/* the models' table is wider than half a screen (seven columns of figures): it takes the full width, the loss
   profile under it, so neither needs a sideways scroll bar (20261017bq) */
.secondary-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;margin-bottom:24px}
/* alerts, central banks and headlines side by side on a wide screen; on a narrower one the headlines take the
   whole second row rather than leaving half of it empty */
.intelligence-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-bottom:24px}
@media (max-width:1400px){.intelligence-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.intelligence-grid > :last-child{grid-column:1 / -1}}

/* the price chart (20261018cb), drawn like the Research page's market study: candles green up and red down, the
   averages, support green and resistance red, breakouts, fakeouts and divergences marked; beside the price, its
   rise or fall over the range picked and the trend, in words */
.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}
/* a signed number: green up, red down -- in a table, and as a tile's figure (20261018ca) */
.num-up{color:var(--t-good);font-weight:700}
.num-down{color:var(--t-bad);font-weight:700}
.metric-strip strong.num-up{color:var(--t-good)}
.metric-strip strong.num-down{color:var(--t-bad)}
/* Earnings (20261025di): the admin page's Earnings view (earnings.css), under the figures -- its panels, its buttons and
   its error line drawn as on the admin page, whose sheet (admin.css) this page does not load, and its tables as there;
   "Try again" drawn as its other button */
.dash-earnings{margin-bottom:28px}
.dash-earnings__head{margin:0 0 16px}
.dash-earnings__head h2{margin:0;font-size:var(--t-fs-h2);font-weight:800;line-height:1.2}
.dash-earnings__head p{max-width:88ch;margin:8px 0 0;color:var(--t-ink-2);font-size:17px;line-height:1.55}
.dash-earnings .admin-panel{border:1px solid var(--t-line);border-radius:var(--t-radius);background:var(--t-surface);box-shadow:var(--t-shadow)}
.dash-earnings .secondary-action,.dash-earnings .earn-retry{min-height:48px;padding:0 18px;border:2px solid var(--t-line-strong);border-radius:10px;background:var(--t-surface-2);color:var(--t-ink);font-size:18px;font-weight:750;cursor:pointer}
.dash-earnings .secondary-action:not(:disabled):hover,.dash-earnings .earn-retry:hover{border-color:var(--t-brand)}
.dash-earnings .earn-retry{justify-self:start}
.dash-earnings .error{margin-bottom:18px;padding:14px 16px;border:2px solid var(--t-bad-line);border-radius:10px;background:var(--t-bad-bg);color:var(--t-bad);font-weight:700}
.dash-earnings th{border-top:0}
.dash-earnings td small{margin-top:0}
.dash-earnings tbody tr:nth-child(even){background:var(--t-surface-2)}
/* the rest of the report in its own part under the net, shut until whoever is looking opens it: the bar that opens it
   says what is in it, and turns its arrow down when open */
.dash-earnings .earn-rest__summary{display:flex;align-items:center;gap:14px;min-height:56px;padding:12px 22px;border:1px solid var(--t-line-strong);border-radius:var(--t-radius);background:var(--t-surface-2);color:var(--t-ink);font-size:18px;font-weight:750;line-height:1.35;cursor:pointer;list-style:none}
.dash-earnings .earn-rest__summary::-webkit-details-marker{display:none}
.dash-earnings .earn-rest__summary::before{content:"";flex:none;width:10px;height:10px;margin-left:2px;border-right:2px solid var(--t-ink-2);border-bottom:2px solid var(--t-ink-2);transform:rotate(-45deg);transition:transform .15s ease}
.dash-earnings .earn-rest[open] > .earn-rest__summary::before{transform:rotate(45deg)}
.dash-earnings .earn-rest__summary:hover{border-color:var(--t-brand)}
.dash-earnings .earn-rest__body{display:grid;gap:20px;margin-top:20px}
@media (prefers-reduced-motion:reduce){.dash-earnings .earn-rest__summary::before{transition: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 system's health */
.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)}

/* tables: an amber header band, the row under the pointer marked in blue */
.table-wrap{overflow:auto}
table{width:100%;border-collapse:collapse;font-size:17px;font-variant-numeric:tabular-nums}
th,td{padding:14px 18px;border-bottom:1px solid var(--t-line);text-align:left;vertical-align:top;white-space:nowrap}
th{border-top:1px solid rgba(242,169,59,.22);border-bottom:1px solid var(--t-th-line);background:var(--t-th-bg);color:var(--t-accent);font-size:16px;font-weight:800}
td small,td .muted{display:block;margin-top:4px;color:var(--t-ink-2);font-size:16px}
.empty,.error-state{padding:28px 0;color:var(--t-ink-2);text-align:center}
.error-state{color:var(--t-bad);font-weight:700}

/* models and loss profile */
.model-bar{height:10px;min-width:100px;border-radius:9px;background:var(--t-surface-3);overflow:hidden}
.model-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--t-violet-fill),var(--t-brand))}
.models-panel .po3-note{line-height:1.6}
.model-diagnostics{border-top:1px solid var(--t-line)}
.model-diagnostics>summary{padding:16px 24px;color:var(--t-ink);font-weight:750;cursor:pointer}
.model-diagnostics>summary:hover{color:var(--t-accent)}
.risk-panel{container:risk / inline-size}
.risk-bars{display:grid;grid-template-columns:minmax(0,1fr);column-gap:56px;padding:16px 24px 22px}
/* a wide panel: the measures in two columns, the legend under both */
@container risk (min-width: 980px){.risk-bars{grid-template-columns:repeat(2,minmax(0,1fr))}.risk-legend{grid-column:1 / -1}}
.risk-row{display:grid;grid-template-columns:150px 1fr 76px;align-items:center;gap:14px;padding:10px 0}
.risk-row span{color:var(--t-ink-2);font-size:17px}
.risk-track{position:relative;height:12px;border-radius:10px;background:var(--t-surface-3);overflow:hidden}
.risk-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#14704f,var(--t-good-fill))}
/* the recent figure: an outline over the full history's bar -- green, red once it has risen past it (20261018bz) */
.risk-track u{position:absolute;left:0;top:0;height:100%;border:2px solid #b4f5d9;border-radius:inherit;background:rgba(40,216,155,.16);box-sizing:border-box}
.risk-item.is-rising .risk-track u{border-color:var(--t-bad-fill);background:rgba(239,101,116,.2)}
.risk-row b{text-align:right;font-size:17px}
.risk-recent{color:var(--t-good);font-size:16px}
.risk-item.is-rising .risk-recent{color:var(--t-bad)}
.risk-note{grid-column:1/-1;padding:0 0 4px 164px;color:var(--t-ink-2);font-size:16px}
.risk-legend{margin-top:8px;padding:12px 0 0;border-top:1px solid var(--t-line)}

/* alerts and news */
.feed{height:340px;overflow:auto;padding:4px 24px}
.feed-item{padding:16px 0;border-bottom:1px solid var(--t-line)}
.feed-item:last-child{border-bottom:0}
.feed-item-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.feed-item strong{font-size:18px}
.feed-item p{margin:6px 0;color:var(--t-ink-2);font-size:17px}
.feed-item small{color:var(--t-ink-2);font-size:16px}
.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}
.severity.info{border-color:var(--t-info-line);background:var(--t-info-bg);color:var(--t-info)}
.severity.warning{border-color:var(--t-accent-line);background:var(--t-accent-bg);color:var(--t-accent)}
.severity.critical,.severity.error{border-color:var(--t-bad-line);background:var(--t-bad-bg);color:var(--t-bad)}
/* 20261027dn: severity as low, medium or high */
.severity.low{border-color:var(--t-info-line);background:var(--t-info-bg);color:var(--t-info)}
.severity.medium{border-color:var(--t-accent-line);background:var(--t-accent-bg);color:var(--t-accent)}
.severity.high{border-color:var(--t-bad-line);background:var(--t-bad-bg);color:var(--t-bad)}
/* 20261027do: "no issue recorded" -- routine work, nothing to act on */
.severity.none{border-color:var(--t-good-line);background:var(--t-good-bg);color:var(--t-good)}
.source-label{color:var(--t-info);font-size:16px;font-weight:800}
.audit-panel{margin-bottom:20px}
.audit-panel .table-wrap{max-height:380px}

/* Goldbach PO3 */
.po3-panel{margin-bottom:24px}
.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)}
/* the levels' names on two rows, every other one lower (20261017bp), so 97% and 100% -- or 47%, 50% and 53% --
   never run together; the first and last sit inside the bar's ends */
.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%)}
/* each level's dot in its legend colour: liquidity blue, flow purple, rebalance amber, equilibrium green */
.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)}
.cluster-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:22px 24px 14px;border-top:1px solid var(--t-line)}
.cluster-head h3{margin:0;font-size:var(--t-fs-h3);font-weight:800}
.cluster-head>div:last-child{text-align:right}
.cluster-head strong{display:block;color:var(--t-info);font-size:30px;font-weight:800}
.cluster-head small{color:var(--t-ink-2);font-size:16px}
.cluster-stats{display:flex;flex-wrap:wrap;gap:8px 24px;padding:0 24px 16px;color:var(--t-ink-2);font-size:17px}
.cluster-stats span:first-child{color:var(--t-ink);font-weight:750}
.cluster-table{max-height:360px}
.cluster-direction{display:inline-flex;align-items:center;min-height:30px;padding:0 10px;border-radius:999px;font-size:16px;font-weight:800}
.cluster-direction.bullish{background:var(--t-good-bg);color:var(--t-good)}
.cluster-direction.bearish{background:var(--t-bad-bg);color:var(--t-bad)}

footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px 32px;max-width:1560px;margin:0 auto;padding:24px clamp(16px,3vw,40px) 40px;border-top:1px solid var(--t-line);color:var(--t-ink-2);font-size:17px}

@media (max-width:1180px){
  /* five figures on a narrower screen: three, then two at half width -- both rows full (20261017bp) */
  .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}
  .primary-grid,.secondary-grid,.intelligence-grid{grid-template-columns:1fr}
}
@media (max-width:760px){
  main{padding-top:24px}
  .page-heading{flex-direction:column;align-items:stretch}
  .controls{width:100%}
  .controls label{flex:1 1 180px}
  .controls select{width:100%}
  .controls button{flex:1 1 auto}
  .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}
  .panel-head{padding:16px 18px}
  .panel-head-actions{align-items:flex-start}
  .chart-wrap{min-height:280px}
  .system-score{padding:18px}
  .status-list,.source-health,.risk-bars,.feed{padding-left:18px;padding-right:18px}
  .risk-row{grid-template-columns:1fr 64px}
  .risk-row .risk-track{grid-column:1/-1;grid-row:2}
  .risk-note{padding-left:0}
  .po3-summary{grid-template-columns:1fr}
  .po3-summary article{border-right:0;border-bottom:1px solid var(--t-line)}
  /* a phone: the ends and the middle only; the table below names every level */
  .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}
  footer{padding:20px 16px 32px}
}
/* a phone: one figure to a row, each on one line at full size rather than broken in two */
@media (max-width:480px){
  .metric-strip{grid-template-columns:1fr}
  .metric-strip strong{font-size:clamp(24px,16cqi,36px)}
}
