/* Orchard components. Tokens only: every colour is a var(--…) from
   /brand/tokens.css. Grid and flex, nothing else. */

/* ---- format badges ---- */
.fbadges { display: inline-flex; gap: 4px; align-items: center; flex: none; min-width: 0; }
.fbadge { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: var(--radius-sm);
  font-size: 11px; line-height: 18px; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
  color: var(--tone, var(--muted)); background: color-mix(in srgb, var(--tone, var(--muted)) 16%, transparent); }
.fbadge[data-tone="bounty"], .fbadge[data-tone="stakes"] { --tone: var(--tone-bounty); }
.fbadge[data-tone="speed"] { --tone: var(--tone-speed); }
.fbadge[data-tone="table"], .fbadge[data-tone="region"] { --tone: var(--tone-table); }
.fbadge[data-tone="game"] { --tone: var(--tone-game); }
.fbadge[data-tone="structure"] { --tone: var(--tone-structure); }
.fbadge[data-tone="satellite"] { --tone: var(--tone-satellite); }
.fbadge.more { --tone: var(--muted); }
@media (max-width: 600px) {
  .fbadge:not(.more) { font-size: 0; min-width: 18px; justify-content: center; padding: 0; }
  .fbadge:not(.more)::before { content: attr(data-short); font-size: 11px; }
}

/* ---- MTT row: time | tournament + GTD, format | buy-in | offers ----
   Fixed tracks shared with the header, so every value sits in its column. */
.mrows { display: flex; flex-direction: column; gap: 2px; }
.mrow, .mhead { display: grid; grid-template-columns: 76px minmax(0,1fr) 120px 112px; column-gap: var(--space-4); align-items: center; }
.mhead { padding: 0 var(--space-3) var(--space-1) var(--space-4); font-size: var(--fs-xs); color: var(--faint); letter-spacing: .08em; text-transform: uppercase; }
.mhead .r { text-align: right; }
.mrow { height: var(--row-h); padding: 0 var(--space-3) 0 var(--space-4); background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--ink); cursor: pointer; position: relative; overflow: hidden; outline: none; }
.mrow > * { grid-row: 1; min-width: 0; }
.mrow::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: transparent; }
.mrow.has::before { background: var(--accent); }
.mrow.featured::before { background: var(--featured); }
.mrow:hover, .mrow:focus-visible { border-color: var(--line-2); background: var(--bg-2); }
.mrow:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.m-time { grid-column: 1; font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; }
.m-name { grid-column: 2; display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.m-tn { flex: 0 0 340px; display: flex; align-items: baseline; gap: var(--space-2); min-width: 0; }
.m-tt { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); line-height: var(--lh-lg); letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.m-money { grid-column: 3; display: flex; justify-content: flex-end; font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: 600; text-align: right; white-space: nowrap; }
.m-gtd { flex: none; display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500; color: var(--muted); white-space: nowrap; }
.m-gtd .amt { gap: 3px; } .m-gtd .amt svg { width: 12px; height: 12px; }
.m-gtd i { font-style: normal; font-size: 10px; letter-spacing: .08em; color: var(--faint); }
/* Offers badge: a dark pill with an accent border, the count in a solid disc. */
.m-pill { grid-column: 4; justify-self: end; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 3px; border-radius: var(--radius-pill);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .02em; white-space: nowrap; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--bg-1)); border: 1px solid color-mix(in srgb, var(--accent) 70%, transparent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 22%, transparent); }
.m-pill b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--radius-pill);
  background: var(--accent); color: var(--accent-ink); font-family: var(--font-mono); font-size: 12px; }
.m-pill.none { background: transparent; border: 0; box-shadow: none; padding: 0; color: var(--faint); font-weight: 500; }
.m-sell { position: absolute; right: 284px; top: 50%; transform: translateY(-50%); font-size: var(--fs-xs); color: var(--accent); text-decoration: none;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 2px 8px; background: var(--bg-1); opacity: 0; }
.mrow:hover .m-sell, .mrow:focus-within .m-sell { opacity: 1; }
.mday { position: sticky; top: var(--bar-h, 56px); z-index: 5; background: var(--bg-0); padding: var(--space-3) 0 var(--space-1);
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 1023px) { .mrow, .mhead { grid-template-columns: 68px minmax(0,1fr) 108px 104px; column-gap: var(--space-3); } .m-tn { flex-basis: 280px; } }
@media (max-width: 600px) {
  .mhead { display: none; }
  .mrow { height: var(--row-h-mobile); grid-template-columns: 60px minmax(0,1fr) auto 52px; padding: 0 var(--space-2) 0 var(--space-3); column-gap: var(--space-2); }
  .m-time { font-size: var(--fs-xs); }
  .m-tn { flex: 1 1 auto; }
  .m-tt { font-size: var(--fs-md); }
  .m-money .tkt { display: none; }
  .m-money { grid-column: 3; }
  .m-gtd { display: none; }
  .m-pill { padding: 0 3px; height: 24px; }
  .m-pill > span { display: none; }
  .m-sell { display: none; }
}

/* ---- offer row: player | tournament | buy-in | closes in | available | 1 % | risk ----
   No bold anywhere. The three decision values use --ink at a slightly
   larger size; the rest is --muted. Currency is always written. */
.ocards { display: flex; flex-direction: column; gap: var(--space-1); }
.ocard, .ohead { display: grid; grid-template-columns: 280px minmax(0,1fr) 96px 104px 84px 120px 96px 48px; column-gap: var(--space-4); align-items: center; }
.ohead { padding: 0 var(--space-4) var(--space-1) calc(var(--space-4) + 3px); }
.ohead > * { font: inherit; font-size: var(--fs-xs); color: var(--faint); letter-spacing: .08em; text-transform: uppercase; text-align: left;
  background: none; border: 0; padding: 0; min-height: 0; cursor: default; white-space: nowrap; }
.ohead > .r { text-align: right; justify-self: end; }
.ohead > button { cursor: pointer; }
.ohead > button:hover, .ohead > .on { color: var(--ink); }
.ohead > .on::after { content: " ▾"; }
.ocard { min-height: 58px; padding: var(--space-2) var(--space-4) var(--space-2) calc(var(--space-4) + 3px); background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--radius-sm); color: inherit; text-decoration: none; position: relative; overflow: hidden; font-weight: 400; }
.ocard > * { min-width: 0; }
.ocard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: transparent; }
.ocard.featured::before { background: var(--featured); }
.ocard:hover { border-color: var(--line-2); background: var(--bg-2); }
.ocard.notopen { opacity: .72; }
.o-player { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.o-av { width: 32px; height: 32px; border-radius: var(--radius-pill); display: grid; place-items: center; position: relative; flex: none;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xs); color: var(--ink); background: hsl(var(--hue,160) 40% 30%); }
.o-av.is-room { background: none; }
.o-av .room-mark { width: 100%; height: 100%; border-radius: var(--radius-pill); display: block; }
.o-late { position: absolute; right: -1px; top: -1px; width: 10px; height: 10px; border-radius: var(--radius-pill); background: var(--late); border: 2px solid var(--bg-1); }
.o-id, .o-mtt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.o-name { display: flex; align-items: center; gap: 6px; font-size: var(--fs-md); line-height: var(--lh-md); white-space: nowrap; overflow: hidden; }
/* The name gives way (ellipsis) so the tier chip after it always shows whole. */
.o-pseudo { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.o-name > :not(.o-pseudo) { flex: none; }
.o-name .tier-mark, .o-name .seal-mark { display: block; }
.o-name .seal-mark + .o-trust, .o-name .tier-mark + .o-trust { margin-left: 2px; }
/* The trust badge stays, quieter: the tier emblem leads now. */
.o-trust { display: inline-flex; opacity: .7; }
.o-trust .mb.sb { width: 14px; height: 14px; padding: 0; }
.ocard .badge { font-weight: 500; }
.o-tline { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.o-tname { min-width: 0; font-size: var(--fs-md); line-height: var(--lh-md); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-meta { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.o-sub { font-size: var(--fs-xs); line-height: var(--lh-xs); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-num { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; }
.o-cur { display: inline-flex; margin-left: 4px; vertical-align: -2px; }
.usdt { flex: none; display: inline-block; vertical-align: -2px; }
.amt { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.o-key { color: var(--ink); font-size: var(--fs-md); }
.o-gtd { color: var(--ink); font-weight: 500; }
.o-closes.soon { color: var(--last-call); }
.o-closes.now { color: var(--late); }
.o-left { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.o-pct { font-family: var(--font-mono); color: var(--accent); }
.o-bar { width: 100%; height: 4px; border-radius: var(--radius-pill); background: var(--line-2); overflow: hidden; }
.o-bar i { display: block; height: 100%; background: var(--accent); }
.o-risk { justify-self: end; display: flex; }
.osum { font-size: var(--fs-sm); color: var(--muted); }
.osum b { font-weight: 400; color: var(--ink); font-family: var(--font-mono); }
@media (max-width: 1100px) { .ocard, .ohead { grid-template-columns: 240px minmax(0,1fr) 88px 96px 72px 100px 88px 44px; column-gap: var(--space-3); } }
@media (max-width: 760px) {
  .ohead { display: none; }
  .ocard { grid-template-columns: minmax(0,1fr) auto auto; grid-template-rows: auto auto; row-gap: var(--space-2); column-gap: var(--space-3); padding-right: var(--space-3); }
  .o-player { grid-column: 1; grid-row: 1; }
  .ocard > .o-num.o-key:not(.o-closes) { grid-column: 2; grid-row: 1; }
  .o-risk { grid-column: 3; grid-row: 1; }
  .o-mtt { grid-column: 1; grid-row: 2; }
  .o-closes { grid-column: 2; grid-row: 2; }
  .o-left { grid-column: 3; grid-row: 2; width: 72px; }
  .ocard > .o-num:not(.o-key) { display: none; }
  .ocard > .o-gtd { display: none; }
  .o-left .o-sub, .o-id .o-sub { display: none; }
  /* No room for seals beside the name on a phone: the tier emblem stays, the
     seals are on the offer page and the profile. */
  .o-name .seal-mark { display: none; }
}

/* ---- hero band: quiet, one row ---- */
.hband { position: sticky; top: var(--bar-h, 56px); z-index: 6; display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; align-items: center; column-gap: var(--space-3);
  min-height: 60px; padding: var(--space-2) var(--space-4) var(--space-2) calc(var(--space-4) + 3px); border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--bg-1); overflow: hidden; }
.hband::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--featured); }
.hband.off { grid-template-columns: 1fr; min-height: 44px; border-style: dashed; }
.hband.off::before { display: none; }
.hb-room .room-badge { width: 36px; height: 36px; }
.hb-main { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.hb-title { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.hb-name { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); line-height: var(--lh-lg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-count { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--featured); white-space: nowrap; }
.hb-sub { display: flex; align-items: center; gap: var(--space-1); color: var(--muted); font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; }
.tkt { flex: none; color: var(--muted); }
.hb-gtd { color: var(--ink); font-weight: 500; }
.hb-n { font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; }
.hb-cta { min-height: 32px; padding: 0 var(--space-3); font-size: var(--fs-sm); white-space: nowrap; }
.hband.collapsed { min-height: 44px; }
.hband.collapsed .hb-sub { display: none; }
@media (max-width: 600px) {
  .hband { grid-template-columns: auto minmax(0,1fr) auto; }
  .hb-n { display: none; }
  /* Not enough room beside the button: the countdown takes its own line. */
  .hb-title { flex-wrap: wrap; row-gap: 0; }
  .hb-name { min-width: 0; }
  .hb-count { flex-basis: 100%; }
  /* Buy-in and GTD wrap rather than clip; each amount stays with its mark. */
  .hb-sub { flex-wrap: wrap; white-space: normal; row-gap: 0; }
}

/* ---- MTT badges: HTML/CSS + inline SVG, colours from tokens ---- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: optional; src: url(/fonts/inter-700.woff2) format("woff2"); }
.mbs { display: inline-flex; gap: var(--space-1); align-items: center; flex: none; min-width: 0; vertical-align: middle; }
.mb { --c: var(--badge-format); position: relative; display: inline-flex; align-items: center; gap: 4px; flex: none;
  height: 22px; padding: 0 9px 0 6px; border-radius: var(--radius-pill); box-sizing: border-box;
  background: var(--badge-bg); border: 1px solid color-mix(in srgb, var(--c) 45%, var(--badge-border)); color: var(--badge-text);
  font-family: "Inter", var(--font-body); font-weight: 700; font-size: 10.5px; line-height: 1; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.mb svg { width: 14px; height: 14px; flex: none; color: var(--c); }
.mb::after { content: ""; position: absolute; top: -3px; right: 3px; width: 7px; height: 7px; background: var(--c);
  border-radius: 0 100% 0 100%; transform: rotate(-12deg); box-shadow: 0 0 0 1.5px var(--badge-bg); }
.mb[data-cat="bounty"] { --c: var(--badge-bounty); }
.mb[data-cat="format"] { --c: var(--badge-format); }
.mb[data-cat="speed"] { --c: var(--badge-speed); }
.mb[data-cat="structure"] { --c: var(--badge-structure); }
.mb[data-cat="prestige"] { --c: var(--badge-prestige); }
.mb[data-glow] { --c: var(--badge-glow); border-color: var(--badge-glow);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--badge-glow) 35%, transparent), 0 0 10px color-mix(in srgb, var(--badge-glow) 55%, transparent); }
@media (max-width: 600px) {
  .mb { height: 18px; padding: 0 7px 0 5px; gap: 3px; font-size: 9px; }
  .mb svg { width: 12px; height: 12px; }
  .mb::after { width: 6px; height: 6px; top: -2px; }
  /* In a row the name needs the room: icon only, the label stays in the
     tooltip and the aria-label. The legend keeps the full pill. */
  .mrow .mb, .ocard .mb { padding: 0; width: 22px; justify-content: center; }
  .mrow .mb-t, .ocard .mb-t { display: none; }
}
/* Badges are icon only; the hover says what each one is. */
.mb { width: 22px; padding: 0; justify-content: center; }
.mb::after { display: none; }
.o-risk .mb.sb { width: 26px; height: 26px; }
.o-risk .mb svg { width: 18px; height: 18px; }
.mb.sb { height: 20px; width: 20px; }
@media (max-width: 600px) { .mb, .mb.sb { height: 18px; width: 18px; padding: 0; } }
.hb-title .mbs { margin: 0 var(--space-1); vertical-align: -3px; }

/* ---- instant tooltip (shell.js), above everything ---- */
.tip { position: fixed; z-index: 100; max-width: 280px; padding: 6px 10px; border-radius: var(--radius-sm); pointer-events: none;
  background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); color: var(--ink); font: 12px/16px var(--font-body); }
[data-tip] { cursor: help; }

/* ---- room mark ---- */
.room-badge { width: 22px; height: 22px; border-radius: var(--radius-pill); flex: none; display: block; }
.room-txt { font-size: var(--fs-xs); color: var(--muted); flex: none; }

/* ---- My deals: one row per deal / per offer ---- */
.dlist { display: flex; flex-direction: column; gap: var(--space-1); }
#offers.dlist { margin-top: 0; }
.drow { display: grid; grid-template-columns: 200px minmax(0,1fr) 88px 128px 120px auto; column-gap: var(--space-4); align-items: center;
  padding: var(--space-2) var(--space-4); background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.drow.orow-mine { grid-template-columns: minmax(0,1fr) 160px 96px 104px auto; }
.d-who, .d-mtt { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.d-who .avatar { width: 28px; height: 28px; font-size: 11px; }
.d-id { display: flex; flex-direction: column; min-width: 0; }
.d-id > span:first-child, .d-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); text-decoration: none; }
.d-sub { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }
.d-num { display: flex; flex-direction: column; align-items: flex-end; font-family: var(--font-mono); font-size: var(--fs-sm); white-space: nowrap; }
.d-num .d-sub { font-family: var(--font-body); }
.d-state { justify-self: end; }
.d-act { display: flex; gap: var(--space-2); justify-content: flex-end; flex-wrap: wrap; }
.d-act:empty { display: none; }
.d-act .btn, .d-act button { min-height: 32px; font-size: var(--fs-sm); padding: 0 var(--space-3); }
.d-extra { grid-column: 1 / -1; margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.d-due { display: flex; justify-content: space-between; align-items: center; }
.d-sold { display: flex; flex-direction: column; gap: 4px; font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--muted); }
.d-bar { height: 4px; border-radius: var(--radius-pill); background: var(--line-2); overflow: hidden; }
.d-bar i { display: block; height: 100%; background: var(--accent); }
#offers-box .label { margin-bottom: var(--space-2); }
@media (max-width: 760px) {
  .drow { grid-template-columns: minmax(0,1fr) auto; row-gap: var(--space-2); }
  .drow .d-who { grid-column: 1; }
  .drow .d-state { grid-column: 2; grid-row: 1; }
  .drow .d-mtt { grid-column: 1 / -1; }
  .drow .d-num { align-items: flex-start; }
  .drow.orow-mine { grid-template-columns: minmax(0,1fr) auto; }
}

/* ---- History as a console ---- */
.console pre { margin: 0; max-height: 280px; overflow: auto; padding: var(--space-3); background: var(--bg-0); border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: var(--fs-xs); line-height: 1.7; color: var(--muted); white-space: pre; }
.console .c-at { color: var(--faint); }
.console .c-settled { color: var(--accent); }
.console .c-cancelled { color: var(--late); }
.console .c-closed { color: var(--info); }

/* ---- My deals layout: header, four numbers, sections ---- */
.mhdr { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.mhdr-act { display: flex; gap: var(--space-2); }
.mhdr-act .btn { min-height: 36px; font-size: var(--fs-sm); padding: 0 var(--space-4); }
.kpis4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--space-2); }
.kpis4 .k { display: flex; flex-direction: column; gap: 2px; padding: var(--space-3) var(--space-4); background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.kpis4 .k b { font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-lg); color: var(--ink); }
.kpis4 .k span { font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.kpis4 .k.warn b { color: var(--last-call); }
.kpis4 .k.good b { color: var(--accent); }
.msec { display: flex; flex-direction: column; gap: var(--space-2); }
.msec-h { display: flex; align-items: center; gap: var(--space-2); min-height: 32px; }
.msec-h .label { margin: 0; }
.msec-n { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--faint); }
.msec-empty { margin: 0; padding: var(--space-3) var(--space-4); border: 1px dashed var(--line-2); border-radius: var(--radius-sm); color: var(--muted); font-size: var(--fs-sm); }
.seg { margin-left: auto; display: inline-flex; padding: 2px; border: 1px solid var(--line-2); border-radius: var(--radius-pill); background: var(--bg-1); }
.seg button { min-height: 28px; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--muted); font-size: var(--fs-xs); }
.seg button.on { background: var(--surface); color: var(--ink); }
.msec .dlist { margin-top: 0; }
@media (max-width: 600px) { .kpis4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .seg { margin-left: 0; } .msec-h { flex-wrap: wrap; } }

/* ---- My deals: room to breathe (overrides above) ---- */
main#app.deals { display: flex; flex-direction: column; gap: 0; }
.mhdr { margin: var(--space-4) 0 var(--space-5); }
.kpis4 { gap: var(--space-3); margin-bottom: 40px; }
.kpis4 .k { flex-direction: column-reverse; gap: var(--space-2); padding: var(--space-4) var(--space-5); }
.kpis4 .k b { font-size: 24px; line-height: 28px; }
.msec { gap: var(--space-3); margin-bottom: 40px; }
.msec-h { min-height: 36px; }
.msec-h .label { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: .02em; text-transform: none; color: var(--ink); }
.msec-n { padding: 1px 8px; border-radius: var(--radius-pill); background: var(--surface); color: var(--muted); font-size: var(--fs-xs); }
.msec-n:empty { display: none; }
.drow { min-height: 64px; padding: var(--space-3) var(--space-5); }
.dlist { gap: var(--space-2); }
.msec-empty { padding: var(--space-5); text-align: center; }
.console pre { padding: var(--space-4) var(--space-5); line-height: 2; }

/* ---- Board ---- */
.bevent { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: var(--space-4); align-items: center; padding: var(--space-4) var(--space-5);
  background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius-sm); margin: var(--space-4) 0 var(--space-3); position: relative; }
.bevent::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--featured); border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.bevent-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bevent .opt-title { font-size: var(--fs-lg); }
.bweek { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-xs); color: var(--muted); }
.bweek select { min-height: 36px !important; width: auto; }
.kpis4.k3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.brow { display: grid; grid-template-columns: 32px minmax(0,1fr) 160px 140px; gap: var(--space-4); align-items: center; min-height: 52px;
  padding: 0 var(--space-5); background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: var(--space-1); }
.brow > span:nth-child(3), .brow > span:nth-child(4) { justify-self: end; font-family: var(--font-mono); font-size: var(--fs-sm); }
.brow.bhead { min-height: 0; background: none; border: 0; margin: 0; padding-bottom: var(--space-1); }
.brow.bhead > span { font-family: var(--font-body) !important; font-size: var(--fs-xs) !important; color: var(--faint); letter-spacing: .08em; text-transform: uppercase; }
.brank { font-family: var(--font-mono); color: var(--faint); }
.bname a { color: var(--ink); }
@media (max-width: 600px) { .brow { grid-template-columns: 24px minmax(0,1fr) auto auto; gap: var(--space-2); padding: 0 var(--space-3); } .kpis4.k3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .bevent { grid-template-columns: auto minmax(0,1fr); } .bweek { grid-column: 1 / -1; } }

/* ---- Create an offer: same rhythm as My deals ---- */
main#app.form { display: flex; flex-direction: column; gap: var(--space-5); }
main#app.form > h1 { margin-top: var(--space-2); }
main#app.form section { display: flex; flex-direction: column; gap: var(--space-4); }
main#app.form .card { padding: var(--space-5); gap: var(--space-3); border-radius: var(--radius-sm); border: 1px solid var(--line); }
main#app.form .card > .label { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: .02em; text-transform: none; color: var(--ink); margin-bottom: var(--space-1); }
main#app.form .stepper { margin-bottom: var(--space-2); }
main#app.form .pick { gap: var(--space-3); }
main#app.form .pick .opt { padding: var(--space-4) var(--space-5); }
main#app.form .grid.two { gap: var(--space-4) var(--space-5); }

.bigpools { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--space-3); }
.tname.opt-title .room-mark { border-radius: var(--radius-pill); }

/* ---- Create an offer: add tournament ---- */
.addhead { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.addhead .label { margin: 0 !important; }
#sched-pane { display: flex; flex-direction: column; gap: var(--space-3); }
#sched-pane[hidden], #hand-pane[hidden] { display: none; }
#hand-pane { display: flex; flex-direction: column; gap: var(--space-3); }
.slist { display: flex; flex-direction: column; gap: 2px; max-height: 420px; overflow: auto; padding-right: 2px; }
.srow2 { display: grid; grid-template-columns: 24px 150px minmax(0,1fr) 110px 110px 64px; gap: var(--space-3); align-items: center; min-height: 48px;
  padding: 0 var(--space-4); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.srow2:hover { border-color: var(--accent); }
.srow2.over { opacity: .5; cursor: not-allowed; }
.srow2 .room-mark { border-radius: var(--radius-pill); }
.s2-when { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }
.s2-name { display: flex; align-items: center; gap: var(--space-2); min-width: 0; white-space: nowrap; overflow: hidden; font-size: var(--fs-md); }
.s2-gtd { justify-self: end; font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--ink); font-weight: 500; }
.s2-buy { justify-self: end; font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--muted); }
.s2-add { justify-self: end; font-size: var(--fs-xs); color: var(--accent); }
.addgrid { grid-template-columns: repeat(4, minmax(0,1fr)) !important; }
.addgrid > :nth-child(3), .addgrid > :nth-child(4), .addgrid > :nth-child(7) { grid-column: span 2; }
.addfoot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.addfoot #add { min-height: 40px; padding: 0 var(--space-5); flex: none; }
@media (max-width: 760px) {
  .srow2 { grid-template-columns: 24px minmax(0,1fr) auto; row-gap: 2px; padding: var(--space-2) var(--space-3); }
  .s2-when { grid-column: 2; grid-row: 2; }
  .s2-name { grid-column: 2; grid-row: 1; }
  .s2-gtd { grid-column: 3; grid-row: 1; }
  .s2-buy { grid-column: 3; grid-row: 2; }
  .s2-add { display: none; }
  .addgrid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .addgrid > :nth-child(3), .addgrid > :nth-child(4), .addgrid > :nth-child(7) { grid-column: span 2; }
  .addhead .seg { margin-left: 0; }
}

/* ---- Profile ---- */
main#app.profile .card { padding: var(--space-5); gap: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-sm); }
main#app.profile .card > .label { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: .02em; text-transform: none; color: var(--ink); }
main#app.profile .cols { gap: var(--space-5); }
main#app.profile .col-main, main#app.profile .col-side { gap: var(--space-5); }
main#app.profile .titem { padding: var(--space-3) 0; }
main#app.profile .avatar.lg.is-room { background: none; width: 56px; height: 56px; }
main#app.profile .avatar.is-room .room-mark { width: 56px; height: 56px; border-radius: var(--radius-pill); display: block; }
main#app.profile .kpis .stat b { font-family: var(--font-mono); font-weight: 500; }

/* ---- Create an offer: the event picks are a slim band; the work is below ---- */
main#app.form #pick-card, main#app.form #big-card { padding: var(--space-3) var(--space-4); gap: var(--space-2); }
main#app.form #pick-card > .label, main#app.form #big-card > .label { font-family: var(--font-body); font-weight: 500; font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
#pick-help, #big-card > p { display: none; }
#pick { display: flex; flex-wrap: wrap; gap: var(--space-2); }
#pick .opt { flex: 1 1 280px; padding: var(--space-2) var(--space-3) !important; min-height: 0; }
#pick .opt .sub + .sub:not(.over-why) { display: none; }
#pick .opt .room-mark, .bigpools .opt .room-mark { width: 28px; height: 28px; }
#pick .opt .opt-title { font-size: var(--fs-sm); }
.bigpools { display: flex !important; flex-wrap: nowrap; overflow-x: auto; gap: var(--space-2); padding-bottom: 4px; scroll-snap-type: x proximity; }
.bigpools .opt { flex: 0 0 280px; padding: var(--space-2) var(--space-3) !important; min-height: 0; scroll-snap-align: start; }
.bigpools .opt-body { gap: 2px; }
.bigpools .opt-title { font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.bigpools .opt-title .mbs { display: none; }
.bigpools .sub { flex-wrap: nowrap !important; white-space: nowrap; overflow: hidden; font-size: var(--fs-xs) !important; }
.bigpools .over-why { display: none !important; }

/* ---- Book a share ---- */
.addrrow { display: flex; gap: var(--space-2); }
.addrrow input { flex: 1; }
.addrrow .btn { flex: none; min-height: 44px; }
#pay-button-slot { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-2); }
#pay-button-slot:empty { display: none; }

.addr-saved { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.addr-saved .btn { min-height: 32px; font-size: var(--fs-sm); margin-left: auto; }
.or { display: flex; align-items: center; gap: var(--space-3); color: var(--faint); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; margin: var(--space-3) 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.paygrid { display: grid; grid-template-columns: 200px minmax(0,1fr); gap: var(--space-5); align-items: start; }
.paydetail { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.paydetail .mono { word-break: break-all; }
.paydetail #copy-addr { align-self: flex-start; }
#mm-pay, #mm-open { min-height: 52px; font-size: var(--fs-lg); display: flex; align-items: center; justify-content: center; text-decoration: none; }
#addr-saved[hidden], #addr-edit[hidden], #mm-open[hidden], #mm-pay[hidden] { display: none !important; }
@media (max-width: 600px) { .paygrid { grid-template-columns: 1fr; justify-items: center; } }

.mm-fox { flex: none; margin-right: 10px; }
#mm-connect { display: inline-flex; align-items: center; }
#mm-connect .mm-fox { width: 18px; height: 18px; margin-right: 8px; }

.o-lvl { font-family: var(--font-body); font-variant-numeric: tabular-nums; font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-lvl b { font-weight: 500; }
.o-lvl b.up { color: var(--accent); }
.o-lvl b.down { color: var(--late); }

/* ---- tier emblems and verified seals (public/market/tiers.js) ---- */
.tier-mark, .seal-mark { flex: none; vertical-align: -4px; }
.seal-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.seal-row figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: var(--fs-xs); color: var(--muted); }
.tier-line { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--muted); }
.payout-step { display: flex; align-items: center; gap: var(--space-3); text-align: left; padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-sm); width: 100%; }
