/* Stage layout (Pastel Concierge, final polish from t-0006). Colors, type and
   radii come from theme.css. */
html, body { height: 100%; font-feature-settings: "tnum" 1, "ss01" 1; }
.wrap { height: 100vh; min-height: 640px; padding: 18px 24px; display: flex; flex-direction: column; gap: 12px; }

/* ---------- header ---------- */
.topbar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; flex: 0 0 auto; }
.brand { display: flex; flex-direction: column; gap: 2px; }
.wordmark img { display: block; }
.wordmark { margin: 0; font-weight: 800; font-size: 28px; letter-spacing: -0.035em; line-height: 1; display: flex; align-items: center; gap: 8px; }
.tagline { font-size: 13px; font-weight: 600; color: var(--muted); padding-left: 0; }
.hook { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; padding-left: 26px; border-left: 1.5px solid var(--border-strong); }
.hook em { font-style: normal; color: var(--accent); }
.controls { display: flex; align-items: center; gap: 10px; }
.setup { font-size: 13px; font-weight: 700; color: var(--accent); text-decoration: none; white-space: nowrap; }
.setup:hover { text-decoration: underline; }

/* segmented controls */
.seg { display: flex; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 3px; gap: 2px; }
.seg:empty, .seg[hidden] { display: none; }
.seg button { border: none; background: transparent; font-size: 13px; font-weight: 700; color: var(--muted); padding: 7px 13px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.seg button.on { background: var(--text); color: var(--on-accent); }
.seg a { font-size: 13px; font-weight: 700; color: var(--muted); padding: 7px 12px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.seg a.on { background: var(--accent); color: var(--on-accent); }
.seg .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.seg button.on .dot { background: color-mix(in srgb, var(--accent) 45%, var(--surface)); }

/* ---------- referee legend ---------- */
.legend { flex: 0 0 auto; display: flex; align-items: center; gap: 14px; font-size: 13.5px; color: var(--text-2); font-weight: 500; white-space: nowrap; }
.legend .lbl { font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.legend .item { display: inline-flex; align-items: center; gap: 7px; }
#ref-legend { display: inline-flex; gap: 14px; }
#ref-legend .quiet { color: var(--muted); }
.legend .tabs { margin-left: auto; padding: 2px; }
.legend .tabs button { padding: 4px 12px; font-size: 12.5px; }
.legend .tabs + .synth { margin-left: 0; }
.legend .synth { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--muted); }

/* ---------- grid ---------- */
.grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 262px minmax(0, 1fr) 392px; gap: 16px; }
.col { display: flex; flex-direction: column; gap: 10px; min-height: 0; min-width: 0; }
.card { padding: 16px 18px; }
.eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .09em; color: var(--muted); text-transform: uppercase; display: flex; align-items: center; gap: 7px; }

/* party cards */
.party { padding: 14px 16px; }
body[data-role="seller"] .seller-card { order: -1; }
.stat.hidden .n { color: var(--muted); font-size: 15px; line-height: 1.45; }
.party .row1 { display: flex; align-items: center; justify-content: space-between; }
.avatar { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex: 0 0 auto; }
.avatar.b { background: var(--surface-2); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--border-strong); }
.avatar.s { background: var(--text); color: var(--on-accent); }
.pid { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; margin-top: 4px; }
.pneed { font-size: 14px; color: var(--text-2); line-height: 1.35; margin-top: 2px; }
.stats { display: grid; gap: 6px; margin-top: 9px; }
.stats.two { grid-template-columns: 1fr 1fr; }
.stats.three { grid-template-columns: 1fr 1fr 1fr; }
.stat { background: var(--surface-2); border-radius: 10px; padding: 7px 9px 6px; }
.stat .n { font-size: 19px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.stat .l { font-size: 10.5px; font-weight: 700; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; margin-top: 2px; }
.padlock { display: inline-block; width: 7px; height: 6px; border-radius: 1.5px; background: var(--muted); margin-left: 5px; position: relative; }
.padlock::before { content: ""; position: absolute; left: 1px; top: -4px; width: 5px; height: 5px; border: 1.5px solid var(--muted); border-bottom: none; border-radius: 3px 3px 0 0; box-sizing: border-box; }
.concession { margin-top: 8px; white-space: nowrap; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-radius: 10px; padding: 8px 10px; background: var(--signal-soft); font-size: 13px; font-weight: 700; line-height: 1.25; }
.concession b { color: var(--signal); font-weight: 800; }
.concession.off { background: var(--surface-2); color: var(--text-2); }
.concession.off b { color: var(--text-2); }

/* market backdrop: dot grid */
.market { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 14px 16px; cursor: pointer; transition: box-shadow .2s, border-color .2s; }
.market:hover { border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.market .expand { margin-left: auto; font-size: 11px; letter-spacing: .04em; color: var(--text-2); text-transform: none; font-weight: 700; }
.mkt-count { font-size: 13.5px; font-weight: 700; margin-top: 5px; letter-spacing: -0.01em; line-height: 1.35; }
.mkt-count .sub { color: var(--muted); font-weight: 600; }
.dots { display: grid; gap: 2.5px; margin-top: 8px; }
.dots.sellers { grid-template-columns: repeat(24, 1fr); }
.dots.buyers { grid-template-columns: repeat(63, 1fr); gap: 1.1px; margin-top: 6px; }
.dots i { display: block; aspect-ratio: 1; border-radius: 50%; background: var(--dot-seller); transition: background-color .4s; }
.dots.buyers i { background: var(--dot-buyer); }
.dots i.d { background: var(--deal); } .dots i.w { background: var(--loss); } .dots i.s { background: var(--signal); }
.dots i.pin { background: var(--text); box-shadow: 0 0 0 2px var(--accent-soft); }
.mkt-key { display: flex; gap: 9px; margin-top: auto; padding-top: 7px; font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.mkt-key span { display: inline-flex; align-items: center; gap: 4px; }
.mkt-key i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.k-idle { background: var(--dot-seller); } .k-deal { background: var(--deal); } .k-walk { background: var(--loss); } .k-spons { background: var(--signal); }

/* ---------- chat ---------- */
.chat { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 16px 20px 14px; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.chat-title { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
#matchup { font-size: 11.5px; padding: 2px 6px; margin-right: 7px; border-radius: 8px; }
#matchup[hidden] { display: none; }
.chat-sub .badge { font-size: 10px; padding: 2px 8px; letter-spacing: .05em; margin-right: 7px; vertical-align: 1px; }
.chat-sub { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-head > div:first-child { min-width: 0; }
.chat-ctl { display: flex; align-items: center; gap: 8px; }
.runseg button { font-size: 12.5px; padding: 6px 12px; }
.runseg button.on.win { background: var(--deal); }
.runseg button.on.loss { background: var(--loss); }
button.ghost { border: 1px solid var(--border); background: var(--surface); color: var(--muted); border-radius: 999px; width: 32px; height: 32px; padding: 0; font-size: 15px; }

.trail { list-style: none; margin: 10px 0 0; padding: 0 2px 0 0; flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 5px; }
.trail li.turn { display: flex; align-items: flex-end; gap: 8px; flex: 0 0 auto; }
.trail li.s { flex-direction: row-reverse; }
.trail li .avatar { margin-bottom: 2px; }
.bw { max-width: 86%; display: flex; flex-direction: column; }
.trail li.s .bw { align-items: flex-end; }
.bubble { border-radius: 16px; padding: 6px 12px 7px; font-size: 14.5px; line-height: 1.28; }
.trail li.b .bubble { background: var(--surface-2); border-bottom-left-radius: 5px; }
.trail li.s .bubble { background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong); border-bottom-right-radius: 5px; }
.trail li.walk .bubble { background: var(--loss-soft); box-shadow: inset 0 0 0 1.5px var(--loss-ring); }
.trail li.deal .bubble { background: var(--deal-soft); box-shadow: inset 0 0 0 1.5px var(--deal-ring); }
.trail li.spons .bubble { box-shadow: inset 0 0 0 1.5px var(--signal); }
.trail li.caught .bubble { box-shadow: inset 0 0 0 1.5px var(--warn-ring); }
.trail li.expired-turn .bubble { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--border-strong); }
.meta { display: flex; align-items: center; gap: 7px; margin-bottom: 1px; }
.trail li.s .meta { justify-content: flex-end; }
.meta .num { font-size: 11.5px; font-weight: 800; color: var(--muted); }
.meta .at { font-size: 11.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.meta .price { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.trail li.walk .price { color: var(--loss); } .trail li.deal .price { color: var(--deal); }
.del { font-size: 12px; font-weight: 700; color: var(--text-2); background: var(--bg); border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.del.fast { background: var(--signal-soft); color: var(--signal); }
.strike { text-decoration: line-through; text-decoration-thickness: 1.5px; color: var(--muted); }
.fix { color: var(--warn); font-weight: 700; }
.bubble .note { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.was { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-top: 2px; padding: 0 4px; display: flex; align-items: center; gap: 6px; }
.was .tag { font-size: 9.5px; padding: 2px 6px; }
.trail li.thinking { justify-content: center; color: var(--muted); font-size: 12.5px; font-style: italic; padding: 4px 0; }
.trail li.empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--text-2); gap: 6px; }
.trail li.empty b { font-size: 19px; color: var(--text); letter-spacing: -0.02em; }
.trail li.empty span { font-size: 14px; max-width: 420px; line-height: 1.4; }

.requests { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 10px; border-top: 1px solid var(--border); margin-top: 8px; }
.requests[hidden] { display: none; }
.requests .rq-l { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 2px; }
.requests button { border: 1px solid var(--text); background: var(--surface); color: var(--text); border-radius: 999px; padding: 5px 11px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.requests button:hover, .requests button.on { background: var(--accent); color: var(--on-accent); }
.actions { display: flex; justify-content: center; padding-top: 10px; }
.actions[hidden] { display: none; }
button.big { font-size: 15px; font-weight: 800; padding: 12px 22px; border-radius: var(--radius-sm); }
button.primary { box-shadow: 0 6px 16px var(--accent-glow); }

/* ---------- right column ---------- */
.rcol { gap: 0; }
.result { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.panel { padding: 16px 18px; }
.panel.loss .eyebrow { color: var(--loss); }
.panel.win .eyebrow { color: var(--deal); }
.step { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; color: var(--on-accent); font-size: 12.5px; font-weight: 800; letter-spacing: 0; margin-right: 2px; flex: 0 0 auto; }
.step.l { background: var(--loss); } .step.r { background: var(--signal); } .step.w { background: var(--deal); } .step.g { background: var(--border-strong); }
.oc-title { margin: 5px 0 0; font-size: 21px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.oc-body { font-size: 14px; color: var(--text-2); line-height: 1.4; margin-top: 5px; }
.oc-body b { color: var(--text); }
.quote { margin-top: 7px; font-size: 13.5px; line-height: 1.35; padding: 7px 11px; border-left: 3px solid var(--loss); background: var(--bg); border-radius: 0 10px 10px 0; }
.quote small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .07em; color: var(--muted); text-transform: uppercase; margin-bottom: 1px; }
.suggest { margin-top: 10px; display: flex; align-items: center; gap: 10px; }
.suggest .s-txt { flex: 1; font-size: 13.5px; font-weight: 600; color: var(--text-2); line-height: 1.3; }
.suggest .s-txt b { display: block; color: var(--signal); font-weight: 800; font-size: 14.5px; }
.apply { border: none; background: var(--accent); color: var(--on-accent); font-size: 14px; font-weight: 800; padding: 11px 14px; border-radius: 12px; white-space: nowrap; box-shadow: 0 6px 16px var(--accent-glow); }
.applied { margin-top: 9px; font-size: 13.5px; font-weight: 700; color: var(--text-2); }
.applied b { color: var(--signal); font-weight: 800; }
.fine { font-size: 11.5px; color: var(--muted); font-weight: 600; margin-top: 8px; line-height: 1.35; }
.link { height: 26px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); position: relative; }
.link::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1.5px dashed var(--border-strong); }
.link span { position: relative; background: var(--bg); padding: 0 8px; display: inline-flex; align-items: center; gap: 6px; }
.link .step { width: 18px; height: 18px; font-size: 11px; }
.panel.win { flex: 1; min-height: 0; display: flex; flex-direction: column; border-color: var(--deal-ring); box-shadow: var(--shadow-lg); }
.dealrow { display: flex; align-items: baseline; gap: 10px; margin-top: 2px; }
.dealrow .p { font-size: 38px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--deal); }
.dealrow .t { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.margin { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 6px; background: var(--deal-soft); border-radius: 14px; padding: 8px 14px; }
.margin .l { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; color: var(--deal); text-transform: uppercase; }
.margin .big { font-size: 34px; font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.margin .big .from { color: var(--muted); font-weight: 700; }
.margin .big .arrow { color: var(--deal); font-weight: 700; margin: 0 4px; }
.margin .big .to { color: var(--deal); }
.both { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.tile { background: var(--deal-soft); border-radius: 14px; padding: 8px 12px 9px; }
.tile .l { font-size: 10.5px; font-weight: 800; letter-spacing: .07em; color: var(--deal); text-transform: uppercase; }
.tile .big { font-size: 28px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; margin-top: 2px; }
.tile .big .from { color: var(--muted); font-weight: 700; }
.tile .big .arrow { color: var(--deal); font-weight: 700; margin: 0 3px; }
.tile .big .to { color: var(--deal); }
.tile .eqs { font-size: 12px; font-weight: 600; color: var(--text-2); line-height: 1.3; margin-top: 3px; }
.eq { font-size: 14px; font-weight: 600; color: var(--text-2); text-align: right; line-height: 1.35; }
.cmp { margin-top: 7px; display: flex; flex-direction: column; gap: 5px; }
.cmp .r { display: grid; grid-template-columns: 78px 1fr auto; align-items: center; font-size: 14px; font-weight: 600; }
.cmp .k { font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.cmp .sp { color: var(--signal); font-weight: 800; }
.cmp .o { font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.cmp .o.lost { background: var(--loss-soft); color: var(--loss); }
.cmp .o.won { background: var(--deal-soft); color: var(--deal); }
.paid { margin-top: 8px; font-size: 14px; color: var(--text-2); line-height: 1.4; }
.paid b { color: var(--signal); }
.footer { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); font-weight: 600; }
.footer b { color: var(--text); font-weight: 800; font-size: 15px; }

/* before the first loss: the three beats, greyed until they happen */
.panel.idle { flex: 1; display: flex; flex-direction: column; }
.beats { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.beats li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); line-height: 1.38; }
.beats li b { display: block; color: var(--text); font-size: 15px; }
.beats li.now b { color: var(--accent); }
.panel.idle .fine { margin-top: auto; }
/* Next to the win card, the receipt keeps its point and trims the quote. */
.quote .said { display: block; }
.panel.loss.done .quote .said { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel.next { border-style: dashed; box-shadow: none; background: transparent; }
.flash { animation: flash .8s ease; }
@keyframes flash { 0% { opacity: .3; transform: translateY(4px); } 100% { opacity: 1; transform: none; } }

/* ---------- admin market view ---------- */
.market-view { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 470px; gap: 16px; }
.market-view[hidden] { display: none; }
.grid[hidden] { display: none; }
.netcard { display: flex; flex-direction: column; min-height: 0; padding: 14px 16px 12px; }
.net-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.net-head .cap { font-size: 12px; font-weight: 600; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { font-size: 12.5px; font-weight: 700; color: var(--text-2); background: var(--surface-2); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.chip b { color: var(--text); margin-left: 3px; }
.chip i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 6px; vertical-align: 0; }
.chip { background: color-mix(in srgb, var(--c) 12%, var(--surface)); }
.chip.on { background: var(--surface); box-shadow: inset 0 0 0 1px var(--signal); }
#net-stage { position: relative; flex: 1; min-height: 0; margin-top: 6px; }
#net { position: absolute; inset: 0; width: 100%; height: 100%; }
#net-tip { position: absolute; display: none; pointer-events: none; font-size: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 4px 8px; box-shadow: var(--shadow); white-space: nowrap; }
.net-key { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11.5px; font-weight: 600; color: var(--text-2); margin-top: 6px; }
.net-key span { display: inline-flex; align-items: center; gap: 5px; }
.net-key .ln { display: inline-block; width: 16px; height: 0; border-top: 2px solid var(--text); }
.ln.talk { border-top: 2px dashed var(--net-link); } .ln.deal { border-color: var(--deal); } .ln.walk { border-top: 2px dashed var(--loss); } .ln.spons { border-color: var(--signal); }
.ln.ask { border-color: var(--text); } .ln.bid { border-color: var(--muted); }
.net-key .dt { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dt.warn { box-shadow: inset 0 0 0 2px var(--warn); } .dt.pin { background: var(--text); } .dt.ring { box-shadow: inset 0 0 0 2px var(--warn); }
.livefeed { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.livefeed .sel { font-size: 13px; color: var(--text-2); margin-top: 6px; min-height: 18px; }
.linkbtn { border: 0; background: none; padding: 0 0 0 6px; font-size: 12.5px; font-weight: 700; color: var(--text); text-decoration: underline; cursor: pointer; }
.feed { list-style: none; margin: 8px 0 0; padding: 0; flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 5px; }
.linkbtn.go { margin-left: 4px; padding: 3px 9px; border-radius: 999px; background: var(--accent); color: var(--on-accent); text-decoration: none; }
.feed li[data-s] { cursor: pointer; }
.feed li[data-s]:hover { outline: 1px solid var(--text); }
.feed li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; font-size: 13px; padding: 6px 10px; border-radius: 10px; background: var(--surface-2); transition: opacity 1s; }
.feed li.new { animation: flash .6s ease; }
.feed li.old { opacity: .45; }
.feed li i { width: 8px; height: 8px; border-radius: 50%; }
.feed li.deal i { background: var(--deal); } .feed li.walk i { background: var(--loss); } .feed li.spons i { background: var(--signal); }
.feed li .who { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed li .cat { font-size: 11.5px; color: var(--muted); }
.feed li b { font-weight: 800; } .feed li.deal b { color: var(--deal); } .feed li.walk b { color: var(--loss); font-weight: 700; }
.feed li .tag { grid-column: 2 / -1; justify-self: start; }
.feed li.empty { display: block; color: var(--muted); background: none; }
.net-key .hint { color: var(--muted); margin-left: auto; }
.askbid .stats { margin-top: 8px; }
.stat .n.deal { color: var(--deal); } .stat .n.walk { color: var(--loss); }
#m-chart { width: 100%; flex: 1; min-height: 150px; margin-top: 8px; overflow: visible; }
#m-chart text { font-size: 12.5px; font-weight: 700; font-family: var(--font); }
.market.big { flex: 0 0 auto; cursor: default; }
.market.big:hover { box-shadow: var(--shadow); border-color: var(--border); }
.market.big .mkt-key { margin-top: 8px; padding-top: 0; }
.market.big .stats { margin-top: 10px; }
.market.big .dots.sellers { gap: 4px; }
.market.big .dots.buyers { gap: 1.6px; }
.livefeed .fine { margin-top: 6px; }
.stats.five { grid-template-columns: repeat(5, 1fr); }
.stats.five .n { font-size: 16px; }
.stats.five .l { font-size: 9.5px; }

/* ---------- attract loop ---------- */
.attract-card { display: none; }
body.attract .attract-card { display: flex; position: fixed; left: 24px; bottom: 18px; z-index: 5; width: 262px; gap: 10px; align-items: center; padding: 10px 12px 10px 10px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-lg); }
.attract-card img { display: block; border-radius: var(--radius-sm); }
.attract-card img { width: 84px; height: 84px; flex: 0 0 auto; }
.attract-card b { display: block; font-size: 15px; }
.attract-card .url { display: block; margin: 2px 0 4px; word-break: break-all; font-size: 11.5px; font-weight: 800; color: var(--accent); }
.attract-card .small { display: block; font-size: var(--fs-xs); color: var(--muted); }

/* ---------- phone ---------- */
@media (max-width: 900px) {
  .wrap { height: auto; padding: 14px 12px; }
  .topbar { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hook { padding-left: 0; border-left: 0; font-size: 17px; }
  .controls { flex-wrap: wrap; }
  .legend { flex-wrap: wrap; white-space: normal; gap: 8px 14px; }
  .legend .synth { margin-left: 0; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .market-view { grid-template-columns: minmax(0, 1fr); }
  #net-stage { flex: none; height: 340px; }
  .net-head { flex-wrap: wrap; }
  .stats.five { grid-template-columns: repeat(3, 1fr); }
  .legend .tabs { margin-left: 0; }
  .trail { overflow: visible; }
  .chat-head { flex-wrap: wrap; }
  .chat-title { flex-wrap: wrap; }
  .dots.buyers { grid-template-columns: repeat(42, 1fr); }
  body.attract .attract-card { width: auto; right: 12px; }
}
