@font-face { font-family: "Plus Jakarta Sans"; src: url("/assets/plus-jakarta-sans-eXO_dkmS.woff2") format("woff2"); font-style: normal; font-weight: 200 800; font-display: swap; }
[data-rk], [data-rk] * { font-family: "Plus Jakarta Sans", system-ui, sans-serif !important; }
[data-rk] button:focus-visible { outline: 2px solid #b5ef55; outline-offset: 3px; }
:root {
  color-scheme: dark;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --bg: #0b1018;
  --surface: #151d29;
  --surface-raised: #192331;
  --surface-low: #101721;
  --border: #2b3745;
  --border-soft: #222d3a;
  --control-border: #617386;
  --text: #f2f6fa;
  --muted: #a8b6c7;
  --dim: #7d8ca0;
  --lime: #b5ef55;
  --amber: #f4bc66;
  --rose: #f18b89;
  --cyan: #70b6e8;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
small { font-size: max(14px, 0.833333em); }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); color: var(--text); }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
::selection { color: var(--bg); background: var(--lime); }

.app-shell { min-height: 100vh; background-image: radial-gradient(ellipse at 54% -14%, rgba(47, 71, 93, .22), transparent 36rem); }
.topbar { height: 68px; display: flex; align-items: center; gap: 18px; padding: 0 clamp(20px, 4vw, 64px); border-bottom: 1px solid var(--border-soft); background: rgba(11, 16, 24, .88); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 10; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-size: 14px; font-weight: 850; letter-spacing: .16em; }
.brand-mark { display: inline-flex; width: 25px; height: 24px; position: relative; align-items: center; justify-content: center; gap: 3px; transform: skewY(-9deg); }
.brand-mark i { display: block; width: 4px; height: 15px; border: 1px solid var(--lime); border-radius: 2px; }
.brand-mark i:first-child { height: 10px; align-self: flex-end; margin-bottom: 2px; }
.brand-mark i:nth-child(2) { height: 17px; }
.brand-mark b { width: 3px; height: 23px; background: var(--lime); border-radius: 2px; transform: rotate(25deg); }
.brand-mark--small { transform: scale(.8) skewY(-9deg); transform-origin: left center; }
.topbar-divider { width: 1px; height: 23px; background: var(--border); }
.topbar-context { color: var(--muted); font-size: 14px; letter-spacing: .08em; }
.topbar-dot { color: var(--lime); padding: 0 5px; }
.topbar-spacer { flex: 1; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; min-height: 24px; padding: 0 9px; font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: .04em; white-space: nowrap; }
.status-pill--live { color: var(--lime); background: rgba(181, 239, 85, .09); border: 1px solid rgba(181, 239, 85, .26); }
.status-pill--waiting { color: var(--cyan); background: rgba(112, 182, 232, .08); border: 1px solid rgba(112, 182, 232, .22); }
.status-pill--paused { color: var(--amber); background: rgba(244, 188, 102, .08); border: 1px solid rgba(244, 188, 102, .23); }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 9px currentColor; }
.button { min-height: 44px; border: 1px solid transparent; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-size: 14px; font-weight: 730; cursor: pointer; transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease; }
.button:disabled { cursor: not-allowed; opacity: .57; }
.button--connect { min-height: 44px; padding: 0 12px; border-color: var(--control-border); background: #17212d; color: var(--text); }
.connect-label-short { display: none; }
.button--connect:hover { border-color: var(--muted); background: #1c2a39; }
.button--primary { background: var(--lime); color: #11180a; }
.button--primary:not(:disabled):hover { background: #c9fa7a; transform: translateY(-1px); }
.button--ghost { padding: 0 11px; color: var(--muted); background: transparent; border-color: var(--control-border); }
.button--ghost:hover { border-color: var(--control-border); color: var(--text); }
.button--wide { width: 100%; min-height: 46px; }
.button--join { min-width: 155px; padding: 0 15px; background: var(--lime); color: #11180a; }
.button--join:hover:not(:disabled) { background: #c9fa7a; }
.page-content { width: min(100%, 1512px); margin: 0 auto; padding: 40px clamp(20px, 4vw, 64px) 26px; }
.intro-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding: 0 2px 27px; }
.eyebrow, .panel-kicker { color: var(--dim); font-size: 14px; font-weight: 700; line-height: 1.3; letter-spacing: .07em; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; color: var(--lime); }
.eyebrow-line { width: 22px; height: 1px; background: var(--lime); }
h1 { margin: 0; font-size: clamp(30px, 3.1vw, 43px); letter-spacing: -.025em; line-height: 1.04; font-weight: 790; }
h1 em { font-style: normal; color: var(--lime); }
.intro-copy { margin: 12px 0 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.intro-actions { display: flex; gap: 8px; padding-bottom: 2px; }
.intro-action-primary { min-width: 170px; padding: 0 16px; }
.intro-action-secondary { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 9px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 16px; font-weight: 600; line-height: 1.25; cursor: pointer; }
.intro-action-secondary:hover { color: var(--text); background: rgba(168,182,199,.06); }
.intro-action-secondary:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.feed-banner { min-height: 38px; display: flex; align-items: center; gap: 9px; margin-bottom: 17px; padding: 0 12px; border: 1px solid var(--border-soft); border-radius: 6px; background: rgba(17, 24, 33, .8); color: var(--muted); font-size: 14px; font-weight: 600; line-height: 1.4; }
.feed-banner--offline, .feed-banner--partial { border-color: rgba(244, 188, 102, .24); color: #e8ca9e; }
.feed-banner--live { border-color: rgba(181, 239, 85, .22); color: #d2e8ab; }
.feed-banner-icon { display: inline-flex; color: var(--amber); }
.feed-banner--live .feed-banner-icon { color: var(--lime); }
.feed-banner-time { margin-left: auto; color: var(--dim); font-size: 14px; letter-spacing: .08em; }
.mobile-tabs { display: none; }
.arena-grid { display: grid; grid-template-columns: 248px minmax(390px, 1fr) 272px; gap: 16px; align-items: start; }
.panel { border: 1px solid var(--border); border-radius: 9px; background: linear-gradient(155deg, rgba(23, 32, 44, .97), rgba(18, 26, 37, .97)); box-shadow: 0 8px 28px rgba(0, 0, 0, .12); }
.market-panel, .standings-panel { min-height: 397px; padding: 18px 16px 14px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.panel-heading h2 { margin: 7px 0 0; font-size: 18px; letter-spacing: -.03em; }
.market-icon { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #67502d; border-radius: 50%; color: #e2b867; background: rgba(226, 184, 103, .06); font-size: 19px; }
.mark-block { padding: 23px 0 18px; border-bottom: 1px solid var(--border-soft); }
.metric-label { color: var(--muted); font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: .07em; }
.help-dot { display: inline-grid; place-items: center; width: 13px; height: 13px; margin-left: 4px; border: 1px solid #657487; border-radius: 50%; color: #b3c1d0; font: 700 14px/1 system-ui; cursor: help; }
.mark-value { display: block; margin-top: 8px; font: 700 30px/1 var(--mono); letter-spacing: -.07em; color: var(--text); }
.market-freshness { display: block; margin-top: 7px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.metric-sub { display: block; margin-top: 8px; color: var(--dim); font-size: 14px; }
.book-heading { display: flex; justify-content: space-between; align-items: center; margin: 17px 0 11px; color: var(--dim); font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: .07em; }
.book-heading small { color: #4e5d70; }
.book-table { border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.book-side { display: grid; grid-template-columns: 1fr 1.25fr .7fr; align-items: center; min-height: 29px; gap: 4px; font-family: var(--mono); font-size: 14px; }
.book-side span { color: var(--dim); font-family: inherit; font-size: 14px; letter-spacing: .06em; }
.book-side strong { font-size: 14px; font-weight: 650; }
.book-side small { text-align: right; color: var(--muted); font-size: 14px; }
.book-side--ask strong { color: var(--rose); }
.book-side--bid strong { color: var(--lime); }
.book-mid { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 5px 0; color: var(--dim); font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: .07em; }
.book-mid i { height: 1px; width: 21px; background: var(--border); }
.book-empty { height: 88px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 11px; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.book-empty p { margin: 0; color: var(--dim); font-size: 16px; }
.book-empty-line { display: flex; align-items: end; gap: 4px; height: 22px; opacity: .6; }
.book-empty-line i { display: block; width: 9px; height: 6px; border-top: 1px solid #64758a; border-bottom: 1px solid #64758a; }
.book-empty-line i:nth-child(2), .book-empty-line i:nth-child(4) { height: 12px; }
.book-empty-line i:nth-child(3) { height: 19px; border-color: var(--cyan); }
.market-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 13px; color: var(--dim); font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: .06em; }
.market-foot + .market-foot { margin-top: 9px; }
.market-foot strong { color: var(--muted); font-size: 14px; letter-spacing: 0; font-weight: 500; }
.source-dot { display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: var(--lime); }
.text-button { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; padding: 0; border: 0; color: var(--cyan); background: transparent; font-size: 16px; cursor: pointer; }
.text-button:hover { color: #a5d7f6; }
.center-column { min-width: 0; }
.round-card { min-height: 92px; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 18px; border-color: rgba(181, 239, 85, .25); background: radial-gradient(ellipse at 8% -60%, rgba(181, 239, 85, .11), transparent 60%), #151e29; }
.round-title-row { display: flex; align-items: center; gap: 12px; }
.round-title-row h2 { margin: 6px 0 0; font-size: 16px; letter-spacing: -.03em; }
.round-length { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; color: var(--lime); font: 700 14px/1 var(--mono); letter-spacing: .1em; }
.round-left p { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.quote-section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin: 22px 2px 12px; }
.quote-section-heading h2 { margin: 5px 0 0; font-size: 17px; letter-spacing: -.03em; }
.quote-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.quote-card { min-width: 0; padding: 15px 14px 13px; border-top-width: 2px; }
.quote-card--bid { border-top-color: rgba(181, 239, 85, .6); }
.quote-card--ask { border-top-color: rgba(241, 139, 137, .63); }
.quote-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.quote-side-title { display: flex; align-items: center; gap: 9px; }
.quote-glyph { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: rgba(181, 239, 85, .09); color: var(--lime); font-size: 17px; }
.quote-card--ask .quote-glyph { color: var(--rose); background: rgba(241, 139, 137, .08); }
.quote-side-title h3 { margin: 3px 0 0; font-size: 17px; letter-spacing: -.03em; }
.quote-card-top .status-pill { font-size: 14px; padding: 0 7px; min-height: 21px; }
.quote-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 18px; }
.quote-fields label { color: var(--muted); font-size: 16px; font-weight: 700; line-height: 1.2; letter-spacing: .04em; }
.quote-fields label > span { float: right; color: var(--dim); font-weight: 500; letter-spacing: .03em; }
.input-shell { height: 44px; min-height: 44px; display: flex; align-items: center; gap: 4px; margin-top: 7px; padding: 0 9px; border: 1px solid var(--control-border); border-radius: 5px; background: #101721; color: var(--dim); }
.input-shell input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--text); background: transparent; font: 600 14px var(--mono); }
.input-shell input:disabled { opacity: 1; cursor: not-allowed; }
.input-shell input::placeholder { color: var(--muted); font-family: inherit; font-size: 16px; font-weight: 500; }
.quote-meta { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--dim); font: 700 14px/1 var(--mono); letter-spacing: .06em; }
.quote-meta span:first-child { display: inline-flex; align-items: center; gap: 4px; color: var(--cyan); }
.quote-button { width: 100%; min-height: 44px; margin-top: 13px; border-color: var(--control-border); background: #1a2633; color: #c7d1dc; font-size: 14px; }
.quote-button--ask { background: #211f2a; }
.quote-safety { display: flex; align-items: center; gap: 7px; margin: 11px 2px 0; color: var(--dim); font-size: 16px; line-height: 1.5; }
.quote-order-terms { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 6px 16px; margin-top: 16px; padding: 14px 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); font-size: 16px; line-height: 1.45; }
.quote-order-terms span { color: var(--muted); }
.quote-order-terms strong { color: var(--text); font-weight: 650; }
.quote-safety svg { color: var(--cyan); flex: 0 0 auto; }
.quote-notice { display: flex; align-items: center; gap: 6px; color: var(--amber); font-size: 14px; }
.lower-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 12px; margin-top: 21px; }
.score-panel, .order-panel { min-height: 155px; padding: 15px; }
.panel-heading--compact { align-items: center; }
.panel-heading--compact h2 { margin-top: 6px; font: 700 25px/1 var(--mono); letter-spacing: -.05em; }
.panel-heading--compact h2 small { color: var(--dim); font-size: 14px; font-weight: 700; letter-spacing: .04em; }
.score-ring { width: 42px; height: 42px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #435363; border-radius: 50%; color: var(--muted); font-family: var(--mono); }
.score-ring b { font-size: 14px; line-height: 1; }
.score-ring small { margin-top: 4px; color: var(--dim); font-size: 14px; letter-spacing: .12em; }
.score-track { height: 4px; margin-top: 16px; border-radius: 4px; background: #293341; overflow: hidden; }
.score-track span { display: block; width: 0; height: 100%; background: var(--lime); }
.score-status { display: flex; align-items: center; gap: 7px; margin-top: 10px; color: var(--muted); font-size: 14px; }
.score-sides { display: grid; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-soft); }
.score-side { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14px; line-height: 1.4; }
.score-side > span { color: var(--muted); }
.score-side > strong { color: var(--text); font-weight: 600; text-align: right; }
.status-square { display: inline-block; width: 7px; height: 7px; border-radius: 2px; flex: 0 0 auto; }
.status-square--amber { background: var(--amber); }
.status-square--muted { background: #657386; }
.score-legend { display: flex; justify-content: space-between; margin-top: 13px; color: var(--dim); font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: .05em; }
.score-legend b { color: var(--muted); padding-left: 3px; }
.order-panel .panel-heading h2 { font-size: 16px; line-height: 1.2; letter-spacing: 0; }
.icon-button { min-width: 44px; min-height: 44px; border: 1px solid var(--control-border); border-radius: 6px; display: inline-grid; place-items: center; background: #141e29; color: var(--muted); font-size: 23px; cursor: pointer; }
.icon-button:hover { border-color: var(--control-border); color: var(--text); }
.icon-button--subtle { min-width: 30px; min-height: 30px; border-color: transparent; background: transparent; }
.order-empty { display: flex; align-items: center; gap: 7px; margin-top: 19px; color: var(--muted); font-size: 14px; }
.order-panel .text-button { margin-top: 4px; }
.right-column { display: grid; gap: 12px; }
.standings-panel { min-height: 239px; }
.standings-count { color: var(--text); font: 700 20px/1 var(--mono); }
.standings-count small { color: var(--dim); font-size: 14px; font-weight: 700; letter-spacing: .04em; }
.standings-empty { min-height: 145px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); margin-top: 17px; }
.standings-mark { display: flex; align-items: center; gap: 3px; height: 21px; margin-bottom: 9px; transform: skewY(-10deg); }
.standings-mark i { width: 4px; height: 11px; border: 1px solid #8493a4; border-radius: 2px; }
.standings-mark i:nth-child(2) { height: 18px; }
.standings-mark b { width: 3px; height: 22px; background: var(--lime); transform: rotate(25deg); }
.standings-empty h3 { margin: 0; font-size: 16px; }
.standings-empty p { max-width: 185px; margin: 6px 0 0; color: var(--dim); font-size: 14px; line-height: 1.45; }
.standings-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; color: var(--dim); font-size: 14px; font-weight: 700; line-height: 1.3; letter-spacing: .05em; }
.standings-foot .status-pill { min-height: 20px; font-size: 14px; }
.trust-panel { min-height: 77px; display: flex; align-items: center; gap: 10px; padding: 13px; }
.trust-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: rgba(112, 182, 232, .08); color: var(--cyan); flex: 0 0 auto; }
.trust-panel > div:nth-child(2) { flex: 1; }
.trust-panel strong { font-size: 16px; }
.trust-panel p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.activity-panel { min-height: 137px; padding: 14px; }
.activity-panel .panel-heading h2 { font-size: 14px; }
.feed-live-label { display: inline-flex; align-items: center; gap: 5px; color: var(--dim); font-size: 14px; font-weight: 700; letter-spacing: .05em; }
.feed-live-label i { width: 5px; height: 5px; border-radius: 50%; background: #526071; }
.activity-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 72px; border-top: 1px solid var(--border-soft); margin-top: 12px; text-align: center; }
.activity-pulse { width: 6px; height: 6px; margin-bottom: 7px; border: 1px solid var(--cyan); border-radius: 50%; box-shadow: 0 0 0 4px rgba(112, 182, 232, .07); }
.activity-empty p { margin: 0; color: var(--muted); font-size: 14px; }
.activity-empty small { margin-top: 4px; color: var(--dim); font-size: 14px; }
.app-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 35px; padding: 15px 2px 5px; border-top: 1px solid var(--border-soft); color: var(--dim); }
.footer-brand { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 800; letter-spacing: .12em; }
.footer-brand small { margin-left: 8px; color: var(--dim); font-size: 14px; font-weight: 400; letter-spacing: 0; }
.footer-links { display: flex; align-items: center; gap: 18px; }
.footer-links button { min-height: 44px; padding: 4px 0; border: 0; color: var(--muted); background: transparent; font-size: 16px; cursor: pointer; }
.footer-links button:hover { color: var(--text); }
.footer-links span { font-size: 14px; font-weight: 700; letter-spacing: .04em; }
.mobile-order-bar { display: none; }

.modal { width: min(540px, calc(100vw - 28px)); max-width: none; max-height: min(86vh, 760px); overflow-y: auto; padding: 22px; border: 1px solid #3a4757; border-radius: 12px; background: #141d28; color: var(--text); box-shadow: 0 24px 80px rgba(0, 0, 0, .55); }
.modal::backdrop { background: rgba(4, 7, 11, .72); backdrop-filter: blur(5px); }
.modal-topline { display: flex; align-items: center; justify-content: space-between; color: var(--dim); font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: .05em; }
.modal > h2 { margin: 17px 0 16px; font-size: 22px; letter-spacing: -.025em; }
.modal-copy, .how-content, .connect-flow { color: var(--muted); font-size: 14px; line-height: 1.55; }
.modal-copy > p:first-child, .how-content > p:first-of-type, .connect-flow > p:first-child { margin-top: 0; }
.formula-card { display: flex; flex-direction: column; gap: 8px; margin: 17px 0; padding: 15px; border: 1px solid #39485a; border-radius: 8px; background: #101721; }
.formula-card > span { color: var(--lime); font-size: 14px; font-weight: 700; letter-spacing: .05em; }
.formula-card strong { color: var(--text); font: 650 15px var(--mono); }
.formula-card small { color: var(--muted); font-size: 14px; }
.modal-copy ul { padding-left: 17px; }
.modal-copy li { margin: 7px 0; }
.modal-note { margin-top: 16px !important; padding-top: 12px; border-top: 1px solid var(--border-soft); color: var(--dim); font-size: 14px; }
.how-rails { display: flex; align-items: center; justify-content: center; gap: 12px; height: 72px; margin: 8px 0 18px; border: 1px solid var(--border); border-radius: 8px; background: #101721; color: var(--muted); font-size: 14px; font-weight: 700; letter-spacing: .06em; }
.how-rails > i { width: 42px; height: 1px; background: #4c5b6b; }
.how-rails > i:first-of-type { background: var(--lime); }
.how-rails > i:last-of-type { background: var(--rose); }
.how-rails > b { color: var(--text); }
.how-steps { display: grid; gap: 8px; margin-top: 15px; }
.how-steps span { display: flex; align-items: center; gap: 11px; color: var(--text); font-size: 14px; }
.how-steps b { color: var(--lime); font: 700 14px var(--mono); }
.empty-orders { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 155px; text-align: center; color: var(--muted); }
.empty-orders p { margin: 12px 0 4px; font-size: 14px; }
.empty-orders small { color: var(--dim); font-size: 14px; }
.empty-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 50%; color: var(--cyan); }
.connect-flow > p { line-height: 1.55; }
.account-found { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 13px 0; padding: 11px; border: 1px solid rgba(181, 239, 85, .2); border-radius: 7px; background: rgba(181, 239, 85, .04); color: var(--text); font-size: 14px; font-weight: 600; }
.account-found--new { border-color: rgba(244, 188, 102, .24); background: rgba(244, 188, 102, .04); }
.wallet-address { display: flex; align-items: center; gap: 7px; padding: 9px 10px; border-radius: 6px; background: #101721; color: var(--text); font: 600 14px var(--mono); }
.authorization-notice { display: flex; gap: 9px; margin: 14px 0; padding: 11px; border: 1px solid #3a4858; border-radius: 7px; background: #111923; color: var(--muted); font-size: 14px; line-height: 1.5; }
.authorization-notice svg { flex: 0 0 auto; color: var(--cyan); margin-top: 1px; }
.authorization-notice b { color: var(--text); }
.inline-error { display: flex; align-items: flex-start; gap: 7px; color: var(--rose); font-size: 14px; line-height: 1.5; }
.inline-error svg { flex: 0 0 auto; }
.progress-line { display: flex; align-items: center; gap: 9px; margin-top: 17px; color: var(--cyan); font-size: 14px; font-weight: 600; }
.spinner { width: 14px; height: 14px; border: 2px solid rgba(112, 182, 232, .24); border-top-color: var(--cyan); border-radius: 50%; animation: spin .75s linear infinite; }
.balance-row { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding: 12px 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); font-size: 14px; }
.balance-row strong { color: var(--lime); font: 650 14px var(--mono); }
.connected-summary > .status-pill { margin-bottom: 7px; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1200px) {
  .arena-grid { grid-template-columns: 228px minmax(340px, 1fr); }
  .right-column { grid-column: 1 / -1; grid-template-columns: 1fr 1fr 1fr; }
  .standings-panel { min-height: 180px; }
  .standings-empty { min-height: 95px; margin-top: 12px; }
  .trust-panel { align-self: start; }
}

@media (min-width: 768px) and (max-width: 900px) {
  .topbar { gap: 12px; }
  .topbar-context, .topbar > .button--connect { white-space: nowrap; flex-shrink: 0; }
  .quote-card-top { gap: 4px; }
  .quote-side-title { gap: 6px; }
  .quote-card-top .panel-kicker { white-space: nowrap; }
}

@media (max-width: 767px) {
  .topbar { height: 58px; gap: 11px; padding: 0 15px; }
  .topbar--with-mobile-dock > .button--connect { display: none; }
  .brand { font-size: 14px; gap: 7px; }
  .brand-mark { transform: scale(.84) skewY(-9deg); transform-origin: left center; width: 22px; }
  .topbar-divider, .topbar-context, .topbar > .status-pill { display: none; }
  .button--connect { min-height: 44px; padding: 0 9px; font-size: 16px; }
  .page-content { padding: 26px 14px 26px; }
  .page-content--has-dock { padding-bottom: calc(84px + max(10px, env(safe-area-inset-bottom))); }
  .intro-row { display: block; padding-bottom: 19px; }
  .eyebrow { margin-bottom: 11px; font-size: 14px; }
  h1 { font-size: clamp(28px, 8.3vw, 37px); line-height: 1.03; }
  .intro-copy { max-width: 350px; font-size: 16px; }
  .intro-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; margin-top: 12px; }
  .intro-action-primary { grid-column: 1 / -1; width: 100%; }
  .intro-action-secondary { min-width: 0; padding: 0 4px; }
  .button--ghost { min-height: 44px; font-size: 16px; }
  .feed-banner { align-items: flex-start; min-height: 42px; padding: 9px; font-size: 14px; line-height: 1.4; }
  .feed-banner-time { display: none; }
  .mobile-tabs { position: sticky; top: 58px; z-index: 5; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 0 -14px 13px; padding: 6px 14px; border-bottom: 1px solid var(--border); background: rgba(11, 16, 24, .95); backdrop-filter: blur(12px); }
  .mobile-tab { min-height: 44px; border: 1px solid var(--control-border); border-radius: 6px; color: var(--dim); background: transparent; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
  .mobile-tab.is-active { border-color: var(--lime); color: var(--lime); background: rgba(181, 239, 85, .07); }
  .arena-grid { display: block; }
  .mobile-hidden { display: none !important; }
  .mobile-show { display: block !important; }
  .market-panel, .standings-panel { min-height: 0; padding: 16px; }
  .market-panel .mark-block { padding: 19px 0 15px; }
  .mark-value { font-size: 29px; }
  .book-empty { height: 120px; }
  .round-card { align-items: flex-start; flex-direction: column; min-height: 0; padding: 15px; }
  .round-title-row { flex-wrap: wrap; gap: 8px; }
  .round-title-row h2 { font-size: 16px; }
  .round-left p { font-size: 16px; }
  .button--join { width: 100%; min-height: 43px; }
  .quote-section-heading { align-items: center; margin-top: 17px; }
  .quote-section-heading h2 { font-size: 16px; }
  .quote-section-heading .status-pill { max-width: 150px; overflow: hidden; font-size: 14px; }
  .quote-grid { grid-template-columns: 1fr; gap: 10px; }
  .quote-card { padding: 14px; }
  .quote-fields { margin-top: 15px; }
  .input-shell { min-height: 42px; }
  .quote-button { min-height: 42px; }
  .quote-safety { align-items: flex-start; font-size: 16px; line-height: 1.5; }
  .lower-grid { grid-template-columns: 1fr; margin-top: 16px; }
  .score-panel, .order-panel { min-height: 145px; }
  .right-column { display: grid; grid-template-columns: 1fr; margin-top: 0; }
  .trust-panel { min-height: 84px; }
  .standings-panel .standings-empty { min-height: 160px; }
  .app-footer { display: block; margin-top: 24px; }
  .footer-brand { min-height: 26px; }
  .footer-links { flex-wrap: wrap; gap: 14px; margin-top: 11px; }
  .footer-links span { width: 100%; padding-top: 5px; }
  .mobile-order-bar { position: fixed; z-index: 8; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 9px 14px max(10px, env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: rgba(11, 16, 24, .96); backdrop-filter: blur(14px); }
.mobile-order-bar button { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--control-border); border-radius: 7px; background: #151d29; color: var(--text); font-size: 14px; font-weight: 700; }
  .mobile-order-bar button:last-child { border-color: var(--lime); color: var(--lime); }
  .mobile-order-bar button span { color: var(--dim); }
  .modal { padding: 18px; }
  .modal > h2 { font-size: 20px; }
  .account-found { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.results-page { padding: 36px 0 64px; }
.results-heading { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:28px; }
.results-heading h1 { font-size:clamp(30px,4vw,48px); margin:12px 0; }
.results-empty { padding:64px 24px; text-align:center; }
.results-empty h2 { margin:16px 0; }
.results-empty p,.results-empty-copy { color:var(--text-secondary,#a8b6c7); margin-bottom:24px; }
.results-summary { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:20px; margin:24px 0; }
.result-score { padding:28px; }
.result-score h2 { font-size: 48px; font-variant-numeric:tabular-nums; margin:20px 0; }
.result-score h2 small { font-size: 14px; font-weight:500; color:#a8b6c7; }
.result-score dl { margin:0; }
.result-score dl div { display:flex; justify-content:space-between; gap:16px; padding:10px 0; border-top:1px solid #2b3745; }
.result-score dt { color:#a8b6c7; }
.result-score dd { margin:0; font-variant-numeric:tabular-nums; }
.cleanup-panel { padding:24px; margin-bottom:24px; }
.cleanup-panel h2 { font-size: 20px; margin:0 0 12px; }
.cleanup-panel p { line-height:1.6; color:#a8b6c7; }
.cleanup-panel--warning { border-color:#f4bc66; }
.results-orders,.audit-section { padding:24px; margin-bottom:24px; }
.results-table-wrap { overflow:auto; }
.results-orders table { width:100%; text-align:left; border-collapse:collapse; font-size: 14px; }
.results-orders th,.results-orders td { padding:16px 12px; border-bottom:1px solid #2b3745; white-space:nowrap; }
.results-orders th { color:#a8b6c7; font-weight:500; }
.audit-section pre { max-height:400px; overflow:auto; font-size: 14px; color:#a8b6c7; }
.results-actions { display:flex; gap:12px; }
@media(max-width:767px) {
  .results-heading { align-items:flex-start; flex-direction:column; gap:12px; }
  .results-heading h1 { font-size: 32px; }
  .results-page { padding:20px 0 48px; }
  .result-score,.cleanup-panel,.results-orders,.audit-section { padding:20px; }
  .results-actions { flex-direction:column; }
}

.network-badge { display:inline-flex; align-items:center; font-size:14px; font-weight:700; letter-spacing:.04em; color:var(--lime); }
.arena-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:4px 0 28px; }
.arena-heading h1 { font-size: 32px; margin:10px 0 0; }
.modal--wallet { position:fixed; inset:0 0 0 auto; margin:0; width:min(460px,100vw); height:100dvh; max-height:100dvh; border-radius:12px 0 0 12px; padding:26px; }
.spectator-return { margin-top:18px; }
.modal-copy,.how-content,.connect-flow { font-size: 14px; }
.modal-note { font-size: 14px; }
.input-shell input { font-size: 14px; }
@media(max-width:767px) {
  .network-badge { display:inline-flex; font-size:14px; font-weight:700; letter-spacing:.04em; color:var(--lime); }
  .topbar { gap:8px; }
  .button--connect,.button--ghost,.mobile-tab,.button--join,.quote-button,.icon-button { min-height:44px; }
  .intro-copy { font-size: 16px; line-height:1.55; }
  .intro-actions { display:grid; grid-template-columns:1fr 1fr; gap:0 8px; }
  .intro-actions .button { justify-content:center; padding:0 12px; font-size: 16px; }
  .intro-action-primary { grid-column:1 / -1; width:100%; }
  .intro-action-secondary { font-size:16px; }
  .feed-banner { font-size: 14px; }
  .mobile-tab { font-size: 14px; }
  .round-left p,.quote-safety { font-size: 16px; line-height:1.5; }
  .quote-fields label { font-size: 16px; }
  .input-shell input { font-size: 16px; }
  .text-button { min-height:44px; font-size: 16px; }
  .modal--wallet { inset:0; width:100vw; height:100dvh; border-radius:0; padding:20px; }
  .arena-heading { align-items:flex-start; flex-direction:column; gap:16px; padding:0 0 24px; }
  .arena-heading h1 { font-size: 28px; }
}

.score-as-of,.score-context,.solo-notice { color:var(--muted); font-size: 16px; line-height:1.5; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); clip-path:inset(50%); white-space:nowrap; border:0; }
.maker-list { list-style:none; padding:0; margin:20px 0; }
.maker-list li { display:flex; justify-content:space-between; gap:12px; padding:14px 0; border-top:1px solid var(--border-soft); font-size: 14px; }
.maker-list strong { color:var(--lime); font-family:var(--mono); }
.maker-list small { font-size: 14px; color:var(--muted); }
.round-state-label { flex:0 0 auto; font-size:14px; font-weight:700; letter-spacing:.03em; text-align:right; text-transform:uppercase; color:var(--cyan); }
.lower-grid--orders { grid-template-columns:1fr; }
.mobile-score-strip { display:none; }
@media(max-width:767px) {
  .mobile-score-strip { display:flex; justify-content:space-between; gap:12px; margin:10px 0; font-size: 16px; color:var(--muted); }
  .mobile-score-strip strong { color:var(--text); }
}

.risk-access { margin-left:20px; }
.risk-warning { border-left:2px solid var(--amber); padding:12px; margin-top:24px; color:var(--amber); background:rgba(244,188,102,.05); }
.position-list { padding:0; list-style:none; }
.position-list li { display:grid; gap:6px; padding:14px 0; border-top:1px solid var(--border); }
.position-list li span { color:var(--muted); }
@media(max-width:767px) { .risk-access { margin-left:0; display:flex; } }
.order-records { padding: 16px; display: grid; gap: 12px; }
.order-record { border-bottom: 1px solid var(--border); padding-bottom: 12px; min-width: 0; }
.order-record:last-child { border-bottom: 0; }
.order-record > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.order-record p { margin: 8px 0; }
.order-record small, .order-record code { display: block; color: var(--muted); overflow-wrap: anywhere; }
.audit-timeline { display: flex; flex-wrap: wrap; gap: 3px; padding: 20px; }
.audit-tick { width: 8px; height: 24px; background: #58677b; border-radius: 2px; }
.audit-tick--earned { background: #45dfb3; }
.audit-section details { padding: 0 20px 20px; }
.audit-section summary { cursor: pointer; padding: 12px 0; }

/* Portal sheets use the visible viewport, independent of native dialog sizing. */
.dialog-overlay { position: fixed; z-index: 100; inset: 0 auto auto 0; width: 100%; height: var(--sheet-height, 100dvh); display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(4,7,11,.78); backdrop-filter: blur(5px); }
.dialog-overlay .modal { position: relative; inset: auto; margin: 0; width: min(560px,100%); height: auto; min-height: 240px; max-height: calc(var(--sheet-height, 100dvh) - 48px); overflow: auto; overscroll-behavior: contain; padding: 24px; border-radius: 16px; flex: 0 1 auto; }
.dialog-overlay--side { justify-content: flex-end; padding: 0; }
.dialog-overlay--side .modal { width: min(480px,100%); height: var(--sheet-height, 100dvh); max-height: var(--sheet-height, 100dvh); border-radius: 16px 0 0 16px; }
.modal-topline { font-size: 14px; gap: 16px; }
.modal-topline .icon-button { flex: 0 0 44px; min-height: 44px; }
.modal-copy, .how-content, .connect-flow { font-size: 16px; line-height: 1.6; }
.modal > h2 { font-size: 25px; line-height: 1.25; letter-spacing: -.035em; }
.modal-note, .authorization-notice, .inline-error, .empty-orders p { font-size: 16px; line-height: 1.55; }
.balance-row { font-size: 14px; line-height: 1.6; }
.how-steps span { font-size: 15px; }
.modal .button { min-height: 44px; font-size: 16px; padding: 10px 16px; white-space: normal; }
.quote-meta { flex-wrap: wrap; font-family: inherit; letter-spacing: 0; }
@media(max-width:767px) {
  body { font-size: 16px; line-height: 1.5; }
  .dialog-overlay, .dialog-overlay--side { align-items: flex-end; padding: 12px; }
  .dialog-overlay .modal { width: 100%; height: auto; min-height: 280px; max-height: calc(var(--sheet-height, 100dvh) - 24px); padding: 20px; border-radius: 18px; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  .button, .button--connect, .button--ghost, .intro-actions .button, .quote-button, .mobile-order-bar button { font-size: 16px; min-height: 44px; }
  .intro-copy, .round-left p, .quote-safety, .score-context, .standings-empty p, .trust-panel p, .empty-orders p { font-size: 16px; line-height: 1.55; }
  .score-status, .empty-orders small { font-size: 14px; line-height: 1.5; }
  .mobile-tab { font-size: 16px; }
  .panel-kicker, .metric-label, .network-badge, .status-pill, .quote-card-top .status-pill { font-size: 14px; letter-spacing: .035em; }
  .quote-fields label { font-size: 16px; }
  .book-side, .book-side span, .book-side strong, .book-side small, .market-foot strong { font-size: 14px; }
  .quote-card-top { flex-wrap: wrap; gap: 12px; }
  .feed-banner { font-size: 14px; }
  .footer-brand small { font-size: 14px; }
}
.score-history { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
.score-history th, .score-history td { padding: 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }

@media (max-width: 600px) {
  [data-rk] [role="document"] > div {
    width: 100vw !important;
    min-width: 0 !important;
    height: fit-content !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 24px) !important;
    flex: 0 0 auto !important;
  }
  [data-rk] [role="document"] > div > div {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    min-width: 0 !important;
    height: fit-content !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 24px) !important;
    flex: 0 0 auto !important;
  }
  [data-rk] [role="document"] > div > div > div,
  [data-rk] [role="document"] > div > div > div > div {
    width: 100% !important;
    min-width: 0 !important;
    height: fit-content !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 24px) !important;
    flex: 0 0 auto !important;
  }
  [data-rk] [role="document"] > div > div > div > div {
    flex-direction: column !important;
  }
  [data-rk] [role="document"] > div > div > div > div > div:nth-child(2) {
    display: none !important;
  }
}


/* Visible text floor and touch targets */
.button, .intro-actions .button, .modal .button, .mobile-order-bar button, .text-button, .mobile-tab, .footer-links button, .input-shell input, .input-shell input::placeholder { font-size: 16px; }
.modal-heading { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: -2px -2px 12px; padding: 2px; background: #151d29; }
.modal-heading h2 { margin: 0; font-size: 25px; line-height: 1.25; letter-spacing: -.035em; }
.modal-heading .icon-button { flex: 0 0 44px; min-height: 44px; }
.feed-banner > span:nth-child(2) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.quote-section-heading h2 { margin: 0; }
@media(max-width:767px) {
  .button, .intro-actions .button, .modal .button, .mobile-order-bar button, .text-button, .mobile-tab, .footer-links button, .input-shell input, .input-shell input::placeholder { font-size: 16px; }
  .modal-heading h2 { font-size: 22px; }
  .modal-note, .authorization-notice, .inline-error, .empty-orders p { font-size: 16px; }
  .balance-row, .empty-orders small { font-size: 14px; }
  .panel-kicker, .metric-label, .network-badge, .status-pill, .quote-card-top .status-pill { font-size: 14px; letter-spacing: .02em; }
  .quote-fields label { font-size: 16px; }
}
@media(max-width:360px) {
  .topbar { gap: 6px; padding-right: 10px; padding-left: 10px; }
  .button--connect { padding-right: 8px; padding-left: 8px; }
  .connect-label-full { display: none; }
  .connect-label-short { display: inline; }
}

@media(max-width:767px) {
  .results-table-wrap { overflow:visible; }
  .results-orders table, .score-history { display:block; width:100%; }
  .results-orders thead, .score-history thead {
    position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
    clip:rect(0,0,0,0); clip-path:inset(50%); white-space:nowrap; border:0;
  }
  .results-orders tbody, .score-history tbody { display:grid; gap:12px; }
  .results-orders tbody tr, .score-history tbody tr {
    display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px;
    min-width:0; padding:10px; border:1px solid var(--border); border-radius:8px; background:#111923;
  }
  .results-orders td, .score-history td {
    display:flex; flex-direction:column; align-items:flex-start; gap:4px;
    min-width:0; padding:4px; white-space:normal; overflow-wrap:anywhere;
    border:0; font-size:14px;
  }
  .results-orders td::before, .score-history td::before {
    content:attr(data-label); color:var(--muted); font-size:14px; font-weight:650;
  }
  .results-orders td .text-button { min-height:44px; margin:0; }
}

@media (max-width: 390px) and (max-height: 700px) {
  .page-content { padding-top: 20px; }
  .intro-row { padding-bottom: 12px; }
  .intro-actions { grid-template-columns: 1fr; }
  .intro-action-secondary { display: none; }
  .round-card { padding: 12px; }
  h1 { font-size: 28px; line-height: 1.03; }
  .mobile-score-strip { margin-top: 4px; margin-bottom: 4px; }
  .mobile-tabs { margin-bottom: 7px; }
}

/* Compact trading controls, with one label and one unit per field. */
.market-toolbar { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; min-height: 44px; }
.market-toolbar label { color: var(--muted); font-size: 14px; }
.market-toolbar select { min-height: 44px; max-width: 100%; padding: 8px 34px 8px 12px; border: 1px solid var(--control-border); border-radius: 8px; background: var(--surface); color: var(--text); font: 600 16px var(--sans); cursor: pointer; }
.market-toolbar select:disabled { opacity: 1; color: var(--text); cursor: default; }
.round-market-lock { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.quote-card { container-type: inline-size; padding: 18px 16px 16px; }
.quote-card-top { align-items: center; }
.quote-side-title h3 { margin: 0; font-size: 18px; line-height: 1.3; }
.quote-glyph { width: 32px; height: 32px; border-radius: 50%; }
.quote-fields { grid-template-columns: 1fr; gap: 14px; margin-top: 20px; }
.quote-fields label { font-size: 14px; line-height: 1.4; font-weight: 500; letter-spacing: 0; }
.input-shell { margin-top: 6px; border-radius: 7px; }
.input-shell > span { flex: 0 0 auto; font-size: 14px; font-weight: 500; }
.input-shell input { font-size: 16px; font-weight: 500; letter-spacing: 0; }
.input-shell:focus-within { border-color: var(--cyan); outline: 2px solid rgba(78,226,236,.12); outline-offset: 2px; }
.input-unit { color: var(--muted); }
.quote-button { margin-top: 18px; }
.quote-card-top .status-pill { font-size: 14px; }
.panel-heading--compact h2 { font: 600 18px/1.3 var(--sans); letter-spacing: -.02em; }
.score-panel .panel-heading--compact h2 { font: 700 25px/1.2 var(--mono); }
.market-panel .panel-heading h2 { font-size: 20px; }
.mark-value { font-size: 27px; letter-spacing: -.045em; }
.button, .intro-actions .button, .modal .button, .mobile-order-bar button, .text-button { white-space: nowrap; flex-shrink: 0; }
.button svg, .text-button svg { flex: 0 0 auto; }
@container (min-width: 250px) { .quote-fields { grid-template-columns: repeat(2,minmax(0,1fr)); } }

.hero-heading-window { display: grid; overflow: hidden; }
.hero-heading-slide { grid-area: 1/1; display: block; opacity: 0; transform: translateY(-110%); transition: transform .55s cubic-bezier(.2,.7,.2,1), opacity .35s; pointer-events: none; }
.hero-heading-slide.is-active { opacity: 1; transform: translateY(0); animation: headline-enter .55s cubic-bezier(.2,.7,.2,1) both; }
.hero-heading { max-width: 710px; }
.hero-heading-slide em { display: inline; }

.market-trend { margin: 18px 0 6px; color: var(--lime); }
.market-trend--down { color: var(--rose); }
.market-trend figcaption, .trend-range { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--muted); }
.market-trend svg { display: block; width: 100%; height: 100px; margin: 8px 0; overflow: visible; }
.trend-baseline { stroke: var(--border); stroke-width: 1; fill: none; }
.trend-range { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.market-trend--empty { height: 150px; display: grid; place-items: center; color: var(--muted); font-size: 14px; }

.activity-panel { padding: 16px 0 0; overflow: hidden; }
.activity-heading { align-items: center; padding: 0 16px 14px; }
.activity-heading h2 { margin: 0; font-size: 18px; font-weight: 600; }
.activity-count { color: var(--muted); font: 14px var(--mono); }
.activity-scroll { max-height: 320px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.activity-list { list-style: none; padding: 0; margin: 0; }
.activity-list li { min-height: 80px; display: grid; grid-template-columns: 28px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 12px 16px; border-top: 1px solid var(--border-soft); }
.activity-side { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; }
.activity-side--buy { color: var(--lime); background: rgba(181,239,85,.08); }
.activity-side--sell { color: var(--rose); background: rgba(241,139,137,.08); }
.activity-list li > div { display: grid; gap: 4px; min-width: 0; }
.activity-list strong { font: 500 14px/1.4 var(--mono); white-space: nowrap; }
.activity-list span, .activity-list time { font-size: 14px; line-height: 1.4; }
.activity-list li > div > span, .activity-list time { color: var(--muted); }
.activity-outcome { text-align: right; }

/* A short optional introduction, with the same compact dialog treatment. */
.how-market { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 20px 0 24px; border-bottom: 1px solid var(--border); font-size: 16px; }
.how-market > span:first-child { color: var(--lime); }
.how-market > span:last-child { color: var(--rose); }
.how-market strong { font-size: 16px; font-weight: 600; }
.how-arrow { color: var(--muted); animation: how-flow 3s ease-in-out infinite; }
.how-arrow--sell { animation-delay: 1.5s; }
.how-timeline { list-style: none; padding: 8px 0 0; margin: 0; }
.how-timeline li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 18px 0; align-items: start; }
.how-timeline li > svg { color: var(--cyan); margin-top: 2px; }
.how-timeline h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.how-timeline p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.dialog-overlay .modal { border-radius: 18px; }
.modal-heading { margin-bottom: 16px; }
.modal-heading h2 { font-size: 22px; }
@keyframes headline-enter { from { opacity:0; transform:translateY(110%); } to { opacity:1; transform:translateY(0); } }
@keyframes how-flow { 0%,100% { opacity:.5; transform:translateX(-2px); } 50% { opacity:1; transform:translateX(2px); } }
@media (max-width:767px) {
  .market-toolbar { margin-bottom: 12px; gap: 10px; }
  .round-market-lock { margin-left: auto; }
  .intro-action-primary { justify-self: start; width: auto; }
  .quote-card { padding: 16px; }
  .quote-fields label { font-size: 14px; }
  .quote-section-heading { margin-top: 18px; }
  .hero-heading { font-size: clamp(26px,7.4vw,36px); line-height: 1.15; }
  .how-timeline li { padding: 15px 0; }
  .dialog-overlay .modal { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-heading-slide, .hero-heading-slide.is-active { transition: none; animation: none; }
  .how-arrow { animation: none; }
}
/* Keep price and quantity columns distinct in the compact order book. */
.book-side { grid-template-columns: minmax(24px,1fr) max-content max-content; column-gap: 10px; }
.book-side strong { text-align: right; }

/* Persistent rankings stay separate from the current-round standings. */
.site-navigation { display:flex; justify-content:flex-end; gap:24px; max-width:1440px; margin:0 auto; padding:0 4%; border-bottom:1px solid var(--border-soft); }
.site-navigation a { display:inline-flex; align-items:center; min-height:44px; color:var(--muted); text-decoration:none; font-size:14px; font-weight:600; border-bottom:2px solid transparent; }
.site-navigation a:hover, .site-navigation a[aria-current="page"] { color:var(--lime); border-bottom-color:var(--lime); }
.leaderboard-page { min-height:60vh; padding-bottom:24px; }
.leaderboard-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:28px; }
.leaderboard-heading h1 { margin:10px 0 0; font-size:clamp(28px,4vw,42px); line-height:1.1; }
.leaderboard-panel { overflow:hidden; }
.leaderboard-controls { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px; padding:20px 24px; border-bottom:1px solid var(--border); }
.leaderboard-period { display:inline-flex; padding:3px; border:1px solid var(--border); border-radius:8px; background:var(--surface-low); }
.leaderboard-period button { min-height:44px; padding:8px 18px; border:0; border-radius:5px; background:transparent; color:var(--muted); font-size:14px; font-weight:600; cursor:pointer; }
.leaderboard-period .is-active { background:var(--surface-raised); color:var(--lime); }
.leaderboard-market { display:flex; align-items:center; gap:12px; font-size:14px; color:var(--muted); }
.leaderboard-market select { min-height:44px; border:1px solid var(--control-border); border-radius:7px; padding:8px 12px; background:var(--surface-low); color:var(--text); font:500 16px var(--sans); }
.leaderboard-table { width:100%; border-collapse:collapse; text-align:left; font-size:14px; }
.leaderboard-table thead th { color:var(--muted); font-size:14px; font-weight:500; padding:18px 24px; }
.leaderboard-table td,.leaderboard-table tbody th { padding:20px 24px; border-top:1px solid var(--border-soft); font-weight:500; vertical-align:middle; }
.leaderboard-table tbody tr:hover { background:rgba(112,182,232,.035); }
.leaderboard-rank { display:inline-flex; align-items:center; gap:8px; color:var(--muted); font-family:var(--mono); }
.leaderboard-leader .leaderboard-rank { color:var(--lime); }
.leaderboard-maker { display:block; font-size:16px; font-weight:600; white-space:nowrap; }
.leaderboard-symbol { display:block; margin-top:6px; color:var(--muted); font-size:14px; }
.leaderboard-table .number-cell { text-align:right; font-variant-numeric:tabular-nums; }
.leaderboard-score { color:var(--lime); font:600 20px var(--mono); }
.leaderboard-points { display:block; color:var(--muted); font-size:14px; margin-top:4px; }
.leaderboard-result { display:inline-flex; justify-content:center; align-items:center; gap:6px; min-height:44px; min-width:44px; color:var(--cyan); font-size:14px; text-decoration:none; white-space:nowrap; }
.leaderboard-result:hover { color:var(--text); }
.leaderboard-empty { min-height:260px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:20px; padding:32px 20px; color:var(--muted); }
.leaderboard-empty > svg { color:var(--lime); }
.leaderboard-empty h2 { font-size:18px; margin:0; color:var(--text); }
.leaderboard-loading { padding:10px 24px; }
.leaderboard-loading div { height:80px; border-bottom:1px solid var(--border-soft); background:linear-gradient(90deg,transparent,var(--surface-raised),transparent); background-size:200% 100%; animation:leaderboard-loading 1.5s ease-in-out infinite; }
.leaderboard-pagination { display:flex; justify-content:flex-end; align-items:center; gap:18px; padding:18px 24px; border-top:1px solid var(--border); font-size:14px; color:var(--muted); }
.standings-leaderboard { margin-top:16px; }
@keyframes leaderboard-loading { to { background-position:-200% 0; } }
@media(max-width:767px) {
  .site-navigation { justify-content:flex-start; padding:0 15px; gap:24px; }
  .leaderboard-heading { margin-bottom:20px; align-items:flex-end; }
  .leaderboard-heading .button { font-size:14px; padding:8px 12px; gap:6px; }
  .leaderboard-controls { padding:14px; gap:12px; }
  .leaderboard-period { flex:1; }
  .leaderboard-period button { flex:1; padding:8px 10px; }
  .leaderboard-market { flex-basis:100%; justify-content:space-between; }
  .leaderboard-market select { flex:1; max-width:220px; }
  .leaderboard-extra { display:none; }
  .leaderboard-table thead th { padding:14px 8px; }
  .leaderboard-table td,.leaderboard-table tbody th { padding:16px 8px; }
  .leaderboard-rank { gap:4px; }
  .leaderboard-rank svg { display:none; }
  .leaderboard-maker { font-size:14px; }
  .leaderboard-score { font-size:18px; }
  .leaderboard-result span { display:none; }
  .leaderboard-pagination { gap:10px; padding:14px 10px; justify-content:space-between; }
  .leaderboard-pagination .button { font-size:14px; padding:8px; gap:5px; }
}
@media(prefers-reduced-motion:reduce) { .leaderboard-loading div { animation:none; } }
