@import url(/brand/tokens.css?v=2026102709);
@import url(/market/components/components.css?v=2026102709);
/* The Market: one dark theme, one display face, an 8 px rhythm and nothing
   taller than it needs to be. Phone first; the desktop rules only widen it.
   Tokens first, everything else reads from them. */
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: optional;
  src: url(/fonts/barlow-condensed-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: optional;
  src: url(/fonts/barlow-condensed-700.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: optional;
  src: url(/fonts/barlow-condensed-800.woff2) format("woff2"); }

:root {
  /* Every colour, space, radius and font comes from /brand/tokens.css
     (generated from brand/tokens.json). These are the old names, kept as
     aliases so nothing below needs to change. */
  --bg: var(--bg-0); --surface: var(--bg-1); --surface-2: var(--bg-2);
  --grey: var(--faint);
  --s1: var(--space-2); --s2: var(--space-4); --s3: var(--space-5); --s4: var(--space-6); --s5: 48px;
  --radius-1: var(--radius-sm); --radius-2: var(--radius-md); --r: var(--radius-2);
  /* chrome */
  --bar-h: 56px; --tabs-h: 56px;
  /* Apple-style layer (2026-10-27): one surface, hairlines, big type, pills. */
  --hairline: color-mix(in srgb, var(--ink) 8%, transparent);
  --tint: color-mix(in srgb, var(--ink) 4%, transparent);
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.45; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
  padding: 0 max(var(--space-4), env(safe-area-inset-right,0)) var(--s5) max(var(--space-4), env(safe-area-inset-left,0)); }
.wrap { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-4); }
a { color: var(--accent); }
/* Type: a proportional face throughout; page title 40/44 (32 on a phone),
   section 24, body 16, caption 13. Labels are sentence case. */
h1 { font-family: var(--font-body); font-weight: 700; font-size: clamp(32px, 4.4vw, var(--fs-title)); line-height: 1.1; margin: 0; letter-spacing: -.02em; }
h2 { font-family: var(--font-body); font-weight: 700; font-size: var(--fs-section); line-height: var(--lh-section); margin: 0; letter-spacing: -.01em; }
.label { font-family: var(--font-body); font-weight: 600; font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--muted); }
.muted { color: var(--muted); font-size: var(--fs-caption); line-height: var(--lh-caption); }
.sub { color: var(--muted); font-size: 12px; line-height: 16px; }
.num, .money, .mono, .stat b, .headline, td, th { font-variant-numeric: tabular-nums; }
/* Amounts: the body face with tabular figures, not a monospace. */
.money { font-family: var(--font-body); font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.money.big { font-size: 22px; line-height: 24px; }
.gain { color: var(--green); }
.loss, .late-ink { color: var(--red); }
.mono { font-family: var(--font-mono); font-size: 12px; line-height: 16px; word-break: break-all; }

/* ---- controls: primary green pill, secondary ghost pill, text link ---- */
button, .btn, select, input, textarea { min-height: 44px; font: inherit; }
button, .btn { cursor: pointer; border-radius: var(--radius-pill); border: 1px solid var(--hairline);
  background: var(--tint); color: var(--ink); padding: 0 var(--space-5);
  font-family: var(--font-body); font-weight: 600; letter-spacing: 0; font-size: 15px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); text-decoration: none; }
.btn.primary, button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.ghost, .btn.secondary { background: transparent; border-color: var(--hairline); }
.btn.block { width: 100%; display: flex; min-height: 52px; font-size: 17px; }
.btn:disabled, button:disabled { opacity: .45; cursor: default; }
.link { background: none; border: 0; padding: 0; min-height: 0; color: var(--accent); font: inherit; font-size: 13px;
  font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Inputs: large, inset, rounded. */
input, select, textarea { width: 100%; background: var(--bg-0); color: var(--ink);
  border: 1px solid var(--hairline); border-radius: var(--radius-control); padding: var(--space-2) var(--space-4);
  box-shadow: inset 0 1px 2px color-mix(in srgb, var(--bg-0) 70%, #000); }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select { min-height: 52px; }
input[type="range"] { min-height: 0; box-shadow: none; border: 0; background: none; padding: 0; accent-color: var(--accent); }
input::placeholder { color: var(--faint); }

/* ---- top bar: sticky, 56 px, nothing else above the content ---- */
#chrome { min-height: var(--bar-h); display: flex; flex-direction: column; margin: 0 calc(-1 * max(var(--space-4), env(safe-area-inset-left,0))); }
/* reserve the bar before the module draws it: nothing below moves */
#chrome:empty::before { content: ""; height: var(--bar-h); display: block; }
.topbar { position: sticky; top: 0; z-index: 30; height: var(--bar-h); background: color-mix(in srgb, var(--bg-0) 72%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); border-bottom: 1px solid var(--hairline); }
/* Beta: a small pill in the bar; its sentence on hover/focus, in full in the footer. */
.beta-pill { display: inline-flex; align-items: center; border-radius: var(--radius-pill); min-height: 24px; height: 24px; padding: 0 10px; gap: 4px; font-size: 12px; font-weight: 600; color: var(--amber);
  background: color-mix(in srgb, var(--amber) 12%, transparent); border: 0; flex: none; }
.beta-pill span { font-size: 13px; opacity: .8; }
@media (max-width: 599px) { .brand-sep, .brand-name { display: none; } }
.topbar .in { max-width: 1120px; margin: 0 auto; height: 100%; display: flex; align-items: center; gap: var(--space-4);
  padding: 0 max(var(--space-4), env(safe-area-inset-left,0)); }
.brand { display: flex; align-items: center; gap: var(--space-2); text-decoration: none; color: inherit; flex: none; }
.brand img { border-radius: 6px; display: block; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: .18em; line-height: 1; color: var(--muted); }
.brand .brand-logo { height: 20px; width: auto; border-radius: 0; }
.brand-sep { width: 1px; height: 18px; background: var(--line-2); margin: 0 var(--space-1); }
.topnav { display: none; align-items: center; gap: var(--space-1); margin-left: var(--space-2); }
.topnav a, .topnav button { display: inline-flex; align-items: center; text-decoration: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 500;
  padding: 0 14px; min-height: 32px; border: 0; border-radius: var(--radius-pill); background: transparent; letter-spacing: 0; }
.topnav a.on { color: var(--ink); background: var(--tint); }
.topnav a:hover, .topnav button:hover { color: var(--ink); }
.topbar .who { margin-left: auto; display: flex; align-items: center; gap: var(--space-2); position: relative; }
.topbar .who .pseudo { display: none; font-size: 14px; color: var(--muted); }
.avatar-btn { width: 36px; height: 36px; min-height: 36px; padding: 0; border-radius: var(--radius-pill); border: 1px solid var(--line-2);
  background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; gap: 2px; }
.avatar-btn .caret { display: none; font-size: 10px; color: var(--muted); }
.signin { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 32px; padding: 0 14px;
  border: 0; border-radius: var(--radius-pill); color: var(--accent-ink); background: var(--accent); text-decoration: none;
  font-family: var(--font-body); font-weight: 600; font-size: 14px; }
.signin span { display: none; }
.signin svg { width: 18px; height: 18px; }
.menu { position: relative; }
.menu > div, .who > .drop { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--radius-2); padding: var(--space-1); min-width: 180px; z-index: 40;
  display: flex; flex-direction: column; gap: 2px; box-shadow: 0 12px 32px rgba(0,0,0,.45); }
.menu > div a, .drop a, .drop button { text-decoration: none; color: var(--ink); padding: 0 var(--space-3); border-radius: 6px;
  min-height: 40px; display: flex; align-items: center; font: inherit; font-size: 14px; border: 0; background: transparent; width: 100%; justify-content: flex-start; }
.drop .who-name { padding: var(--space-2) var(--space-3) var(--space-1); font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); }
.menu > div a:hover, .drop a:hover, .drop button:hover { background: var(--surface-2); }

/* bottom tab bar on a phone */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(var(--tabs-h) + env(safe-area-inset-bottom,0));
  padding-bottom: env(safe-area-inset-bottom,0); background: color-mix(in srgb, var(--bg-0) 80%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); border-top: 1px solid var(--hairline);
  display: flex; align-items: stretch; }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a.on { color: var(--accent); }
body.has-tabs { padding-bottom: calc(var(--tabs-h) + var(--space-5) + env(safe-area-inset-bottom,0)); }

@media (min-width: 769px) {
  .topnav { display: flex; }
  .tabbar { display: none; }
  body.has-tabs { padding-bottom: var(--s5); }
  .topbar .who .pseudo { display: inline; }
  .avatar-btn { width: auto; padding: 0 var(--space-2) 0 2px; }
  .avatar-btn .caret { display: inline; }
  .signin span { display: inline; }
}

/* ---- surfaces: one level, 24 px radius, hairline edge; never a card in a card ---- */
.card { background: var(--surface); border-radius: var(--radius-card); padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-3); border: 1px solid var(--hairline); }
.card .card { background: transparent; border: 0; border-radius: 0; padding: 0; }
@media (max-width: 599px) { .card { padding: var(--space-4); border-radius: 20px; } }
.card > .label { margin-bottom: var(--space-1); }
.card.flush { padding: 0; }
.row { display: flex; align-items: center; gap: var(--space-2); }
.row.between { justify-content: space-between; }
.grid { display: grid; gap: var(--space-3); }
@media (min-width: 760px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3,1fr); } }
.divider { height: 1px; background: var(--line); margin: var(--space-1) 0; }
.kv { display: flex; justify-content: space-between; gap: var(--space-3); padding: var(--space-2) 0; border-top: 1px solid var(--line); font-size: 13px; line-height: 18px; }
.kv:first-of-type { border-top: 0; padding-top: 0; }
.kv b { font-weight: 600; text-align: right; }

.avatar { width: 32px; height: 32px; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--ink);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 13px; flex: none; letter-spacing: .02em; }
.avatar.lg { width: 48px; height: 48px; font-size: 18px; }
/* Status pill. */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 0 10px; height: 22px; border-radius: var(--radius-pill);
  font-size: 12px; line-height: 22px; font-weight: 600; white-space: nowrap; letter-spacing: 0; }
.badge.verified, .badge.open { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.badge.full { background: color-mix(in srgb, var(--amber) 14%, transparent); color: var(--amber); }
.badge.running { background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue); }
.badge.settled { background: color-mix(in srgb, var(--faint) 20%, transparent); color: var(--grey); }
.badge.late { background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); }

.stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat b { font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 24px; white-space: nowrap; }
.stat b.money { font-family: var(--font-mono); font-size: 16px; }
.stat b.txt { font-size: 15px; font-weight: 600; color: var(--muted); }
.stat span { font-size: 12px; line-height: 16px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px,1fr)); gap: var(--space-3) var(--space-2); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); border-top: 1px solid var(--line); padding-top: var(--space-3); }
.kpis .stat { text-align: right; align-items: flex-end; }
.kpis .stat b { font-size: 22px; }
.kpis .stat.wide { display: none; }
@media (min-width: 1024px) {
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 0; padding-top: 0; }
  .kpis .stat.wide { display: flex; }
  .reviews-line { display: none; }
}

.bar { height: 4px; border-radius: var(--radius-pill); background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); }
.barline { display: flex; justify-content: space-between; gap: var(--space-2); font-size: 12px; line-height: 16px; color: var(--muted); }

.stepper { display: flex; gap: var(--space-2); }
.stepper div { flex: 1; font-size: 12px; line-height: 16px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-top: 2px solid var(--line-2); padding-top: var(--space-2); }
.stepper div.on { color: var(--ink); border-color: var(--accent); }

.qr { background: var(--ink); padding: 8px; border-radius: var(--radius-2); width: fit-content; margin: 0 auto; }
.warn { background: color-mix(in srgb, var(--amber) 10%, transparent); border: 1px solid color-mix(in srgb, var(--amber) 50%, transparent); color: var(--amber);
  border-radius: var(--radius-2); padding: var(--space-2) var(--space-3); font-size: 13px; line-height: 18px; font-weight: 600; }
.timeline { display: flex; gap: 4px; }
.timeline i { flex: 1; height: 4px; border-radius: var(--radius-pill); background: var(--surface-2); }
.timeline i.done { background: var(--accent); }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--space-4) + env(safe-area-inset-bottom,0)); z-index: 50;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius-2);
  padding: var(--space-2) var(--space-4); font-size: 13px; line-height: 18px; box-shadow: 0 8px 24px rgba(0,0,0,.4); max-width: calc(100vw - 32px); }
body.has-tabs .toast { bottom: calc(var(--tabs-h) + var(--space-4) + env(safe-area-inset-bottom,0)); }
@media (min-width: 769px) { body.has-tabs .toast { bottom: var(--space-5); } }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: var(--space-2); border-bottom: 1px solid var(--line); }
th { font-family: var(--font-display); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
td.num, th.num { text-align: right; font-family: var(--font-mono); font-size: 12px; }

/* ---- browse toolbar: title and filters on one line when there is room ---- */
.toolbar { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; min-height: 48px; }
.toolbar h1 { margin-right: auto; }
.toolbar .count { font-size: 12px; color: var(--muted); white-space: nowrap; }
.chipbtn { display: inline-flex; align-items: center; gap: 6px; border-radius: var(--radius-pill); min-height: 36px;
  padding: 0 var(--space-3); font-size: 14px; letter-spacing: .02em; }
.chipbtn.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.f { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.f > span { font-size: 12px; line-height: 16px; color: var(--muted); }
.f.check { flex-direction: row; align-items: center; gap: var(--space-2); min-height: 36px; cursor: pointer; }
.f.check input { width: 16px; height: 16px; min-height: 0; margin: 0; accent-color: var(--accent); }
.f.check > span { font-size: 14px; color: var(--ink); }
.sheet { position: fixed; inset: 0; z-index: 45; display: none; }
.sheet[open] { display: block; }
.sheet .veil { position: absolute; inset: 0; background: rgba(4,8,18,.66); }
.sheet .panel { position: absolute; left: 0; right: 0; bottom: 0; background: var(--surface);
  border-top: 1px solid var(--line-2); border-radius: var(--radius-2) var(--radius-2) 0 0;
  padding: var(--space-3) var(--space-4) calc(var(--space-4) + env(safe-area-inset-bottom,0));
  display: flex; flex-direction: column; gap: var(--space-3); max-height: 86vh; overflow: auto; }
.sheet .fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.sheet .grab { width: 40px; height: 4px; border-radius: var(--radius-pill); background: var(--line-2); margin: 0 auto; }
@media (min-width: 769px) {
  .sheet { position: static; display: block; width: 100%; }
  .sheet .veil { display: none; }
  .sheet .panel { position: static; border: 1px solid var(--line); border-radius: var(--radius-2); padding: var(--space-3) var(--space-4); max-height: none;
    flex-direction: row; align-items: center; flex-wrap: wrap; gap: var(--space-3) var(--space-4); }
  .sheet .fields { display: contents; }
  .sheet .f { flex-direction: row; align-items: center; gap: var(--space-2); }
  .sheet .f > span { white-space: nowrap; }
  .sheet .f select, .sheet .f input { min-height: 32px; padding: 0 var(--space-2); font-size: 13px; width: auto; max-width: 150px; }
  .sheet .f input { width: 72px; }
  .sheet .panel { gap: var(--space-3); }
  .toolbar h1 { white-space: nowrap; }
  .toolbar .count { display: none; }
  .sheet .f.check input { width: 16px; height: 16px; min-height: 0; padding: 0; }
  .sheet .grab, .sheet .sheet-close { display: none; }
  .toolbar .open-filters { display: none; }
}
@media (min-width: 1024px) {
  /* Title on its own line, every filter on one line under it, left-aligned
     with the table below. */
  .toolbar { flex-wrap: wrap; row-gap: var(--space-2); }
  .sheet { flex: 1 0 100%; display: flex; }
  .sheet .panel { border: 0; background: transparent; padding: 0; gap: var(--space-4); row-gap: var(--space-2); justify-content: flex-start; flex-wrap: wrap; }
  .sheet .f select { max-width: 140px; }
}


/* ---- offer rows: avatar · player | tournament | price | left | closes | status ----
   Each offer is a card: a lit surface, a mint rail for featured events, the
   player's own avatar hue, the tournament as the headline and the price as
   the number the eye lands on. The same markup at every width. */
.rows { display: flex; flex-direction: column; gap: var(--space-2); }
.orow { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; grid-template-rows: auto auto auto; column-gap: var(--space-3); row-gap: 4px;
  align-items: center; padding: var(--space-3) var(--space-4) var(--space-4); position: relative; overflow: hidden;
  text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: 12px;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  box-shadow: inset 0 1px 0 var(--hi), 0 1px 2px rgba(0,0,0,.35);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.orow::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: transparent; }
.orow.featured::before { background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 25%, transparent)); }
.orow:hover { transform: translateY(-1px); border-color: var(--line-2); box-shadow: inset 0 1px 0 var(--hi), 0 8px 24px rgba(0,0,0,.35), 0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent); }
.orow.notopen { opacity: .72; }
.orow .oc-player { display: contents; }
.orow .avatar { grid-row: 1 / span 2; align-self: start; width: 40px; height: 40px; font-size: 15px;
  background: linear-gradient(145deg, hsl(var(--hue,160) 45% 34%), hsl(var(--hue,160) 55% 18%)); color: var(--ink);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ink) 18%, transparent), 0 0 0 2px var(--surface), 0 0 0 3px hsl(var(--hue,160) 40% 30% / .6); }
.orow .name { font-weight: 600; font-size: 14px; line-height: 20px; white-space: nowrap; display: flex; align-items: center; gap: var(--space-2); min-width: 0; color: var(--muted); }
.orow .name > span:first-child { color: var(--ink); flex: 0 1 auto; min-width: 3ch; overflow: hidden; text-overflow: ellipsis; }
.orow .name .badge { flex: none; }
.orow .ontime { display: none; }
.orow .oc-tourn { grid-column: 2; grid-row: 2; min-width: 0; }
.orow .oc-tourn .tname { display: block; font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 24px; letter-spacing: .01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.orow .oc-tourn .tname .ftag { vertical-align: 3px; margin-right: 2px; }
.orow .oc-tourn .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.orow .oc-tourn .sub b, .orow .oc-tourn .sub .sep { display: none; }
.orow .oc-tourn .sub .room { display: inline; }
.orow .oc-tourn .sub .when { display: none; }
.orow .oc-price { grid-column: 3; grid-row: 1 / span 2; text-align: right; align-self: start; }
.orow .oc-price .money { font-size: 19px; line-height: 24px; color: var(--accent); font-weight: 700; letter-spacing: -.02em; }
.orow .oc-price .sub { display: block; }
.orow .oc-avail { grid-column: 1 / span 3; grid-row: 3; display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-1); }
.orow .oc-avail .bar { flex: 1; height: 6px; background: color-mix(in srgb, var(--ink) 6%, transparent); box-shadow: inset 0 1px 1px rgba(0,0,0,.4); }
.orow .oc-avail .bar i { background: linear-gradient(90deg, var(--accent), var(--accent)); box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 45%, transparent); border-radius: inherit; }
.orow .oc-avail .sub { white-space: nowrap; color: var(--ink); font-weight: 600; }
.orow .oc-closes { display: none; }
.orow .oc-status { display: none; }
.orow.notopen .oc-status { display: flex; grid-column: 3; grid-row: 3; justify-content: flex-end; }
.orow.notopen .oc-avail { grid-column: 1 / span 2; }
@media (min-width: 1024px) {
  .orow { grid-template-columns: 200px minmax(0,1fr) 130px 140px 100px 84px; grid-template-rows: none; column-gap: var(--space-3);
    min-height: 76px; padding: var(--space-3) var(--space-4) var(--space-3) calc(var(--space-4) + 3px); align-items: center; }
  .orow .oc-player { display: grid; grid-template-columns: 40px minmax(0,1fr); column-gap: var(--space-3); align-items: center; min-width: 0; }
  .orow .avatar { grid-row: 1 / span 2; align-self: center; }
  .orow .name { font-size: 15px; }
  .orow .oc-price .money { font-size: 22px; line-height: 26px; }
  .orow .oc-avail .bar { flex: none; width: 100%; }
  .orow .ontime { display: block; grid-column: 2; }
  .orow .oc-tourn { grid-column: auto; grid-row: auto; }
  .orow .oc-tourn .sub .when { display: inline; }
  .orow .oc-tourn .sub .when-s { display: none; }
  .orow .oc-price { grid-column: auto; grid-row: auto; align-self: center; }
  .orow .oc-avail { grid-column: auto; grid-row: auto; flex-direction: column; align-items: stretch; gap: 4px; margin: 0; }
  .orow .oc-avail .sub { font-size: 12px; }
  .orow .oc-closes { display: block; white-space: nowrap; }
  .orow .oc-status, .orow.notopen .oc-status { display: flex; grid-column: auto; grid-row: auto; justify-content: flex-end; }
  .orow.notopen .oc-avail { grid-column: auto; }
}

@media (min-width: 1200px) {
  .orow { grid-template-columns: 240px minmax(0,1fr) 150px 180px 110px 92px; column-gap: var(--space-4); }
}

/* ---- offer page ---- */
.cols { display: flex; flex-direction: column; gap: var(--space-4); }
.col-main, .col-side { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
@media (min-width: 1024px) {
  .cols { flex-direction: row; align-items: flex-start; }
  .col-main { flex: 0 0 60%; max-width: 60%; }
  .col-side { flex: 1; position: sticky; top: calc(var(--bar-h) + var(--space-4)); }
  .cols.profile .col-main { flex-basis: 55%; max-width: 55%; }
  .cols.profile .col-side { position: static; }
}
.chips { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.chips button { flex: 1 1 auto; min-width: 56px; }
.tlist { display: flex; flex-direction: column; }
.titem { padding: var(--space-2) 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.titem:first-child { border-top: 0; padding-top: 0; }
.titem:last-child { padding-bottom: 0; }
.titem .tname { font-weight: 600; font-size: 15px; line-height: 20px; }
.tmeta { font-size: 13px; line-height: 18px; color: var(--muted); }
.tmeta div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tmeta .money { font-size: 13px; font-weight: 500; color: var(--ink); }
.meta { font-size: 13px; line-height: 18px; color: var(--muted); display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; }
.meta .dot::before { content: "·"; margin-right: var(--space-2); }
.buybox .pick { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-3); padding-top: var(--space-2); border-top: 1px solid var(--line); }
.buybox .pick .stat:last-child { text-align: right; align-items: flex-end; }
.buybox .note { font-size: 13px; line-height: 18px; color: var(--muted); margin: 0; }
.buybox .state { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--muted); }
.headline { font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 28px; }

/* ---- trust ---- */
.trust { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; font-size: 13px; line-height: 18px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.steps li { display: flex; align-items: center; gap: var(--space-3); min-height: 32px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; }
.steps li i { width: 18px; height: 18px; border-radius: var(--radius-pill); border: 1.5px solid var(--line-2); display: grid; place-items: center;
  font-style: normal; font-size: 11px; font-weight: 800; color: var(--accent-ink); flex: none; }
.steps li.done { color: var(--ink); }
.steps li.done i { background: var(--accent); border-color: var(--accent); }
.steps li i::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.steps li.done i::before { content: "\2713"; width: auto; height: auto; background: none; border-radius: 0; }
.months { display: flex; gap: 3px; }
.months i { flex: 1; height: 8px; border-radius: 2px; background: var(--surface-2); min-width: 6px; }
.months i.on { background: var(--accent); }
.months i.off { background: color-mix(in srgb, var(--red) 45%, transparent); }
.badge-img { vertical-align: middle; margin-right: 4px; border-radius: 4px; }
.status-img { vertical-align: -1px; margin-right: 4px; border-radius: 3px; }
.card.band { flex-direction: row; gap: var(--space-4); align-items: flex-start; flex-wrap: wrap; }
.band .ident { display: flex; gap: var(--space-3); align-items: center; min-width: 0; flex: 1 1 240px; }
.band .ident .badges { display: flex; gap: var(--space-1); flex-wrap: wrap; margin-top: var(--space-1); }
.band .kpis { flex: 1 1 100%; }
@media (min-width: 1024px) { .card.band { flex-wrap: nowrap; align-items: center; } .band .kpis { flex: 0 0 52%; } }

/* legacy names some pages still use */
.banner { display: none; }
.filterbar { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.filterbar .count { font-size: 12px; color: var(--muted); }
.periods { display: flex; gap: var(--space-1); }
.periods .chipbtn { min-height: 28px; font-size: 12px; padding: 0 var(--space-2); flex: 1; letter-spacing: 0; }
@media (min-width: 480px) { .periods .chipbtn { flex: none; } }
.nav { display: none; }

/* Footer: affiliate disclosure, one slim line under every screen. The body
   is a column so a short page still parks the footer at the bottom of the
   viewport instead of right under the last link. */
body.has-tabs { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; box-sizing: border-box; }
body.has-tabs > .wrap { flex: 1 0 auto; width: 100%; min-width: 0; }
/* Auto side margins on a flex child turn off stretching: without the width
   above the column grows to its widest unbreakable line and the page scrolls
   sideways on a phone. */
.sitefoot { flex-shrink: 0; margin-top: 64px; border-top: 1px solid color-mix(in srgb, var(--muted) 15%, transparent); }
.sitefoot .in { max-width: 1120px; margin: 0 auto; padding: var(--space-5) 0; }
.sitefoot p { margin: 0; color: var(--faint); font-size: 12px; line-height: 16px; }
.sitefoot p + p { margin-top: var(--space-2); }

/* Featured event hero: one line of time, one of count, one button. */
.hero { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, transparent), color-mix(in srgb, var(--accent) 4%, transparent)); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: var(--radius-2); padding: var(--space-4); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); }
.hero .h-main { flex: 1 1 260px; display: flex; flex-direction: column; gap: 4px; }
.hero .h-title { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.1; letter-spacing: .01em; }
.hero .h-title b { color: var(--accent); }
.hero .h-sub { color: var(--muted); font-size: 13px; }
.hero .h-sub .late { color: var(--amber); }
.hero .btn { flex: 0 0 auto; }
.hero.off { border-style: dashed; background: none; }
.ftag { display: inline-flex; align-items: center; gap: 4px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); border-radius: var(--radius-pill);
  padding: 1px 8px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
/* Create offer: pick the featured event or go free-form. */
.pick { display: grid; gap: var(--space-2); }
.pick .opt { text-align: left; border: 1px solid color-mix(in srgb, var(--muted) 25%, transparent); border-radius: var(--radius-2); padding: var(--space-3) var(--space-4);
  background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.pick .opt { align-items: flex-start; justify-content: flex-start; }
.pick .opt.has-mark { flex-direction: row; align-items: center; gap: var(--space-3); }
.pick .opt .room-mark, .titem .room-mark { border-radius: var(--radius-pill); flex: none; }
.opt-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.opt-title { display: flex; align-items: center; gap: var(--space-2); font-weight: 500; }
.opt-gtd { color: var(--ink); font-weight: 500; }
.pick .opt.over { opacity: .6; cursor: not-allowed; }
.pick .opt .over-why { color: var(--last-call); }
.pick .opt .sub { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
/* Selects as tall as the inputs next to them, Safari included. */
#app select { -webkit-appearance: none; appearance: none; min-height: 48px; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.pick .opt.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.pick .opt .sub { color: var(--muted); font-size: 12px; }
/* Leaderboard tables. */
.board { width: 100%; border-collapse: collapse; font-size: 14px; }
.board th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12px; padding: 4px 6px; }
.board td { padding: 8px 6px; border-top: 1px solid color-mix(in srgb, var(--muted) 12%, transparent); vertical-align: middle; }
.board td.n, .board th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.board td.rank { color: var(--muted); width: 28px; }

.hero .h-art { width: 220px; height: auto; aspect-ratio: 16 / 9; border-radius: 8px; object-fit: cover; flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
@media (max-width: 600px) { .hero .h-art { width: 100%; } }
.oc-price .sub.paid { color: var(--accent); }
/* Tournament picker under the name field. */
.picker { position: relative; }
.picker .menu { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; margin-top: 4px; background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--muted) 25%, transparent); border-radius: var(--radius-2); max-height: 280px; overflow: auto; box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.picker .menu button { display: flex; width: 100%; justify-content: space-between; gap: 12px; text-align: left; background: none; border: 0;
  color: var(--ink); font: inherit; padding: 10px 12px; min-height: 0; cursor: pointer; }
.picker .menu button:hover, .picker .menu button.on { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.picker .menu .src { color: var(--muted); font-size: 12px; white-space: nowrap; }

.sat-line { font-size: 13px; line-height: 18px; color: var(--muted); padding: 8px 10px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 7%, transparent); }
.sat-line .ftag { margin-right: 4px; }

/* ---- legacy page (/market/my) on the current look ---- */
body.legacy .wrap > h1 { margin-top: var(--space-2); }
body.legacy main#app { display: flex; flex-direction: column; gap: var(--space-5); }
body.legacy .box { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); }
body.legacy .box[hidden] { display: none; }
body.legacy .box > .label { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: .02em; text-transform: none; color: var(--ink); }
body.legacy form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-3); align-items: end; }
body.legacy .field { display: flex; flex-direction: column; gap: var(--space-1); }
body.legacy .field label { font-size: var(--fs-xs); color: var(--muted); }
body.legacy form .btn { min-height: 44px; }
body.legacy .badge.ok { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
body.legacy .badge.wait { background: color-mix(in srgb, var(--last-call) 14%, transparent); color: var(--last-call); }
body.legacy .msg { padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); font-size: var(--fs-sm); background: var(--bg-2); }
body.legacy .msg.ko { color: var(--late); }
body.legacy .table-wrap { overflow-x: auto; }
body.legacy .muted { font-size: var(--fs-sm); }

/* ---- legacy Mod page: tables and buttons ---- */
body.legacy table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
body.legacy th { font-family: var(--font-body); font-weight: 500; font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--line); text-align: left; }
body.legacy td { padding: var(--space-3); border-bottom: 1px solid var(--line); vertical-align: middle; }
body.legacy tr:last-child td { border-bottom: 0; }
body.legacy td .btn, body.legacy td button { min-height: 30px; padding: 0 var(--space-3); font-size: var(--fs-xs); }
body.legacy .btn.danger { background: transparent; color: var(--late); border-color: color-mix(in srgb, var(--late) 55%, transparent); }
body.legacy .badge.late { background: color-mix(in srgb, var(--late) 14%, transparent); color: var(--late); }
body.legacy .empty { color: var(--muted); font-size: var(--fs-sm); padding: var(--space-3); border: 1px dashed var(--line-2); border-radius: var(--radius-sm); }

body.legacy .news-out { margin: 0; padding: var(--space-3) var(--space-4); background: var(--bg-0); border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); white-space: pre-wrap; }
body.legacy textarea { width: 100%; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3); font: inherit; }

/* Buy screen: what you buy into on top, one choice, the action always in reach. */
.backlink { text-decoration: none; align-self: flex-start; }
.buyscreen .headline { font-size: 22px; line-height: 26px; }
.player-line { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.player-line .pname { font-weight: 600; font-size: 16px; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-line .pstats { font-size: 13px; line-height: 18px; }
.items-card > summary { cursor: pointer; font-size: 13px; color: var(--muted); list-style-position: inside; }
.items-card[open] > summary { margin-bottom: var(--space-2); }
.sharebtns { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); }
.sharebtn { flex-direction: column; justify-content: center; gap: 0; min-height: 52px; border-radius: var(--radius-md); padding: 6px 4px; line-height: 1.2; }
.sharebtn b { font-size: 15px; }
.sharebtn span { font-size: 11px; font-family: var(--font-mono); opacity: .85; white-space: nowrap; }
.sticky-go { position: sticky; bottom: 0; z-index: 5; background: var(--surface); padding-top: var(--space-2); margin-top: calc(-1 * var(--space-2)); }
@media (max-width: 768px) { body.has-tabs .sticky-go { bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px)); } }
details.info > summary { cursor: pointer; color: var(--muted); font-size: 14px; }
details.info[open] > summary { margin-bottom: var(--space-2); }
.btn.loading { opacity: .75; cursor: progress; }
.field-err { margin: 0; color: var(--red); font-size: 13px; }
.clock-big { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 28px; }

/* Inside Discord: a small window. No beta line, an arrow for "back", tighter boxes. */
.in-discord .wrap { gap: var(--space-2); }
.in-discord .card { padding: var(--space-3); gap: var(--space-2); }
.in-discord .backlink { font-size: 18px; line-height: 1; padding: 4px 0; }
.in-discord .backlink span { display: none; }
.in-discord .buyscreen .headline { font-size: 18px; line-height: 22px; }
.in-discord .buyscreen #record, .in-discord .buyscreen #formats:empty { display: none; }
.in-discord .buyscreen .note { margin: 0; }
/* The buy screen in Discord fits the window: no tab bar (the arrow goes back),
   no page footer (its disclosure sits under ⓘ), a slimmer top bar. */
.in-discord body:has(.buyscreen:not([hidden])) { padding-bottom: var(--space-2); }
.in-discord body:has(.buyscreen:not([hidden])) .tabbar,
.in-discord body:has(.buyscreen:not([hidden])) #sitefoot,
.in-discord .buyscreen .buybox > .row.between:first-child { display: none; }
.in-discord body:has(.buyscreen:not([hidden])) .sticky-go { bottom: 0; }
.in-discord .topbar { --bar-h: 44px; height: 44px; }
.in-discord .buyscreen .items-card { padding: var(--space-2) var(--space-3); }
.in-discord .buyscreen details.info { padding: var(--space-2) var(--space-3); }
.in-discord .buyscreen .offer-head, .in-discord .buyscreen .buybox { gap: 6px; }

/* ================================================================
   Shared components (lot A). Lots B and C build every screen from these.
   ================================================================ */
/* List row: 72 px, a hover tint, hairline between rows. */
.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: var(--space-4); min-height: 72px; padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-control); color: inherit; text-decoration: none; position: relative; }
.list-row + .list-row::before { content: ""; position: absolute; left: var(--space-4); right: var(--space-4); top: 0; height: 1px; background: var(--hairline); }
a.list-row:hover, button.list-row:hover { background: var(--tint); }
.list-row .lr-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.list-row .lr-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .lr-sub { font-size: var(--fs-caption); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .lr-end { text-align: right; flex: none; }
/* Tournament row: the list row with the room's logo first and an action pill last. */
.t-row { width: 100%; justify-content: flex-start; text-align: left; border: 0; background: transparent; font: inherit; font-weight: 400; cursor: pointer; }
.t-row .room-mark { flex: none; border-radius: var(--radius-pill); }
.t-row.over { cursor: not-allowed; }
.t-row.over > :not(.lr-main) , .t-row.over .lr-title { opacity: .45; }
.t-row .why { color: var(--last-call); }
/* Pills: a small action pill and a removable chip. */
.pill-btn { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 600;
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); white-space: nowrap; }
.chip { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 40px; padding: 4px 6px 4px 6px; border-radius: var(--radius-pill);
  background: var(--tint); border: 1px solid var(--hairline); max-width: 100%; }
.chip .chip-txt { display: grid; min-width: 0; line-height: 1.2; padding-right: 4px; }
.chip .chip-txt b { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip .chip-txt small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.chip .x { min-height: 28px; height: 28px; width: 28px; padding: 0; border: 0; flex: none; font-size: 16px; color: var(--muted); background: var(--tint); }
.chip .x:hover { color: var(--ink); }
.chiprow { display: flex; flex-wrap: wrap; gap: var(--space-2); }
/* Empty state. */
.empty { display: grid; justify-items: center; gap: var(--space-2); padding: var(--space-6) var(--space-4); text-align: center; color: var(--muted); }
.empty b { color: var(--ink); font-size: 17px; font-weight: 600; }
/* Helper and error text. */
.help { margin: 0; font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--muted); }
.err { margin: 0; font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--amber); }
/* Stepper: four dots and the current step's name. */
.dots { display: flex; gap: 6px; align-items: center; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); transition: width .3s var(--ease), background .3s var(--ease); }
.dots i.on { width: 24px; border-radius: 4px; background: var(--accent); }
.dots i.done { background: color-mix(in srgb, var(--accent) 55%, transparent); }
/* Big value with a slider and -/+ beside it. */
.bigval { display: flex; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; }
.bigval b { font-size: 56px; line-height: 1; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.bigval small { color: var(--muted); font-size: 15px; }
.bigval small strong { color: var(--ink); font-weight: 600; }
.slide { display: flex; align-items: center; gap: var(--space-3); }
.slide input[type="range"] { flex: 1; height: 28px; }
.round { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; font-size: 22px; font-weight: 500; flex: none; }
.exact { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--muted); font-size: var(--fs-caption); }
.exact input { width: 88px; min-height: 40px !important; text-align: right; padding: 0 var(--space-3); }
/* Sticky bottom action bar, safe-area aware. */
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; padding: var(--space-3) max(var(--space-4), env(safe-area-inset-left,0)) calc(var(--space-3) + env(safe-area-inset-bottom,0));
  background: color-mix(in srgb, var(--bg-0) 78%, transparent); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--hairline); }
.actionbar .in { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: var(--space-3); }
.actionbar .why { flex: 1; min-width: 0; margin: 0; font-size: var(--fs-caption); color: var(--muted); }
.actionbar .btn { min-height: 48px; padding: 0 var(--space-6); }
.actionbar .btn.primary { min-width: 140px; }
.actionbar .btn:disabled { opacity: .35; }
@media (max-width: 599px) {
  .actionbar .why { display: none; }
  .actionbar .btn { flex: 1; padding: 0 var(--space-4); }
  .actionbar .btn.primary { flex: 2; min-width: 0; }
}
/* A page with an action bar: no tab bar under it, room above it. */
body:has(.actionbar:not([hidden])) .tabbar { display: none; }
body.has-tabs:has(.actionbar:not([hidden])) { padding-bottom: calc(88px + env(safe-area-inset-bottom,0)); }

/* ---- Create an offer: one step per screen ---- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wizard { display: flex; flex-direction: column; gap: var(--space-5); max-width: 760px; width: 100%; margin: 0 auto; }
.wz-head { display: grid; gap: var(--space-3); }
.wz-step { display: flex; align-items: center; gap: var(--space-3); }
.wz-step p { margin: 0; color: var(--muted); font-size: 15px; }
.wz-body { display: flex; flex-direction: column; gap: var(--space-4); }
.wz-body.two { display: grid; gap: var(--space-4); }
@media (min-width: 700px) { .wz-body.two { grid-template-columns: 3fr 2fr; align-items: start; } }
.wizard .card > h2.label { margin: 0; }
.picked { display: grid; gap: var(--space-2); padding-bottom: var(--space-4); border-bottom: 1px solid var(--hairline); }
.picked:has(.chip) .help { display: none; }
.search { position: relative; display: block; }
.search svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.search input { padding-left: 46px; }
#sched-list { max-height: 440px; overflow: auto; gap: 0; margin: var(--space-2) calc(-1 * var(--space-3)) 0; padding: 0; }
#sched-list .lr-title { display: flex; align-items: center; gap: var(--space-2); }
#sched-list .lr-end .amt { font-weight: 600; }
.wizard .chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.wizard .chips button { flex: 0 0 auto; min-height: 36px; padding: 0 14px; font-size: 14px; }
.wizard .chips button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.totals { display: flex; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--hairline); }
.totals .stat b.money { font-size: 24px; line-height: 1.2; }
.totals .stat:last-child { text-align: right; align-items: flex-end; }
.totals .stat:last-child b { color: var(--accent); }
.wizard #msg { margin: 0; }
.backlink { font-size: 15px; }
/* The schedule dropdown still pre-selects a ?mtt= link; the list replaces it on screen. */
.wizard .mtt-pick { display: none !important; }
.chip { min-width: 0; }
.chip .chip-txt { flex: 1 1 auto; }
.chip .chip-txt small { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 599px) {
  .t-row { gap: var(--space-3); padding-left: var(--space-3); padding-right: var(--space-3); }
  .t-row .amt svg:first-child { display: none; }
}

/* The #offers post, drawn the way Discord draws an embed. */
.dc-msg { display: grid; gap: var(--space-2); max-width: 520px; }
.dc-embed { display: flex; gap: var(--space-4); padding: 12px 16px 14px; border-radius: 6px; background: var(--bg-1);
  border: 1px solid var(--hairline); border-left: 4px solid var(--accent); }
.dc-main { flex: 1; min-width: 0; display: grid; gap: 8px; }
.dc-main p { margin: 0; }
.dc-author { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.dc-author img, .dc-foot img { border-radius: 50%; }
.dc-title { font-weight: 700; color: var(--blue); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dc-desc { font-size: 14px; color: var(--muted); }
.dc-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; }
.dc-f { display: grid; min-width: 0; font-size: 14px; }
.dc-f b { font-weight: 700; font-size: 13px; }
.dc-f span { overflow-wrap: anywhere; }
.dc-foot { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.dc-thumb { flex: none; width: 64px; height: 64px; border-radius: 6px; }
.dc-btns { display: flex; gap: 8px; }
/* Discord's own button colours: these are a picture of Discord. */
.dc-btns span { display: inline-flex; align-items: center; height: 32px; padding: 0 16px; border-radius: 4px; font-size: 14px; font-weight: 500; }
.dc-link { background: #4e5058; color: #fff; }
.dc-buy { background: #5865f2; color: #fff; }
@media (max-width: 479px) { .dc-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dc-thumb { width: 48px; height: 48px; } }

/* Inside Discord (720 × 480 and the like): every step fits the window, the
   list scrolls inside its card, no footer under the action bar. */
.in-discord .wizard { gap: var(--space-3); }
.in-discord .wizard h1 { font-size: 22px; }
.in-discord .wz-head { grid-template-columns: auto 1fr; align-items: center; gap: var(--space-4); }
.in-discord .wz-step { justify-content: flex-end; }
.in-discord body:has(.wizard:not([hidden])) #sitefoot, .in-discord body:has(.wizard:not([hidden])) .backlink { display: none; }
.in-discord body:has(.wizard:not([hidden])) { padding-bottom: 76px; }
.in-discord .wizard .card { padding: var(--space-3) var(--space-4); gap: var(--space-2); border-radius: 18px; }
.in-discord #sched-list { max-height: calc(100dvh - 44px - 76px - 230px); min-height: 120px; }
.in-discord .picked { padding-bottom: var(--space-2); }
.in-discord .bigval b { font-size: 40px; }
.in-discord .totals { padding-top: var(--space-2); }
.in-discord .totals .stat b.money { font-size: 20px; }
.in-discord .actionbar { padding-top: var(--space-2); padding-bottom: calc(var(--space-2) + env(safe-area-inset-bottom,0)); }
.in-discord .actionbar .btn { min-height: 44px; }
.in-discord .dc-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.in-discord .dc-embed { padding: 10px 14px; }
.in-discord .dc-main { gap: 6px; }
.in-discord #s4 .help { display: none; }
.in-discord input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), .in-discord select { min-height: 44px; }
