/* ==========================================================================
   Real-data pages (agent B) — design system v2: league tables, results, team
   pages, leaderboard, my stats, and the Form / H2H / Table panes of the match
   centre. Flat cards (1px border, radius 10, no shadow), Inter scale, tokens only.
   ========================================================================== */
:root {
  --b-mint: var(--accent, #5ce1ad);
  --b-mint-hover: var(--accent-hover, #74eabd);
  --b-mint-ink: var(--accent-text, #5ce1ad);
  --b-mint-soft: var(--accent-soft, rgba(92, 225, 173, .14));
  --b-on-mint: var(--on-accent, #062417);
  --b-live: var(--live, #ff4d4f);
}
:root {
  --b-border: var(--border, var(--line));
  --b-border-strong: var(--border-strong, var(--line-strong));
  --b-pri-ink: var(--b-mint-ink);
  --b-acc-ink: var(--b-mint-ink);
  --b-warn: var(--warning, var(--warn));
  --b-ok-soft: color-mix(in srgb, var(--success) 13%, var(--surface));
  --b-bad-soft: color-mix(in srgb, var(--danger) 11%, var(--surface));
  --b-ease: cubic-bezier(.2, .7, .2, 1);
}

.page-data .main > * + * { margin-top: 16px; }
.page-data .main > .crumbs + * { margin-top: 0; }
.page-data .main { font-variant-numeric: tabular-nums; }
.dx-crumbs span[aria-current] { color: var(--text); font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* calm motion guard (DESIGN_V2 §5) */
.page-data :is(.dx-card, .card, .dx-pod, .dx-kpi, .res-line, .btn):is(:hover, :active) { transform: none !important; }
.page-data .fx-pre { opacity: 1 !important; transform: none !important; }
.dx-seg > .fx-ind, .dx-seg > .fx-hov { display: none !important; }

/* ---------- page head, segmented control, chips --------------------------- */
.dx-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.dx-page-head > div:first-child { min-width: 0; flex: 1 1 280px; }
.dx-page-head h1 { margin: 0; font-size: 28px; line-height: 36px; font-weight: 700; letter-spacing: 0; }
.dx-lede, .dx-page-head .lede { margin: 4px 0 0; font-size: 14px; line-height: 22px; color: var(--text-2); max-width: 68ch; }
.dx-page-head .btn { min-height: 40px; border-radius: 8px; }
.dx-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--b-border); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.dx-seg::-webkit-scrollbar { display: none; }
.dx-seg-btn, .dx-seg > .tab { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); text-decoration: none; white-space: nowrap; background: transparent; border: 0; box-shadow: none; transition: background-color .15s var(--b-ease), color .15s var(--b-ease); }
.dx-seg-btn:hover, .dx-seg > .tab:hover { color: var(--text); background: transparent; }
.dx-seg-btn.is-active, .dx-seg > .tab.is-active { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px transparent, 0 0 0 1px var(--b-border); }
.dx-chips { position: relative; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 1px; -webkit-overflow-scrolling: touch; }
.dx-chips::-webkit-scrollbar { display: none; }
.dx-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--b-border); color: var(--text-2); font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color .15s var(--b-ease), border-color .15s var(--b-ease); }
.dx-chip .icon { width: 16px; height: 16px; }
.dx-chip:hover { border-color: var(--b-border-strong); color: var(--text); }
.dx-chip[aria-current="page"] { background: var(--b-mint-soft); border-color: color-mix(in srgb, var(--b-mint) 40%, var(--b-border)); color: var(--b-pri-ink); font-weight: 600; }
.dx-chip-count { font-size: 11px; font-weight: 600; color: var(--muted); }
.dx-chip[aria-current="page"] .dx-chip-count { color: inherit; }
.dx-notice { margin: 0; }

/* ---------- hero (league / team / my stats) --------------------------------- */
.dx-hero {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 16px 20px;
  min-height: 0; padding: 20px; border-radius: 10px; background: var(--surface); border: 1px solid var(--b-border);
  color: var(--text); box-shadow: none;
}
.dx-hero::before, .dx-hero::after { content: none; }
.dx-hero-art { display: none; }
.dx-hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.dx-hero.has-photo { min-height: 168px; border-color: transparent; color: #fff; }
.dx-hero.has-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 10, 20, .92) 0%, rgba(12, 10, 20, .84) 50%, rgba(12, 10, 20, .7) 100%); }
.dx-hero.has-photo .dx-hero-img { filter: saturate(.7); }
.dx-hero-badge { position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--surface); border: 1px solid var(--b-border); color: var(--text-2); }
.dx-hero-badge img { width: 46px; height: 46px; object-fit: contain; }
.dx-hero-badge .icon { width: 30px; height: 30px; }
.dx-hero-badge b { font-size: 16px; font-weight: 700; color: var(--text); }
.dx-hero.has-photo .dx-hero-badge { background: #fff; border-color: rgba(255, 255, 255, .6); }
.dx-hero.has-photo .dx-hero-badge b { color: #15131f; }
.dx-hero-copy { position: relative; z-index: 1; min-width: 0; flex: 1 1 auto; }
.dx-hero h1 { margin: 2px 0 0; color: inherit; font-size: 28px; line-height: 36px; font-weight: 700; letter-spacing: 0; overflow-wrap: normal; }
.dx-eyebrow { margin: 0; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 12px; line-height: 18px; font-weight: 500; color: var(--text-2); }
.dx-hero.has-photo .dx-eyebrow { color: rgba(255, 255, 255, .86); }
.dx-hero-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dx-hero .stat-chip { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--b-border); color: var(--text-2); font-size: 12px; font-weight: 500; text-decoration: none; box-shadow: none; }
.dx-hero .stat-chip b { color: var(--text); font-weight: 600; }
.dx-hero .stat-chip.is-live { background: var(--b-mint-soft); border-color: transparent; color: var(--b-acc-ink); }
.dx-hero .stat-chip.is-live b { color: inherit; }
.dx-hero.has-photo .stat-chip { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .9); }
.dx-hero.has-photo .stat-chip b { color: #fff; }
.dx-hero-act { position: relative; z-index: 1; align-self: center; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.dx-hero-act .pin-btn { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--b-border); background: var(--surface); color: var(--text-2); display: grid; place-items: center; }
.dx-follow { min-height: 40px; padding: 0 16px; border-radius: 8px; background: var(--b-mint); color: var(--b-on-mint); border: 1px solid var(--b-mint); font-weight: 600; font-size: 14px; box-shadow: none; }
.dx-follow:hover { background: var(--b-mint-hover); color: var(--b-on-mint); }
.dx-follow.is-on { background: var(--surface); color: var(--text); border-color: var(--b-border-strong); }
.dx-follow.is-on .icon { fill: currentColor; color: var(--b-mint); }
.dx-follow-note { font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; }
.dx-hero.has-photo .dx-follow-note { color: rgba(255, 255, 255, .82); }

/* ---------- layout + cards ------------------------------------------------ */
.dx-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; align-items: start; }
.page-competition .dx-cols { grid-template-columns: minmax(0, 1fr); }
.dx-stack { display: grid; gap: 16px; min-width: 0; }
.dx-card, .page-data .dx-card.card { padding: 0; min-width: 0; background: var(--surface); border: 1px solid var(--b-border); border-radius: 10px; box-shadow: none; }
.dx-card-head { display: flex; align-items: center; gap: 8px 12px; min-height: 52px; padding: 10px 16px; border-bottom: 1px solid var(--b-border); min-width: 0; }
.dx-card-head h2 { margin: 0 auto 0 0; font-size: 15px; line-height: 22px; font-weight: 600; letter-spacing: 0; min-width: 0; }
.dx-card-head .dx-tile { display: none; }
.dx-card > :not(.dx-card-head):not(.st-wrap):not(.res-list):not(.table-wrap):not(.dx-comp-band) { margin-left: 16px; margin-right: 16px; }
.dx-card > :last-child:not(.res-list):not(.st-wrap):not(.table-wrap) { margin-bottom: 16px; }
.dx-card > .dx-card-head + :not(.res-list):not(.st-wrap):not(.table-wrap):not(.dx-comp-band) { margin-top: 14px; }
.dx-tile { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--b-border); color: var(--text-2); flex: none; }
.dx-tile .icon { width: 18px; height: 18px; }
.dx-tile.is-accent { color: var(--b-acc-ink); }
.dx-count, .page-data .count-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--b-border); font-size: 12px; font-weight: 600; color: var(--text-2); }
.dx-updated, .dx-date { font-size: 12px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.dx-date { margin-left: 4px; }
.dx-more { display: inline-flex; align-items: center; gap: 2px; min-height: 36px; font-size: 13px; font-weight: 600; color: var(--b-pri-ink); text-decoration: none; white-space: nowrap; }
.dx-more:hover { text-decoration: underline; }
.dx-note { display: flex; gap: 8px; align-items: flex-start; margin: 12px 16px 0; padding: 8px 12px; border-radius: 8px; background: var(--surface-2); color: var(--text-2); font-size: 12px; line-height: 18px; }
.dx-note .icon { margin-top: 2px; flex: none; color: var(--muted); }
.dx-source { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.dx-card > .dx-source { margin-top: 10px; }
.dx-source a { color: inherit; }
.page-data .card.fixtures { padding-bottom: 0; }
.dx-empty, .page-data .empty-state.empty-inline { display: flex; gap: 14px; align-items: flex-start; text-align: left; padding: 16px; }
.dx-empty-ico, .page-data .empty-inline .icon-circle { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--b-border); color: var(--text-2); }
.dx-empty-ico .icon { width: 20px; height: 20px; }
.dx-empty h3, .page-data .empty-inline h3 { margin: 0; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--text); }
.dx-empty p, .page-data .empty-inline p { margin: 4px 0 0; font-size: 14px; line-height: 22px; color: var(--text-2); max-width: 68ch; }
.dx-empty .btn { margin-top: 12px; }
.page-data .empty-state.empty-inline { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 0; align-items: start; margin: 0 !important; }
.page-data .empty-inline .icon-circle { grid-row: 1 / 3; }
.page-data .empty-inline p { max-width: 68ch; }
.dx-stack > .card + .card, .dx-cols > .card + .card { margin-top: 0; }

/* ---------- standings table (DESIGN_V2 §4) --------------------------------- */
.st-wrap { overflow-x: auto; scrollbar-width: thin; }
.st-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.st-table th, .st-table td { padding: 0 8px; height: 44px; text-align: center; white-space: nowrap; border-bottom: 1px solid var(--b-border); }
.st-table thead th { height: 34px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-radius: 0; }
.st-table thead th:first-child, .st-table tbody td:first-child { padding-left: 16px; }
.st-table thead th:last-child, .st-table tbody td:last-child { padding-right: 16px; }
.st-table abbr { text-decoration: none; cursor: help; }
.st-table tbody tr:last-child > * { border-bottom: 0; }
.st-table tbody tr { transition: background-color .15s var(--b-ease); }
.st-table tbody tr:hover > * { background: var(--surface-2); }
.st-table .st-team { text-align: left; width: 100%; font-weight: 500; }
.st-table tbody .st-team a { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; color: var(--text); text-decoration: none; max-width: 100%; }
.st-table tbody .st-team > .crest, .st-table tbody .st-team a > .crest { display: inline-grid; vertical-align: middle; width: 24px; height: 24px; border-radius: 50%; }
.st-table tbody .st-team > .crest { margin-right: 10px; }
.st-table tbody .st-team a:hover .st-name { color: var(--b-pri-ink); text-decoration: underline; }
.st-name { overflow: hidden; text-overflow: ellipsis; max-width: 26ch; display: inline-block; vertical-align: middle; }
.st-table td { color: var(--text-2); }
.st-rank { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 4px; border-radius: 6px; font-weight: 600; color: var(--text-2); }
.st-rank.is-top { background: var(--b-mint-soft); color: var(--b-pri-ink); }
.st-pts b { font-size: 14px; font-weight: 700; color: var(--text); }
.st-table tbody tr.is-hl > * { background: color-mix(in srgb, var(--b-mint-soft) 70%, var(--surface)); }
.st-table tbody tr.is-hl > :first-child { box-shadow: inset 3px 0 0 var(--b-mint); }
.st-group th { height: 32px; text-align: left; font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--surface-2); }
.st-table.is-compact th, .st-table.is-compact td { padding: 0 6px; }
.st-form { min-width: 132px; }

/* ---------- form chips ------------------------------------------------------ */
.form-chips { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.fc { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; font-size: 11px; font-weight: 700; color: #fff; flex: none; }
.fc a { display: grid; place-items: center; width: 36px; height: 36px; margin: -6px; color: inherit; text-decoration: none; border-radius: 8px; }
.form-chips li.fc { position: relative; }
.fc-w { background: var(--success); }
.fc-l { background: var(--danger); }
.fc-d { background: var(--surface-2); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--b-border-strong); }
.fc-\? { background: var(--surface-2); color: var(--muted); }
[data-theme="dark"] .fc-w, [data-theme="dark"] .fc-l { color: #0f0e15; }
@media (prefers-color-scheme: dark) { html[data-theme="system"] .fc-w, html[data-theme="system"] .fc-l { color: #0f0e15; } }
.form-chips-xs { gap: 3px; flex-wrap: nowrap; }
.form-chips-xs .fc { width: 20px; height: 20px; border-radius: 5px; font-size: 10px; }
.dx-form-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; }
.dx-form-row .muted { font-size: 12px; }

/* ---------- result lines (rows with 1px dividers) ---------------------------- */
.res-list { display: grid; }
.res-line {
  display: grid; grid-template-columns: 92px minmax(0, 1fr) auto minmax(0, 1fr) 28px; align-items: center; gap: 12px;
  min-height: 56px; padding: 8px 16px; color: var(--text); text-decoration: none; border-top: 1px solid var(--b-border);
  transition: background-color .15s var(--b-ease);
}
.res-list > .res-line:first-child { border-top: 0; }
.res-line + .res-line { box-shadow: none; }
.res-line:hover { background: var(--surface-2); }
.res-line:focus-visible { outline: 2px solid var(--b-mint); outline-offset: -2px; }
.res-when { display: grid; gap: 0; font-size: 12px; line-height: 18px; color: var(--muted); min-width: 0; }
.res-comp { display: inline-flex; align-items: center; gap: 5px; min-width: 0; color: var(--text-2); font-weight: 500; }
.res-comp .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.res-comp .comp-badge { width: 16px; height: 16px; flex: none; }
.res-team { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; font-weight: 400; color: var(--text-2); }
.res-team .tname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-team .crest { width: 24px; height: 24px; border-radius: 50%; flex: none; }
.res-home { justify-content: flex-end; text-align: right; }
.res-team.is-win { color: var(--text); font-weight: 600; }
.res-score { position: relative; display: inline-grid; grid-auto-flow: column; align-items: center; gap: 6px; min-width: 64px; justify-content: center; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--b-border); }
.res-score b { font-size: 15px; font-weight: 600; color: var(--text); min-width: 1ch; text-align: center; }
.res-score i { font-style: normal; color: var(--muted); }
.res-note { position: absolute; left: 50%; top: calc(100% + 1px); transform: translateX(-50%); font-size: 10px; font-weight: 600; letter-spacing: .02em; color: var(--muted); white-space: nowrap; }
.res-chev { width: 16px; height: 16px; color: var(--muted); justify-self: end; }
.res-outcome { width: 22px; height: 22px; border-radius: 6px; font-size: 11px; justify-self: end; }

/* results page */
.dx-results { display: grid; gap: 16px; }
.dx-day { overflow: hidden; }
.dx-day .dx-card-head h2 { font-size: 15px; }
.dx-comp-band { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 16px; background: var(--surface-2); border-top: 1px solid var(--b-border); border-bottom: 1px solid var(--b-border); min-width: 0; }
.dx-card-head + .dx-comp-band { border-top: 0; }
.dx-comp-ico .icon { width: 14px; height: 14px; color: var(--muted); display: block; }
.dx-comp-band .comp-badge { width: 18px; height: 18px; flex: none; }
.dx-comp-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 18px; font-weight: 600; color: var(--text-2); text-decoration: none; }
.dx-comp-name:hover { color: var(--b-pri-ink); text-decoration: underline; }
.dx-more-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dx-shown { margin: 0; font-size: 12px; color: var(--muted); }
.dx-load-more { min-height: 40px; min-width: 200px; justify-content: center; border-radius: 8px; }
.dx-load-more.is-loading { opacity: .7; pointer-events: none; }

/* ---------- match centre panes (Form / H2H / Table) ---------------------------- */
.dx-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mc-card.dx-form-card { display: grid; gap: 0; align-content: start; padding: 0; overflow: hidden; }
.dx-form-head { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--b-border); font-size: 15px; line-height: 22px; font-weight: 600; min-width: 0; }
.dx-form-head .crest { width: 28px; height: 28px; border-radius: 50%; }
.dx-form-head a { color: var(--text); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dx-form-head a:hover { color: var(--b-pri-ink); text-decoration: underline; }
.dx-form-card > .form-chips { padding: 12px 16px; border-bottom: 1px solid var(--b-border); }
.dx-form-card > .muted { padding: 12px 16px; margin: 0; }
.dx-form-card .res-line { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 24px; grid-template-areas: "when when when when" "home score away out"; row-gap: 2px; padding: 8px 12px 10px; }
.dx-form-card .res-when { grid-area: when; display: flex; gap: 8px; align-items: center; }
.dx-form-card .res-home { grid-area: home; }
.dx-form-card .res-score { grid-area: score; }
.dx-form-card .res-away { grid-area: away; }
.dx-form-card .res-outcome, .dx-form-card .res-chev { grid-area: out; }
.mc-card.dx-h2h { display: grid; gap: 0; padding: 0; overflow: hidden; }
.dx-h2h-sum { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; padding: 16px 16px 10px; }
.dx-h2h-side { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dx-h2h-side .crest { width: 32px; height: 32px; border-radius: 50%; }
.dx-h2h-side b { font-size: 28px; font-weight: 700; color: var(--text); line-height: 1; }
.dx-h2h-side span { font-size: 12px; color: var(--muted); }
.dx-h2h-side.is-draw { flex-direction: column; gap: 2px; justify-self: center; align-items: center; }
.dx-h2h-side.is-draw b { color: var(--text-2); font-size: 22px; }
.dx-h2h-side.is-away { justify-content: flex-start; flex-direction: row-reverse; text-align: right; }
.dx-h2h-bar { display: flex; gap: 2px; height: 6px; margin: 0 16px 12px; border-radius: 3px; overflow: hidden; background: var(--surface-2); }
.dx-h2h-bar span { flex-basis: 0; min-width: 0; }
.dx-h2h-bar .h { background: var(--b-mint); }
.dx-h2h-bar .d { background: var(--b-border-strong); }
.dx-h2h-bar .a { background: color-mix(in srgb, var(--b-mint) 40%, var(--surface)); }
.dx-h2h .res-list { border-top: 1px solid var(--b-border); }
.mc-card.dx-table-card { padding: 0; overflow: hidden; }
.dx-table-card .st-wrap { margin: 0; padding: 0; }
.dx-table-card > .dx-note { margin: 12px 16px 16px; }

/* ---------- team page --------------------------------------------------------- */
.dx-next-body { display: grid; gap: 12px; margin: 14px 16px 16px; color: var(--text); text-decoration: none; border-radius: 8px; padding: 14px; background: var(--surface-2); border: 1px solid var(--b-border); transition: border-color .15s var(--b-ease); }
.dx-card > .dx-next-body { margin: 14px 16px 16px; }
.dx-next-body:hover { border-color: var(--b-border-strong); }
.dx-next-comp { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; font-weight: 500; color: var(--muted); }
.dx-next-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; }
.dx-next-team { display: grid; justify-items: center; gap: 6px; text-align: center; min-width: 0; }
.dx-next-team .crest { width: 40px; height: 40px; border-radius: 50%; }
.dx-next-team b { max-width: 100%; font-size: 14px; line-height: 20px; font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.dx-next-mid { display: grid; justify-items: center; gap: 6px; }
.dx-kick { font-weight: 600; font-size: 13px; color: var(--text); text-align: center; }
.dx-score { font-size: 28px; line-height: 1; font-weight: 700; color: var(--text); background: none; padding: 0; box-shadow: none; }
.dx-live-pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--b-mint-soft); color: var(--b-acc-ink); font-size: 11px; font-weight: 600; }
.dx-live-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: dx-pulse 1.6s ease-in-out infinite; }
@keyframes dx-pulse { 50% { opacity: .3; } }
.dx-next-cta { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 40px; border-radius: 8px; background: var(--b-mint); color: var(--b-on-mint); font-weight: 600; font-size: 14px; }
.dx-pos { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.dx-pos-rank { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px; background: var(--b-mint-soft); color: var(--b-pri-ink); font-size: 22px; font-weight: 700; }
.dx-pos-copy { display: grid; gap: 4px; min-width: 0; }
.dx-pos-copy strong { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dx-pos-pts { display: grid; justify-items: end; line-height: 1.1; }
.dx-pos-pts b { font-size: 22px; font-weight: 700; color: var(--text); }
.dx-pos-pts small { font-size: 12px; color: var(--muted); }
.dx-links { list-style: none; margin: 0 !important; padding: 0; display: grid; }
.dx-links a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; transition: background-color .15s var(--b-ease); }
.dx-links a .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.dx-links a:hover { background: var(--surface-2); color: var(--b-pri-ink); }
.dx-links a .icon:last-child { margin-left: auto; color: var(--muted); flex: none; }
.dx-links li + li { border-top: 1px solid var(--b-border); }

/* ---------- leaderboard --------------------------------------------------------- */
.dx-cta { display: flex; align-items: center; gap: 14px; padding: 14px 16px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--b-border); border-radius: 10px; box-shadow: none; }
.dx-cta > div { flex: 1 1 240px; min-width: 0; }
.dx-cta h2 { margin: 0; font-size: 15px; line-height: 22px; font-weight: 600; }
.dx-cta p { margin: 2px 0 0; font-size: 13px; }
.dx-cta .btn { min-height: 40px; border-radius: 8px; }
.dx-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.dx-pod { position: relative; display: grid; justify-items: center; align-content: start; gap: 4px; padding: 18px 14px 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--b-border); box-shadow: none; text-align: center; min-width: 0; }
.dx-pod strong { max-width: 100%; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dx-pod-1 { order: 2; background: var(--surface); color: var(--text); border-color: color-mix(in srgb, var(--b-mint) 45%, var(--b-border)); box-shadow: inset 0 3px 0 var(--b-mint); }
.dx-pod-1 .muted { color: var(--muted); }
.dx-pod-1 .amount-pos { color: var(--success); }
.dx-pod-2 { order: 1; }
.dx-pod-3 { order: 3; }
.dx-pod-rank { position: absolute; top: 10px; left: 10px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--b-border); color: var(--text-2); font-weight: 700; font-size: 12px; }
.dx-pod-1 .dx-pod-rank { background: var(--b-mint); border-color: var(--b-mint); color: var(--b-on-mint); }
.dx-pod .avatar { margin-bottom: 4px; }
.dx-pod-net { font-size: 20px; line-height: 26px; font-weight: 600; }
.dx-pod-net small { font-size: 12px; font-weight: 500; opacity: .8; }
.dx-pod .small { font-size: 12px; }
.dx-pod.is-me { box-shadow: 0 0 0 2px var(--b-mint); }
.page-data .table-wrap { border-radius: 0; }
.page-data .dx-card .table { font-size: 13px; }
.page-data .dx-card .table th { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); padding: 9px 12px; border-bottom: 1px solid var(--b-border); }
.page-data .dx-card .table td { padding: 10px 12px; border-top: 0; border-bottom: 1px solid var(--b-border); }
.page-data .dx-card .table tbody tr:last-child td { border-bottom: 0; }
.page-data .dx-card .table th:first-child, .page-data .dx-card .table td:first-child { padding-left: 16px; }
.page-data .dx-card .table th:last-child, .page-data .dx-card .table td:last-child { padding-right: 16px; }
.dx-lb .dx-rank { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--b-border); font-weight: 600; }
.dx-lb .dx-rank.is-top { background: var(--b-mint-soft); border-color: transparent; color: var(--b-pri-ink); }
.dx-player { display: inline-flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; font-weight: 500; }
.dx-player .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.dx-player .avatar { width: 28px; height: 28px; font-size: 11px; }
.dx-you { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 999px; background: var(--b-mint-soft); color: var(--b-acc-ink); font-size: 11px; font-weight: 600; }
.dx-lb tr.is-me td, .dx-lb tr.is-me th { background: color-mix(in srgb, var(--b-mint-soft) 70%, var(--surface)); }
.dx-lb tr.is-me > :first-child { box-shadow: inset 3px 0 0 var(--b-mint); }
.dx-lb .dx-player-cell { text-align: left; }
.dx-lb td.num b { font-size: 14px; font-weight: 600; }
.dx-odds { font-weight: 600; color: var(--text); }
.dx-me-row { margin: 0 !important; padding: 10px 16px; border-top: 1px solid var(--b-border); background: var(--surface-2); font-size: 13px; }

/* ---------- my stats ------------------------------------------------------------- */
.dx-hero-stats-card { justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; }
.dx-net { position: relative; display: grid; gap: 2px; min-width: 0; }
.dx-net-label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.dx-net-value { font-size: 40px; line-height: 48px; font-weight: 700; letter-spacing: 0; color: var(--text); }
.dx-net-value small { font-size: 16px; font-weight: 500; margin-left: 6px; color: var(--muted); }
.dx-net-sub { font-size: 13px; color: var(--muted); }
.dx-totals { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, auto)); gap: 0; margin: 0; border: 1px solid var(--b-border); border-radius: 8px; overflow: hidden; }
.dx-totals > div { padding: 10px 16px; background: var(--surface-2); min-width: 0; border-left: 1px solid var(--b-border); }
.dx-totals > div:first-child { border-left: 0; }
.dx-totals dt { font-size: 12px; color: var(--muted); }
.dx-totals dd { margin: 2px 0 0; font-size: 18px; line-height: 24px; font-weight: 600; color: var(--text); white-space: nowrap; }
.dx-totals dd small { font-size: 12px; margin-left: 3px; color: var(--muted); font-weight: 500; }
.dx-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; }
@media (min-width: 768px) and (max-width: 1099px) { .dx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.page-data .dx-kpi { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; min-width: 0; background: var(--surface); border: 1px solid var(--b-border); border-radius: 10px; box-shadow: none; margin: 0; }
.dx-kpi > div { display: grid; gap: 2px; min-width: 0; }
.dx-kpi-l { font-size: 12px; color: var(--muted); }
.dx-kpi-v { font-size: 20px; line-height: 26px; font-weight: 600; color: var(--text); text-decoration: none; }
a.dx-kpi-v { color: var(--success); }
a.dx-kpi-v:hover { text-decoration: underline; }
.dx-kpi-v small { font-size: 12px; margin-left: 3px; color: var(--muted); font-weight: 500; }
.dx-kpi-s { font-size: 12px; line-height: 18px; color: var(--muted); }
.dx-kpi-s.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dx-chart { position: relative; margin: 14px 16px 0 !important; padding-left: 60px; }
.dx-chart svg { display: block; width: 100%; height: 220px; overflow: visible; }
.dx-chart-axis { position: absolute; left: 0; top: 8px; bottom: 8px; display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--muted); }
.dx-zero { stroke: var(--b-border-strong); stroke-width: 1; stroke-dasharray: 4 4; }
.dx-line { fill: none; stroke: var(--b-mint); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.dx-area { fill: var(--b-mint); opacity: .08; }
.dx-chart.is-down .dx-line { stroke: var(--danger); }
.dx-chart.is-down .dx-area { fill: var(--danger); }
.dx-dots { position: absolute; inset: 0 0 0 60px; pointer-events: none; }
.dx-dot { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; pointer-events: auto; cursor: default; outline-offset: 2px; }
.dx-dot::after { content: ""; position: absolute; left: 7px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 2px var(--surface); }
.dx-dot.down::after { background: var(--danger); }
.dx-tip { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); display: none; gap: 1px; padding: 6px 10px; border-radius: 8px; background: var(--text); color: var(--surface); white-space: nowrap; font-size: 12px; z-index: 3; }
.dx-tip small { opacity: .8; }
.dx-dot:hover .dx-tip, .dx-dot:focus-visible .dx-tip { display: grid; }
.dx-table-toggle { margin-top: 10px !important; }
.dx-table-toggle summary { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--b-pri-ink); list-style: none; }
.dx-table-toggle summary::-webkit-details-marker { display: none; }
.dx-table-toggle[open] summary .icon { transform: rotate(180deg); }
.dx-table-toggle .table-wrap { border: 1px solid var(--b-border); border-radius: 8px; }
.dx-bd { list-style: none; margin: 0 !important; padding: 0; display: grid; }
.dx-bd li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 12px 16px; }
.dx-bd li + li { border-top: 1px solid var(--b-border); }
.dx-bd-name { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; min-width: 0; }
.dx-bd-name .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dx-bd-ico { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--b-border); color: var(--text-2); flex: none; }
.dx-bd-ico .icon { width: 15px; height: 15px; }
.dx-bd-net { font-size: 14px; font-weight: 600; white-space: nowrap; }
.dx-bd-bar { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.dx-bd-bar i { display: block; height: 100%; border-radius: 2px; background: var(--b-mint); }
.dx-bd-meta { grid-column: 1 / -1; font-size: 12px; }

/* ---------- responsive ---------------------------------------------------------- */
@media (max-width: 900px) {
  .dx-cols { grid-template-columns: minmax(0, 1fr); }
  .dx-form-grid { grid-template-columns: minmax(0, 1fr); }
  .dx-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .dx-totals > div:nth-child(odd) { border-left: 0; }
  .dx-totals > div:nth-child(n+3) { border-top: 1px solid var(--b-border); }
}
@media (max-width: 767px) {
  .dx-page-head h1, .dx-hero h1 { font-size: 22px; line-height: 30px; }
  .dx-seg { width: 100%; }
  .dx-seg-btn, .dx-seg > .tab { flex: 1 0 auto; justify-content: center; min-height: 40px; }
  .dx-chip { height: 40px; }
  .dx-hero { flex-wrap: wrap; padding: 16px; gap: 12px 14px; }
  .dx-hero.has-photo { min-height: 0; }
  .dx-hero-badge { width: 52px; height: 52px; }
  .dx-hero-badge img { width: 36px; height: 36px; }
  .dx-hero-copy { flex: 1 1 calc(100% - 70px); }
  .dx-hero-act { align-self: stretch; align-items: stretch; flex: 1 1 100%; }
  .dx-hero-act .inline-form, .dx-follow { width: 100%; min-height: 44px; }
  .dx-follow-note { text-align: left; }
  .dx-hero-act .pin-btn { width: 44px; height: 44px; align-self: flex-start; }
  .res-line { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 22px; grid-template-areas: "when when when when" "home score away out"; row-gap: 4px; padding: 10px 12px 12px; }
  .res-when { grid-area: when; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
  .res-home { grid-area: home; }
  .res-score { grid-area: score; min-width: 56px; }
  .res-away { grid-area: away; }
  .res-outcome, .res-chev { grid-area: out; }
  .res-team .crest { width: 20px; height: 20px; }
  .res-team { font-size: 13px; gap: 6px; }
  .res-note { position: static; transform: none; grid-column: 1 / -1; }
  .dx-podium { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .dx-pod, .dx-pod-1 { order: 0; padding: 12px 14px; grid-template-columns: auto minmax(0, 1fr) auto; justify-items: start; text-align: left; align-items: center; column-gap: 12px; }
  .dx-pod .dx-pod-rank { position: static; grid-row: 1 / 3; }
  .dx-pod .avatar { display: none; }
  .dx-pod .muted { grid-column: 2 / -1; }
  .dx-pod strong { grid-column: 2; }
  .dx-pod .dx-pod-net { grid-column: 3; grid-row: 1; }
  .dx-chart { padding-left: 48px; }
  .dx-dots { left: 48px; }
  .dx-chart svg { height: 180px; }
  .dx-net-value { font-size: 32px; line-height: 40px; }
  .dx-h2h-side b { font-size: 22px; }
  .dx-h2h-side .crest { display: none; }
  .st-name { max-width: 14ch; }
  .dx-lb .dx-player-cell { text-align: right; }
  .dx-cta .btn { min-height: 44px; }
  .dx-load-more { min-height: 44px; width: 100%; }
}
@media (max-width: 400px) {
  .dx-totals dd { font-size: 16px; }
  .st-table th, .st-table td { padding: 0 5px; }
  .st-table .crest { display: none; }
  .st-name { max-width: 12ch; }
}

/* ==========================================================================
   v4 "mint sportsbook" (DESIGN_V4): navy cards, mint accents, red only for live.
   ========================================================================== */
.page-data .main { --b-card: var(--surface, #151b23); --b-band: var(--surface-2, #1b232d); }
.dx-page-head h1 { font-size: 32px; line-height: 40px; }
.dx-lede, .dx-page-head .lede { font-size: 15px; color: var(--text-2, #c3ccd6); }

/* segmented control: bordered group, active = mint outline + mint text */
.dx-seg { gap: 0; padding: 4px; border-radius: 10px; background: var(--surface, #151b23); border: 1px solid var(--b-border-strong); }
.dx-seg-btn, .dx-seg > .tab { position: relative; min-height: 38px; padding: 0 16px; border-radius: 7px; font-size: 14px; font-weight: 500; color: var(--text, #eef2f6); border: 1px solid transparent; }
.dx-seg-btn + .dx-seg-btn::before, .dx-seg > .tab + .tab::before { content: ""; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 1px; background: var(--b-border-strong); }
.dx-seg-btn.is-active + .dx-seg-btn::before, .dx-seg-btn.is-active::before, .dx-seg > .tab.is-active::before, .dx-seg > .tab.is-active + .tab::before { content: none; }
.dx-seg-btn.is-active, .dx-seg > .tab.is-active { background: var(--b-mint-soft); color: var(--b-mint-ink); border-color: var(--b-mint); box-shadow: none; font-weight: 600; }

/* sport chips: outlined pills, active = mint fill with dark text */
.dx-chips { gap: 10px; }
.dx-chip { height: 40px; padding: 0 16px; gap: 8px; background: transparent; border-color: var(--b-border-strong); color: var(--text, #eef2f6); font-size: 14px; font-weight: 500; }
.dx-chip .icon { width: 18px; height: 18px; color: var(--text-2, #c3ccd6); }
.dx-chip-count { font-size: 13px; font-weight: 500; color: var(--text-2, #c3ccd6); }
.dx-chip:hover { border-color: var(--b-mint); background: transparent; }
.dx-chip[aria-current="page"] { background: var(--b-mint); border-color: var(--b-mint); color: var(--b-on-mint); font-weight: 600; }
.dx-chip[aria-current="page"] .icon, .dx-chip[aria-current="page"] .dx-chip-count { color: inherit; }

/* cards */
.dx-card, .page-data .dx-card.card, .page-data .dx-kpi, .dx-cta, .dx-pod, .dx-hero { border-radius: 12px; }
.dx-card-head { min-height: 60px; padding: 12px 20px; }
.dx-card-head h2 { font-size: 16px; }
.dx-more, .dx-table-toggle summary { color: var(--b-mint-ink); }

/* results: day card, competition bands and fixture-style rows */
.dx-day .dx-card-head { min-height: 64px; padding: 14px 22px; }
.dx-day .dx-card-head h2 { font-size: 24px; line-height: 32px; font-weight: 700; }
.dx-day .dx-date { margin-left: 2px; font-size: 18px; font-weight: 400; color: var(--text-2, #c3ccd6); }
.dx-day .dx-count { display: none; }
.dx-comp-band { min-height: 46px; gap: 10px; padding: 8px 22px; background: var(--b-band); }
.dx-comp-band .comp-badge { display: none; }
.dx-comp-ico .icon { width: 20px; height: 20px; color: var(--text-2, #c3ccd6); }
.dx-comp-name { font-size: 16px; line-height: 22px; font-weight: 600; color: var(--text, #eef2f6); }
.dx-comp-name:hover { color: var(--b-mint-ink); }
.dx-day .res-list { padding: 0 14px 0 22px; }
.dx-day .res-list:last-child { padding-bottom: 6px; }
.dx-day .res-line { grid-template-columns: 172px minmax(0, 1fr) 96px minmax(0, 1fr) 28px; gap: 16px; min-height: 58px; padding: 10px 0; }
.res-when { display: flex; align-items: center; gap: 0; font-size: 14px; color: var(--text-2, #c3ccd6); }
.res-st { margin-left: 20px; padding-left: 20px; border-left: 1px solid var(--b-border-strong); line-height: 20px; color: var(--text-2, #c3ccd6); font-size: 14px; }
.res-team { gap: 14px; font-size: 16px; font-weight: 600; color: var(--text, #eef2f6); }
.res-team.is-win { font-weight: 600; }
.res-team .crest { width: 32px; height: 32px; }
.res-score { min-width: 92px; height: 38px; padding: 0 12px; gap: 10px; border-radius: 7px; background: var(--bg, #0e131a); border: 1px solid var(--b-border-strong); }
.res-score b { font-size: 18px; font-weight: 700; }
.res-score i { color: var(--text, #eef2f6); }
.res-chev { width: 20px; height: 20px; color: var(--text-2, #c3ccd6); }
.res-line:hover { background: color-mix(in srgb, var(--b-band) 60%, transparent); }
.dx-day .res-line:hover { box-shadow: -22px 0 0 color-mix(in srgb, var(--b-band) 60%, transparent), 14px 0 0 color-mix(in srgb, var(--b-band) 60%, transparent); }
.res-line:focus-visible { outline-color: var(--b-mint); }
/* form cards and h2h keep the compact sizes */
.dx-form-card .res-team, .dx-h2h .res-team, .dx-team-results .res-team { font-size: 14px; gap: 8px; }
.dx-form-card .res-team .crest, .dx-h2h .res-team .crest { width: 24px; height: 24px; }
.dx-form-card .res-score, .dx-h2h .res-score { min-width: 64px; height: 30px; }
.dx-form-card .res-score b, .dx-h2h .res-score b { font-size: 15px; }
.res-when .res-comp + time { margin-left: 8px; }
.dx-form-card .res-when, .dx-h2h .res-when { font-size: 12px; color: var(--muted, #8e9aa8); }
.dx-load-more { border-color: var(--b-mint); color: var(--b-mint-ink); background: transparent; }
.dx-load-more:hover { background: var(--b-mint-soft); }

/* standings: dark table, mint leader */
.st-table thead th { background: var(--b-band); color: var(--muted, #8e9aa8); }
.st-table .st-team { color: var(--text, #eef2f6); }
.st-table tbody .st-team a { font-weight: 600; }
.st-rank.is-top { background: var(--b-mint); color: var(--b-on-mint); }
.st-table tbody tr.is-hl > * { background: var(--b-mint-soft); }
.st-table tbody tr.is-hl > :first-child { box-shadow: inset 3px 0 0 var(--b-mint); }
.st-table tbody tr:first-child .st-pts b { color: var(--b-mint-ink); }
.st-table tbody tr:hover > * { background: color-mix(in srgb, var(--b-band) 70%, transparent); }

/* form chips: W mint, L red outline, D grey */
.fc-w { background: var(--b-mint); color: var(--b-on-mint); }
.fc-l { background: transparent; color: var(--danger, #ff6b6b); box-shadow: inset 0 0 0 1.5px var(--danger, #ff6b6b); }
.fc-d { background: var(--surface-3, #222b36); color: var(--text-2, #c3ccd6); box-shadow: none; }
[data-theme="dark"] .fc-w { color: var(--b-on-mint); }
[data-theme="dark"] .fc-l { color: var(--danger, #ff6b6b); }
@media (prefers-color-scheme: dark) { html[data-theme="system"] .fc-w { color: var(--b-on-mint); } html[data-theme="system"] .fc-l { color: var(--danger, #ff6b6b); } }

/* heroes: navy card, photo heroes get a flat dark overlay */
.dx-hero { background: var(--surface, #151b23); }
.dx-hero.has-photo::after { background: linear-gradient(90deg, rgba(10, 14, 20, .94) 0%, rgba(10, 14, 20, .84) 55%, rgba(10, 14, 20, .62) 100%); }
.dx-hero.has-photo .dx-hero-img { filter: saturate(.85); }
.dx-hero .stat-chip.is-live { background: transparent; border-color: var(--b-border-strong); color: var(--text, #eef2f6); }
.dx-hero .stat-chip.is-live::before, .dx-live-pill .dot { background: var(--b-live); }
.dx-hero .stat-chip.is-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; margin-right: 2px; }
.dx-follow { background: var(--b-mint); border-color: var(--b-mint); color: var(--b-on-mint); }
.dx-follow:hover { background: var(--b-mint-hover); color: var(--b-on-mint); }
.dx-follow.is-on .icon { color: var(--b-mint); }
.dx-live-pill { background: transparent; color: var(--text, #eef2f6); padding: 0; }
.dx-next-cta { background: var(--b-mint); color: var(--b-on-mint); }
.dx-pos-rank { background: var(--b-mint-soft); color: var(--b-mint-ink); }
.dx-h2h-bar .h { background: var(--b-mint); }
.dx-h2h-bar .a { background: var(--text-2, #c3ccd6); }
.dx-h2h-bar .d { background: var(--surface-3, #222b36); }

/* leaderboard */
.dx-pod-1 { border-color: var(--b-mint); box-shadow: inset 0 3px 0 var(--b-mint); }
.dx-pod-1 .dx-pod-rank { background: var(--b-mint); border-color: var(--b-mint); color: var(--b-on-mint); }
.dx-lb .dx-rank.is-top { background: var(--b-mint-soft); color: var(--b-mint-ink); }
.dx-you { background: var(--b-mint-soft); color: var(--b-mint-ink); }
.dx-lb tr.is-me td, .dx-lb tr.is-me th { background: var(--b-mint-soft); }
.page-data .dx-card .table th { background: var(--b-band); }
.amount-pos, .dx-pod-1 .amount-pos, a.dx-kpi-v { color: var(--b-mint-ink); }

/* my stats: mint P&L line on navy */
.dx-net-value { font-size: 44px; line-height: 52px; }
.dx-line { stroke: var(--b-mint); stroke-width: 2.5; }
.dx-area { fill: var(--b-mint); opacity: .12; }
.dx-dot::after { background: var(--b-mint); }
.dx-bd-bar i { background: var(--b-mint); }
.dx-totals > div { background: var(--b-band); }

@media (max-width: 767px) {
  .dx-page-head h1 { font-size: 26px; line-height: 34px; }
  .dx-seg { width: 100%; }
  .dx-seg-btn, .dx-seg > .tab { min-height: 40px; padding: 0 10px; }
  .dx-day .dx-card-head { padding: 12px 14px; min-height: 56px; }
  .dx-day .dx-card-head h2 { font-size: 20px; }
  .dx-day .dx-date { font-size: 15px; }
  .dx-comp-band { padding: 8px 14px; }
  .dx-comp-name { font-size: 14px; }
  .dx-day .res-list { padding: 0 12px 0 14px; }
  .dx-day .res-line { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 20px; gap: 6px 10px; padding: 10px 0 12px; }
  .dx-day .res-line:hover { box-shadow: none; }
  .res-when { font-size: 12px; }
  .res-st { margin-left: 10px; padding-left: 10px; font-size: 12px; }
  .res-team { font-size: 14px; gap: 8px; }
  .res-team .crest { width: 24px; height: 24px; }
  .res-score { min-width: 64px; height: 32px; padding: 0 8px; gap: 6px; }
  .res-score b { font-size: 15px; }
}
.res-team .tname { font-size: inherit; font-weight: inherit; line-height: 22px; color: inherit; }

/* ---- leaderboard (client reference 7) ---- */
.dx-seg-fill .dx-seg-btn.is-active { background: var(--b-mint); border-color: var(--b-mint); color: var(--b-on-mint); }
.dx-seg-fill .dx-seg-btn { min-width: 104px; justify-content: center; font-size: 16px; }
.dx-strip { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 18px; border-radius: 12px; background: var(--surface, #151b23); border: 1px solid var(--b-border-strong); font-size: 16px; line-height: 24px; color: var(--text, #eef2f6); }
.dx-strip > .icon { flex: none; width: 20px; height: 20px; color: var(--b-mint-ink); }
.dx-demo-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; margin: 0 2px; border-radius: 999px; background: color-mix(in srgb, var(--warning, #f5b84b) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warning, #f5b84b) 45%, transparent); color: var(--warning, #f5b84b); font-size: 14px; font-weight: 500; vertical-align: 1px; }
.dx-join { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: stretch; min-height: 232px; border-radius: 12px; border: 1px solid var(--b-border-strong); background: var(--surface, #151b23); }
.dx-join::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(260px 220px at 78% 46%, rgba(150, 190, 210, .20), transparent 70%),
  linear-gradient(115deg, transparent 62%, rgba(170, 210, 230, .10) 72%, transparent 80%),
  linear-gradient(90deg, var(--surface, #151b23) 0%, var(--surface, #151b23) 45%, #0c1a22 100%); }
.dx-join-copy { position: relative; z-index: 1; display: flex; gap: 24px; align-items: flex-start; padding: 32px 26px; flex: 1 1 auto; min-width: 0; }
.dx-join-ico { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 10px; background: var(--surface-2, #1b232d); border: 1px solid var(--b-border-strong); color: var(--b-mint-ink); }
.dx-join-ico .icon { width: 24px; height: 24px; }
.dx-join h2 { margin: 0; font-size: 32px; line-height: 40px; font-weight: 700; color: var(--text, #eef2f6); }
.dx-join p { margin: 4px 0 0; font-size: 17px; line-height: 26px; color: var(--text-2, #c3ccd6); max-width: 60ch; }
.btn.dx-join-btn { margin-top: 20px; min-height: 44px; padding: 0 30px; border-radius: 8px; background: var(--b-mint); background-image: none; border-color: var(--b-mint); color: var(--b-on-mint); font-size: 18px; font-weight: 700; box-shadow: none; }
.btn.dx-join-btn:hover { background: var(--b-mint-hover); color: var(--b-on-mint); }
.dx-join-art { position: relative; flex: 0 0 300px; display: grid; place-items: end center; padding-top: 18px; }
.dx-join-art::after { content: ""; position: absolute; left: 20%; right: 10%; bottom: 0; height: 26px; background: radial-gradient(closest-side, rgba(0, 0, 0, .6), transparent); }
.dx-trophy { position: relative; z-index: 1; width: 190px; height: auto; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .5)); }
.dx-lb-card .dx-card-head { min-height: 60px; padding: 12px 20px; }
.dx-lb-card .dx-card-head h2 { font-size: 26px; line-height: 34px; font-weight: 700; }
.dx-lb-empty { display: grid; justify-items: center; gap: 6px; padding: 32px 20px 44px; text-align: center; }
.dx-lb-empty .dx-join-ico { width: 78px; height: 78px; border-radius: 14px; margin-bottom: 18px; color: var(--text, #eef2f6); }
.dx-lb-empty .dx-join-ico .icon { width: 34px; height: 34px; }
.dx-lb-empty h3 { margin: 0; font-size: 26px; line-height: 34px; font-weight: 700; }
.dx-lb-empty p { margin: 0; font-size: 18px; line-height: 26px; color: var(--text-2, #c3ccd6); }
.dx-lb td.num b.amount-pos { color: var(--b-mint-ink); }
.page-leaderboard .main > .dx-page-head + * { margin-top: 20px; }
@media (max-width: 767px) {
  .dx-seg-fill .dx-seg-btn { min-width: 0; flex: 1 1 0; }
  .dx-strip { font-size: 14px; padding: 10px 14px; align-items: flex-start; }
  .dx-join { flex-direction: column; min-height: 0; }
  .dx-join-copy { padding: 20px 16px 4px; gap: 14px; }
  .dx-join-ico { width: 44px; height: 44px; }
  .dx-join h2 { font-size: 22px; line-height: 30px; }
  .dx-join p { font-size: 15px; line-height: 22px; }
  .btn.dx-join-btn { width: 100%; justify-content: center; font-size: 16px; }
  .dx-join-art { flex-basis: auto; height: 150px; }
  .dx-trophy { width: 120px; }
  .dx-lb-card .dx-card-head h2 { font-size: 20px; line-height: 28px; }
  .dx-lb-empty h3 { font-size: 20px; line-height: 28px; }
  .dx-lb-empty p { font-size: 15px; }
}
html[data-theme="light"] .dx-join::before { background: radial-gradient(260px 220px at 78% 46%, rgba(31, 185, 133, .12), transparent 70%), linear-gradient(90deg, var(--surface) 0%, var(--surface) 45%, #e7eef3 100%); }
.dx-join p { max-width: 72ch; } .page-data .dx-lede { font-size: 16px; }
.res-line { grid-template-columns: 150px minmax(0, 1fr) 92px minmax(0, 1fr) 24px; gap: 14px; padding-left: 20px; padding-right: 16px; }
.dx-day .res-line { padding-left: 0; padding-right: 0; }
.res-when time { white-space: nowrap; }
.st-rank.is-top { background: var(--b-mint-soft); color: var(--b-mint-ink); }
.st-table tbody tr:first-child .st-rank.is-top { background: var(--b-mint); color: var(--b-on-mint); }
@media (max-width: 767px) { .res-line { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 20px; gap: 6px 10px; padding: 10px 12px 12px; } }
.page-data .dx-hero.has-photo::after { background: linear-gradient(90deg, rgba(9, 13, 19, .95) 0%, rgba(9, 13, 19, .88) 50%, rgba(9, 13, 19, .78) 100%); } .page-data .dx-hero.has-photo .dx-hero-img { filter: saturate(.6); }
.dx-chart.is-down .dx-line { stroke: var(--b-mint); } .dx-chart.is-down .dx-area { fill: var(--b-mint); }

/* ---- my stats (client reference 11) ---- */
.dx-stats-head { align-items: flex-end; }
.dx-headlink { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; color: var(--b-mint-ink); font-size: 16px; font-weight: 600; text-decoration: none; }
.dx-headlink .icon { width: 18px; height: 18px; }
.dx-headlink:hover { text-decoration: underline; }
.dx-stats-head .dx-lede b { color: var(--text, #eef2f6); font-weight: 600; }
.dx-sum { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0; padding: 16px 0; border-radius: 12px; background: var(--surface, #151b23); border: 1px solid var(--b-border-strong); }
.dx-sum-net { display: grid; gap: 2px; padding: 0 28px 0 24px; border-right: 1px solid var(--b-border-strong); }
.dx-sum-k { font-size: 16px; color: var(--text, #eef2f6); }
.dx-sum-big { font-size: 44px; line-height: 50px; font-weight: 700; color: var(--text, #eef2f6); white-space: nowrap; }
.dx-sum-big small { margin-left: 8px; font-size: 20px; font-weight: 500; color: var(--text-2, #c3ccd6); }
.dx-sum-big.is-pos { color: var(--b-mint-ink); }
.dx-sum-sub { font-size: 14px; color: var(--text-2, #c3ccd6); }
.dx-sum-counts { margin: 0; padding: 0 24px; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 16px; color: var(--text-2, #c3ccd6); }
.dx-sum-cols { display: grid; grid-template-columns: repeat(3, auto); margin: 0; }
.dx-sum-cols > div { padding: 4px 28px; border-left: 1px solid var(--b-border-strong); min-width: 0; }
.dx-sum-cols dt { font-size: 16px; color: var(--text-2, #c3ccd6); }
.dx-sum-cols dd { margin: 2px 0 0; font-size: 24px; line-height: 30px; font-weight: 700; color: var(--text, #eef2f6); white-space: nowrap; }
.dx-sum-cols dd small { margin-left: 4px; font-size: 16px; font-weight: 500; color: var(--text-2, #c3ccd6); }
.page-stats .dx-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.page-stats .dx-kpi { align-items: center; gap: 16px; padding: 16px; border-color: var(--b-border-strong); }
.page-stats .dx-kpi .dx-tile { width: 40px; height: 40px; border-radius: 8px; background: var(--surface-3, #222b36); border: 0; color: var(--text, #eef2f6); }
.page-stats .dx-kpi .dx-tile.is-mint { color: var(--b-mint-ink); }
.page-stats .dx-kpi-l { font-size: 16px; color: var(--text, #eef2f6); }
.page-stats .dx-kpi-v { font-size: 24px; line-height: 30px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-stats a.dx-kpi-v { color: var(--b-mint-ink); }
.page-stats .dx-kpi-v small { font-size: 16px; }
.dx-kpi-inl { font-size: 16px; font-weight: 400; color: var(--text-2, #c3ccd6); }
/* P&L chart: colour follows the sign of the running total */
.dx-pnl { --pnl: var(--b-mint); }
.dx-pnl:has(.dx-chart.is-down) { --pnl: var(--danger, #ff6b6b); }
.dx-pnl .dx-card-head { min-height: 52px; }
.dx-pnl .dx-card-head h2 { font-size: 18px; font-weight: 700; }
.dx-pnl .dx-updated { margin-left: auto; font-size: 14px; color: var(--text-2, #c3ccd6); }
.dx-chart { margin: 8px 20px 0 !important; padding-left: 64px; }
.dx-chart svg { height: 200px; }
.dx-chart-axis { top: 0; bottom: 0; width: 56px; display: block; }
.dx-chart-axis span { position: absolute; right: 0; transform: translateY(-50%); font-size: 14px; color: var(--text-2, #c3ccd6); }
.dx-grid { stroke: var(--b-border-strong); stroke-width: 1; stroke-dasharray: 3 5; }
.dx-zero { stroke: var(--b-border-strong); stroke-dasharray: none; }
.dx-line, .dx-chart.is-down .dx-line { stroke: var(--pnl); stroke-width: 2.5; }
.dx-area, .dx-chart.is-down .dx-area { fill: var(--pnl); opacity: .14; }
.dx-dot::after, .dx-dot.down::after { background: var(--pnl); box-shadow: none; }
.dx-dot.is-last::after { left: 4px; top: 4px; width: 14px; height: 14px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--pnl) 30%, transparent); }
.dx-end { position: absolute; z-index: 2; transform: translate(-100%, 14px); margin-left: 64px; padding: 2px 10px; border-radius: 6px; background: var(--pnl); color: var(--b-on-mint); font-size: 14px; font-weight: 700; white-space: nowrap; pointer-events: none; }
.dx-pnl:has(.dx-chart.is-down) .dx-end { background: color-mix(in srgb, var(--danger, #ff6b6b) 85%, #fff); color: #3a0708; }
.dx-end { left: 0; }
.dx-chart .dx-end { left: calc(64px + (100% - 64px) * var(--x, 1)); }
.dx-pnl .dx-table-toggle { margin: 6px 20px 14px !important; }
.dx-pnl .dx-table-toggle summary { color: var(--b-mint-ink); font-size: 15px; }
/* breakdown cards */
.dx-bd-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dx-bd-cols .dx-card { border-color: var(--b-border-strong); }
.dx-bd-cols .dx-card-head { min-height: 50px; }
.dx-bd-cols .dx-card-head h2 { font-size: 18px; font-weight: 700; }
.dx-bd { padding: 0 16px; }
.dx-bd li { padding: 10px 0 12px; gap: 6px 12px; }
.dx-bd-name { font-size: 16px; font-weight: 600; }
.dx-bd-ico { background: none; border: 0; width: 24px; height: 24px; color: var(--text, #eef2f6); }
.dx-bd-ico .icon { width: 20px; height: 20px; }
.dx-bd-net { font-size: 16px; font-weight: 700; }
.dx-bd-net.amount-neg { color: var(--danger, #ff6b6b); }
.dx-bd-net.amount-pos { color: var(--b-mint-ink); }
.dx-bd-bar { height: 4px; background: var(--surface-3, #222b36); }
.dx-bd-meta { font-size: 13px; color: var(--text-2, #c3ccd6); }
@media (max-width: 1100px) {
  .dx-sum { grid-template-columns: auto minmax(0, 1fr); row-gap: 14px; }
  .dx-sum-cols { grid-column: 1 / -1; border-top: 1px solid var(--b-border-strong); padding-top: 12px; }
  .dx-sum-cols > div:first-child { border-left: 0; padding-left: 24px; }
  .page-stats .dx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .dx-sum { grid-template-columns: minmax(0, 1fr); padding: 14px 0; }
  .dx-sum-net { border-right: 0; padding: 0 16px; }
  .dx-sum-big { font-size: 36px; line-height: 44px; }
  .dx-sum-counts { padding: 0 16px; font-size: 14px; }
  .dx-sum-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dx-sum-cols > div { padding: 4px 10px; }
  .dx-sum-cols > div:first-child { padding-left: 16px; }
  .dx-sum-cols dt { font-size: 13px; } .dx-sum-cols dd { font-size: 18px; } .dx-sum-cols dd small { font-size: 12px; }
  .page-stats .dx-kpis { gap: 10px; }
  .page-stats .dx-kpi { padding: 12px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .page-stats .dx-kpi-l { font-size: 13px; } .page-stats .dx-kpi-v { font-size: 19px; line-height: 26px; white-space: normal; }
  .dx-kpi-inl { display: block; font-size: 13px; }
  .dx-chart { margin: 8px 12px 0 !important; padding-left: 52px; }
  .dx-chart-axis { width: 46px; } .dx-chart-axis span { font-size: 11px; }
  .dx-chart .dx-end { left: calc(52px + (100% - 52px) * var(--x, 1)); font-size: 12px; }
  .dx-dots { left: 52px; }
  .dx-bd-cols { grid-template-columns: minmax(0, 1fr); }
}
.page-stats .dx-dots { left: 64px; } .dx-chart .dx-end { margin-left: 0; } @media (max-width: 767px) { .page-stats .dx-dots { left: 52px; } }
.page-stats .dx-kpi > div { min-width: 0; } .page-stats .dx-kpi-v:has(.dx-kpi-inl) { white-space: normal; } .dx-kpi-inl { white-space: nowrap; }
.dx-kpi-v .nw { white-space: nowrap; }
.page-stats .dx-kpi-v:has(.dx-kpi-inl) { overflow: visible; text-overflow: clip; } .dx-kpi-inl { white-space: normal; font-size: 15px; }

/* ---- rules (client reference 14) ---- */
.page-rules .main > .rl-head + * { margin-top: 18px; }
.rl-search { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 18px; border-radius: 10px; background: var(--surface-2, #1b232d); border: 1px solid var(--b-border-strong); color: var(--text-2, #c3ccd6); }
.rl-search .icon { width: 20px; height: 20px; flex: none; }
.rl-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; color: var(--text, #eef2f6); font: inherit; font-size: 16px; }
.rl-search input::placeholder { color: var(--text-2, #c3ccd6); }
.rl-search:focus-within { border-color: var(--b-mint); box-shadow: 0 0 0 3px var(--b-mint-soft); }
.rl-chips { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rl-chip { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--b-border-strong); background: var(--surface, #151b23); color: var(--text, #eef2f6); font-size: 16px; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; list-style: none; }
.rl-chip::-webkit-details-marker { display: none; }
.rl-chip .icon { width: 20px; height: 20px; color: var(--text-2, #c3ccd6); }
.rl-chip:hover { border-color: var(--b-mint); }
.rl-chip.is-active, .rl-more.is-active > .rl-chip { border: 2px solid var(--b-mint); background: var(--b-mint-soft); color: var(--b-mint-ink); font-weight: 600; padding: 0 19px; }
.rl-chip.is-active .icon, .rl-more.is-active > .rl-chip .icon { color: inherit; }
.rl-more { position: relative; }
.rl-more-chev { transition: transform .15s; }
.rl-more[open] .rl-more-chev { transform: rotate(180deg); }
.rl-more-menu { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 230px; display: grid; padding: 6px; border-radius: 10px; background: var(--surface, #151b23); border: 1px solid var(--b-border-strong); box-shadow: 0 12px 28px rgba(0, 0, 0, .35); }
.rl-more-item { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 10px; border-radius: 7px; color: var(--text, #eef2f6); text-decoration: none; font-size: 15px; }
.rl-more-item .icon { width: 18px; height: 18px; color: var(--text-2, #c3ccd6); }
.rl-more-item:hover { background: var(--surface-2, #1b232d); }
.rl-more-item.is-active { color: var(--b-mint-ink); background: var(--b-mint-soft); }
.rl-empty { display: flex; gap: 12px; align-items: center; margin: 0; padding: 18px 20px; border-radius: 12px; border: 1px dashed var(--b-border-strong); color: var(--text-2, #c3ccd6); }
.rl-empty b { display: block; color: var(--text, #eef2f6); }
.rl-empty[hidden] { display: none; }
.rl-panel { padding: 18px 20px 20px; border-radius: 12px; background: var(--surface, #151b23); border: 1px solid var(--b-border-strong); }
.rl-panel[hidden] { display: none; }
.rl-panel + .rl-panel { margin-top: 16px; }
.rl-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 26px; line-height: 34px; font-weight: 700; }
.rl-title-ico .icon { width: 24px; height: 24px; color: var(--text-2, #c3ccd6); }
.rl-intro { margin: -6px 0 14px; font-size: 15px; line-height: 22px; color: var(--text-2, #c3ccd6); max-width: 80ch; }
.rl-acc { display: grid; gap: 8px; }
.rl-item { border-radius: 8px; background: var(--surface-2, #1b232d); border: 1px solid var(--b-border); }
.rl-item[hidden] { display: none; }
.rl-q { margin: 0; }
.rl-q button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 6px 16px 6px 24px; border: 0; background: none; color: var(--text, #eef2f6); font: inherit; font-size: 17px; font-weight: 600; text-align: left; cursor: pointer; border-radius: 8px; }
.rl-q button > span:first-child { flex: 0 1 auto; min-width: 0; }
.rl-q button:focus-visible { outline: 2px solid var(--b-mint); outline-offset: -2px; }
.rl-chev { margin-left: auto; flex: none; width: 20px; height: 20px; color: var(--text-2, #c3ccd6); transition: transform .15s; }
.rl-item.is-open .rl-chev { transform: rotate(180deg); }
.rl-scope { flex: none; padding: 2px 8px; border-radius: 999px; background: var(--surface-3, #222b36); color: var(--text-2, #c3ccd6); font-size: 12px; font-weight: 500; }
.rl-a { padding: 0 24px 14px; }
.rl-js .rl-item:not(.is-open) .rl-a { display: none; }
.rl-a p { margin: 0; font-size: 16px; line-height: 24px; color: var(--text, #eef2f6); max-width: 90ch; }
.rl-item mark, .rl-title mark, .rl-intro mark { background: var(--b-mint-soft); color: var(--b-mint-ink); border-radius: 3px; padding: 0 1px; box-shadow: inset 0 -2px 0 var(--b-mint); }
/* featured "Decimal odds" panel */
.rl-item.is-feature.is-open { border: 2px solid var(--b-mint); background: color-mix(in srgb, var(--b-mint) 8%, var(--surface, #151b23)); }
.rl-item.is-feature .rl-q button { font-size: 20px; padding-top: 12px; }
.rl-calc { display: grid; grid-template-columns: minmax(0, 175px) auto minmax(0, 195px) auto minmax(0, 198px); align-items: center; justify-content: start; gap: 14px 30px; margin: 16px 0 0 64px; }
.rl-box { display: grid; justify-items: center; gap: 2px; padding: 10px 12px; border-radius: 8px; background: color-mix(in srgb, var(--b-mint) 4%, var(--surface-2, #1b232d)); border: 1px solid var(--b-border-strong); font-size: 15px; color: var(--text, #eef2f6); cursor: text; }
.rl-box-v { display: inline-flex; align-items: baseline; justify-content: center; gap: 6px; font-size: 26px; line-height: 34px; font-weight: 700; }
.rl-box-v small { font-size: 22px; font-weight: 600; }
.rl-box input { width: 4.2ch; min-width: 0; padding: 0; border: 0; border-bottom: 1px dashed transparent; background: none; color: inherit; font: inherit; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.rl-box input::-webkit-outer-spin-button, .rl-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rl-box:hover input, .rl-box input:focus { border-bottom-color: var(--b-mint); outline: none; }
.rl-box:focus-within { border-color: var(--b-mint); }
.rl-box.is-result { background: var(--b-mint); border-color: var(--b-mint); color: var(--b-on-mint); cursor: default; }
.rl-op { font-size: 30px; color: var(--text, #eef2f6); }
.rl-note { margin-top: 14px !important; font-size: 15px !important; font-style: italic; color: var(--text-2, #c3ccd6) !important; }
.rl-sub { margin-top: 6px !important; font-size: 14px !important; color: var(--muted, #8e9aa8) !important; }
@media (max-width: 767px) {
  .rl-search { height: 46px; }
  .rl-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 2px 14px; }
  .rl-chips::-webkit-scrollbar { display: none; }
  .rl-chip { height: 44px; padding: 0 14px; font-size: 15px; }
  .rl-more { position: static; }
  .rl-more-menu { left: 14px; right: 14px; top: auto; margin-top: 6px; }
  .rl-panel { padding: 14px 12px 14px; }
  .rl-title { font-size: 21px; line-height: 28px; }
  .rl-q button { font-size: 15px; padding-left: 14px; min-height: 46px; }
  .rl-item.is-feature .rl-q button { font-size: 17px; }
  .rl-a { padding: 0 14px 14px; }
  .rl-a p { font-size: 15px; line-height: 22px; }
  .rl-calc { margin-left: 0; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; }
  .rl-calc > .rl-op:nth-of-type(2) { display: none; }
  .rl-box.is-result { grid-column: 1 / -1; }
  .rl-box-v { font-size: 22px; line-height: 28px; } .rl-box-v small { font-size: 17px; }
}
.rl-box input[type="number"] { height: auto; min-height: 0; padding: 0; border: 0; border-bottom: 1px dashed transparent; border-radius: 0; background: transparent; box-shadow: none; color: inherit; font: inherit; text-align: center; } .rl-box:hover input[type="number"], .rl-box input[type="number"]:focus { border-bottom-color: var(--b-mint); box-shadow: none; } .rl-q button { min-height: 36px; padding-top: 4px; padding-bottom: 4px; } .rl-acc { gap: 7px; } .rl-note { font-style: italic; font-synthesis: style; }
