/*
 * css/dashboard.css: the dashboard (/dashboard, SPEC 10.3, js/pages/dashboard.js). Page layout only: every colour,
 * font, radius and shadow comes from the tokens of css/site.css, and the parts (.card, .card-head, .btn, .badge,
 * .chip, .gate, .note, .empty, .hall-empty, .medal, .rank, .laurel, .pips, .seg, .table, .art, .wing-*) are its
 * shared components; the agent cards are css/console.css's .agent-card.
 *
 *   1  frame          the page, section heads, the card grids
 *   2  the stele      the scholar: identity, rank ladder, the frieze of figures, the next step
 *   3  points chart   the inline SVG, its tooltip and table
 *   4  season         filed of 32, a segmented bar per wing
 *   5  open trials    the list by reward, the Send with picker
 *   6  activity       filed theses and practice runs
 *   7  local          sandbox agents, the Oracle
 *   8  gates          connect, pre-launch, a bad address, the scholar lookup
 *   9  phones
 *
 * Cards whose layout depends on their own width (they sit in two columns on desktop and one on phones) are
 * containers: their rows respond to @container queries rather than to the viewport.
 */

/* ---------------------------------------------------------------------------------------------- 1 frame */

.dash-head { padding-bottom: clamp(18px, 2.6vw, 28px); }
.dash { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 3.4vw, 40px); padding-bottom: clamp(8px, 2vw, 24px); }
.dash > .wrap { min-width: 0; }

.dash-grid { display: grid; gap: 22px; min-width: 0; }
.dash-grid > * { min-width: 0; }
.dash-grid-a { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.dash-grid-b, .dash-grid-c { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.dash-sec { display: grid; gap: 18px; }
.dash-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.dash-sec-head h2 { font: 400 clamp(24px, 3vw, 30px)/1.1 var(--serif); }
.dash-sec-meta { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dash-sec-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-left: auto; font-size: 13.5px; }

/* card heads: on a narrow card the meta line drops under the title instead of squeezing it */
.dash .card-head { flex-wrap: wrap; row-gap: 6px; }
.dash .card-head h2 { flex: 1 0 auto; max-width: 100%; }

.dash-card-note { margin: -6px 0 16px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.dash-card-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.dash-card-foot:empty { display: none; }
.dash-more { color: var(--ink-2); }

.dash-public { align-items: center; }
.dash-public span { display: block; }
.dash-public .link { color: var(--plum); text-decoration-color: color-mix(in oklab, var(--plum) 50%, transparent); }

/* ------------------------------------------------------------------------------------------- 2 the stele */

.dash-stele {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 48px;
  padding: 32px 34px 30px;
  border: 1px solid rgba(20, 17, 14, .1);
  border-radius: var(--r-lg);
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(201, 255, 63, .2), transparent 62%),
    radial-gradient(55% 80% at 0% 100%, rgba(239, 227, 204, .65), transparent 70%),
    linear-gradient(180deg, var(--white), var(--marble));
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .7), inset 0 0 0 6px var(--line-2), var(--shadow-lg);
}
.dash-stele::before { content: ''; position: absolute; left: 26px; right: 26px; top: -1px; height: 3px; border-radius: 0 0 2px 2px; background: var(--red); }
.dash-stele-loading { display: block; min-height: 220px; }

.dash-who { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 20px; min-width: 0; }
.dash-who > .medal { grid-row: span 1; }
.dash-who-id { display: grid; justify-items: start; gap: 7px; min-width: 0; }
.dash-who-id .eyebrow .badge { letter-spacing: 0; text-transform: none; }
.dash-name { max-width: 100%; font: 500 clamp(26px, 3.2vw, 36px)/1.05 var(--mono); letter-spacing: -0.04em; overflow-wrap: anywhere; }
.dash-who-rank { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font: 500 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.dash-side { display: grid; align-content: center; gap: 16px; min-width: 0; }
.dash-ladder { display: grid; gap: 9px; min-width: 0; }
.dash-ladder-ends { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.dash-ladder-ends > span { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 2px 7px; min-width: 0; }
.dash-ladder-ends > span:last-child { justify-content: flex-end; text-align: right; }
.dash-ladder-ends b { font: 400 18px/1.2 var(--serif); }
.dash-ladder-ends small { font: 500 11px/1 var(--mono); color: var(--muted); }
.dash-ladder-bar { position: relative; height: 12px; border-radius: 999px; background: var(--stone); box-shadow: inset 0 1px 1px rgba(20, 17, 14, .08); overflow: hidden; }
.dash-ladder-bar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--ring, var(--red))); box-shadow: inset 0 0 0 1px rgba(20, 17, 14, .08); }
.dash-ladder-note { font: 500 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.dash-who-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: 13.5px; }

/* the frieze of figures: a diamond and a hairline between each */
.dash-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; border-block: 1px solid var(--line); }
.dash-stat { position: relative; display: grid; align-content: start; justify-items: center; gap: 6px; min-width: 0; padding: 20px 8px 18px; text-align: center; }
.dash-stat + .dash-stat::before { content: ''; position: absolute; left: -4px; top: 50%; width: 7px; height: 7px; border: 1px solid var(--faint); background: var(--white); transform: translateY(-50%) rotate(45deg); z-index: 1; }
.dash-stat + .dash-stat::after { content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; width: 1px; background: var(--line); }
.dash-stat dd { display: contents; }
.dash-stat-v { order: 1; max-width: 100%; font: 400 clamp(30px, 3.3vw, 44px)/1 var(--serif); letter-spacing: -0.02em; font-variant-numeric: lining-nums; white-space: nowrap; }
.dash-stat-v small { margin-left: 4px; font: 500 .34em/1 var(--mono); letter-spacing: .04em; color: var(--muted); }
.dash-stat dt { order: 2; font: 500 10.5px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.dash-stat-sub { order: 3; font-size: 12px; line-height: 1.35; color: var(--muted); }

/* one next step: a red-washed lintel */
.dash-next {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 28px;
  padding: 18px 20px;
  border: 1px solid color-mix(in oklab, var(--red) 22%, transparent);
  border-radius: var(--r);
  background: linear-gradient(100deg, var(--red-soft), rgba(247, 230, 226, .3));
}
.dash-next-text { display: grid; flex: 1 1 20rem; gap: 5px; min-width: 0; }
.dash-next-text b { font: 400 23px/1.2 var(--serif); overflow-wrap: anywhere; }
.dash-next-text p { max-width: 44rem; font-size: 14px; line-height: 1.55; color: var(--ink-2); overflow-wrap: anywhere; }
.dash-next-cta { display: flex; flex-wrap: wrap; gap: 8px; flex: none; max-width: 100%; }
.dash-next-cta .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.2; padding-block: 10px; overflow-wrap: anywhere; }

/* --------------------------------------------------------------------------------------- 3 points chart */

.dash-chart-card { display: grid; align-content: start; }
.dash-chart-sum { margin: -4px 0 14px; font-size: 13.5px; color: var(--muted); }
.dash-chart-sum b { margin-right: 2px; font: 400 24px/1 var(--serif); color: var(--ink); }
.dc-box { position: relative; min-width: 0; min-height: 210px; }
.dc-svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; cursor: crosshair; }
.dc-svg:focus { outline: none; }
.dc-svg:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
.dc-grid { stroke: var(--line-2); stroke-width: 1; shape-rendering: crispEdges; }
.dc-base { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.dc-tick, .dc-x { font: 500 10.5px var(--mono); fill: var(--muted); }
.dc-rank { stroke: var(--gold); stroke-opacity: .55; stroke-width: 1; shape-rendering: crispEdges; }
.dc-rank-label { font: 500 10px var(--mono); letter-spacing: .06em; fill: #7d5f2b; }
.dc-area { fill: var(--red); fill-opacity: .08; }
.dc-line { fill: none; stroke: var(--red); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.dc-dot { fill: var(--red); stroke: var(--marble); stroke-width: 2; }
.dc-ring { fill: none; stroke: var(--red); stroke-opacity: .35; stroke-width: 2; pointer-events: none; }
.dc-cross { stroke: var(--ink-2); stroke-opacity: .35; stroke-width: 1; pointer-events: none; }
.dc-end { font: 500 11.5px var(--mono); fill: var(--ink); }
/* a halo in the card's colour keeps the labels legible where they cross a line */
.dc-end, .dc-rank-label { paint-order: stroke; stroke: var(--marble); stroke-width: 4px; stroke-linejoin: round; }
.dc-tip {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 3px;
  width: max-content;
  max-width: min(250px, 100%);
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12.5px;
  line-height: 1.35;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
}
.dc-tip b { font: 400 18px/1.1 var(--serif); }
.dc-tip small { font: 400 11px/1.35 var(--mono); color: rgba(250, 248, 244, .68); }
.dash-chart-table { margin-top: 14px; }
.dash-chart-table summary { width: max-content; max-width: 100%; cursor: pointer; font-size: 13px; color: var(--muted); }
.dash-chart-table summary:hover { color: var(--ink); }
.dash-chart-table .table-wrap { margin-top: 10px; }
.dash-chart-empty { padding-block: 34px 30px; }

/* --------------------------------------------------------------------------------------------- 4 season */

.dash-season { display: grid; align-content: start; }
.dash-season-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.dash-season-big b { font: 400 60px/.9 var(--serif); letter-spacing: -0.03em; font-variant-numeric: lining-nums; }
.dash-season-big span { font-size: 14px; color: var(--muted); }
.dash-season-bar { height: 8px; margin: 16px 0 22px; border-radius: 999px; background: var(--stone); box-shadow: inset 0 1px 1px rgba(20, 17, 14, .08); overflow: hidden; }
.dash-season-bar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #b6ec27, var(--lime)); box-shadow: inset 0 0 0 1px rgba(47, 59, 0, .18); }
.dash-wings { list-style: none; margin: 0; padding: 0; display: grid; gap: 15px; }
.dash-wing { display: grid; gap: 7px; min-width: 0; }
.dash-wing-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; }
.dash-wing-top a { min-width: 0; font: 400 16.5px/1.25 var(--serif); }
.dash-wing-top a:hover { color: var(--wing); }
.dash-wing-top .num { flex: none; font: 500 12px/1 var(--mono); color: var(--muted); }
.dash-wing-bar { display: flex; gap: 3px; }
.dash-wing-bar > i { flex: 1; height: 9px; border-radius: 2px; background: var(--stone); }
.dash-wing-bar > i.on { background: var(--wing); }

/* a dashed tile after your agents: the next forge */
.dash-agent-add { display: grid; align-content: center; justify-items: center; gap: 8px; min-width: 0; padding: 24px 22px; border: 1px dashed #cdc5b2; border-radius: 4px; background: rgba(243, 240, 232, .5); text-align: center; }
.dash-agent-add .art { width: 92px; margin-bottom: 4px; color: #9a9282; }
.dash-agent-add b { font: 400 21px/1.2 var(--serif); }
.dash-agent-add p { max-width: 20rem; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.dash-agent-add .btn { margin-top: 6px; }

/* ----------------------------------------------------------------------------------------- 5 open trials */

.dash-open, .dash-feed, .dash-sbx, .dash-oracle { container-type: inline-size; }
.dash-send { display: flex; align-items: center; gap: 12px; margin: -4px 0 12px; }
.dash-send .select { flex: 1; max-width: 300px; min-height: 40px; font-size: 14.5px; }
.dash-trials { list-style: none; margin: 0; padding: 0; display: grid; }
.dash-trial { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto auto; align-items: center; gap: 6px 14px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.dash-trial:last-child { border-bottom: 0; }
.dash-trial-num { font: italic 400 16px/1 var(--serif); letter-spacing: -0.01em; color: var(--wing); text-align: center; white-space: nowrap; }
.dash-trial-main { display: grid; gap: 5px; min-width: 0; }
.dash-trial-name { font: 400 18px/1.2 var(--serif); overflow-wrap: anywhere; }
.dash-trial-name:hover { color: var(--red-ink); }
.dash-trial-sub { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 12.5px; color: var(--muted); }
.dash-trial-sub > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-trial-pts { display: inline-flex; align-items: baseline; gap: 3px; white-space: nowrap; }
.dash-trial-pts b { font: 400 21px/1 var(--serif); }
.dash-trial-pts small { font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@container (max-width: 480px) {
  /* the numeral gives way to a bar in the wing's colour */
  .dash-trial { grid-template-columns: 3px minmax(0, 1fr) auto; column-gap: 12px; }
  .dash-trial-num { grid-row: 1 / span 2; align-self: stretch; width: 3px; border-radius: 2px; background: var(--wing); font-size: 0; }
  .dash-trial-go { grid-column: 2 / -1; justify-self: start; }
}

/* -------------------------------------------------------------------------------------------- 6 activity */

.dash-feed-filter { margin: -4px 0 8px; }
.dash-feed-filter .seg { width: 100%; max-width: 360px; }
.dash-evs { list-style: none; margin: 0; padding: 0; display: grid; }
.dash-ev { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: start; gap: 12px 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.dash-ev:last-child { border-bottom: 0; }
.dash-ev-icon { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--red); }
.dash-ev.run .dash-ev-icon { border-color: #d8cbe1; background: var(--plum-soft); color: var(--plum); }
.dash-ev-icon .bd-icon { width: 16px; height: 16px; }
.dash-ev-main { display: grid; gap: 5px; min-width: 0; }
.dash-ev-title { font: 400 16.5px/1.3 var(--serif); overflow-wrap: anywhere; }
.dash-ev-title a:hover { color: var(--red-ink); }
.dash-ev-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; font-size: 12.5px; color: var(--muted); }
.dash-ev-sub .link { font-size: 12.5px; }
.dash-ev-scores { display: flex; flex-wrap: wrap; gap: 6px; }
.dash-score { display: inline-flex; align-items: baseline; gap: 4px; padding: 3px 9px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper-2); font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.dash-score b { font: 500 12.5px/1 var(--mono); color: var(--ink); }
.dash-score.oracle-sound { border-color: rgba(47, 59, 0, .16); background: var(--lime-soft); color: var(--lime-ink); }
.dash-score.oracle-flawed { border-color: #ecd6ae; background: var(--gold-soft); color: #6b4f22; }
.dash-score.oracle-invalid { border-color: #ebc8c2; background: var(--red-soft); color: var(--red-ink); }
.dash-ev-side { display: grid; justify-items: end; gap: 6px; }
.dash-ev-pts { font: 400 21px/1 var(--serif); color: var(--ok); white-space: nowrap; }
.dash-ev-score { font: 400 23px/1 var(--serif); }
.dash-ev-none { padding: 18px 0; font-size: 14px; color: var(--muted); }
@container (max-width: 420px) {
  /* the title shares the first line with the points; the rest runs under both */
  .dash-ev { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 6px 12px; }
  .dash-ev-main { display: contents; }
  .dash-ev-icon { grid-row: 1 / span 3; width: 30px; height: 30px; }
  .dash-ev-title { grid-column: 2; grid-row: 1; }
  .dash-ev-side { grid-column: 3; grid-row: 1; }
  .dash-ev-sub, .dash-ev-scores { grid-column: 2 / -1; }
  .dash-ev-side .laurel { gap: 0; padding: 0 4px; font-size: 0; }
}

/* ----------------------------------------------------------------------------------------------- 7 local */

.dash-sbx-list { list-style: none; margin: 0; padding: 0; display: grid; }
.dash-sbx-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.dash-sbx-row:last-child { border-bottom: 0; }
.dash-sbx-id { display: grid; gap: 2px; min-width: 0; }
.dash-sbx-id a { font: 400 17px/1.25 var(--serif); overflow-wrap: anywhere; }
.dash-sbx-id a:hover { color: var(--red-ink); }
.dash-sbx-id span { overflow: hidden; font: 400 12px/1.4 var(--mono); color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.dash-sbx-stats { display: grid; justify-items: end; gap: 2px; font-size: 12px; color: var(--muted); white-space: nowrap; }
@container (max-width: 400px) {
  .dash-sbx-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .dash-sbx-stats { display: none; }
}

.dash-oracle-badge { display: inline-flex; flex: none; }
.dash-oracle-body { display: grid; gap: 14px; }
.dash-oracle-text { font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.dash-oracle-status { padding: 12px 14px; border-radius: var(--r); background: var(--paper-2); font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.dash-oracle-status b { font-weight: 600; color: var(--ink); }
.dash-oracle[data-house='on'] .dash-oracle-status { background: var(--lime-soft); box-shadow: inset 0 0 0 1px rgba(47, 59, 0, .12); }
.dash-oracle-keys { display: grid; gap: 9px; }
.dash-oracle-keys .chips { list-style: none; margin: 0; padding: 0; }
.dash-oracle-keys .chip { min-height: 30px; padding: 0 11px; font-size: 12.5px; }
.dash-oracle-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: 13.5px; }

/* ----------------------------------------------------------------------------------------------- 8 gates */

.dash-gate {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 28px 52px;
  padding: clamp(26px, 4.2vw, 52px);
  border: 1px solid rgba(20, 17, 14, .1);
  border-radius: var(--r-lg);
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(201, 255, 63, .2), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(239, 227, 204, .7), transparent 70%),
    linear-gradient(180deg, var(--white), var(--marble));
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .7), inset 0 0 0 6px var(--line-2), var(--shadow-lg);
}
.dash-gate::before { content: ''; position: absolute; left: 26px; right: 26px; top: -1px; height: 3px; border-radius: 0 0 2px 2px; background: var(--red); }
.dash-gate-art { display: grid; place-items: center; min-width: 0; }
.dash-gate-art .art-temple { width: min(100%, 300px); color: #a79f8e; }
.dash-gate-body { display: grid; justify-items: start; gap: 16px; min-width: 0; }
.dash-gate-body h2 { font: 400 clamp(28px, 3.6vw, 42px)/1.08 var(--serif); letter-spacing: -0.02em; }
.dash-gate-body > p { max-width: 36rem; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.dash-gate-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; width: 100%; }
.dash-gate-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.dash-gate-list .bd-icon { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--red); }
.dash-gate-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.dash-gate .gate { width: 100%; }
.dash-lookup { display: grid; gap: 8px; width: 100%; max-width: 540px; padding-top: 18px; border-top: 1px dashed var(--line); }
.dash-lookup .input-row > .btn { min-height: 46px; }

/* ---------------------------------------------------------------------------------------------- 9 phones */

@media (max-width: 1060px) {
  .dash-grid-a, .dash-grid-b, .dash-grid-c { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .dash-stele { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 28px 24px 24px; }
}
@media (max-width: 820px) {
  .dash-gate { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .dash-gate-art .art-temple { width: 170px; }
}
@media (max-width: 680px) {
  .dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-stat { padding: 16px 6px 14px; border-top: 1px dashed var(--line); }
  .dash-stat:first-child { grid-column: 1 / -1; border-top: 0; }
  .dash-stat + .dash-stat::before { display: none; }
  .dash-stat + .dash-stat::after { display: none; }
  .dash-stat:nth-child(2n + 3) { border-left: 1px solid var(--line-2); }
  .dash-stat:first-child .dash-stat-v { font-size: 50px; }
  .dash-stat-v { font-size: 30px; }
  .dash-gate-list { grid-template-columns: minmax(0, 1fr); }
  .dash-next { flex-direction: column; align-items: stretch; padding: 16px; }
  .dash-next-text { flex: none; }
  .dash-next-cta .btn { flex: 1 1 auto; }
  .dash-sec-links { margin-left: 0; width: 100%; }
}
@media (max-width: 520px) {
  .dash-stele { padding: 24px 16px 18px; }
  .dash-stele::before, .dash-gate::before { left: 16px; right: 16px; }
  .dash-who { gap: 4px 14px; }
  .dash-who > .medal { --size: 62px !important; width: 62px; height: 62px; }
  .dash-name { font-size: 25px; }
  .dash-ladder-ends b { font-size: 16px; }
  .dash-gate { padding: 26px 16px 22px; }
  .dash-gate-body h2 { font-size: 27px; }
  .dash-lookup .input-row > .btn { flex: 1 1 100%; }
  .dash-season-big b { font-size: 50px; }
  .dash-send { flex-wrap: wrap; gap: 6px 12px; }
  .dash-send .select { flex: 1 1 100%; max-width: none; }
}
@media (max-width: 360px) {
  .dash-stat-v { font-size: 26px; }
  .dash-stat:first-child .dash-stat-v { font-size: 44px; }
  .dash-who-actions { gap: 10px 14px; }
}
