:root {
  color-scheme: dark;
  --bg: #080b0d;
  --surface: #0f1417;
  --surface-2: #151b1f;
  --surface-3: #1c252a;
  --line: #27343a;
  --line-strong: #3c5058;
  --text: #eff7f8;
  --muted: #91a2a8;
  --green: #12b5d3;
  --green-deep: #123b43;
  --red: #ff7c68;
  --red-deep: #542a25;
  --amber: #f2c45b;
  --blue: #7bc7d7;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); color: var(--text); }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.mono, code, .eyebrow, .market-labels, .ticker-band span, .status-badge, .quiet, small { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

.app-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 20px 14px; border-right: 1px solid var(--line); background: #0a0e10; z-index: 20; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 7px 22px; }
.brand-mark { width: 42px; height: 42px; display: block; border: 1px solid #174f5b; background: #000; object-fit: cover; box-shadow: 4px 4px 0 #10343b; }
.brand strong { display: block; font-size: 16px; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.nav-list { display: grid; gap: 4px; }
.nav-item { width: 100%; height: 42px; display: flex; align-items: center; gap: 11px; padding: 0 11px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer; text-align: left; }
.nav-item svg { width: 18px; height: 18px; }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { border-color: var(--line); background: var(--surface-3); color: var(--text); }
.nav-item.active svg { color: var(--green); }
.identity-block { margin-top: auto; padding: 14px 10px 12px; border-top: 1px solid var(--line); }
.identity-heading { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #536168; }
.dot.connected { background: var(--green); box-shadow: 0 0 0 3px rgba(18, 181, 211, .12); }
.identity-block strong { display: block; margin-top: 10px; font-size: 13px; }
.identity-block code { display: block; margin: 5px 0 11px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.identity-block small { display: block; margin-top: 9px; color: #718087; font-size: 9px; line-height: 1.5; }
.source-links { display: grid; gap: 3px; padding: 12px 10px 0; border-top: 1px solid var(--line); }
.source-links a { display: flex; align-items: center; gap: 8px; min-height: 30px; color: var(--muted); font-size: 11px; }
.source-links a:hover { color: var(--text); }
.source-links svg { width: 14px; }

.main-column { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 15; height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 26px; border-bottom: 1px solid var(--line); background: rgba(8, 11, 13, .94); backdrop-filter: blur(14px); }
.live-cluster, .top-actions { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.separator { width: 1px; height: 18px; background: var(--line); }
.status-badge { min-height: 26px; display: inline-flex; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.status-badge.live { border-color: #28606a; color: var(--green); background: #111f22; }
.status-badge.danger { border-color: #66372f; color: var(--red); background: #241816; }
.status-badge.neutral { color: var(--muted); }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-badge.live .pulse { animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.language-switch { display: grid; grid-template-columns: 1fr 1fr; height: 30px; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.language-switch button { min-width: 34px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-family: ui-monospace, monospace; font-size: 10px; }
.language-switch button.active { background: var(--surface-3); color: var(--text); }
.icon-button { width: 34px; height: 34px; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); cursor: pointer; }
.icon-button:hover { border-color: var(--line-strong); background: var(--surface-2); }
.icon-button svg { width: 16px; height: 16px; }
.spin { animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.mobile-only { display: none; }

main { max-width: 1500px; margin: 0 auto; padding: 28px 30px 56px; }
.view { display: none; }
.view.active { display: block; }
.page-heading { min-height: 58px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.registration-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.registration-notice { display: flex; align-items: flex-start; gap: 10px; margin: -8px 0 18px; padding: 11px 13px; border: 1px solid #6b5a32; background: #211d13; color: #d8be78; font-size: 10px; line-height: 1.5; }
.registration-notice svg { width: 16px; flex: 0 0 auto; }
.eyebrow { display: block; margin-bottom: 7px; color: var(--green); font-size: 10px; font-weight: 700; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: clamp(24px, 3vw, 35px); line-height: 1.1; }
h2 { margin-bottom: 0; font-size: 14px; }
.quiet { color: var(--muted); font-size: 10px; }

.button, button.primary, button.secondary { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 13px; border-radius: 4px; cursor: pointer; font-weight: 700; font-size: 12px; }
.button svg, button.primary svg, button.secondary svg { width: 16px; height: 16px; }
button.primary { border: 1px solid var(--green); background: var(--green); color: #041b20; }
button.primary:hover:not(:disabled) { background: #45c8df; }
button.secondary, .button.secondary { border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); }
button.secondary:hover:not(:disabled), .button.secondary:hover { background: var(--surface-3); }
button:disabled, .button.disabled { cursor: not-allowed; opacity: .42; }
.wide { width: 100%; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--red); cursor: pointer; font-size: 11px; }
.file-button { width: 100%; }

.ticker-band { display: grid; grid-template-columns: 1.25fr repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0c1113; }
.ticker-band > div { min-width: 0; min-height: 82px; display: flex; flex-direction: column; justify-content: center; padding: 14px 18px; border-right: 1px solid var(--line); }
.ticker-band > div:last-child { border-right: 0; }
.ticker-band span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.ticker-band strong { margin-top: 7px; font-size: 18px; white-space: nowrap; }
.ticker-primary strong { color: var(--green); font-size: 25px; }
.ticker-band small { margin-top: 4px; color: #6d7d84; font-size: 9px; }
.warning-band { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border: 1px solid #63372f; background: #251715; color: var(--red); }
.warning-band svg { flex: 0 0 auto; }
.warning-band strong, .warning-band span { display: block; }
.warning-band span { margin-top: 3px; color: #dba49b; font-size: 11px; }

.market-layout { display: grid; grid-template-columns: minmax(0, 1fr) 318px; gap: 18px; margin-top: 20px; }
.market-panel, .referee-panel, .tape-panel, .ticket-panel, .price-guard, .import-panel { border: 1px solid var(--line); background: var(--surface); }
.section-heading { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.section-heading > div:first-child { display: flex; align-items: baseline; gap: 9px; }
.filter-tabs { display: flex; align-items: center; gap: 3px; }
.filter-tabs button { min-width: 48px; height: 28px; padding: 0 9px; border: 1px solid transparent; border-radius: 3px; background: transparent; color: var(--muted); cursor: pointer; font-size: 10px; }
.filter-tabs button.active { border-color: var(--line); background: var(--surface-3); color: var(--text); }
.market-columns { display: grid; grid-template-columns: minmax(150px, 1.5fr) .75fr .65fr .7fr 90px; align-items: center; gap: 12px; }
.market-labels { min-height: 32px; padding: 0 14px; border-bottom: 1px solid var(--line); color: #74848a; font-size: 9px; text-transform: uppercase; }
.offer-row { min-height: 64px; padding: 9px 14px; border-bottom: 1px solid #202b30; }
.offer-row:last-child { border-bottom: 0; }
.offer-row:hover { background: #12191c; }
.call-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.direction-chip { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 3px; }
.direction-chip.long { background: var(--green-deep); color: #45cce3; }
.direction-chip.short { background: var(--red-deep); color: var(--red); }
.direction-chip svg { width: 15px; }
.call-cell strong, .call-cell code { display: block; }
.call-cell strong { font-size: 12px; }
.call-cell code { max-width: 190px; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.offer-row > strong { font-size: 12px; }
.offer-row > span { color: var(--muted); font-size: 11px; }
.take-button { height: 31px; border: 1px solid var(--line-strong); border-radius: 3px; background: transparent; color: var(--text); cursor: pointer; font-size: 10px; }
.take-button:hover:not(:disabled) { border-color: var(--green); color: var(--green); }
.empty-state { min-height: 180px; display: grid; place-items: center; align-content: center; gap: 8px; color: var(--muted); text-align: center; font-size: 12px; }
.empty-state svg { width: 20px; }

.referee-panel { min-width: 0; }
.referee-price { padding: 17px 16px; border-bottom: 1px solid var(--line); }
.referee-price span, .referee-price strong { display: block; }
.referee-price span { color: var(--muted); font-size: 10px; }
.referee-price strong { margin-top: 7px; color: var(--amber); font-family: ui-monospace, monospace; font-size: 19px; }
.metrics-list { margin: 0; }
.metrics-list div { display: flex; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid #202b30; font-size: 11px; }
.metrics-list dt { color: var(--muted); }
.metrics-list dd { margin: 0; font-family: ui-monospace, monospace; }
.leaderboard-heading { display: flex; justify-content: space-between; padding: 14px 16px 7px; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.leaderboard { padding: 0 10px 12px; }
.leader-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 7px; align-items: center; min-height: 31px; padding: 0 6px; font-size: 10px; }
.leader-row code { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.leader-row strong { color: var(--green); font-family: ui-monospace, monospace; }
.leader-row.me { background: #14282c; }

.tape-panel { margin-top: 18px; }
.trade-tape { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tape-row { min-height: 58px; display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: 10px; padding: 9px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tape-row:nth-child(2n) { border-right: 0; }
.tape-side { font-family: ui-monospace, monospace; font-size: 10px; font-weight: 700; }
.tape-side.long { color: var(--green); }
.tape-side.short { color: var(--red); }
.tape-data strong, .tape-data code { display: block; }
.tape-data strong { font-size: 11px; }
.tape-data code { margin-top: 3px; color: var(--muted); font-size: 9px; }
.trade-status { padding: 3px 6px; border-radius: 2px; background: var(--surface-3); color: var(--muted); font-family: ui-monospace, monospace; font-size: 8px; text-transform: uppercase; }
.trade-status.settled { background: var(--green-deep); color: var(--green); }
.trade-status.void { background: var(--red-deep); color: var(--red); }

.trade-layout { display: grid; grid-template-columns: minmax(0, 720px) 310px; gap: 18px; align-items: start; }
.ticket-panel { padding: 20px; }
.signer-bar { min-height: 68px; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; margin: -2px 0 18px; padding: 10px 12px; border: 1px solid var(--line); background: #0b1012; }
.signer-bar > img { width: 40px; height: 40px; border: 1px solid #164955; object-fit: cover; }
.signer-copy { min-width: 0; }
.signer-copy > span, .signer-copy strong, .signer-copy code { display: block; }
.signer-copy > span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.signer-copy strong { margin-top: 3px; font-size: 11px; }
.signer-copy code { margin-top: 3px; overflow: hidden; color: var(--green); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.direction-control { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 22px; }
.direction-control button { min-height: 68px; display: flex; align-items: center; gap: 12px; padding: 0 15px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface-2); color: var(--muted); cursor: pointer; text-align: left; }
.direction-control button svg { width: 22px; }
.direction-control strong, .direction-control small { display: block; }
.direction-control strong { color: var(--text); font-size: 13px; }
.direction-control small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.direction-control .long.active { border-color: #287b89; background: #12272b; color: var(--green); }
.direction-control .short.active { border-color: #8f4c42; background: #301c19; color: var(--red); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field > span { color: var(--muted); font-size: 10px; font-weight: 700; }
.field small { color: #718087; font-size: 9px; }
input, select, textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 3px; outline: none; background: #090d0f; color: var(--text); }
input, select { height: 41px; padding: 0 11px; }
textarea { padding: 10px 11px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 2px rgba(18, 181, 211, .09); }
.input-affix { position: relative; }
.input-affix input { padding-right: 55px; }
.input-affix b { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); color: var(--muted); font-family: ui-monospace, monospace; font-size: 9px; }
.order-preview { display: grid; grid-template-columns: 1fr 1fr 1fr; margin: 23px 0 15px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.order-preview div { min-height: 70px; display: flex; flex-direction: column; justify-content: center; padding: 10px 12px; border-right: 1px solid var(--line); }
.order-preview div:last-child { border-right: 0; }
.order-preview span { color: var(--muted); font-size: 9px; }
.order-preview strong { margin-top: 6px; font-family: ui-monospace, monospace; font-size: 12px; }
.positive { color: var(--green); }
.negative { color: var(--red); }
.risk-note { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; color: #b9a476; font-size: 10px; line-height: 1.5; }
.risk-note svg { width: 14px; flex: 0 0 auto; }
.price-guard { padding: 17px; }
.guard-head { display: flex; align-items: center; gap: 11px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.guard-head > svg { color: var(--green); }
.guard-head strong, .guard-head span { display: block; }
.guard-head strong { font-size: 13px; }
.guard-head span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.range-track { position: relative; height: 7px; margin: 26px 2px 10px; background: #344147; }
.range-track span { position: absolute; inset: 0; background: var(--green-deep); }
.range-track i { position: absolute; top: 50%; left: 50%; width: 3px; height: 17px; transform: translate(-50%, -50%); background: var(--amber); }
.range-values { display: flex; justify-content: space-between; color: var(--muted); font-family: ui-monospace, monospace; font-size: 9px; }
.range-values strong { color: var(--amber); }
.plain-rule { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; margin-top: 18px; }
.plain-rule > span { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--green); font-family: ui-monospace, monospace; font-size: 9px; }
.plain-rule p { margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

.account-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.account-strip div { min-height: 76px; display: flex; flex-direction: column; justify-content: center; padding: 10px 16px; border-right: 1px solid var(--line); }
.account-strip div:last-child { border-right: 0; }
.account-strip span { color: var(--muted); font-size: 9px; }
.account-strip strong { margin-top: 7px; font-family: ui-monospace, monospace; font-size: 12px; }
.desk-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.desk-list { min-height: 190px; }
.desk-row { min-height: 56px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 9px 14px; border-bottom: 1px solid #202b30; }
.desk-row:last-child { border-bottom: 0; }
.desk-row strong, .desk-row code { display: block; }
.desk-row strong { font-size: 11px; }
.desk-row code { margin-top: 3px; color: var(--muted); font-size: 9px; }
.desk-row button { height: 30px; }
.import-panel { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-top: 18px; padding: 16px; }
.import-panel h2 { margin-bottom: 5px; }
.import-panel p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.import-panel textarea { min-height: 72px; }

.rules-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.rules-grid article { min-height: 180px; padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.rules-grid article > span { color: var(--green); font-family: ui-monospace, monospace; font-size: 11px; }
.rules-grid h2 { margin-top: 28px; font-size: 15px; }
.rules-grid p { margin: 11px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.facts-table { margin-top: 20px; border-top: 1px solid var(--line); }
.facts-table div { min-height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; border-bottom: 1px solid var(--line); }
.facts-table span { color: var(--muted); font-size: 11px; }
.facts-table strong { font-family: ui-monospace, monospace; font-size: 11px; }

.dialog-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(3, 5, 3, .78); }
.dialog { position: relative; width: min(460px, 100%); padding: 22px; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow); }
.dialog-close { position: absolute; top: 12px; right: 12px; }
.dialog h2 { margin: 0 0 18px; font-size: 22px; }
.dialog-offer { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.dialog-offer div { min-height: 64px; padding: 11px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dialog-offer span, .dialog-offer strong { display: block; }
.dialog-offer span { color: var(--muted); font-size: 9px; }
.dialog-offer strong { margin-top: 7px; font-family: ui-monospace, monospace; font-size: 11px; overflow-wrap: anywhere; }
.dialog-warning { display: flex; align-items: center; gap: 9px; margin: 15px 0; color: var(--muted); font-size: 10px; }
.dialog-warning svg { width: 16px; color: var(--green); }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 80; max-width: min(410px, calc(100vw - 32px)); padding: 12px 15px; border: 1px solid var(--line-strong); background: #182126; box-shadow: var(--shadow); color: var(--text); font-size: 11px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .18s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1050px) {
  .ticker-band { grid-template-columns: repeat(3, 1fr); }
  .ticker-band > div:nth-child(3) { border-right: 0; }
  .ticker-band > div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .market-layout, .trade-layout { grid-template-columns: 1fr; }
  .referee-panel { display: grid; grid-template-columns: 1fr 1fr; }
  .referee-panel .section-heading { grid-column: 1 / -1; }
  .leaderboard-heading, .leaderboard { grid-column: 2; }
  .leaderboard-heading { grid-row: 2; }
  .leaderboard { grid-row: 3 / span 2; }
  .rules-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; left: -250px; width: 236px; transition: left .18s ease; box-shadow: var(--shadow); }
  .sidebar.open { left: 0; }
  .mobile-only { display: inline-grid; }
  .topbar { padding: 0 14px; }
  .live-cluster .separator, .live-cluster > span:nth-last-child(2), #lastUpdated { display: none; }
  main { padding: 22px 14px 44px; }
  .page-heading { align-items: center; }
  h1 { font-size: 24px; }
  .ticker-band { grid-template-columns: 1fr 1fr; }
  .ticker-band > div { min-height: 70px; padding: 10px 12px; }
  .ticker-band > div:nth-child(2n) { border-right: 0; }
  .ticker-band > div:nth-child(3) { border-right: 1px solid var(--line); }
  .ticker-band > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ticker-band > div:last-child { grid-column: 1 / -1; }
  .market-labels { display: none; }
  .market-columns { grid-template-columns: minmax(0, 1fr) auto auto; }
  .offer-row > span:nth-of-type(1), .offer-row > span:nth-of-type(2) { display: none; }
  .trade-tape { grid-template-columns: 1fr; }
  .tape-row { border-right: 0; }
  .referee-panel { display: block; }
  .form-grid, .direction-control, .order-preview, .account-strip, .desk-layout, .rules-grid { grid-template-columns: 1fr; }
  .order-preview div, .account-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .order-preview div:last-child, .account-strip div:last-child { border-bottom: 0; }
  .import-panel { grid-template-columns: 1fr; }
  .signer-bar { grid-template-columns: 36px minmax(0, 1fr); }
  .signer-bar > img { width: 36px; height: 36px; }
  .signer-bar > .status-badge { grid-column: 1 / -1; justify-content: center; }
  .rules-grid { border-left: 1px solid var(--line); }
  .top-actions { gap: 7px; }
}

@media (max-width: 460px) {
  .page-heading { align-items: flex-start; }
  .page-heading > .primary, .page-heading > .button { min-width: 38px; padding: 0 9px; }
  .page-heading > .primary span, .page-heading > .button span { display: none; }
  .live-cluster { gap: 7px; }
  .status-badge { padding: 0 6px; }
  .status-badge span:last-child { max-width: 86px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .filter-tabs button { min-width: 40px; padding: 0 5px; }
  .offer-row { grid-template-columns: minmax(0, 1fr) 66px 62px; gap: 6px; padding: 9px; }
  .call-cell code { max-width: 100px; }
  .dialog-offer { grid-template-columns: 1fr; }
}
