:root {
  --navy: #101a2d;
  --navy-2: #17243b;
  --ink: #172033;
  --ivory: #f4f0e7;
  --paper: #fffdf8;
  --brass: #b6904c;
  --brass-light: #d2b87a;
  --green: #187b61;
  --red: #9d4551;
  --slate: #687283;
  --line: #ded8ca;
  --shadow: 0 18px 50px rgba(16, 26, 45, .12);
  --surface: #fffdf8;
  --surface-soft: #f5f1e8;
  --surface-glass: rgba(255, 253, 248, .82);
  --gold-gradient: linear-gradient(135deg, #e4ce9b 0%, #b58a3c 100%);
  --shadow-sm: 0 8px 24px rgba(11, 21, 38, .06);
  --shadow-md: 0 16px 42px rgba(11, 21, 38, .1);
  --shadow-lg: 0 28px 80px rgba(7, 15, 28, .18);
  --radius-sm: 9px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --ease-premium: cubic-bezier(.22, 1, .36, 1);
  --motion-fast: 150ms;
  --motion-base: 260ms;
  --motion-slow: 520ms;
  color: var(--ink);
  background: var(--ivory);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
h1, h2, h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, [role="button"]:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.up { color: var(--green) !important; }
.down { color: var(--red) !important; }
.skip-link { position: fixed; z-index: 100; top: -60px; left: 12px; padding: 10px 14px; border-radius: 6px; background: white; color: var(--navy); }
.skip-link:focus { top: 12px; }
.boot { min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 14px; background: var(--navy); color: var(--ivory); letter-spacing: .08em; }
.boot-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--brass); border-radius: 50%; color: var(--brass-light); font: 14px Georgia, serif; }

.shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 28px 20px; background: var(--navy); color: #dfe3e9; }
.brand { display: flex; align-items: center; gap: 12px; color: white; font: 25px Georgia, serif; letter-spacing: .06em; }
.crest { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--brass); border-radius: 50%; color: var(--brass-light); font-size: 15px; }
.edition { margin: 13px 0 0 50px; color: #717d91; font-size: 9px; text-transform: uppercase; letter-spacing: .15em; }
.nav-label { margin: 42px 14px 8px; color: #667287; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; }
.nav { display: grid; gap: 6px; }
.nav button, .mobile-nav button { border: 0; background: none; color: inherit; }
.nav button { min-height: 46px; display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 9px; color: #aeb7c6; text-align: left; transition: background .16s, color .16s; }
.nav button:hover, .nav button.active { background: #22304a; color: white; }
.nav button.active { box-shadow: inset 2px 0 var(--brass-light); }
.nav .glyph { width: 21px; color: var(--brass-light); }
.account { display: grid; gap: 4px; margin-top: auto; padding-top: 20px; border-top: 1px solid #2d3850; color: #909bad; font-size: 12px; }
.account-kicker { color: var(--brass-light); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.account strong { color: white; font: 22px Georgia, serif; }
.terminal-note { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 13px 12px; border: 1px solid #26334a; border-radius: 10px; background: rgba(255, 255, 255, .025); }
.terminal-note i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(24, 123, 97, .11); }
.terminal-note span { display: grid; gap: 3px; }
.terminal-note b { color: #d7dce5; font-size: 10px; }
.terminal-note small { color: #778398; font-size: 9px; }
.terminal-note + .account { margin-top: 14px; }
.content { min-width: 0; }
.topbar { position: sticky; z-index: 6; top: 0; height: 74px; display: flex; align-items: center; justify-content: space-between; padding: 0 38px; border-bottom: 1px solid var(--line); background: rgba(244, 240, 231, .9); backdrop-filter: blur(16px); }
.eyebrow { color: var(--slate); font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .16em; }
.status-group, .actions { display: flex; align-items: center; gap: 10px; }
.market-open { display: flex; align-items: center; gap: 6px; margin-right: 4px; color: var(--slate); font-size: 11px; }
.freshness { color: #8a92a0; font-size: 10px; }
.user-mark { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #d8d0c1; border-radius: 50%; background: #eee7d9; color: #715a31; font-size: 10px; font-weight: 800; }
.market-open i, .pulse-head i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(24, 123, 97, .1); }
.state { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 100px; font-size: 10px; font-weight: 800; letter-spacing: .11em; }
.state i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.state.demo { background: #eee5d1; color: #7b5e28; }
.state.live { background: #dceee6; color: #12664f; }
.state.delayed { background: #f4dfdf; color: #8d3440; }
.state.awaiting { border: 1px solid #cbd2dc; background: #edf0f4; color: #566477; }
.source-state { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 6px 9px; border: 1px solid transparent; border-radius: 100px; font-size: 8px; font-weight: 850; letter-spacing: .1em; white-space: nowrap; }
.source-state i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px currentColor; opacity: .72; }
.source-state.public-signal { border-color: #c8d7e8; background: #eaf1f8; color: #2a587e; }
.source-state.research { border-color: #dfcc9f; background: #f7f0df; color: #775d28; }
.source-state.catalogued-source { border-color: #cfd5de; background: #f0f2f5; color: #566477; }
.paper-badge { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-size: 12px; }
.mobile-head, .mobile-nav { display: none; }

main { max-width: 1500px; margin: auto; padding: 34px 38px 90px; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(270px, .55fr); align-items: center; gap: 50px; overflow: hidden; min-height: 430px; padding: 48px; border-radius: 18px; background-image: linear-gradient(90deg, rgba(9, 17, 31, .97) 0%, rgba(13, 25, 43, .9) 48%, rgba(9, 17, 31, .77) 100%), url('/assets/roomcurve-global-destinations.jpg'); background-position: center; background-size: cover; color: white; box-shadow: var(--shadow); }
.hero::after { content: ""; position: absolute; top: -205px; right: -80px; width: 380px; height: 380px; border: 1px solid rgba(210, 184, 122, .18); border-radius: 50%; box-shadow: 0 0 0 48px rgba(210, 184, 122, .03), 0 0 0 96px rgba(210, 184, 122, .025); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero h1 { max-width: 760px; font-size: clamp(34px, 5vw, 64px); font-weight: 400; line-height: 1.01; letter-spacing: -.025em; }
.hero p { max-width: 600px; margin: 19px 0 26px; color: #c7ced9; line-height: 1.65; }
.hero .eyebrow, .city-art .eyebrow { color: var(--brass-light); }
.hero-actions { display: flex; align-items: center; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .11); color: #9aa5b5; font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }
.hero-proof span { display: flex; align-items: baseline; gap: 6px; }
.hero-proof b { color: white; font: 18px Georgia, serif; letter-spacing: 0; }
.hero-pulse { padding: 8px 14px; border: 1px solid rgba(210, 184, 122, .22); border-radius: 13px; background: rgba(4, 12, 26, .32); backdrop-filter: blur(8px); }
.pulse-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 2px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.pulse-head .eyebrow { color: #f2e5c7; }
.pulse-head > span:last-child { display: flex; align-items: center; gap: 7px; color: #aab4c3; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.hero-pulse button { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 13px 2px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .08); background: none; color: white; text-align: left; }
.hero-pulse button:hover { color: var(--brass-light); }
.hero-pulse button span { display: grid; gap: 3px; }
.hero-pulse button b { font: 16px Georgia, serif; }
.hero-pulse button small { color: #929eb0; font-size: 10px; }
.hero-pulse button > strong { font: 18px Georgia, serif; }
.hero-pulse em { display: block; margin-top: 4px; font: 9px Inter, sans-serif; text-align: right; }
.pulse-foot { padding: 10px 0 3px; color: #788497; font-size: 9px; text-align: center; text-transform: uppercase; letter-spacing: .12em; }
.button { min-height: 44px; padding: 12px 17px; border: 0; border-radius: 8px; font-weight: 750; transition: transform .15s, background .15s; }
.button:hover { transform: translateY(-1px); }
.button.gold { background: var(--brass-light); color: var(--navy); }
.button.gold:hover { background: #ddc68e; }
.button.ghost { margin-left: 8px; border: 1px solid #596378; background: transparent; color: white; }
.trust-strip { min-height: 48px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin: 0 12px; padding: 8px 16px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; background: rgba(255, 253, 248, .62); }
.trust-strip > span { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.trust-strip p { margin: 0; color: var(--slate); font-size: 11px; }
.trust-strip button, .text-link { border: 0; background: none; color: #785d2d; font-size: 11px; font-weight: 700; }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 20px 0 34px; }
.metric, .panel, .market-card { border: 1px solid var(--line); border-radius: 13px; background: var(--paper); box-shadow: 0 7px 24px rgba(16, 26, 45, .045); }
.metric { position: relative; overflow: hidden; padding: 19px; }
.metric::after { content: ""; position: absolute; top: 0; left: 19px; width: 34px; height: 2px; background: var(--brass-light); }
.metric strong { display: block; margin-top: 8px; font: 26px Georgia, serif; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin: 32px 0 15px; }
.section-head h2 { font-size: 28px; font-weight: 400; }
.market-heading p { margin: 6px 0 0; color: var(--slate); font-size: 12px; }
.market-tools { display: grid; justify-items: end; gap: 11px; }
.search { min-width: 260px; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--slate); }
.search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.filters { display: flex; gap: 7px; overflow: auto; }
.chip { min-height: 36px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 100px; background: transparent; color: var(--slate); white-space: nowrap; }
.chip.active { border-color: var(--navy); background: var(--navy); color: white; }

.markets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.market-card { overflow: hidden; outline: 0; transition: transform .18s, box-shadow .18s, border-color .18s; }
.market-card:hover, .market-card:focus-visible { transform: translateY(-3px); border-color: #c6b27f; box-shadow: var(--shadow); }
.city-art { position: relative; height: 146px; display: flex; align-items: flex-start; justify-content: space-between; overflow: hidden; padding: 18px; background: var(--navy-2); color: white; }
.city-art::after { content: ""; position: absolute; z-index: 0; inset: 0; background: linear-gradient(135deg, rgba(10, 21, 39, .9), rgba(10, 21, 39, .24) 66%, rgba(10, 21, 39, .45)); pointer-events: none; }
.city-art > *:not(.city-photo) { position: relative; z-index: 1; }
.city-photo { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--market-focus); transition: transform .5s ease; }
.market-card:hover .city-photo, .market-card:focus-visible .city-photo { transform: scale(1.025); }
.city-art h3 { margin-top: 6px; font-size: 24px; }
.city-code { color: rgba(255, 255, 255, .15); font: 39px Georgia, serif; }
.card-open { position: absolute; right: 15px; bottom: 12px; opacity: 0; transform: translateY(4px); color: rgba(255, 255, 255, .65); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; transition: .16s; }
.market-card:hover .card-open, .market-card:focus-visible .card-open { opacity: 1; transform: none; }
.card-body { padding: 17px; }
.card-title { display: flex; justify-content: space-between; gap: 12px; }
.card-title h3 { font-size: 19px; }
.prob-wrap { display: grid; justify-items: end; }
.prob-wrap small { color: var(--slate); font-size: 8px; letter-spacing: .12em; }
.prob { font: 26px Georgia, serif; }
.event { margin-top: 4px; color: var(--slate); font-size: 12px; }
.spark { height: 38px; margin: 12px 0 5px; }
.spark svg { width: 100%; height: 100%; overflow: visible; }
.spark path { fill: none; stroke: var(--green); stroke-width: 2; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.quote { margin: 9px 0 12px; padding: 8px 10px; border-radius: 8px; background: #f5f1e8; }
.quote span { display: grid; gap: 2px; }
.quote small { color: var(--slate); font-size: 7px; letter-spacing: .12em; }
.quote strong { font-size: 11px; }
.card-stats { padding-top: 12px; border-top: 1px solid var(--line); color: var(--slate); font-size: 11px; }
.no-results { grid-column: 1 / -1; padding: 50px; border: 1px dashed var(--line); border-radius: 13px; color: var(--slate); text-align: center; }

.panel { padding: 22px; }
.panel h2 { font-size: 25px; font-weight: 400; }
.two-column { display: grid; grid-template-columns: 1.45fr .8fr; gap: 18px; }
.table { width: 100%; margin-top: 13px; border-collapse: collapse; }
.table th, .table td { padding: 13px 8px; border-bottom: 1px solid var(--line); font-size: 13px; text-align: left; }
.table th { color: var(--slate); font-size: 10px; text-transform: uppercase; letter-spacing: .11em; }
.empty { padding: 36px 10px; color: var(--slate); text-align: center; }
.chart { position: relative; height: 260px; margin-top: 20px; }
.chart svg { width: 100%; height: 100%; }
.chart .grid { stroke: #e3ded3; stroke-width: 1; }
.chart .area { fill: url(#fade); }
.chart .line { fill: none; stroke: var(--green); stroke-width: 3; }
.back-link { padding: 0; border: 0; background: none; color: var(--slate); font-weight: 700; }
.detail-hero { min-height: 225px; display: flex; align-items: end; justify-content: space-between; gap: 28px; margin: 16px 0 20px; padding: 32px; border-radius: 16px; background-image: linear-gradient(90deg, rgba(8, 18, 34, .94), rgba(8, 18, 34, .48) 64%, rgba(8, 18, 34, .76)), var(--detail-image); background-position: var(--detail-focus); background-size: cover; color: white; box-shadow: var(--shadow); }
.detail-hero .eyebrow { color: var(--brass-light); }
.detail-hero h2 { margin-top: 7px; color: white; font-size: 38px; }
.detail-hero .market-question { color: #ced4dd; }
.detail-hero .market-mark > span, .detail-hero .event { color: #c1c8d3; }
.detail-hero .state.demo { border: 1px solid rgba(210, 184, 122, .25); background: rgba(238, 229, 209, .92); }
.detail-head { align-items: start; gap: 20px; }
.detail-head h2 { margin-top: 6px; font-size: 38px; }
.market-question { margin: 8px 0 0; color: var(--slate); }
.market-mark { text-align: right; }
.market-mark > .row { justify-content: end; }
.market-mark > span { color: var(--slate); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.detail-price { margin-top: 9px; font: 42px Georgia, serif; }
.detail-price small { font: 12px Inter, sans-serif; }
.trade-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 20px; }
.chart-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.chart-summary > div:not(:first-child) { padding-left: 18px; border-left: 1px solid var(--line); }
.chart-summary small { color: var(--slate); font-size: 10px; }
.chart-legend { display: flex; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); color: var(--slate); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.adr-dot { width: 7px; height: 7px; display: inline-block; margin-right: 6px; border-radius: 50%; background: var(--green); }
.settlement-panel { margin-top: 16px; }

.ticket { position: sticky; top: 94px; }
.ticket-head { display: flex; align-items: start; justify-content: space-between; }
.ticket-head .paper-badge { padding: 6px 8px; font-size: 9px; }
.side-toggle { display: grid; grid-template-columns: 1fr 1fr; margin: 18px 0; padding: 4px; border-radius: 10px; background: #eee9de; }
.side-toggle button { min-height: 44px; padding: 12px; border: 0; border-radius: 7px; background: transparent; font-weight: 800; }
.side-toggle button span { margin-left: 4px; font-weight: 500; }
.side-toggle button.active { background: var(--navy); color: white; box-shadow: 0 5px 14px rgba(16, 26, 45, .18); }
.field label { display: block; margin-bottom: 7px; color: var(--slate); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.input-suffix { position: relative; }
.field input { width: 100%; padding: 13px 88px 13px 13px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.input-suffix span { position: absolute; top: 14px; right: 12px; color: var(--slate); font-size: 11px; }
.receipt { display: grid; gap: 10px; margin: 17px 0; font-size: 13px; }
.receipt div { display: flex; justify-content: space-between; }
.receipt div:last-child { padding-top: 10px; border-top: 1px solid var(--line); }
.primary { width: 100%; background: var(--brass); color: white; }
.primary:hover { background: #a67f3b; }
.disclosure { margin-top: 13px; color: var(--slate); font-size: 11px; line-height: 1.5; }
.toast { position: fixed; z-index: 30; right: 28px; bottom: 28px; padding: 15px 18px; border-radius: 10px; background: var(--navy); color: white; box-shadow: var(--shadow); }

@media (max-width: 1160px) {
  .hero { grid-template-columns: 1fr 270px; gap: 28px; }
  .markets { grid-template-columns: repeat(2, 1fr); }
  .freshness { display: none; }
}

@media (max-width: 1050px) {
  .hero-pulse { display: none; }
  .hero { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .trade-layout, .two-column { grid-template-columns: 1fr; }
  .ticket { position: static; }
}

@media (max-width: 760px) {
  .shell { display: block; }
  .sidebar, .topbar { display: none; }
  .mobile-head { position: sticky; z-index: 10; top: 0; height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; background: var(--navy); color: white; }
  .mobile-head .brand { font-size: 20px; }
  .mobile-head .crest { width: 31px; height: 31px; }
  .mobile-nav { position: fixed; z-index: 20; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5, 1fr); padding: 8px 4px max(8px, env(safe-area-inset-bottom)); background: rgba(16, 26, 45, .98); color: #8e99aa; }
  .mobile-nav button { min-height: 44px; display: grid; place-items: center; gap: 3px; font-size: 9px; }
  .mobile-nav button span { font-size: 19px; }
  .mobile-nav button.active { color: var(--brass-light); }
  main { padding: 18px 15px 95px; }
  .hero { min-height: 0; display: block; padding: 29px 22px; border-radius: 14px; background-position: 56% center; }
  .hero h1 { font-size: 38px; }
  .hero .button { padding: 11px 13px; }
  .hero-proof { gap: 13px; margin-top: 23px; padding-top: 15px; }
  .hero-proof span:nth-child(3) { display: none; }
  .trust-strip { grid-template-columns: auto 1fr; margin: 0 7px; padding: 10px 11px; }
  .trust-strip p, .trust-strip button { display: none; }
  .metrics { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .metric { padding: 14px; }
  .metric::after { left: 14px; }
  .metric strong { font-size: 21px; }
  .section-head { display: grid; align-items: start; gap: 12px; }
  .section-head h2 { font-size: 25px; }
  .market-heading { margin-top: 38px; }
  .market-tools { width: 100%; justify-items: stretch; }
  .search { min-width: 0; width: 100%; }
  .filters { width: calc(100vw - 30px); padding-bottom: 2px; }
  .markets { grid-template-columns: 1fr; }
  .card-open { display: none; }
  .panel { padding: 17px; }
  .detail-head { display: grid; }
  .detail-head h2 { font-size: 30px; }
  .detail-hero { min-height: 275px; display: grid; align-content: end; margin-top: 13px; padding: 22px; background-image: linear-gradient(180deg, rgba(8, 18, 34, .34), rgba(8, 18, 34, .95) 78%), var(--detail-image); }
  .detail-hero h2 { font-size: 30px; }
  .market-mark { text-align: left; }
  .market-mark > .row { justify-content: start; }
  .chart-summary { grid-template-columns: repeat(2, 1fr); }
  .chart-summary > div:nth-child(3) { display: none; }
  .table { min-width: 620px; }
  .panel:has(.table) { overflow-x: auto; }
  .toast { right: 15px; bottom: 80px; left: 15px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* RoomCurve exchange shell — progressive retail-to-professional experience */
body { background: #f6f3ec; }
body.modal-open { overflow: hidden; }
.app-frame { min-height: 100vh; }
.exchange-header { position: sticky; z-index: 40; top: 0; border-bottom: 1px solid rgba(222, 216, 202, .88); background: rgba(255, 253, 248, .94); backdrop-filter: blur(18px); }
.header-primary { max-width: 1480px; height: 72px; display: flex; align-items: center; gap: 16px; margin: auto; padding: 0 30px; }
.brand-button { flex: 0 0 auto; padding: 0; border: 0; background: none; color: var(--navy); }
.brand-button .crest { width: 35px; height: 35px; background: var(--navy); color: var(--brass-light); box-shadow: 0 6px 16px rgba(16, 26, 45, .12); }
.brand-button > span:last-child { color: var(--navy); font-size: 23px; font-weight: 500; letter-spacing: -.015em; }
.desktop-nav { height: 100%; flex: 0 0 auto; display: flex; align-items: center; gap: 3px; }
.desktop-nav button { position: relative; height: 100%; padding: 0 9px; border: 0; background: none; color: #747b88; font-size: 12px; font-weight: 700; white-space: nowrap; }
.desktop-nav button::after { content: ""; position: absolute; right: 10px; bottom: -1px; left: 10px; height: 2px; transform: scaleX(0); background: var(--brass); transition: transform .16s; }
.desktop-nav button:hover, .desktop-nav button.active { color: var(--ink); }
.desktop-nav button.active::after { transform: scaleX(1); }
.global-search { height: 40px; max-width: 390px; min-width: 190px; flex: 1 1 300px; display: flex; align-items: center; gap: 9px; margin-left: auto; padding: 0 14px; border: 1px solid #e2ddd3; border-radius: 100px; background: #f1eee7; color: #8a909a; }
.global-search input { width: 100%; border: 0; outline: 0; background: none; color: var(--ink); font-size: 12px; }
.global-search-shell { position: relative; max-width: 390px; min-width: 170px; flex: 1 1 250px; margin-left: auto; }
.global-search-shell .global-search { width: 100%; max-width: none; min-width: 0; margin-left: 0; }
.search-palette { position: absolute; z-index: 80; top: calc(100% + 11px); right: 0; left: 0; min-width: 430px; overflow: hidden; border: 1px solid rgba(210, 197, 169, .95); border-radius: 15px; background: rgba(255, 253, 248, .98); box-shadow: 0 28px 75px rgba(6, 14, 28, .22); backdrop-filter: blur(18px); animation: search-in .2s var(--ease-premium) both; }
.search-palette[hidden] { display: none; }
.search-palette-head { display: flex; justify-content: space-between; gap: 12px; padding: 13px 15px 10px; border-bottom: 1px solid var(--line); color: #776b58; font-size: 7px; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; }
.search-palette-head small { color: #9a9183; font-size: 7px; }
.search-result-list { display: grid; padding: 6px; }
.search-result-list button { width: 100%; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 8px; border: 0; border-radius: 9px; background: none; color: var(--ink); text-align: left; }
.search-result-list button:hover, .search-result-list button:focus-visible { background: #f1ece1; outline: 0; }
.search-result-list img { width: 46px; height: 39px; object-fit: cover; border-radius: 7px; }
.search-result-list button > span:nth-child(2), .search-result-list button > span:last-child { display: grid; gap: 3px; }
.search-result-list button > span:last-child { justify-items: end; }
.search-result-list b { overflow: hidden; font: 14px "Iowan Old Style", Georgia, serif; text-overflow: ellipsis; white-space: nowrap; }
.search-result-list small { overflow: hidden; color: var(--slate); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.search-result-list strong { font: 18px "Iowan Old Style", Georgia, serif; }
.search-result-list em { font-size: 7px; font-style: normal; }
.search-empty { display: grid; justify-items: center; gap: 5px; padding: 35px 20px; color: var(--slate); text-align: center; }
.search-empty b { color: var(--ink); font: 17px "Iowan Old Style", Georgia, serif; }
.search-empty span { font-size: 8px; }
.search-all { width: 100%; min-height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 9px 15px; border: 0; border-top: 1px solid var(--line); background: #f6f1e7; color: #765b2e; font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.search-all:hover { background: #eee5d3; }
@keyframes search-in { from { opacity: 0; transform: translateY(-5px) scale(.99); } }
.header-actions { display: flex; align-items: center; gap: 8px; }
.mode-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 100px; background: #f4f0e8; }
.mode-switch button { min-height: 28px; padding: 5px 9px; border: 0; border-radius: 100px; background: none; color: var(--slate); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.mode-switch button.active { background: var(--navy); color: white; box-shadow: 0 4px 11px rgba(16, 26, 45, .15); }
.portfolio-pill { display: grid; gap: 2px; min-width: 112px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 9px; background: white; text-align: left; }
.portfolio-pill span { color: var(--slate); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.portfolio-pill strong { color: var(--ink); font-size: 12px; }
.market-subnav { max-width: 1480px; height: 42px; display: flex; align-items: center; gap: 4px; margin: auto; padding: 0 30px; overflow-x: auto; scrollbar-width: none; }
.market-subnav::-webkit-scrollbar { display: none; }
.market-subnav button { height: 100%; flex: 0 0 auto; padding: 0 10px; border: 0; border-bottom: 2px solid transparent; background: none; color: #858b95; font-size: 11px; font-weight: 650; }
.market-subnav button:hover, .market-subnav button.active { border-bottom-color: var(--brass); color: var(--ink); }
.market-status { display: flex; align-items: center; gap: 7px; margin-left: auto; color: #8c929d; font-size: 9px; white-space: nowrap; text-transform: uppercase; letter-spacing: .08em; }
.market-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(24, 123, 97, .1); }
.market-status.stale i { background: var(--brass); box-shadow: 0 0 0 4px rgba(182, 144, 76, .12); }
.exchange-main { max-width: 1480px; margin: auto; padding: 26px 30px 100px; }

.ticker-strip { min-height: 58px; display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 253, 248, .78); box-shadow: 0 5px 20px rgba(16, 26, 45, .035); }
.ticker-strip > span { display: flex; align-items: baseline; gap: 8px; padding: 13px 18px; border-right: 1px solid var(--line); }
.ticker-strip > span:last-child { border-right: 0; }
.ticker-strip small { margin-right: auto; color: var(--slate); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.ticker-strip strong { font: 18px Georgia, serif; }
.ticker-strip em { color: var(--slate); font-size: 9px; font-style: normal; }

.discovery-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, .65fr); gap: 16px; }
.featured-market { position: relative; min-height: 430px; display: flex; align-items: end; overflow: hidden; border-radius: 18px; background-image: linear-gradient(90deg, rgba(6, 15, 28, .95) 0%, rgba(8, 18, 34, .75) 62%, rgba(8, 18, 34, .38)), var(--feature-image); background-position: var(--feature-focus); background-size: cover; color: white; box-shadow: 0 20px 55px rgba(16, 26, 45, .18); }
.featured-market::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(210, 184, 122, .25); border-radius: inherit; pointer-events: none; }
.feature-copy { position: relative; z-index: 1; max-width: 760px; padding: 36px; }
.feature-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; color: #c0c8d3; font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }
.featured-market .eyebrow { color: var(--brass-light); }
.featured-market h1 { max-width: 730px; margin-top: 9px; font-size: clamp(32px, 4vw, 52px); font-weight: 400; line-height: 1.06; letter-spacing: -.025em; }
.featured-market p { max-width: 620px; margin: 15px 0 22px; color: #c4ccd6; font-size: 13px; line-height: 1.6; }
.feature-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.contract-button { min-width: 118px; min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 11px 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px; color: white; font-weight: 800; }
.contract-button.yes { background: rgba(24, 123, 97, .92); }
.contract-button.no { background: rgba(157, 69, 81, .9); }
.contract-button strong { font-size: 17px; }
.market-link { min-height: 48px; padding: 10px 14px; border: 0; background: none; color: #e5d7b7; font-size: 11px; font-weight: 750; }
.feature-stats { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .13); color: #a8b2c0; font-size: 9px; text-transform: uppercase; letter-spacing: .09em; }

.market-pulse-panel { min-width: 0; padding: 21px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 12px 35px rgba(16, 26, 45, .07); }
.panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.panel-heading h2 { margin-top: 4px; font-size: 22px; font-weight: 400; }
.pro-label { padding: 5px 7px; border: 1px solid #d5c49d; border-radius: 5px; color: #816635; font-size: 7px; font-weight: 850; letter-spacing: .12em; }
.mover-list { margin-top: 13px; border-top: 1px solid var(--line); }
.mover-list button { width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 13px 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); text-align: left; }
.mover-list button:hover strong { color: #8a6c35; }
.mover-code { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: #eee8dc; color: #806331; font-size: 8px; font-weight: 850; }
.mover-list button > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.mover-list strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.mover-list small { overflow: hidden; color: var(--slate); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.mover-list button > span:last-child { display: grid; justify-items: end; gap: 3px; }
.mover-list b { font: 17px Georgia, serif; }
.mover-list em { font-size: 8px; font-style: normal; }
.institutional-note { margin-top: 15px; padding: 13px; border-radius: 9px; background: var(--navy); color: white; }
.institutional-note span { color: var(--brass-light); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.institutional-note p { margin: 6px 0 0; color: #aeb8c7; font-size: 10px; line-height: 1.45; }

.data-banner { min-height: 50px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; margin: 14px 0 30px; padding: 9px 14px; border: 1px solid #d9d1c1; border-radius: 11px; background: #eee8dc; }
.data-banner > span { display: flex; align-items: center; gap: 8px; font-size: 10px; }
.data-banner p { margin: 0; color: var(--slate); font-size: 10px; }
.data-banner button { border: 0; background: none; color: #765b2e; font-size: 10px; font-weight: 750; }
.market-explorer { scroll-margin-top: 125px; }
.compact-markets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.compact-markets .market-card { overflow: hidden; border-radius: 13px; background: var(--paper); transform: none; }
.compact-markets .market-card:hover { transform: translateY(-2px); }
.market-card-main { width: 100%; display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px; border: 0; background: none; color: var(--ink); text-align: left; }
.market-thumb { position: relative; width: 92px; height: 76px; overflow: hidden; border-radius: 10px; background: var(--navy); }
.market-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(145deg, rgba(8, 18, 34, .05), rgba(8, 18, 34, .52)); }
.market-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: var(--market-focus); }
.market-thumb i { position: absolute; z-index: 1; right: 7px; bottom: 6px; color: white; font-size: 8px; font-style: normal; font-weight: 850; letter-spacing: .08em; }
.market-card-copy { min-width: 0; display: grid; gap: 5px; }
.market-card-copy strong { font: 17px/1.22 Georgia, serif; }
.card-kicker { color: #846b3e; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.card-context { overflow: hidden; color: var(--slate); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.market-card-price { display: grid; justify-items: end; gap: 2px; padding-left: 10px; }
.market-card-price b { font: 24px Georgia, serif; }
.market-card-price small { color: var(--slate); font-size: 7px; letter-spacing: .1em; }
.market-card-price em { margin-top: 4px; font-size: 8px; font-style: normal; }
.card-chart { height: 26px; margin: 0 14px; }
.card-chart svg { width: 100%; height: 100%; }
.card-chart path { fill: none; stroke: #99bcae; stroke-width: 1.4; }
.card-trade-row { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 8px; padding: 10px 14px 14px; }
.quote-button { min-height: 38px; padding: 8px 12px; border: 1px solid; border-radius: 8px; background: white; font-size: 10px; font-weight: 800; }
.quote-button strong { float: right; margin-left: 10px; }
.quote-button.yes { border-color: #b9d8cd; color: var(--green); background: #f3faf7; }
.quote-button.no { border-color: #e4c5ca; color: var(--red); background: #fff7f8; }
.quote-button:hover { color: white; }
.quote-button.yes:hover { background: var(--green); }
.quote-button.no:hover { background: var(--red); }
.card-volume { min-width: 60px; color: var(--slate); font-size: 8px; text-align: right; text-transform: uppercase; }
.pro-only { display: none !important; }
.pro-mode .pro-only { display: grid !important; }
.pro-market-data { grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); background: #f5f1e9; color: var(--slate); font-size: 8px; text-transform: uppercase; letter-spacing: .05em; }
.pro-market-data span { display: grid; gap: 3px; }
.pro-market-data b { overflow: hidden; color: var(--ink); font-size: 8px; text-overflow: ellipsis; }
.pro-market-data .state { justify-self: end; padding: 4px 6px; font-size: 7px; }

.market-detail-header { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center; gap: 20px; margin: 17px 0; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.market-detail-header > img { width: 110px; height: 92px; object-fit: cover; border-radius: 13px; box-shadow: 0 8px 20px rgba(16, 26, 45, .11); }
.market-detail-header .feature-meta { margin-bottom: 7px; color: var(--slate); }
.market-detail-header h1 { max-width: 900px; margin-top: 7px; font-size: clamp(28px, 3.2vw, 43px); font-weight: 400; line-height: 1.08; }
.market-detail-header p { max-width: 850px; margin: 8px 0 0; color: var(--slate); font-size: 11px; line-height: 1.5; }
.detail-quote { display: grid; justify-items: end; min-width: 105px; }
.detail-quote strong { font: 38px Georgia, serif; }
.detail-quote span { color: var(--slate); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.detail-quote em { margin-top: 7px; font-size: 9px; font-style: normal; }
.important-banner { min-height: 52px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; margin-bottom: 17px; padding: 10px 14px; border-radius: 9px; background: #e1efe9; color: #2f5d4f; font-size: 10px; }
.important-banner button { border: 0; background: none; color: var(--green); font-weight: 800; }
.modern-trade-layout { grid-template-columns: minmax(0, 1fr) 370px; align-items: start; }
.chart-toolbar { display: flex; align-items: center; justify-content: space-between; }
.timeframes { display: flex; gap: 4px; }
.timeframes button { min-width: 34px; padding: 6px; border: 0; border-radius: 6px; background: none; color: var(--slate); font-size: 8px; font-weight: 800; }
.timeframes button.active { background: var(--navy); color: white; }
.chart-footer { display: flex; justify-content: space-between; gap: 12px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--slate); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.outcome-board { margin-top: 14px; }
.outcome-row { display: grid; grid-template-columns: minmax(0, 1fr) 115px 105px 105px; align-items: center; gap: 10px; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }
.outcome-row > span { display: grid; gap: 4px; }
.outcome-row > span strong { font-size: 12px; }
.outcome-row > span small { color: var(--slate); font-size: 9px; }
.outcome-row > b { font: 24px Georgia, serif; text-align: right; }
.outcome-row > b em { font: 8px Inter, sans-serif; }
.rules-panel { margin-top: 14px; scroll-margin-top: 130px; }
.rules-panel > h2 { margin: 5px 0 9px; }
.rules-panel details { border-top: 1px solid var(--line); }
.rules-panel summary { padding: 15px 2px; font-size: 11px; font-weight: 800; cursor: pointer; }
.rules-panel details p { margin: -3px 0 15px; color: var(--slate); font-size: 10px; line-height: 1.65; }
.pro-depth { margin-top: 14px; }
.depth-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 15px; }
.depth-grid span { display: grid; gap: 4px; padding: 12px; border-radius: 8px; background: #f3efe6; }
.depth-grid small { color: var(--slate); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.depth-grid strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; }
.related-markets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.related-markets .section-head { grid-column: 1 / -1; margin-bottom: 0; }
.related-markets .market-card-main { grid-template-columns: 65px minmax(0, 1fr); }
.related-markets .market-thumb { width: 65px; height: 61px; }
.related-markets .market-card-price, .related-markets .card-chart { display: none; }
.related-markets .card-trade-row { grid-template-columns: 1fr 1fr; }
.related-markets .card-volume { display: none; }

.order-ticket { padding: 19px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); box-shadow: 0 16px 44px rgba(16, 26, 45, .12); }
.embedded-ticket { position: sticky; top: 132px; }
.ticket-toolbar { display: flex; align-items: center; justify-content: space-between; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.ticket-toolbar > span { display: flex; align-items: center; gap: 10px; }
.ticket-toolbar b { font-size: 10px; letter-spacing: .12em; }
.ticket-toolbar small { color: var(--slate); font-size: 8px; letter-spacing: .08em; }
.close-ticket { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #f2eee5; color: var(--slate); font-size: 21px; }
.ticket-market { padding: 15px 0 0; }
.ticket-market > span { color: var(--slate); font-size: 9px; }
.ticket-market h2 { margin-top: 5px; font: 19px/1.22 Georgia, serif; }
.side-toggle button.yes.active { background: var(--green); }
.side-toggle button.no.active { background: var(--red); }
.quantity-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.quantity-row button { min-height: 32px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--slate); font-size: 9px; }
.quantity-row button.active { border-color: var(--navy); background: var(--navy); color: white; }
.order-ticket .receipt div:last-child { padding-top: 0; border-top: 0; }
.order-ticket .receipt div:nth-last-child(2) { padding-top: 10px; border-top: 1px solid var(--line); }
.trade-overlay { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(7, 13, 24, .64); backdrop-filter: blur(4px); animation: overlay-in .18s ease-out; }
.trade-sheet { width: min(430px, 100%); animation: sheet-in .2s ease-out; }
.sheet-handle { display: none; }
.modal-ticket { max-height: calc(100vh - 40px); overflow-y: auto; }
@keyframes overlay-in { from { opacity: 0; } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }

.research-hero { min-height: 300px; display: grid; align-content: center; padding: 42px; border-radius: 18px; background: linear-gradient(120deg, rgba(7, 16, 30, .96), rgba(12, 30, 43, .78)), url('/assets/roomcurve-global-destinations.jpg') center/cover; color: white; }
.research-hero .eyebrow { color: var(--brass-light); }
.research-hero h1 { margin-top: 8px; font-size: 48px; font-weight: 400; }
.research-hero p { max-width: 650px; color: #c5cdd8; }
.research-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.signal-research-hero { grid-template-columns: minmax(0, 1fr) 270px; align-items: center; gap: 36px; background-image: linear-gradient(116deg, rgba(7, 16, 30, .98), rgba(12, 30, 43, .79)), radial-gradient(circle at 82% 48%, rgba(181, 138, 60, .3), transparent 34rem), url('/assets/roomcurve-global-destinations.jpg'); }
.signal-research-hero aside { display: grid; gap: 11px; padding: 20px; border: 1px solid rgba(215, 196, 147, .22); border-radius: 13px; background: rgba(7, 17, 31, .42); backdrop-filter: blur(12px); }
.signal-research-hero aside b { margin-bottom: 2px; color: #f4ecd9; font: 17px Georgia, serif; }
.signal-research-hero aside > span { display: flex; align-items: center; gap: 9px; color: #aeb9c7; font-size: 9px; }
.signal-research-hero aside .signal-endpoint-status { margin-top: 4px; padding-top: 11px; border-top: 1px solid rgba(255,255,255,.1); color: #8f9bad; font-size: 7px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.signal-endpoint-status > i { width: 6px; height: 6px; border-radius: 50%; background: #bd9150; box-shadow: 0 0 0 4px rgba(189, 145, 80, .12); }
.signal-endpoint-status.synced > i { background: #3eb894; box-shadow: 0 0 0 4px rgba(62, 184, 148, .12); }
.signal-research-hero .source-state { background: rgba(234, 241, 248, .93); }
.research-state-pair { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.signal-boundary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 15px; margin: 14px 0; padding: 15px 17px; border: 1px solid #dccb9f; border-radius: 11px; background: linear-gradient(90deg, #fbf7ed, #f8f4e9); box-shadow: 0 5px 20px rgba(20, 33, 58, .035); }
.signal-boundary .boundary-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--navy); color: var(--brass-light); font: 14px Georgia, serif; }
.signal-boundary b { display: block; color: var(--ink); font-size: 11px; }
.signal-boundary p { margin: 3px 0 0; color: var(--slate); font-size: 9px; line-height: 1.5; }
.signal-boundary button { border: 0; background: transparent; color: #765b2e; font-size: 9px; font-weight: 800; }
.signal-boundary.compact-boundary { margin: -2px 0 16px; }
.signal-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin: 14px 0 16px; }
.signal-metrics article { position: relative; overflow: hidden; display: grid; gap: 3px; padding: 16px 17px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 253, 248, .82); }
.signal-metrics article::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 2px; background: var(--brass-light); }
.signal-metrics small, .signal-metrics span { color: var(--slate); font-size: 7px; text-transform: uppercase; letter-spacing: .1em; }
.signal-metrics strong { color: var(--navy); font: 24px Georgia, serif; }
.signal-section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 28px 0 13px; }
.signal-section-head h2 { margin-top: 4px; font-size: 27px; font-weight: 400; }
.signal-section-head > span { color: var(--slate); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.signal-source-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.signal-source-card { display: grid; align-content: start; min-height: 260px; padding: 17px; border: 1px solid #d9dfe6; border-radius: 12px; background: linear-gradient(145deg, rgba(255,255,255,.91), rgba(248,250,252,.83)); box-shadow: 0 8px 28px rgba(16, 26, 45, .045); }
.signal-source-card.research-source { border-color: #dcc99c; background: linear-gradient(145deg, #fffdf8, #f9f2e1); }
.signal-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.access-state { max-width: 52%; overflow: hidden; padding: 4px 6px; border-radius: 5px; background: #eceff3; color: #566171; font-size: 6.5px; font-weight: 850; text-overflow: ellipsis; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.access-state.ready { background: #dceee6; color: #12664f; }
.access-state.needs_key, .access-state.needs_token, .access-state.needs_contact_header { background: #f3e8d1; color: #7b5e28; }
.access-state.request_access, .access-state.faculty_sponsor_required { background: #eee4ed; color: #714369; }
.source-category { margin-top: 15px; color: #657285; font-size: 7px; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; }
.signal-source-card h3 { margin-top: 5px; color: var(--navy); font: 20px Georgia, serif; }
.signal-source-card > p { min-height: 58px; margin: 9px 0 13px; color: var(--slate); font-size: 9px; line-height: 1.55; }
.signal-source-card dl { display: grid; gap: 6px; margin: 0; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.signal-source-card dl div { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 8px; }
.signal-source-card dt { color: #8a93a0; font-size: 7px; text-transform: uppercase; letter-spacing: .08em; }
.signal-source-card dd { overflow: hidden; margin: 0; color: #4a5565; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.signal-source-card > a { width: fit-content; margin-top: 13px; color: #725728; font-size: 8px; font-weight: 800; text-decoration: none; }
.signal-source-card > a:hover { color: var(--green); }
.source-rail { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
.source-rail a { display: grid; gap: 3px; padding: 13px 14px; border: 1px solid #d6dfe8; border-radius: 10px; background: #f8fbfd; color: var(--ink); text-decoration: none; }
.source-rail span { color: #55718e; font-size: 7px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.source-rail b { font: 15px Georgia, serif; }
.source-rail small { color: var(--slate); font-size: 8px; }
.event-discovery-board { margin: 18px 0 30px; }
.event-market-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.event-market-tabs button { min-width: 0; display: grid; gap: 3px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 253, 248, .78); color: var(--ink); text-align: left; box-shadow: 0 5px 16px rgba(16, 26, 45, .03); }
.event-market-tabs button b { color: #8a6b34; font-size: 8px; letter-spacing: .1em; }
.event-market-tabs button span { overflow: hidden; font: 15px Georgia, serif; text-overflow: ellipsis; white-space: nowrap; }
.event-market-tabs button small { overflow: hidden; color: var(--slate); font-size: 7px; text-overflow: ellipsis; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.event-market-tabs button.active { border-color: #bda466; background: var(--navy); color: white; box-shadow: 0 10px 24px rgba(16, 26, 45, .14); }
.event-market-tabs button.active b { color: var(--brass-light); }
.event-market-tabs button.active small { color: #9faaba; }
.event-catalyst-panel { overflow: hidden; background: linear-gradient(145deg, #fffefa, #f8f5ed); }
.detail-event-catalysts { margin-top: 14px; }
.event-catalyst-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.event-catalyst-head > div { display: grid; justify-items: start; gap: 5px; }
.source-state-pair { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.event-catalyst-head h2 { margin-top: 1px; font-size: 23px; font-weight: 400; }
.event-catalyst-head p { margin: 0; color: var(--slate); font-size: 9px; }
.event-provider-state { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 100px; background: #e2f0ea; color: #17664f; font-size: 7px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.event-provider-state::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(24, 123, 97, .1); }
.event-provider-state.error { background: #f3e3e5; color: var(--red); }
.ticketmaster-event-list { display: grid; }
.ticketmaster-event-row { display: grid; grid-template-columns: 104px minmax(180px, .8fr) minmax(330px, 1.35fr) auto; align-items: center; gap: 16px; padding: 18px 2px; border-bottom: 1px solid var(--line); }
.ticketmaster-event-row:last-child { border-bottom: 0; }
.ticketmaster-event-row time { color: #776034; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.ticketmaster-event-row > div { min-width: 0; display: grid; gap: 3px; }
.ticketmaster-event-row h3 { overflow: hidden; font: 16px Georgia, serif; text-overflow: ellipsis; white-space: nowrap; }
.ticketmaster-event-row p { overflow: hidden; margin: 0; color: var(--slate); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.ticketmaster-event-row span { width: fit-content; margin-top: 2px; padding: 3px 5px; border-radius: 4px; background: #edf2f7; color: #55718e; font-size: 6px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.ticketmaster-event-row .event-listing-status { margin-top: 4px; color: #7e8793; font-size: 7px; line-height: 1.35; }
.ticketmaster-event-row a { color: #765b2e; font-size: 8px; font-weight: 800; text-decoration: none; }
.ticketmaster-event-row a:hover { color: var(--green); }
.relevance-context { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; margin: 12px 0 2px; padding: 12px 13px; border: 1px solid #dfd2b4; border-radius: 10px; background: linear-gradient(112deg, rgba(250, 246, 235, .98), rgba(255, 254, 250, .94)); }
.relevance-context > span:not(.source-state) { display: grid; gap: 2px; }
.relevance-context > span b { color: var(--navy); font: 14px Georgia, serif; }
.relevance-context > span small { color: var(--slate); font-size: 8px; line-height: 1.45; }
.relevance-context dl { display: flex; flex-wrap: wrap; gap: 12px 18px; margin: 0; padding-left: 15px; border-left: 1px solid #dfd2b4; }
.relevance-context dl div { display: grid; gap: 2px; }
.relevance-context dt { color: #8d7750; font-size: 6px; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; }
.relevance-context dd { max-width: 190px; margin: 0; color: #394554; font-size: 8px; font-weight: 750; line-height: 1.35; }
.relevance-context > i { width: 14px; height: 14px; border: 2px solid #ded3bb; border-top-color: var(--brass); border-radius: 50%; animation: event-signal-spin .8s linear infinite; }
.relevance-context.error { border-color: #e1c1c6; background: #fbf3f4; }
.relevance-context button { padding: 7px 9px; border: 1px solid #dcc4c7; border-radius: 7px; background: white; color: var(--red); font-size: 7px; font-weight: 800; }
.relevance-pending { display: grid; justify-items: end; gap: 2px; color: #92794b; text-transform: uppercase; }
.relevance-pending span { padding: 0; background: none; color: inherit; font-size: 6px; letter-spacing: .09em; }
.relevance-pending small { color: #8a93a0; font-size: 7px; }
.event-relevance-card { min-width: 0; overflow: hidden; border: 1px solid #d9caa7; border-radius: 12px; background: linear-gradient(145deg, #fffdf8, #f5edda); }
.event-relevance-card.high { border-color: #a8cfc1; background: linear-gradient(145deg, #f7fcf9, #e8f3ee); }
.event-relevance-card.elevated { border-color: #d7c189; }
.event-relevance-card.low { opacity: .88; }
.relevance-why { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 11px; padding: 11px 12px 9px; }
.relevance-why > span { width: auto; margin: 0; padding: 0; border-radius: 0; background: none; color: inherit; text-transform: none; letter-spacing: normal; }
.relevance-score { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1px 5px; padding-right: 10px !important; border-right: 1px solid rgba(118, 91, 46, .19); }
.relevance-score small { grid-column: 1 / -1; color: #8a7144; font-size: 6px; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; }
.relevance-score strong { color: var(--navy); font: 27px Georgia, serif; line-height: .9; }
.relevance-score em { color: #846a3d; font-size: 6px; font-style: normal; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.event-relevance-card.high .relevance-score em { color: #17664f; }
.relevance-why > span:last-child { display: grid; gap: 2px; }
.relevance-why > span:last-child > b { color: #8a7144; font-size: 6px; text-transform: uppercase; letter-spacing: .1em; }
.relevance-why > span:last-child > strong { overflow: hidden; color: var(--navy); font: 13px Georgia, serif; text-overflow: ellipsis; white-space: nowrap; }
.relevance-why p { display: -webkit-box; overflow: hidden; margin: 0; color: #647081; font-size: 7px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.event-relevance { position: relative; border-top: 1px solid rgba(118, 91, 46, .13); }
.event-relevance summary { padding: 7px 12px; color: #765b2e; cursor: pointer; font-size: 7px; font-weight: 800; list-style: none; }
.event-relevance summary::-webkit-details-marker { display: none; }
.event-relevance summary::after { content: " +"; }
.event-relevance[open] summary::after { content: " −"; }
.relevance-receipt { display: grid; gap: 11px; margin: 0; padding: 12px; border-top: 1px solid rgba(118, 91, 46, .13); background: rgba(255, 254, 250, .92); }
.relevance-receipt-head { display: flex; align-items: center; gap: 9px; }
.relevance-receipt-head > .source-state { display: inline-flex; width: auto; margin: 0; padding: 6px 9px; border-radius: 100px; background: #f7f0df; color: #775d28; font-size: 8px; }
.relevance-receipt-head > span:last-child { display: grid; gap: 2px; padding: 0; background: none; color: inherit; }
.relevance-receipt-head b { color: var(--navy); font: 14px Georgia, serif; }
.relevance-receipt-head small { color: var(--slate); font-size: 7px; }
.relevance-receipt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.relevance-receipt-grid > span { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 7px; margin: 0; padding: 9px; border: 1px solid #e3ded3; border-radius: 8px; background: white; color: var(--ink); }
.relevance-receipt-grid small { grid-column: 1 / -1; color: #697585; font-size: 6px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.relevance-receipt-grid i { height: 3px; overflow: hidden; border-radius: 10px; background: #e7e9ea; }
.relevance-receipt-grid i b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brass), var(--green)); }
.relevance-receipt-grid strong { color: var(--navy); font: 17px Georgia, serif; }
.relevance-receipt-grid em { grid-column: 1 / -1; color: #8b94a0; font-size: 6px; font-style: normal; }
.relevance-receipt > p { margin: 0; color: var(--slate); font-size: 7px; line-height: 1.5; }
.relevance-cautions { display: grid; gap: 4px; margin: 0; padding: 0 0 0 14px; color: #6f7885; font-size: 7px; line-height: 1.45; }
.relevance-unscored { display: flex; gap: 8px; color: var(--slate); font-size: 8px; }
.relevance-unscored b { color: var(--ink); }
.event-signal-state { min-height: 126px; display: grid; place-items: center; align-content: center; gap: 6px; padding: 22px; color: var(--slate); text-align: center; }
.event-signal-state strong { color: var(--ink); font: 18px Georgia, serif; }
.event-signal-state p { max-width: 540px; margin: 0; font-size: 9px; line-height: 1.55; }
.event-signal-state button { margin-top: 4px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 7px; background: white; color: #765b2e; font-size: 8px; font-weight: 800; }
.event-signal-state.loading i { width: 18px; height: 18px; border: 2px solid #d9d2c5; border-top-color: var(--brass); border-radius: 50%; animation: event-signal-spin .8s linear infinite; }
.event-catalyst-panel > footer { padding-top: 11px; border-top: 1px solid var(--line); color: #7d8795; font-size: 7px; text-transform: uppercase; letter-spacing: .08em; }
@keyframes event-signal-spin { to { transform: rotate(360deg); } }
.section-head p { margin: 6px 0 0; color: var(--slate); font-size: 11px; }
.table-wrap { overflow-x: auto; }

@media (max-width: 1180px) {
  .global-search-shell { display: none; }
  .discovery-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .compact-markets { grid-template-columns: 1fr 1fr; }
  .market-card-main { grid-template-columns: 78px minmax(0, 1fr) auto; }
  .market-thumb { width: 78px; }
  .market-card-copy strong { font-size: 15px; }
  .header-actions > .state { display: none; }
}

@media (max-width: 940px) {
  .header-actions .mode-switch { display: none; }
  .discovery-grid { grid-template-columns: 1fr; }
  .market-pulse-panel { display: none; }
  .modern-trade-layout { grid-template-columns: minmax(0, 1fr) 330px; }
  .related-markets { grid-template-columns: 1fr; }
  .research-grid { grid-template-columns: 1fr; }
  .ticker-strip { grid-template-columns: repeat(2, 1fr); }
  .ticker-strip > span:nth-child(2) { border-right: 0; }
  .ticker-strip > span:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .exchange-header { position: sticky; }
  .header-primary { height: 60px; gap: 10px; padding: 0 15px; }
  .desktop-nav { display: none; }
  .brand-button .crest { width: 31px; height: 31px; }
  .brand-button > span:last-child { font-size: 19px; }
  .global-search, .global-search-shell { display: none; }
  .header-actions { margin-left: auto; }
  .header-actions .mode-switch { display: none; }
  .portfolio-pill { min-width: 0; padding: 7px 9px; }
  .portfolio-pill span { display: none; }
  .market-subnav { height: 43px; padding: 0 10px; }
  .market-status { display: none; }
  .exchange-main { padding: 14px 13px 92px; }
  .ticker-strip { margin-bottom: 12px; }
  .ticker-strip > span { gap: 6px; padding: 10px; }
  .ticker-strip small { font-size: 7px; }
  .ticker-strip strong { font-size: 15px; }
  .ticker-strip em { display: none; }
  .featured-market { min-height: 430px; background-image: linear-gradient(180deg, rgba(6, 15, 28, .18) 0%, rgba(6, 15, 28, .92) 72%), var(--feature-image); }
  .feature-copy { padding: 23px 20px; }
  .featured-market h1 { font-size: 34px; }
  .featured-market p { font-size: 11px; }
  .feature-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .contract-button { min-width: 0; }
  .market-link { grid-column: 1 / -1; min-height: 35px; padding: 5px; text-align: left; }
  .feature-stats { gap: 11px; }
  .data-banner { grid-template-columns: 1fr auto; margin: 10px 0 25px; }
  .data-banner p { display: none; }
  .data-banner button { font-size: 9px; }
  .market-heading { margin-top: 0; }
  .compact-markets { grid-template-columns: 1fr; }
  .market-card-main { grid-template-columns: 74px minmax(0, 1fr) auto; gap: 10px; padding: 11px; }
  .market-thumb { width: 74px; height: 68px; }
  .market-card-copy strong { font-size: 14px; }
  .market-card-price b { font-size: 21px; }
  .card-chart { display: none; }
  .card-trade-row { padding: 9px 11px 11px; }
  .pro-market-data { grid-template-columns: repeat(2, 1fr); }
  .market-detail-header { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
  .market-detail-header > img { width: 72px; height: 72px; }
  .market-detail-header h1 { font-size: 28px; }
  .market-detail-header p { grid-column: 1 / -1; }
  .detail-quote { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: flex-start; gap: 8px; }
  .detail-quote strong { font-size: 29px; }
  .important-banner { grid-template-columns: auto 1fr; }
  .important-banner button { grid-column: 1 / -1; padding: 2px 0; text-align: left; }
  .modern-trade-layout { display: block; }
  .embedded-ticket { display: none; }
  .chart-panel { padding: 14px; }
  .chart { height: 210px; }
  .chart-footer span:nth-child(3) { display: none; }
  .outcome-row { grid-template-columns: minmax(0, 1fr) auto; }
  .outcome-row .quote-button { min-height: 43px; }
  .outcome-row > .quote-button.yes { grid-column: 1; }
  .outcome-row > .quote-button.no { grid-column: 2; }
  .depth-grid { grid-template-columns: repeat(2, 1fr); }
  .trade-overlay { align-items: end; padding: 0; }
  .trade-sheet { width: 100%; }
  .sheet-handle { position: relative; z-index: 1; width: 42px; height: 4px; display: block; margin: 8px auto -13px; border-radius: 100px; background: #d5d0c6; }
  .modal-ticket { max-height: 88vh; padding: 21px 17px calc(20px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; }
  .mobile-nav { display: grid; }
}

@media (max-width: 430px) {
  .market-card-main { grid-template-columns: 66px minmax(0, 1fr) auto; }
  .market-thumb { width: 66px; height: 64px; }
  .market-card-price em { display: none; }
  .card-volume { display: none; }
  .card-trade-row { grid-template-columns: 1fr 1fr; }
  .research-hero { padding: 28px 22px; }
  .research-hero h1 { font-size: 38px; }
}

/* Curated discovery, onboarding, watchlists, alerts, and order depth */
button:disabled { cursor: not-allowed; opacity: .45; transform: none !important; }
.horizon-badge { padding: 5px 8px; border-radius: 100px; font-size: 8px; font-weight: 850; letter-spacing: .08em; }
.horizon-badge.quick { background: #f3ddd8; color: #8c3c32; }
.horizon-badge.prepare { background: rgba(210, 184, 122, .2); color: #f0d99f; }
.horizon-badge.core { background: #e4e9ef; color: #536173; }
.feature-watch { min-height: 44px; padding: 8px 12px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 9px; background: rgba(6, 14, 28, .35); color: white; font-size: 10px; font-weight: 750; }
.feature-watch.active { border-color: var(--brass-light); color: var(--brass-light); }
.carousel-controls { display: flex; align-items: center; gap: 7px; margin-top: 18px; }
.carousel-controls button { width: 7px; height: 7px; min-width: 0; padding: 0; border: 0; border-radius: 100px; background: rgba(255, 255, 255, .35); color: white; font-size: 10px; }
.carousel-controls button.active { width: 24px; background: var(--brass-light); }
.carousel-controls button:first-child, .carousel-controls button:last-child { width: 28px; height: 28px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(6, 14, 28, .36); }
.market-card { position: relative; }
.watch-button { position: absolute; z-index: 4; top: 9px; right: 9px; width: 30px; height: 30px; padding: 0; border: 1px solid rgba(218, 211, 198, .9); border-radius: 50%; background: rgba(255, 253, 248, .92); color: #8c7a58; font-size: 15px; box-shadow: 0 4px 12px rgba(16, 26, 45, .1); }
.watch-button.active { border-color: #d1b36d; background: #fff6dc; color: #8a6518; }
.market-card-price { padding-right: 28px; }
.card-kicker i { margin-left: 4px; padding: 2px 4px; border-radius: 4px; font-size: 6px; font-style: normal; }
.card-horizon.quick { background: #f3ddd8; color: #8c3c32; }
.card-horizon.prepare { background: #eee3c7; color: #725727; }
.card-horizon.core { background: #e5e9ef; color: #536173; }

.order-type-toggle, .alert-direction { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin: 13px 0; padding: 3px; border-radius: 9px; background: #eee9de; }
.order-type-toggle button, .alert-direction button { min-height: 36px; border: 0; border-radius: 7px; background: transparent; color: var(--slate); font-size: 9px; font-weight: 800; }
.order-type-toggle button.active, .alert-direction button.active { background: white; color: var(--ink); box-shadow: 0 4px 12px rgba(16, 26, 45, .1); }
.limit-field { margin-bottom: 14px; padding: 12px; border: 1px solid #d8c9a7; border-radius: 9px; background: #faf5e9; }
.limit-field small { display: block; margin-top: 7px; color: #816f4e; font-size: 8px; line-height: 1.45; }
.input-suffix.cents input { padding-right: 38px; font-size: 18px; font-weight: 800; }
.input-suffix.cents span { font-size: 14px; font-weight: 800; }

.metric-tabs { display: flex; gap: 5px; margin: 16px 0 -7px; padding-bottom: 3px; overflow-x: auto; scrollbar-width: none; }
.metric-tabs::-webkit-scrollbar { display: none; }
.metric-tabs button { flex: 0 0 auto; min-height: 32px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--slate); font-size: 8px; font-weight: 750; }
.metric-tabs button.active { border-color: var(--navy); background: var(--navy); color: white; }
.rich-chart { margin-left: 42px; }
.rich-chart .line { stroke: var(--chart-color); }
.chart-scale { position: absolute; top: 10px; bottom: 18px; left: -43px; display: flex; flex-direction: column; justify-content: space-between; color: #9299a4; font-size: 7px; text-align: right; }
.chart-dates { position: absolute; right: 0; bottom: -2px; left: 0; display: flex; justify-content: space-between; color: #9299a4; font-size: 7px; }
.detail-actions { display: flex; gap: 7px; margin-top: 11px; }
.detail-actions button { min-height: 34px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--slate); font-size: 9px; font-weight: 750; }
.detail-actions button.active { border-color: #d1b36d; background: #fff6dc; color: #7d5e1f; }

.alert-dialog { width: min(410px, 100%); padding: 20px; border-radius: 15px; background: var(--paper); box-shadow: 0 20px 65px rgba(4, 10, 20, .3); }
.alert-preview { display: flex; justify-content: space-between; margin: 14px 0; padding: 11px; border-radius: 8px; background: #f1ede4; color: var(--slate); font-size: 10px; }
.alert-preview strong { color: var(--ink); }

.watchlist-header { display: grid; grid-template-columns: minmax(0, 1fr) 150px 150px; align-items: end; gap: 15px; margin-bottom: 24px; padding: 30px; border-radius: 16px; background: var(--navy); color: white; }
.watchlist-header .eyebrow { color: var(--brass-light); }
.watchlist-header h1 { margin-top: 5px; font-size: 42px; font-weight: 400; }
.watchlist-header p { margin: 8px 0 0; color: #b8c1ce; font-size: 11px; }
.watchlist-header > div:not(:first-child) { display: grid; gap: 4px; padding-left: 18px; border-left: 1px solid #39445a; }
.watchlist-header > div:not(:first-child) strong { font: 31px Georgia, serif; }
.watchlist-header > div:not(:first-child) span { color: #9ea9b8; font-size: 8px; text-transform: uppercase; letter-spacing: .09em; }
.watchlist-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.watchlist-grid { grid-template-columns: 1fr; }
.alerts-panel { position: sticky; top: 132px; }
.alert-list { display: grid; gap: 8px; margin-top: 14px; }
.alert-list article { position: relative; display: grid; gap: 4px; padding: 13px 34px 13px 13px; border: 1px solid var(--line); border-radius: 9px; background: #faf8f3; }
.alert-list article.triggered { border-color: #a9cfbf; background: #eef8f4; }
.alert-list strong { font-size: 11px; }
.alert-list p { margin: 0; color: var(--ink); font-size: 10px; }
.alert-list small { color: var(--slate); font-size: 8px; }
.alert-list button { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: #eee9df; color: var(--slate); }
.alert-status { width: fit-content; padding: 3px 5px; border-radius: 4px; background: #e6e9ee; color: #626c7b; font-size: 6px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.triggered .alert-status { background: #cfe9df; color: var(--green); }
.empty-state { display: grid; justify-items: center; gap: 8px; padding: 55px 20px; text-align: center; }
.empty-state > span { color: var(--brass); font-size: 31px; }
.empty-state p { max-width: 330px; margin: 0 0 7px; color: var(--slate); font-size: 10px; }
.empty-state.compact { padding: 30px 10px; border: 0; box-shadow: none; }

.portfolio-grid { display: grid; gap: 15px; }
.open-order-list { display: grid; gap: 7px; margin-top: 14px; }
.open-order-list article { display: grid; grid-template-columns: minmax(0, 1fr) 70px auto; align-items: center; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 8px; }
.open-order-list article > span { display: grid; gap: 3px; }
.open-order-list strong { font-size: 11px; }
.open-order-list small { color: var(--slate); font-size: 8px; }
.open-order-list b { font: 19px Georgia, serif; text-align: right; }
.open-order-list button { min-height: 30px; padding: 5px 8px; border: 1px solid #e2c8cc; border-radius: 6px; background: #fff7f8; color: var(--red); font-size: 8px; font-weight: 800; }

.provider-readiness { display: grid; grid-template-columns: minmax(0, 1fr) 220px; align-items: center; gap: 20px; margin-top: 16px; }
.provider-readiness p { max-width: 800px; color: var(--slate); font-size: 11px; line-height: 1.6; }
.provider-status { display: grid; justify-items: end; gap: 8px; padding-left: 20px; border-left: 1px solid var(--line); }
.provider-status > span { display: flex; align-items: center; gap: 8px; }
.provider-status b { font-size: 11px; }
.provider-status small { color: var(--slate); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }

.onboarding-overlay { position: fixed; z-index: 130; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(7, 13, 24, .72); backdrop-filter: blur(8px); }
.onboarding-card { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 30px; border: 1px solid rgba(210, 184, 122, .42); border-radius: 18px; background: var(--paper); box-shadow: 0 28px 90px rgba(2, 7, 16, .42); }
.onboarding-mark { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 50%; background: var(--navy); color: var(--brass-light); font: 13px Georgia, serif; }
.onboarding-progress { display: flex; gap: 5px; margin-bottom: 24px; }
.onboarding-progress i { width: 30px; height: 3px; border-radius: 100px; background: #ddd8ce; }
.onboarding-progress i.active { background: var(--brass); }
.onboarding-card h1 { margin-top: 7px; font-size: 39px; font-weight: 400; line-height: 1.06; }
.onboarding-card > p { color: var(--slate); font-size: 12px; line-height: 1.6; }
.onboarding-example { display: grid; gap: 7px; margin: 20px 0; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: #f4f0e7; }
.onboarding-example span { font: 17px Georgia, serif; }
.onboarding-example b { color: var(--green); font-size: 12px; }
.onboarding-example small { color: var(--slate); font-size: 9px; }
.onboarding-card > .primary { margin-top: 4px; }
.onboarding-skip { width: 100%; min-height: 40px; margin-top: 7px; border: 0; background: none; color: var(--slate); font-size: 9px; }
.interest-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 18px 0; }
.interest-grid button, .experience-grid button { min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--slate); font-size: 10px; font-weight: 750; }
.interest-grid button.active, .experience-grid button.active { border-color: var(--brass); background: #fff7e5; color: #735a28; }
.onboarding-label { display: block; margin-top: 20px; color: var(--slate); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.experience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.onboarding-actions { display: grid; grid-template-columns: 110px 1fr; gap: 8px; margin-top: 22px; }
.onboarding-actions > button:first-child { border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--slate); }
.risk-check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; margin: 22px 0; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: #f5f1e8; color: var(--ink); font-size: 10px; line-height: 1.5; }
.risk-check input { width: 18px; height: 18px; accent-color: var(--green); }

@media (max-width: 940px) {
  .watchlist-layout { grid-template-columns: 1fr; }
  .alerts-panel { position: static; }
  .signal-source-grid { grid-template-columns: 1fr 1fr; }
  .event-market-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .feature-actions .feature-watch { grid-column: 2; grid-row: 3; }
  .feature-actions .market-link { grid-column: 1; grid-row: 3; }
  .carousel-controls { margin-top: 13px; }
  .market-detail-header .feature-meta { flex-wrap: wrap; }
  .detail-actions { grid-column: 1 / -1; }
  .watchlist-header { grid-template-columns: 1fr 1fr; padding: 22px; }
  .watchlist-header > div:first-child { grid-column: 1 / -1; }
  .watchlist-header h1 { font-size: 34px; }
  .watchlist-header > div:not(:first-child) { padding-left: 0; border-left: 0; }
  .provider-readiness { grid-template-columns: 1fr; }
  .provider-status { justify-items: start; padding: 14px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .signal-research-hero { grid-template-columns: 1fr; }
  .signal-research-hero aside { display: none; }
  .signal-boundary { grid-template-columns: auto 1fr; }
  .signal-boundary button { grid-column: 2; justify-self: start; padding: 0; }
  .signal-metrics { grid-template-columns: 1fr 1fr; }
  .signal-source-grid, .source-rail { grid-template-columns: 1fr; }
  .signal-source-card { min-height: 0; }
  .signal-source-card > p { min-height: 0; }
  .event-market-tabs { display: flex; padding-bottom: 4px; overflow-x: auto; scroll-snap-type: x proximity; }
  .event-market-tabs button { min-width: 132px; scroll-snap-align: start; }
  .event-catalyst-head { grid-template-columns: 1fr; }
  .event-provider-state { justify-self: start; }
  .ticketmaster-event-row { grid-template-columns: 1fr auto; gap: 8px; }
  .ticketmaster-event-row time { grid-column: 1 / -1; }
  .ticketmaster-event-row > div:nth-child(2) { grid-column: 1 / -1; }
  .ticketmaster-event-row > a { grid-column: 1; grid-row: auto; justify-self: start; }
  .relevance-context { grid-template-columns: auto 1fr; }
  .relevance-context dl { grid-column: 1 / -1; padding: 10px 0 0; border-top: 1px solid #dfd2b4; border-left: 0; }
  .relevance-context > i, .relevance-context > button { grid-column: 1 / -1; justify-self: start; }
  .relevance-pending, .event-relevance-card { grid-column: 1 / -1; justify-self: stretch; }
  .relevance-receipt-grid { grid-template-columns: 1fr 1fr; }
  .rich-chart { margin-left: 35px; }
  .chart-scale { left: -36px; }
  .alert-dialog { align-self: end; width: 100%; padding: 21px 17px calc(20px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; }
  .onboarding-overlay { padding: 0; align-items: end; }
  .onboarding-card { width: 100%; max-height: 92vh; padding: 25px 20px calc(24px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; }
  .onboarding-card h1 { font-size: 34px; }
  .interest-grid { grid-template-columns: 1fr 1fr; }
}

/* Premium product finish */
body {
  background:
    radial-gradient(circle at 5% 5%, rgba(182, 144, 76, .07), transparent 30rem),
    radial-gradient(circle at 95% 28%, rgba(24, 123, 97, .045), transparent 34rem),
    #f7f4ed;
}

button { -webkit-tap-highlight-color: transparent; }
button:active { transform: translateY(1px) scale(.995); }
.exchange-header { box-shadow: 0 1px 0 rgba(255, 255, 255, .75), 0 12px 34px rgba(16, 26, 45, .035); }
.header-primary { height: 76px; }
.brand-button .crest {
  position: relative;
  overflow: hidden;
  border-color: rgba(210, 184, 122, .65);
  background: linear-gradient(145deg, #172843, #0b1425);
  box-shadow: 0 8px 20px rgba(16, 26, 45, .2), inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.brand-button .crest::after { content: ""; position: absolute; inset: -20%; transform: translateX(-85%) rotate(25deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .3), transparent); transition: transform .7s var(--ease-premium); }
.brand-button:hover .crest::after { transform: translateX(85%) rotate(25deg); }
.global-search { transition: border-color var(--motion-base), box-shadow var(--motion-base), background var(--motion-base); }
.global-search:focus-within { border-color: rgba(182, 144, 76, .65); background: white; box-shadow: 0 0 0 4px rgba(182, 144, 76, .1); }
.alert-center { position: relative; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--navy); font-size: 18px; transition: border-color var(--motion-fast), box-shadow var(--motion-fast), transform var(--motion-fast); }
.alert-center:hover { border-color: #c7ac6c; box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.alert-center b { position: absolute; top: -4px; right: -3px; min-width: 16px; height: 16px; display: grid; place-items: center; padding: 0 4px; border: 2px solid white; border-radius: 100px; background: var(--red); color: white; font-size: 7px; }
.portfolio-pill { transition: border-color var(--motion-fast), box-shadow var(--motion-fast), transform var(--motion-fast); }
.portfolio-pill:hover { border-color: #cab47e; box-shadow: var(--shadow-sm); transform: translateY(-1px); }

.market-tape {
  min-height: 38px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: -8px 0 12px;
  padding: 0 12px;
  overflow: hidden;
  border: 1px solid rgba(222, 216, 202, .85);
  border-radius: 9px;
  background: rgba(255, 253, 248, .64);
  box-shadow: inset 0 1px rgba(255, 255, 255, .8);
}
.tape-label, .tape-state { color: #7b7161; font-size: 7px; font-weight: 850; text-transform: uppercase; letter-spacing: .12em; white-space: nowrap; }
.tape-label { display: flex; align-items: center; gap: 7px; color: #715b31; }
.tape-label i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(24, 123, 97, .1); }
.tape-markets { min-width: 0; display: flex; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, transparent, black 12px, black calc(100% - 12px), transparent); }
.tape-markets::-webkit-scrollbar { display: none; }
.tape-markets button { flex: 1 0 auto; min-height: 36px; display: flex; align-items: center; gap: 6px; padding: 0 13px; border: 0; border-left: 1px solid rgba(222, 216, 202, .8); background: none; color: var(--ink); }
.tape-markets button:hover { background: rgba(238, 232, 220, .55); }
.tape-markets b { color: #60543f; font-size: 8px; letter-spacing: .08em; }
.tape-markets span { font: 12px Georgia, serif; }
.tape-markets em { font-size: 7px; font-style: normal; }

.ticker-strip { border-radius: var(--radius-md); background: var(--surface-glass); box-shadow: var(--shadow-sm), inset 0 1px rgba(255, 255, 255, .85); }
.ticker-strip > span { position: relative; }
.ticker-strip > span::after { content: ""; position: absolute; right: 18px; bottom: 9px; left: 18px; height: 1px; transform: scaleX(.35); transform-origin: left; background: linear-gradient(90deg, rgba(182, 144, 76, .72), transparent); transition: transform var(--motion-base) var(--ease-premium); }
.ticker-strip > span:hover::after { transform: scaleX(1); }

.featured-market {
  isolation: isolate;
  grid-template-columns: minmax(0, 1fr) 218px;
  align-items: end;
  background-image: linear-gradient(90deg, rgba(5, 13, 25, .97) 0%, rgba(8, 18, 34, .83) 52%, rgba(8, 18, 34, .24)), var(--feature-image);
  box-shadow: var(--shadow-lg);
  animation: feature-reveal .55s var(--ease-premium) both;
}
.featured-market::before { content: ""; position: absolute; z-index: 0; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.035), transparent 30%, rgba(3,9,18,.22)); pointer-events: none; }
.featured-market::after { border-color: rgba(228, 206, 155, .33); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025); }
.feature-copy { padding: 40px; }
.feature-copy > * { animation: copy-rise .5s var(--ease-premium) both; }
.feature-copy > h1 { animation-delay: .04s; }
.feature-copy > p { animation-delay: .08s; }
.feature-copy > .feature-actions { animation-delay: .12s; }
.featured-market h1 { text-wrap: balance; text-shadow: 0 3px 20px rgba(0, 0, 0, .22); }
.contract-button { position: relative; overflow: hidden; box-shadow: inset 0 1px rgba(255, 255, 255, .14), 0 7px 18px rgba(0, 0, 0, .13); transition: transform var(--motion-fast), filter var(--motion-fast), box-shadow var(--motion-fast); }
.contract-button:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: inset 0 1px rgba(255, 255, 255, .16), 0 12px 26px rgba(0, 0, 0, .18); }
.feature-watch, .market-link { transition: color var(--motion-fast), border-color var(--motion-fast), background var(--motion-fast), transform var(--motion-fast); }
.feature-watch:hover, .market-link:hover { transform: translateY(-1px); }
.feature-intelligence {
  position: relative;
  z-index: 2;
  align-self: start;
  margin: 28px 26px 0 0;
  padding: 16px;
  border: 1px solid rgba(228, 206, 155, .3);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(8, 18, 34, .76), rgba(8, 18, 34, .48));
  box-shadow: 0 18px 42px rgba(0, 0, 0, .16), inset 0 1px rgba(255, 255, 255, .05);
  backdrop-filter: blur(14px);
  animation: intelligence-in .65s .12s var(--ease-premium) both;
}
.signal-heading { display: flex; align-items: center; justify-content: space-between; color: #dfe5ed; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.signal-heading b { font-size: 10px; }
.hero-spark { height: 42px; margin: 11px 0 8px; }
.hero-spark svg { width: 100%; height: 100%; }
.hero-spark path { fill: none; stroke: #d2b87a; stroke-width: 1.5; filter: drop-shadow(0 0 4px rgba(210, 184, 122, .28)); }
.feature-intelligence dl { margin: 0; }
.feature-intelligence dl div { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .09); }
.feature-intelligence dt { color: #8d99aa; font-size: 8px; }
.feature-intelligence dd { margin: 0; color: white; font-size: 9px; font-weight: 700; text-align: right; }
.method-stamp { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .09); color: #b7c0cc; font-size: 7px; text-transform: uppercase; letter-spacing: .07em; }
.method-stamp i { width: 15px; height: 15px; display: grid; place-items: center; border: 1px solid rgba(210, 184, 122, .4); border-radius: 50%; color: var(--brass-light); font-size: 7px; font-style: normal; }
@keyframes feature-reveal { from { opacity: .85; transform: scale(.994); } }
@keyframes copy-rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes intelligence-in { from { opacity: 0; transform: translateX(10px); } }

.market-pulse-panel { border-color: rgba(210, 197, 169, .82); background: linear-gradient(180deg, #fffefa, #fbf8f1); box-shadow: var(--shadow-md); }
.mover-list button { transition: padding var(--motion-fast), background var(--motion-fast); }
.mover-list button:hover { margin: 0 -8px; padding-right: 8px; padding-left: 8px; border-radius: 8px; background: #f4efe4; }
.institutional-note { position: relative; overflow: hidden; background: linear-gradient(145deg, #182843, #0d182a); }
.institutional-note::after { content: "RC"; position: absolute; right: -5px; bottom: -17px; color: rgba(210, 184, 122, .07); font: 58px Georgia, serif; }
.data-banner { border-color: #d9c99f; background: linear-gradient(90deg, #f1eadb, #eee8dc); box-shadow: inset 3px 0 var(--brass); }

.curve-brief {
  display: grid;
  grid-template-columns: minmax(220px, .55fr) minmax(0, 1.45fr);
  align-items: stretch;
  gap: 18px;
  margin: 0 0 36px;
  padding: 22px;
  border: 1px solid rgba(210, 197, 169, .78);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 253, 248, .95), rgba(246, 241, 230, .86));
  box-shadow: var(--shadow-sm), inset 0 1px white;
}
.brief-intro { align-self: center; padding: 4px 10px 4px 2px; }
.brief-intro h2 { margin-top: 4px; font-size: 30px; font-weight: 400; }
.brief-intro p { max-width: 350px; margin: 8px 0 0; color: var(--slate); font-size: 10px; line-height: 1.55; }
.brief-signals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.brief-card { position: relative; min-width: 0; display: grid; align-content: center; gap: 5px; padding: 16px 34px 16px 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); text-align: left; box-shadow: 0 5px 16px rgba(16, 26, 45, .035); transition: transform var(--motion-base) var(--ease-premium), border-color var(--motion-fast), box-shadow var(--motion-base); }
.brief-card::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: var(--brass); }
.brief-card.urgent::before { background: var(--red); }
.brief-card.signal::before { background: var(--green); }
.brief-card:hover { transform: translateY(-3px); border-color: #cdb982; box-shadow: var(--shadow-md); }
.brief-card > span { color: var(--slate); font-size: 7px; font-weight: 850; text-transform: uppercase; letter-spacing: .11em; }
.brief-card strong { overflow: hidden; font: 22px Georgia, serif; text-overflow: ellipsis; white-space: nowrap; }
.brief-card small { overflow: hidden; color: var(--slate); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.brief-card i { position: absolute; top: 14px; right: 13px; color: #9f9279; font-size: 12px; font-style: normal; }

.compact-markets .market-card { border-color: rgba(215, 207, 191, .9); box-shadow: var(--shadow-sm); transition: transform var(--motion-base) var(--ease-premium), border-color var(--motion-fast), box-shadow var(--motion-base); }
.compact-markets .market-card:hover { transform: translateY(-4px); border-color: #c8b171; box-shadow: var(--shadow-md); }
.market-thumb img { transition: transform var(--motion-slow) var(--ease-premium), filter var(--motion-base); }
.market-card:hover .market-thumb img { transform: scale(1.045); filter: saturate(1.04) contrast(1.02); }
.watch-button { transition: transform var(--motion-fast), border-color var(--motion-fast), background var(--motion-fast); }
.watch-button:hover { transform: scale(1.08); }
.quote-button { transition: color var(--motion-fast), background var(--motion-fast), box-shadow var(--motion-fast), transform var(--motion-fast); }
.quote-button:hover { transform: translateY(-1px); box-shadow: 0 7px 16px rgba(16, 26, 45, .1); }

.panel, .order-ticket, .alert-dialog, .onboarding-card { border-color: rgba(215, 207, 191, .9); box-shadow: var(--shadow-md); }
.chart-panel { background: linear-gradient(180deg, #fffefa, #fffdf8); }
.chart .line { filter: drop-shadow(0 3px 4px color-mix(in srgb, var(--chart-color, var(--green)) 20%, transparent)); }
.order-ticket { background: linear-gradient(180deg, #fffefa, #fcf9f2); }
.primary { background: linear-gradient(135deg, #243b5d, #101a2d); box-shadow: 0 9px 22px rgba(16, 26, 45, .16); }
.primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.trade-overlay, .onboarding-overlay { background: rgba(5, 11, 21, .7); backdrop-filter: blur(10px) saturate(.8); }

.toast-region { position: fixed; z-index: 160; right: 24px; bottom: 24px; display: grid; gap: 9px; pointer-events: none; }
.toast { position: relative; right: auto; bottom: auto; min-width: 290px; max-width: 390px; display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 11px; padding: 12px 14px; border: 1px solid rgba(210, 184, 122, .28); border-radius: 13px; background: rgba(13, 24, 42, .96); box-shadow: var(--shadow-lg); backdrop-filter: blur(16px); animation: toast-in .35s var(--ease-premium) both; pointer-events: auto; }
.toast-icon { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(210, 184, 122, .42); border-radius: 50%; color: var(--brass-light); font-size: 11px; }
.toast > span:last-child { display: grid; gap: 3px; }
.toast b { color: white; font-size: 9px; letter-spacing: .04em; }
.toast small { color: #b8c1cd; font-size: 9px; line-height: 1.35; }
.toast.error { border-color: rgba(157, 69, 81, .5); }
.toast.error .toast-icon { border-color: rgba(157, 69, 81, .6); color: #e3a9b1; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }

.premium-footer { max-width: 1480px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 28px; margin: 0 auto; padding: 28px 30px 34px; border-top: 1px solid rgba(215, 207, 191, .8); color: var(--slate); }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-crest { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: var(--brass-light); font: 9px Georgia, serif; }
.footer-brand > span:last-child, .footer-trust > span { display: grid; gap: 2px; }
.footer-brand strong { color: var(--ink); font: 15px Georgia, serif; }
.footer-brand small, .footer-trust small { color: var(--slate); font-size: 7px; }
.footer-trust { display: flex; gap: 26px; }
.footer-trust > span:first-child { grid-template-columns: auto auto; align-items: center; gap: 7px; }
.footer-trust > span:first-child small { grid-column: 1 / -1; }
.footer-trust b { color: #5f6774; font-size: 8px; }
.footer-links { display: flex; gap: 6px; }
.footer-links button { padding: 7px 9px; border: 0; background: none; color: #765b2e; font-size: 8px; font-weight: 750; }

@media (max-width: 1180px) {
  .feature-intelligence { display: none; }
  .featured-market { grid-template-columns: 1fr; }
  .tape-state { display: none; }
  .premium-footer { grid-template-columns: 1fr auto; }
  .footer-trust { display: none; }
}

@media (max-width: 760px) {
  .header-primary { height: 62px; }
  .alert-center { width: 34px; height: 34px; }
  .market-tape { grid-template-columns: auto minmax(0, 1fr); margin: -2px 0 10px; }
  .tape-markets button { padding: 0 10px; }
  .featured-market { min-height: 450px; }
  .feature-copy { padding: 25px 20px; }
  .featured-market h1 { text-wrap: pretty; }
  .curve-brief { display: block; margin-bottom: 28px; padding: 18px; }
  .brief-intro { padding: 0 0 14px; }
  .brief-intro h2 { font-size: 27px; }
  .brief-signals { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .brief-signals::-webkit-scrollbar { display: none; }
  .brief-card { min-width: 220px; scroll-snap-align: start; }
  .premium-footer { display: block; padding: 24px 17px 104px; }
  .footer-links { margin-top: 12px; }
  .toast-region { right: 13px; bottom: 82px; left: 13px; }
  .toast { min-width: 0; max-width: none; width: 100%; text-align: left; }
}

@media (max-width: 430px) {
  .header-actions > .state { display: none; }
  .alert-center { display: none; }
  .market-tape { margin-right: -13px; margin-left: -13px; border-right: 0; border-left: 0; border-radius: 0; }
  .ticker-strip { border-radius: 10px; }
  .feature-copy { padding: 23px 18px; }
  .feature-stats { gap: 10px; }
}

/* RoomCurve identity lockup */
.brand-mark {
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  filter: drop-shadow(0 8px 13px rgba(9, 19, 33, .18));
  transition: transform var(--motion-base) var(--ease-premium), filter var(--motion-base);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: -35%;
  transform: translateX(-90%) rotate(24deg);
  background: linear-gradient(90deg, transparent 35%, rgba(255, 255, 255, .28), transparent 65%);
  transition: transform .8s var(--ease-premium);
  pointer-events: none;
}
.brand-mark img { width: 100%; height: 100%; display: block; }
.brand-button:hover .brand-mark { transform: translateY(-1px) rotate(-1deg); filter: drop-shadow(0 11px 16px rgba(9, 19, 33, .23)); }
.brand-button:hover .brand-mark::after { transform: translateX(90%) rotate(24deg); }
.brand-button > .brand-copy { min-width: 0; display: grid; justify-items: start; gap: 3px; color: var(--navy); font-size: inherit; line-height: 1; }
.wordmark {
  display: inline-flex;
  align-items: baseline;
  color: var(--navy);
  font-family: "Iowan Old Style", "Palatino Linotype", Baskerville, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 600;
  line-height: .9;
  letter-spacing: -.055em;
  font-feature-settings: "kern" 1, "liga" 1;
  white-space: nowrap;
}
.wordmark > span:last-child { color: #8b6a2f; font-weight: 500; }
.brand-copy > small {
  color: #8a8070;
  font: 650 6.5px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .19em;
}
.footer-brand .brand-mark { width: 35px; height: 35px; border-radius: 11px; }
.footer-brand .wordmark { font-size: 18px; }
.footer-brand > span:last-child { display: grid; gap: 5px; }
.footer-brand > span:last-child > small { color: var(--slate); font-size: 7px; }
.onboarding-card > .brand-mark.onboarding-mark { width: 52px; height: 52px; margin-bottom: 18px; border-radius: 15px; background: transparent; color: inherit; font: inherit; filter: drop-shadow(0 10px 18px rgba(9, 19, 33, .2)); }

.boot { gap: 15px; background: radial-gradient(circle at 42% 40%, #1b2e4a, var(--navy) 46%, #09111f); }
.boot-mark { width: 54px; height: 54px; padding: 0; overflow: hidden; border: 0; border-radius: 16px; filter: drop-shadow(0 15px 28px rgba(0, 0, 0, .28)); }
.boot-mark img { width: 100%; height: 100%; display: block; }
.boot-copy { display: grid; gap: 8px; }
.boot .wordmark { color: #fffaf0; font-size: 30px; }
.boot .wordmark > span:last-child { color: var(--brass-light); }
.boot-copy small { color: #8f9aaa; font-size: 8px; text-transform: uppercase; letter-spacing: .13em; }

@media (max-width: 760px) {
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .brand-button .wordmark { font-size: 21px; }
  .brand-copy > small { display: none; }
}

@media (max-width: 370px) {
  .brand-button .wordmark { font-size: 19px; }
  .brand-mark { width: 32px; height: 32px; }
}

/* Official footer and policy center */
.official-footer {
  padding: 58px 36px 38px;
  border-top: 1px solid rgba(210, 184, 122, .2);
  background:
    radial-gradient(circle at 8% 12%, rgba(182, 144, 76, .08), transparent 28rem),
    linear-gradient(155deg, #121c2c, #0b121d 68%);
  color: #b5bdc9;
}
.footer-directory { max-width: 1416px; display: grid; grid-template-columns: minmax(230px, 1.2fr) repeat(4, minmax(135px, .72fr)); gap: 46px; margin: auto; }
.footer-identity { align-content: start; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; }
.footer-identity .brand-mark { width: 46px; height: 46px; border-radius: 14px; }
.footer-identity .wordmark { color: #fffaf0; font-size: 25px; }
.footer-identity .wordmark > span:last-child { color: var(--brass-light); }
.footer-identity > span:nth-child(2) { display: grid; gap: 6px; }
.footer-identity > span:nth-child(2) small { color: #798596; font-size: 8px; }
.footer-environment { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-environment > span:last-child { display: grid; gap: 3px; }
.footer-environment b { overflow: hidden; max-width: 180px; color: #d7dde6; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.footer-environment small { color: #687587; font-size: 7px; text-transform: uppercase; letter-spacing: .08em; }
.footer-column { display: grid; align-content: start; gap: 4px; }
.footer-column h2 { margin: 4px 0 15px; color: #7d8795; font: 800 8px/1 Inter, sans-serif; text-transform: uppercase; letter-spacing: .16em; }
.footer-column button { width: fit-content; min-height: 31px; padding: 4px 0; border: 0; background: none; color: #c4cad3; font-size: 10px; text-align: left; transition: color var(--motion-fast), transform var(--motion-fast); }
.footer-column button:hover { color: var(--brass-light); transform: translateX(2px); }
.footer-rule { max-width: 1416px; height: 1px; margin: 48px auto 25px; background: linear-gradient(90deg, rgba(210, 184, 122, .24), rgba(255,255,255,.08) 38%, rgba(255,255,255,.08)); }
.footer-legal-line { max-width: 1416px; display: flex; justify-content: space-between; gap: 24px; margin: auto; color: #7f8895; font-size: 8px; }
.footer-legal-line nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 19px; }
.footer-legal-line button { padding: 0; border: 0; background: none; color: #8c95a2; font-size: 8px; }
.footer-legal-line button:hover { color: #d3b979; }
.footer-disclaimer { max-width: 1416px; margin: 26px auto 0; color: #687382; font-size: 8px; line-height: 1.8; }
.footer-disclaimer strong { color: #909aa8; }

.policy-hero {
  position: relative;
  overflow: hidden;
  padding: 50px;
  border: 1px solid rgba(210, 184, 122, .24);
  border-radius: 20px;
  background: radial-gradient(circle at 88% 18%, rgba(182, 144, 76, .18), transparent 25rem), linear-gradient(145deg, #192a46, #0c1627 70%);
  color: white;
  box-shadow: var(--shadow-lg);
}
.policy-hero::after { content: "RC"; position: absolute; right: 34px; bottom: -46px; color: rgba(210, 184, 122, .055); font: 190px/.8 "Iowan Old Style", Georgia, serif; pointer-events: none; }
.policy-back { margin: 0 0 38px; padding: 0; border: 0; background: none; color: #929eaf; font-size: 9px; font-weight: 750; }
.policy-back:hover { color: var(--brass-light); }
.policy-hero .eyebrow { color: var(--brass-light); }
.policy-hero h1 { max-width: 850px; margin-top: 8px; font-size: clamp(38px, 5vw, 62px); font-weight: 400; letter-spacing: -.035em; }
.policy-hero > p { max-width: 760px; margin: 15px 0 23px; color: #b7c1cf; font-size: 12px; line-height: 1.65; }
.policy-meta { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.policy-meta > span:not(.state) { min-height: 28px; display: inline-flex; align-items: center; padding: 6px 9px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 100px; color: #9ca8b7; font-size: 7px; font-weight: 750; text-transform: uppercase; letter-spacing: .09em; }
.policy-meta > span:last-child { display: inline-flex; align-items: center; gap: 7px; }
.policy-layout { display: grid; grid-template-columns: 260px minmax(0, 850px); justify-content: center; align-items: start; gap: 40px; margin-top: 24px; }
.policy-index { position: sticky; top: 136px; display: grid; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 253, 248, .88); box-shadow: var(--shadow-sm); backdrop-filter: blur(12px); }
.policy-index > .eyebrow { margin: 2px 5px 13px; }
.policy-index > button { min-height: 38px; padding: 8px 10px; border: 0; border-left: 2px solid transparent; background: none; color: var(--slate); font-size: 9px; text-align: left; }
.policy-index > button:hover, .policy-index > button.active { border-left-color: var(--brass); background: #f4efe4; color: var(--ink); }
.policy-review { margin-top: 15px; padding: 13px; border-radius: 9px; background: var(--navy); }
.policy-review b { color: var(--brass-light); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.policy-review p { margin: 6px 0 0; color: #9da8b8; font-size: 8px; line-height: 1.55; }
.policy-document { padding: 38px 44px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow-md); }
.policy-notice { margin-bottom: 31px; padding: 15px 17px; border: 1px solid #d7c292; border-radius: 9px; background: #f6eedc; box-shadow: inset 3px 0 var(--brass); }
.policy-notice span { color: #785d2d; font-size: 7px; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; }
.policy-notice p { margin: 5px 0 0; color: #685f51; font-size: 9px; line-height: 1.55; }
.policy-document > section { scroll-margin-top: 140px; padding: 27px 0; border-top: 1px solid var(--line); }
.policy-document > section:first-of-type { border-top: 0; }
.policy-document h2 { margin-bottom: 12px; color: var(--ink); font: 25px/1.2 "Iowan Old Style", Georgia, serif; }
.policy-document p, .policy-document li { color: #555f6e; font-size: 11px; line-height: 1.78; }
.policy-document p { margin: 9px 0; }
.policy-document ul { margin: 9px 0; padding-left: 20px; }
.policy-document li + li { margin-top: 7px; }
.policy-document strong { color: #303a4b; }
.policy-document pre { overflow-x: auto; padding: 18px; border: 1px solid #293650; border-radius: 10px; background: #101a2d; color: #d8dfea; font-size: 10px; line-height: 1.8; }
.policy-end { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 13px; margin-top: 25px; padding-top: 25px; border-top: 1px solid var(--line); }
.policy-end > span { display: contents; }
.policy-mark { width: 39px; height: 39px; border-radius: 11px; }
.policy-end > div { display: grid; gap: 4px; }
.policy-end b { color: var(--ink); font-size: 9px; }
.policy-end p { margin: 0; color: var(--slate); font-size: 8px; line-height: 1.5; }

@media (max-width: 1040px) {
  .footer-directory { grid-template-columns: repeat(4, 1fr); gap: 36px 26px; }
  .footer-identity { grid-column: 1 / -1; max-width: 310px; }
  .policy-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 20px; }
}

@media (max-width: 760px) {
  .official-footer { padding: 42px 20px 112px; }
  .footer-directory { grid-template-columns: 1fr 1fr; gap: 34px 24px; }
  .footer-identity { grid-column: 1 / -1; }
  .footer-column h2 { margin-bottom: 10px; }
  .footer-column button { min-height: 36px; }
  .footer-rule { margin-top: 38px; }
  .footer-legal-line { display: grid; }
  .footer-legal-line nav { justify-content: flex-start; gap: 15px; }
  .footer-disclaimer { font-size: 7.5px; }
  .policy-hero { padding: 29px 22px; border-radius: 16px; }
  .policy-hero::after { right: -10px; font-size: 130px; }
  .policy-back { margin-bottom: 28px; }
  .policy-hero h1 { font-size: 39px; }
  .policy-layout { display: block; margin-top: 14px; }
  .policy-index { position: static; display: flex; gap: 4px; padding: 10px; overflow-x: auto; border-radius: 11px; scrollbar-width: none; }
  .policy-index::-webkit-scrollbar { display: none; }
  .policy-index > .eyebrow, .policy-review { display: none; }
  .policy-index > button { flex: 0 0 auto; min-height: 34px; padding: 7px 10px; border: 0; border-radius: 7px; white-space: nowrap; }
  .policy-index > button.active { background: var(--navy); color: white; }
  .policy-document { margin-top: 12px; padding: 24px 20px; border-radius: 13px; }
  .policy-document > section { padding: 23px 0; }
  .policy-document h2 { font-size: 22px; }
  .policy-document p, .policy-document li { font-size: 10px; }
}

/* RoomCurve Rate Tape */
.rate-tape-hero {
  position: relative; overflow: hidden; min-height: 350px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, .55fr); align-items: center; gap: 54px;
  padding: 48px; border: 1px solid rgba(210, 184, 122, .22); border-radius: 20px;
  background: radial-gradient(circle at 80% 22%, rgba(210, 184, 122, .18), transparent 22rem), linear-gradient(135deg, #172944, #0c1525 72%); color: #fff;
  box-shadow: var(--shadow-lg);
}
.rate-tape-hero::after { content: "≈"; position: absolute; right: 25px; bottom: -104px; color: rgba(210, 184, 122, .055); font: 280px/1 Georgia, serif; pointer-events: none; }
.rate-tape-hero > * { position: relative; z-index: 1; }
.rate-tape-hero .eyebrow { color: var(--brass-light); }
.rate-tape-hero h1 { max-width: 760px; margin-top: 9px; font-size: clamp(42px, 5vw, 67px); font-weight: 400; letter-spacing: -.04em; }
.rate-tape-hero p { max-width: 760px; margin: 18px 0 25px; color: #c1cad7; font-size: 14px; line-height: 1.7; }
.rate-tape-state { display: flex; align-items: center; gap: 12px; color: #aeb8c6; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .09em; }
.rate-tape-hero aside { display: grid; gap: 12px; padding: 22px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(5, 13, 25, .28); backdrop-filter: blur(16px); }
.rate-progress-label { display: flex; align-items: baseline; justify-content: space-between; color: #a5b0bf; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.rate-progress-label b { color: #fff4d8; font: 31px Georgia, serif; letter-spacing: -.04em; }
.rate-progress, .lane-progress { overflow: hidden; height: 5px; border-radius: 100px; background: rgba(255,255,255,.11); }
.rate-progress i, .lane-progress i { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--brass), #e6cf95); }
.rate-tape-hero aside strong { color: #e7eaf0; font: 17px Georgia, serif; }
.rate-tape-hero aside small { color: #9eabba; font-size: 12px; line-height: 1.55; }
.rate-boundary { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin: 14px 0; padding: 13px 16px; border: 1px solid #d9c28c; border-radius: 11px; background: #f8f1df; box-shadow: inset 3px 0 var(--brass); }
.rate-boundary > span { color: #7c6029; font: 24px Georgia, serif; }
.rate-boundary b { color: #4b4234; font-size: 13px; }
.rate-boundary p { margin: 4px 0 0; color: #756b5c; font-size: 12px; line-height: 1.5; }
.rate-boundary button { border: 0; background: none; color: #775b26; font-size: 12px; font-weight: 800; }
.rate-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-bottom: 28px; }
.rate-stat-grid article { min-height: 104px; display: grid; align-content: center; gap: 4px; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,253,248,.85); box-shadow: var(--shadow-sm); }
.rate-stat-grid small, .rate-stat-grid span { color: var(--slate); font-size: 7px; text-transform: uppercase; letter-spacing: .1em; }
.rate-stat-grid strong { overflow: hidden; color: var(--navy); font: 23px Georgia, serif; text-overflow: ellipsis; white-space: nowrap; }
.rate-section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin: 34px 0 14px; }
.rate-section-head h2 { margin: 7px 0 5px; color: var(--ink); font-size: 31px; font-weight: 400; letter-spacing: -.02em; }
.rate-section-head p { margin: 0; color: var(--slate); font-size: 12px; line-height: 1.55; }
.rate-section-head > span { color: #8992a0; font-size: 8px; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; }
.rate-lane-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rate-lane-card { position: relative; overflow: hidden; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(155deg, #fffdf8, #f7f3eb); box-shadow: var(--shadow-sm); }
.rate-lane-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, var(--brass), transparent 70%); }
.rate-lane-card > div:first-child { display: flex; align-items: center; justify-content: space-between; color: #7f8998; font-size: 7px; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; }
.rate-lane-card > div:first-child b { padding: 5px 8px; border-radius: 100px; background: #eee5d1; color: #765a26; font-size: 7px; }
.rate-lane-card h3 { margin-top: 18px; color: var(--navy); font-size: 25px; font-weight: 400; }
.rate-lane-card > p { margin: 6px 0 9px; color: var(--slate); font-size: 12px; }
.rate-lane-card > p.lane-semantics { margin: 0 0 18px; color: #7a6a4b; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
.rate-lane-card dl { display: grid; gap: 9px; margin: 0 0 17px; }
.rate-lane-card dl div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid #e8e2d6; }
.rate-lane-card dt { color: #7b8593; font-size: 11px; }
.rate-lane-card dd { margin: 0; color: #2d384a; font-size: 12px; font-weight: 800; text-align: right; }
.lane-progress { background: #e9e2d4; }
.rate-lane-card > small { display: block; margin-top: 7px; color: #8a93a0; font-size: 7px; }
.rate-access-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rate-access-card { display: grid; align-content: start; min-height: 260px; padding: 19px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); box-shadow: var(--shadow-sm); }
.rate-access-card.allowed { border-color: #b9d2c8; box-shadow: inset 0 2px #5a9c85, var(--shadow-sm); }
.rate-access-card.blocked { box-shadow: inset 0 2px #b6904c, var(--shadow-sm); }
.rate-access-card > div { display: flex; justify-content: space-between; gap: 8px; color: #8a93a1; font-size: 7px; font-weight: 850; text-transform: uppercase; letter-spacing: .09em; }
.rate-access-card > div b { color: #735c31; text-align: right; }
.rate-access-card h3 { margin-top: 20px; color: var(--navy); font-size: 21px; font-weight: 400; }
.rate-access-card p { margin: 9px 0 14px; color: var(--slate); font-size: 12px; line-height: 1.6; }
.rate-access-card ul { display: grid; gap: 6px; margin: auto 0 16px; padding: 0; list-style: none; color: #626d7c; font-size: 11px; }
.rate-access-card li::before { content: "·"; margin-right: 7px; color: var(--brass); font-weight: 900; }
.rate-access-card a, .access-no-link { padding-top: 12px; border-top: 1px solid var(--line); color: #765a27; font-size: 11px; font-weight: 800; text-decoration: none; }
.chain-exposure-panel { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: center; gap: 38px; margin-top: 34px; padding: 31px; border: 1px solid #293853; border-radius: 17px; background: radial-gradient(circle at 88% 18%, rgba(210,184,122,.13), transparent 20rem), #111d31; color: #fff; box-shadow: var(--shadow-md); }
.chain-exposure-panel .eyebrow { color: var(--brass-light); }
.chain-exposure-panel h2 { margin-top: 7px; font-size: 32px; font-weight: 400; }
.chain-exposure-panel p { max-width: 780px; color: #b9c3d0; font-size: 12px; line-height: 1.7; }
.chain-exposure-panel aside { display: grid; gap: 8px; padding: 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 11px; background: rgba(0,0,0,.12); }
.chain-exposure-panel aside b { margin-bottom: 3px; color: var(--brass-light); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.chain-exposure-panel aside span { padding-bottom: 7px; border-bottom: 1px solid rgba(255,255,255,.08); color: #bdc6d2; font-size: 11px; }
.rate-signal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.rate-signal-grid > a { display: grid; gap: 7px; min-height: 125px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: inherit; text-decoration: none; box-shadow: var(--shadow-sm); transition: transform var(--motion-base) var(--ease-premium), box-shadow var(--motion-base); }
.rate-signal-grid > a:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.rate-signal-grid > a > span { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: #788291; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.rate-signal-grid b { color: var(--navy); font: 18px Georgia, serif; }
.rate-signal-grid small { color: var(--slate); font-size: 11px; }

@media (max-width: 1040px) {
  .rate-tape-hero { grid-template-columns: 1fr; gap: 26px; }
  .rate-tape-hero aside { max-width: 520px; }
  .rate-lane-grid, .rate-access-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .rate-tape-hero { min-height: 0; padding: 30px 22px; border-radius: 16px; }
  .rate-tape-hero::after { right: -15px; bottom: -62px; font-size: 190px; }
  .rate-tape-hero h1 { font-size: 42px; }
  .rate-tape-state { align-items: flex-start; flex-direction: column; }
  .rate-boundary { grid-template-columns: auto 1fr; }
  .rate-boundary button { grid-column: 2; justify-self: start; padding: 0; }
  .rate-stat-grid, .rate-lane-grid, .rate-access-grid, .rate-signal-grid { grid-template-columns: 1fr; }
  .rate-stat-grid { grid-template-columns: 1fr 1fr; }
  .rate-section-head { align-items: start; flex-direction: column; gap: 7px; }
  .rate-section-head h2 { font-size: 27px; }
  .chain-exposure-panel { grid-template-columns: 1fr; padding: 24px 21px; }
  .chain-exposure-panel h2 { font-size: 28px; }
}
