:root {
  color-scheme: dark;
  --bg: #070b0f;
  --panel: #0c1218;
  --panel-raised: #111922;
  --line: #1d2833;
  --line-soft: #151f28;
  --text: #f4f7fa;
  --muted: #7d8d9d;
  --muted-2: #526272;
  --lime: #c7f564;
  --lime-strong: #aee943;
  --green: #42d392;
  --red: #ff6978;
  --amber: #f7bf59;
  --radius: 10px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 82% -20%, rgba(199, 245, 100, .08), transparent 34%),
    var(--bg);
  font-size: 13px;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

.topbar {
  height: 58px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 240px 1fr auto;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 15, .92);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 16px; letter-spacing: .05em; }
.brand b { color: var(--lime); font-weight: 750; }
.brand-mark {
  width: 27px; height: 27px; display: flex; align-items: end; justify-content: center;
  gap: 2px; padding: 5px; border: 1px solid #2c3b40; border-radius: 7px;
  background: linear-gradient(145deg, #182229, #0b1015);
}
.brand-mark i { width: 3px; border-radius: 2px; background: var(--lime); transform: skew(-10deg); }
.brand-mark i:nth-child(1) { height: 8px; opacity: .6; }
.brand-mark i:nth-child(2) { height: 14px; }
.brand-mark i:nth-child(3) { height: 11px; opacity: .8; }
.primary-nav { display: flex; height: 100%; align-items: center; gap: 6px; }
.primary-nav a, .nav-button {
  height: 100%; padding: 0 16px; display: inline-flex; align-items: center;
  position: relative; border: 0; background: transparent; color: #9eadb9;
  cursor: pointer;
}
.primary-nav a:hover, .nav-button:hover, .primary-nav .active { color: white; }
.primary-nav .active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 0;
  height: 2px; border-radius: 2px; background: var(--lime);
}
.nav-button { color: var(--lime); }
.account-area { display: flex; align-items: center; gap: 12px; }
.connection-badge {
  display: inline-flex; align-items: center; gap: 7px; color: var(--muted);
  padding-right: 10px; border-right: 1px solid var(--line);
}
.connection-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px rgba(247, 191, 89, .5); }
.button {
  border: 1px solid transparent; border-radius: 6px; height: 36px; padding: 0 17px;
  display: inline-flex; justify-content: center; align-items: center; font-weight: 650;
  cursor: pointer;
}
.button-ghost { border-color: #3a4853; background: #111820; }
.button-ghost:hover { border-color: var(--lime); color: var(--lime); }
.button-primary { background: var(--lime); color: #11170b; }
.button-primary:hover { background: var(--lime-strong); }
.profile-button {
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel);
  display: flex; align-items: center; gap: 8px; padding: 5px 9px 5px 5px; cursor: pointer;
}
.avatar {
  width: 27px; height: 27px; display: grid; place-items: center; border-radius: 6px;
  background: var(--lime); color: #151b0e; font-weight: 800;
}

.terminal { min-height: calc(100vh - 86px); }
.market-strip {
  min-height: 70px; display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line); background: #090e13;
}
.market-strip article { padding: 11px 22px; border-right: 1px solid var(--line-soft); display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; }
.market-strip article > span { color: #aeb9c4; font-weight: 650; }
.market-strip article strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.market-strip article small { grid-column: 1 / 3; color: var(--muted-2); }
.market-strip .market-status strong { color: var(--lime); font-size: 13px; }

.workspace {
  height: calc(100vh - 156px); min-height: 620px; display: grid;
  grid-template-columns: 235px minmax(520px, 1fr) 310px; gap: 1px;
  background: var(--line);
}
.panel { background: var(--panel); }
.panel-heading {
  height: 64px; padding: 13px 14px; display: flex; align-items: center;
  justify-content: space-between; border-bottom: 1px solid var(--line-soft);
}
.panel-heading.compact { height: 44px; padding: 0 13px; }
.panel-heading h2 { margin: 1px 0 0; font-size: 14px; }
.panel-heading.compact h2 { margin: 0; }
.panel-heading.compact span { color: var(--muted); font-size: 11px; }
.eyebrow { color: var(--lime); font-size: 9px; letter-spacing: .18em; font-weight: 750; }
.icon-button {
  width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 5px;
  background: #111820; color: var(--muted); cursor: pointer; font-size: 18px;
}
.market-tabs { height: 40px; padding: 0 12px; display: flex; gap: 3px; align-items: end; border-bottom: 1px solid var(--line-soft); }
.market-tabs button, .chart-tools button, .bottom-tabs button {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
}
.market-tabs button { padding: 10px 9px 8px; border-bottom: 2px solid transparent; }
.market-tabs button.active { color: white; border-color: var(--lime); }
.table-head {
  height: 32px; padding: 0 12px; display: grid; grid-template-columns: 1.3fr 1fr .7fr;
  align-items: center; color: var(--muted-2); font-size: 10px;
}
.table-head span:not(:first-child) { text-align: right; }
.market-row {
  width: 100%; height: 47px; padding: 0 11px; border: 0; border-left: 2px solid transparent;
  display: grid; grid-template-columns: 1.3fr 1fr .7fr; align-items: center;
  background: transparent; cursor: pointer;
}
.market-row:hover { background: #111920; }
.market-row.selected { border-left-color: var(--lime); background: #111920; }
.market-row > span { display: flex; align-items: center; gap: 5px; }
.market-row i { font-style: normal; font-weight: 700; }
.market-row small { color: var(--muted-2); font-size: 9px; }
.market-row strong, .market-row em { text-align: right; color: var(--muted); font-style: normal; }
.asset-icon {
  width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%;
  font-size: 11px; font-style: normal;
}
.bitcoin { color: #1c1302; background: #f5a623; }
.ethereum { color: white; background: #627eea; }
.solana { color: #04120c; background: #42e7b5; }
.watchlist-empty { margin: 26px 16px; color: var(--muted-2); text-align: center; border: 1px dashed #23303a; border-radius: 8px; padding: 18px 12px; }
.watchlist-empty span { font-size: 18px; }
.watchlist-empty p { margin: 8px 0 0; font-size: 11px; line-height: 1.5; }

.chart-panel { min-width: 0; display: grid; grid-template-rows: 76px 38px minmax(270px, 1fr) 43px 125px; }
.instrument-header { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.instrument-title { display: flex; align-items: center; gap: 10px; }
.instrument-title .asset-icon { width: 31px; height: 31px; font-size: 16px; }
.instrument-title h1 { margin: 0 0 3px; font-size: 17px; }
.instrument-title span { color: var(--muted); font-size: 10px; }
.instrument-header dl { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 38px); margin: 0; }
.instrument-header dl div { display: flex; flex-direction: column; gap: 6px; }
.instrument-header dt { color: var(--muted-2); font-size: 9px; }
.instrument-header dd { margin: 0; color: #aab6c0; font-weight: 650; font-variant-numeric: tabular-nums; }
.chart-tools { display: flex; gap: 6px; align-items: center; padding: 0 11px; border-bottom: 1px solid var(--line-soft); }
.chart-tools button { font-size: 10px; padding: 5px 7px; }
.chart-tools button.active { color: var(--lime); }
.chart-tools .divider { height: 14px; border-left: 1px solid var(--line); }
.chart-canvas { position: relative; overflow: hidden; background: #090f14; }
.grid-lines {
  position: absolute; inset: 0; opacity: .52;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 100% 20%, 12.5% 100%;
}
.chart-canvas::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 50%; height: 70px;
  border-top: 1px solid rgba(199, 245, 100, .18); transform: rotate(-4deg) skewX(-25deg);
  border-radius: 50%; filter: blur(.2px);
}
.chart-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.pulse-ring { width: 42px; height: 42px; border: 1px solid #32402b; border-radius: 50%; position: relative; margin-bottom: 15px; }
.pulse-ring::after { content: ""; position: absolute; inset: 10px; border: 2px solid var(--lime); border-radius: 50%; box-shadow: 0 0 18px rgba(199, 245, 100, .35); }
.chart-placeholder h2 { margin: 0; font-size: 14px; }
.chart-placeholder p { margin: 8px 0 0; color: var(--muted); max-width: 370px; line-height: 1.5; font-size: 11px; }
.axis-labels { position: absolute; top: 10px; right: 10px; bottom: 10px; display: flex; flex-direction: column; justify-content: space-between; color: var(--muted-2); font-size: 9px; }
.bottom-tabs { display: flex; align-items: end; gap: 16px; padding: 0 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line-soft); }
.bottom-tabs button { height: 100%; border-bottom: 2px solid transparent; }
.bottom-tabs button.active { color: white; border-color: var(--lime); }
.bottom-tabs b { margin-left: 4px; padding: 1px 5px; border-radius: 5px; background: #1d2a21; color: var(--lime); font-size: 9px; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted-2); }
.empty-state > div { font-size: 20px; }
.empty-state p { margin: 7px 0 2px; font-size: 11px; }
.text-button { border: 0; background: transparent; color: var(--lime); cursor: pointer; font-size: 11px; }

.order-column { display: grid; grid-template-rows: minmax(225px, .75fr) minmax(390px, 1.25fr); gap: 1px; background: var(--line); }
.orderbook { display: grid; grid-template-rows: 44px 32px 1fr; }
.orderbook-empty { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 20px 15px; }
.orderbook-empty i { display: block; height: 6px; border-radius: 2px; background: linear-gradient(90deg, transparent 0 32%, #1a2a27 32% 100%); }
.orderbook-empty i:nth-child(2) { background: linear-gradient(90deg, transparent 0 45%, #1a2a27 45% 100%); }
.orderbook-empty i:nth-child(3) { background: linear-gradient(90deg, transparent 0 26%, #2b2024 26% 100%); }
.orderbook-empty i:nth-child(4) { background: linear-gradient(90deg, transparent 0 52%, #2b2024 52% 100%); }
.orderbook-empty i:nth-child(5) { background: linear-gradient(90deg, transparent 0 39%, #2b2024 39% 100%); }
.orderbook-empty span { text-align: center; color: var(--muted-2); font-size: 10px; margin-top: 7px; }
.order-ticket { padding: 0 14px 12px; }
.ticket-tabs { height: 44px; margin: 0 -14px 12px; padding: 0 14px; display: flex; gap: 20px; border-bottom: 1px solid var(--line-soft); }
.ticket-tabs button { border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); cursor: pointer; }
.ticket-tabs button.active { color: white; border-color: var(--lime); }
.side-toggle { height: 35px; padding: 3px; margin-bottom: 13px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; border-radius: 5px; background: #080d11; }
.side-toggle button { border: 0; border-radius: 4px; background: transparent; color: var(--muted); }
.side-toggle .buy.active { color: var(--green); background: #13231f; }
.order-ticket label { display: block; margin-bottom: 11px; color: var(--muted); font-size: 10px; }
.order-ticket select, .field { width: 100%; height: 35px; margin-top: 6px; border: 1px solid var(--line); border-radius: 5px; background: #080d11; color: #a0acb7; }
.order-ticket select { padding: 0 10px; }
.field { display: flex; align-items: center; }
.field input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: #a0acb7; padding: 0 10px; }
.field span { padding-right: 10px; color: var(--muted); }
.balance { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; margin: 3px 0 12px; }
.balance strong { color: #adb7c0; }
.ticket-login { width: 100%; }
.risk-note { color: var(--muted-2); line-height: 1.5; font-size: 9px; margin: 10px 2px 0; }
.risk-note span { color: var(--lime); }

.statusbar {
  height: 28px; padding: 0 14px; display: flex; align-items: center; gap: 18px;
  border-top: 1px solid var(--line); color: var(--muted-2); background: #070b0f;
  font-size: 10px;
}
.statusbar .status-message { margin-left: auto; color: var(--muted); }
.statusbar .status-message.error { color: var(--red); }
.status-dot { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--green); }
.status-dot.muted { background: var(--amber); }

.overlay { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(3, 6, 8, .78); backdrop-filter: blur(7px); }
.modal-open { overflow: hidden; }
.login-card {
  width: min(430px, 100%); position: relative; padding: 30px; border: 1px solid #2b393e;
  border-radius: 13px; background: linear-gradient(145deg, #121a21, #0a1015);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .52);
}
.close-button { position: absolute; right: 13px; top: 11px; border: 0; background: transparent; color: var(--muted); font-size: 24px; cursor: pointer; }
.login-mark { width: 42px; height: 42px; margin-bottom: 22px; padding: 9px; display: flex; align-items: end; justify-content: center; gap: 3px; border: 1px solid #36452f; border-radius: 10px; background: #131e16; }
.login-mark i { width: 4px; border-radius: 2px; background: var(--lime); }
.login-mark i:nth-child(1) { height: 10px; }
.login-mark i:nth-child(2) { height: 22px; }
.login-mark i:nth-child(3) { height: 16px; }
.login-card h2 { margin: 6px 0 8px; font-size: 23px; }
.login-intro { margin: 0 0 22px; color: var(--muted); line-height: 1.65; }
.login-method { min-height: 65px; margin-top: 9px; padding: 10px 12px; display: grid; grid-template-columns: 37px 1fr auto; gap: 11px; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: #0b1116; }
.login-method:hover { border-color: #56684c; background: #101912; }
.login-method.disabled { opacity: .45; cursor: not-allowed; }
.method-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 7px; background: #18231d; color: var(--lime); font-size: 16px; }
.method-icon.google { background: #f2f4f6; color: #3768da; font-weight: 800; }
.login-method span:nth-child(2) { display: flex; flex-direction: column; gap: 5px; }
.login-method small { color: var(--muted); }
.login-method > i { color: var(--muted); font-size: 20px; font-style: normal; }
.login-availability { margin-top: 17px; padding: 10px; display: flex; align-items: center; gap: 8px; border-radius: 6px; background: #161718; color: var(--amber); font-size: 11px; }
.login-availability i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.login-availability.ready { background: #102019; color: var(--green); }
.privacy-copy { margin: 14px 3px 0; color: var(--muted-2); font-size: 10px; text-align: center; }

.profile-menu {
  position: fixed; z-index: 15; top: 51px; right: 17px; width: 210px; padding: 8px;
  border: 1px solid var(--line); border-radius: 8px; background: #10171e;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .42);
}
.profile-menu > div { padding: 9px 10px 12px; display: flex; flex-direction: column; gap: 4px; border-bottom: 1px solid var(--line); }
.profile-menu small { color: var(--muted); }
.profile-menu a, .profile-menu button { width: 100%; min-height: 34px; padding: 0 10px; display: flex; align-items: center; border: 0; border-radius: 5px; background: transparent; color: #aeb9c3; font-size: 11px; cursor: pointer; }
.profile-menu a:hover, .profile-menu button:hover { background: #17212a; color: white; }
.profile-menu .danger { color: var(--red); }

.simple-page { min-height: 100vh; display: grid; place-items: center; padding: 22px; }
.simple-card { width: min(560px, 100%); padding: 42px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.simple-card .brand { margin-bottom: 48px; }
.simple-card h1 { margin: 8px 0 12px; font-size: 27px; }
.simple-card p { color: var(--muted); line-height: 1.7; }
.inline-button { margin-top: 18px; }
.status-symbol { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #544831; border-radius: 50%; color: var(--amber); font-size: 20px; }

.autotp-page { min-height: 100vh; padding-bottom: 48px; }
.autotp-topbar {
  min-height: 62px; padding: 0 24px; display: grid;
  grid-template-columns: 240px 1fr auto; align-items: center;
  border-bottom: 1px solid var(--line); background: rgba(7, 11, 15, .94);
}
.autotp-nav { height: 62px; display: flex; align-items: stretch; gap: 4px; }
.autotp-nav a {
  padding: 0 15px; display: inline-flex; align-items: center; position: relative;
  color: var(--muted);
}
.autotp-nav a:hover, .autotp-nav a.active { color: var(--text); }
.autotp-nav a.active::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 0;
  height: 2px; background: var(--lime); border-radius: 2px;
}
.autotp-user { display: flex; align-items: center; gap: 9px; }
.autotp-user > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.autotp-user strong { font-size: 11px; }
.autotp-user small { color: var(--muted); font-size: 9px; }
.autotp-shell { width: min(1380px, calc(100% - 40px)); margin: 0 auto; padding: 32px 0 42px; }
.autotp-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.autotp-heading h1 { margin: 7px 0 8px; font-size: 28px; letter-spacing: -.02em; }
.autotp-heading p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.6; }
.autotp-account-picker { width: min(310px, 100%); color: var(--muted); font-size: 10px; }
.autotp-account-picker select,
.autotp-fields select,
.autotp-symbol-actions input {
  width: 100%; height: 38px; margin-top: 7px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 6px;
  background: #080d11; color: #83919d;
}
.autotp-blocked {
  margin-top: 24px; padding: 17px 18px; display: grid;
  grid-template-columns: 38px 1fr auto; gap: 13px; align-items: center;
  border: 1px solid #574524; border-radius: 9px;
  background: linear-gradient(90deg, rgba(247, 191, 89, .1), rgba(247, 191, 89, .025));
}
.autotp-blocked-icon {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid #6a542b; border-radius: 50%; color: var(--amber); font-weight: 800;
}
.autotp-blocked strong { font-size: 13px; }
.autotp-blocked p { margin: 4px 0 0; color: #ad9c7d; font-size: 11px; line-height: 1.55; }
.autotp-state-pill {
  padding: 5px 8px; border: 1px solid #705a2f; border-radius: 5px;
  color: var(--amber); font-size: 9px; font-weight: 800; letter-spacing: .08em;
}
.autotp-summary {
  margin: 16px 0; display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: 9px; overflow: hidden;
}
.autotp-summary article { min-height: 104px; padding: 18px; background: var(--panel); border-right: 1px solid var(--line); }
.autotp-summary article:last-child { border-right: 0; }
.autotp-summary span { display: block; color: var(--muted); font-size: 10px; }
.autotp-summary strong { display: block; margin: 10px 0 6px; color: var(--amber); font-size: 17px; }
.autotp-summary small { color: var(--muted-2); line-height: 1.45; }
.autotp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; }
.autotp-panel { border: 1px solid var(--line); border-radius: 9px; background: var(--panel); overflow: hidden; }
.autotp-panel-heading {
  min-height: 74px; padding: 17px 19px; display: flex; align-items: center;
  justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line-soft);
}
.autotp-panel-heading h2, .autotp-boundary h2 { margin: 5px 0 0; font-size: 15px; }
.autotp-panel-heading p:not(.eyebrow) { margin: 6px 0 0; color: var(--muted); font-size: 10px; }
.autotp-toggle { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.autotp-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.autotp-toggle > span { width: 34px; height: 18px; padding: 2px; border: 1px solid #33404a; border-radius: 12px; background: #090e13; }
.autotp-toggle > span::after { content: ""; display: block; width: 12px; height: 12px; border-radius: 50%; background: #55616c; }
.autotp-fields { padding: 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.autotp-fields label { color: var(--muted); font-size: 10px; }
.autotp-input { height: 38px; margin-top: 7px; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; background: #080d11; }
.autotp-input input { min-width: 0; width: 100%; padding: 0 11px; border: 0; outline: 0; background: transparent; color: #83919d; }
.autotp-input i { padding-right: 11px; color: var(--muted-2); font-style: normal; }
.autotp-panel-actions { padding: 0 20px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.autotp-panel-actions p { margin: 0; color: var(--muted-2); font-size: 10px; }
.autotp-page button:disabled,
.autotp-page input:disabled,
.autotp-page select:disabled { cursor: not-allowed; opacity: .55; }
.autotp-boundary { padding: 19px; }
.autotp-boundary ul { margin: 17px 0; padding: 0; list-style: none; }
.autotp-boundary li { padding: 10px 0; display: grid; grid-template-columns: 22px 1fr; gap: 8px; border-bottom: 1px solid var(--line-soft); }
.autotp-boundary li > i { color: var(--amber); font-style: normal; }
.autotp-boundary li > i.ok { color: var(--green); }
.autotp-boundary li span { display: flex; flex-direction: column; gap: 3px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.autotp-boundary li strong { color: #c2ccd5; font-size: 11px; }
.autotp-boundary-note { margin: 0; color: var(--muted-2); font-size: 10px; line-height: 1.65; }
.autotp-symbols { margin-top: 16px; }
.autotp-symbol-actions { display: flex; align-items: center; gap: 8px; }
.autotp-symbol-actions input { width: 230px; margin: 0; }
.autotp-table-wrap { overflow-x: auto; }
.autotp-symbols table { width: 100%; min-width: 760px; border-collapse: collapse; }
.autotp-symbols th { height: 40px; padding: 0 16px; text-align: left; color: var(--muted-2); font-size: 9px; font-weight: 650; border-bottom: 1px solid var(--line-soft); }
.autotp-empty-row td { height: 180px; text-align: center; color: var(--muted); }
.autotp-empty-row td > span, .autotp-empty-row td > strong, .autotp-empty-row td > small { display: block; }
.autotp-empty-row td > span { margin-bottom: 10px; color: var(--muted-2); font-size: 21px; }
.autotp-empty-row td > small { margin: 7px 0 8px; color: var(--muted-2); }
.autotp-footer {
  position: fixed; left: 0; right: 0; bottom: 0; height: 32px; padding: 0 22px;
  display: flex; align-items: center; gap: 20px; border-top: 1px solid var(--line);
  background: #070b0f; color: var(--muted); font-size: 9px;
}
.autotp-footer a { margin-left: auto; color: var(--lime); }

@media (max-width: 1050px) {
  .topbar { grid-template-columns: 180px 1fr auto; }
  .primary-nav a { padding: 0 9px; }
  .workspace { grid-template-columns: 190px minmax(440px, 1fr) 280px; }
  .instrument-header dl div:nth-child(n+4) { display: none; }
  .connection-badge { display: none; }
  .autotp-topbar { grid-template-columns: 190px 1fr auto; }
  .autotp-fields { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .topbar { grid-template-columns: 1fr auto; }
  .primary-nav { order: 3; position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; height: 52px; justify-content: space-around; background: #0a1015; border-top: 1px solid var(--line); }
  .primary-nav a, .nav-button { height: 100%; padding: 0 7px; font-size: 11px; }
  .primary-nav a:nth-child(3) { display: none; }
  .market-strip { grid-template-columns: 1fr 1fr; }
  .market-strip article:nth-child(2), .market-strip article:nth-child(3) { display: none; }
  .workspace { height: auto; min-height: 0; display: block; }
  .watchlist { display: none; }
  .chart-panel { min-height: 610px; grid-template-rows: 82px 38px 330px 43px 115px; }
  .instrument-header dl div:nth-child(n+3) { display: none; }
  .order-column { min-height: 610px; grid-template-rows: 250px 390px; }
  .statusbar { display: none; }
  .terminal { padding-bottom: 52px; }
  .autotp-page { padding-bottom: 0; }
  .autotp-topbar { padding: 12px 16px; grid-template-columns: 1fr auto; gap: 12px; }
  .autotp-nav { grid-column: 1 / -1; height: 40px; order: 3; }
  .autotp-nav a { padding: 0 10px; }
  .autotp-shell { width: min(100% - 24px, 1380px); padding-top: 22px; }
  .autotp-heading { display: block; }
  .autotp-account-picker { display: block; margin-top: 18px; }
  .autotp-blocked { grid-template-columns: 34px 1fr; }
  .autotp-state-pill { grid-column: 2; justify-self: start; }
  .autotp-summary { grid-template-columns: 1fr 1fr; }
  .autotp-summary article:nth-child(2) { border-right: 0; }
  .autotp-summary article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .autotp-grid { grid-template-columns: 1fr; }
  .autotp-fields { grid-template-columns: 1fr 1fr; }
  .autotp-panel-heading { align-items: flex-start; flex-direction: column; }
  .autotp-symbol-actions { width: 100%; }
  .autotp-symbol-actions input { width: 100%; }
  .autotp-footer { position: static; }
}
@media (max-width: 520px) {
  .autotp-user > span:last-child { display: none; }
  .autotp-summary { grid-template-columns: 1fr; }
  .autotp-summary article { border-right: 0; border-bottom: 1px solid var(--line); }
  .autotp-summary article:last-child { border-bottom: 0; }
  .autotp-fields { grid-template-columns: 1fr; }
  .autotp-panel-actions, .autotp-symbol-actions { align-items: stretch; flex-direction: column; }
}

/* DMA Trader 公开首页与行情中心（2026-07 商业化版） */
:root {
  --public-bg: #07101d;
  --public-bg-soft: #0a1524;
  --public-panel: rgba(13, 26, 43, .88);
  --public-panel-solid: #0e1b2b;
  --public-line: rgba(129, 154, 184, .16);
  --public-line-strong: rgba(129, 154, 184, .27);
  --public-text: #f4f8fc;
  --public-muted: #8da0b8;
  --public-accent: #8df05c;
  --public-accent-strong: #72dc42;
  --public-blue: #55a8ff;
  --public-warm: #f1c567;
  --public-red: #ff7185;
  --public-green: #49d89a;
  --public-radius: 16px;
}

.public-shell {
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--public-text);
  background:
    linear-gradient(rgba(255, 255, 255, .017) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .017) 1px, transparent 1px),
    radial-gradient(circle at 85% 0%, rgba(58, 125, 255, .13), transparent 28rem),
    radial-gradient(circle at 10% 22%, rgba(141, 240, 92, .07), transparent 25rem),
    var(--public-bg);
  background-size: 40px 40px, 40px 40px, auto, auto, auto;
  font-size: 14px;
}

.public-shell::selection { color: #07101d; background: var(--public-accent); }
.public-shell [hidden] { display: none !important; }
.reset-button { width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.visually-hidden {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}
.ambient { position: fixed; z-index: -1; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.ambient-one { width: 320px; height: 320px; top: 24%; left: -190px; background: rgba(141, 240, 92, .055); }
.ambient-two { width: 420px; height: 420px; top: 55%; right: -260px; background: rgba(85, 168, 255, .065); }

.public-topbar {
  position: sticky; z-index: 30; top: 0; height: 56px; padding: 0 18px;
  display: grid; grid-template-columns: auto minmax(430px, 1fr) minmax(220px, 360px) auto;
  align-items: center; gap: 18px; border-bottom: 1px solid var(--public-line);
  background: rgba(7, 16, 29, .88); backdrop-filter: blur(22px) saturate(135%);
}
.public-brand { display: flex; align-items: center; gap: 10px; }
.public-brand .brand-mark { width: 31px; height: 31px; border-color: rgba(141, 240, 92, .25); }
.public-brand > span:last-child { display: flex; align-items: baseline; gap: 5px; }
.public-brand strong { color: var(--public-text); font-size: 16px; letter-spacing: .08em; }
.public-brand small { color: var(--public-accent); font-size: 9px; letter-spacing: .18em; font-weight: 800; }
.public-nav { height: 100%; display: flex; align-items: center; gap: 4px; }
.public-nav a, .public-nav .nav-action {
  position: relative; height: 100%; padding: 0 14px; display: inline-flex; align-items: center;
  gap: 6px; border: 0; background: none; color: var(--public-muted); cursor: pointer;
  font-weight: 600; white-space: nowrap;
}
.public-nav a:hover, .public-nav .nav-action:hover, .public-nav [aria-current="page"] { color: var(--public-text); }
.public-nav [aria-current="page"]::after {
  content: ""; position: absolute; right: 14px; bottom: -1px; left: 14px; height: 2px;
  border-radius: 3px 3px 0 0; background: var(--public-accent);
  box-shadow: 0 0 12px rgba(141, 240, 92, .45);
}
.tradfi-nav-link > span {
  padding: 2px 5px; border: 1px solid rgba(241, 197, 103, .3); border-radius: 999px;
  color: var(--public-warm); font-size: 8px; letter-spacing: .05em;
}
.tradfi-nav-link > b { font: inherit; }
.global-search {
  position: relative;
  height: 38px; padding: 0 10px; display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--public-line); border-radius: 10px; background: rgba(11, 24, 40, .82);
  transition: border-color .2s, box-shadow .2s;
}
.global-search:focus-within { border-color: rgba(141, 240, 92, .55); box-shadow: 0 0 0 3px rgba(141, 240, 92, .08); }
.global-search svg, .workbench-search svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; color: #71849b; }
.global-search input, .workbench-search input {
  min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--public-text);
}
.global-search input::placeholder, .workbench-search input::placeholder { color: #61758d; }
.global-search kbd {
  padding: 1px 5px; border: 1px solid var(--public-line-strong); border-radius: 4px;
  color: #6e8198; background: #0d1a2a; font: 9px ui-monospace, monospace;
}
.global-search-results {
  position: absolute;
  z-index: 70;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  max-height: min(430px, calc(100vh - 90px));
  padding: 5px;
  overflow-y: auto;
  border: 1px solid #26384a;
  border-radius: 9px;
  background: rgba(7, 17, 28, .985);
  box-shadow: 0 20px 54px rgba(0, 0, 0, .46);
}
.global-search-results button {
  width: 100%;
  min-height: 48px;
  padding: 7px 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 8ch;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #8095aa;
  text-align: left;
  cursor: pointer;
}
.global-search-results button:hover,
.global-search-results button[aria-selected="true"] { background: rgba(141, 240, 92, .07); }
.global-search-results button span { min-width: 0; }
.global-search-results button strong,
.global-search-results button small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.global-search-results button strong { color: #dce7f1; font-size: 10px; }
.global-search-results button small,
.global-search-results button em { margin-top: 3px; color: #62778c; font-size: 8px; font-style: normal; }
.global-search-results button b {
  min-width: 8ch;
  text-align: right;
  font: 700 9px ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
}
.global-search-empty { padding: 13px 10px; color: #71869b; font-size: 9px; }
.public-topbar .account-area { position: relative; gap: 8px; }
.compact { height: 34px; padding: 0 13px; font-size: 12px; }
.avatar-button {
  width: 34px; height: 34px; border: 1px solid rgba(141, 240, 92, .32);
  border-radius: 9px; background: rgba(141, 240, 92, .09); color: var(--public-accent);
  font-weight: 800; cursor: pointer;
}
.public-shell .profile-menu {
  z-index: 45; right: 17px; top: 59px; width: 190px; padding: 11px;
  border-color: var(--public-line-strong); border-radius: 12px; background: #0c1929;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .35);
}
.public-shell .profile-menu strong, .public-shell .profile-menu small { display: block; padding: 0 8px; }
.public-shell .profile-menu small { margin: 4px 0 10px; }

.market-ribbon {
  min-height: 38px; padding: 0 3.2vw; display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: 20px; border-bottom: 1px solid var(--public-line);
  background: rgba(8, 19, 33, .92); color: var(--public-muted); font-size: 11px;
}
.market-ribbon-track { min-width: 0; display: flex; align-items: center; gap: clamp(16px, 2.8vw, 42px); overflow: hidden; }
.ribbon-item { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; }
.ribbon-item b { color: #dce8f4; font-size: 11px; }
.ribbon-item strong, .ribbon-item em {
  min-width: 9ch; text-align: right; font: 600 11px ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums; font-style: normal;
}
.ribbon-status { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #6f7c8d; }
.live-dot.live { background: var(--public-green); box-shadow: 0 0 9px rgba(73, 216, 154, .65); }
.live-dot.stale { background: var(--public-warm); box-shadow: 0 0 9px rgba(241, 197, 103, .55); }
.ribbon-loading { color: #687d95; }

.public-main { width: min(1380px, calc(100% - 6.4vw)); margin: 0 auto; padding: 70px 0 80px; }
body[data-public-page="markets"] .public-main,
body[data-public-page="tradfi"] .public-main,
body[data-public-page="settings"] .public-main { padding-top: 18px; }
.panel {
  border: 1px solid var(--public-line); border-radius: var(--public-radius);
  background: linear-gradient(145deg, rgba(15, 30, 49, .92), rgba(10, 22, 38, .88));
  box-shadow: 0 18px 55px rgba(0, 0, 0, .13);
}
.home-hero { min-height: 500px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr); gap: clamp(36px, 6vw, 90px); align-items: center; }
.hero-copy { padding: 30px 0 50px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--public-muted); font-size: 10px; letter-spacing: .13em; }
.eyebrow span { color: var(--public-accent); font-weight: 850; }
.eyebrow.warm span { color: var(--public-warm); }
.hero-copy h1, .page-hero h1 {
  margin: 20px 0 22px; max-width: 780px; font-size: clamp(44px, 5.2vw, 72px);
  line-height: 1.04; letter-spacing: -.055em; font-weight: 780;
}
.hero-copy h1 em { color: var(--public-accent); font-style: normal; }
.hero-copy > p, .page-hero > div > p {
  max-width: 640px; margin: 0; color: #99abc0; font-size: 16px; line-height: 1.8;
}
.hero-actions { margin-top: 32px; display: flex; gap: 12px; }
.button-large { height: 46px; padding: 0 22px; border-radius: 9px; }
.button-secondary { border-color: var(--public-line-strong); background: rgba(15, 31, 51, .78); color: #dce8f4; }
.button-secondary:hover { border-color: rgba(141, 240, 92, .46); color: var(--public-accent); }
.public-shell .button-primary { background: var(--public-accent); color: #07110c; box-shadow: 0 7px 24px rgba(141, 240, 92, .1); }
.public-shell .button-primary:hover { background: var(--public-accent-strong); }
.hero-trust { margin-top: 25px; display: flex; flex-wrap: wrap; gap: 17px; color: #71869d; font-size: 11px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust-icon { color: var(--public-accent); font-style: normal; }

.hero-pulse { padding: 24px; overflow: hidden; }
.public-shell .panel-heading { height: auto; padding: 0 0 20px; border: 0; }
.panel-heading h2, .section-heading h2, .tradfi-preview h2, .ai-entry h2, .tradfi-workbench h2 {
  margin: 5px 0 0; font-size: 23px; letter-spacing: -.025em;
}
.section-kicker { color: var(--public-accent); font-size: 9px; letter-spacing: .18em; font-weight: 850; }
.section-kicker.gold { color: var(--public-warm); }
.data-badge {
  padding: 5px 9px; border: 1px solid var(--public-line); border-radius: 999px;
  color: #8195ac; background: rgba(8, 18, 31, .7); font-size: 9px;
}
.data-badge.live { border-color: rgba(73, 216, 154, .25); color: var(--public-green); }
.data-badge.stale { border-color: rgba(241, 197, 103, .28); color: var(--public-warm); }
.pulse-overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.overview-cell { min-width: 0; padding: 14px; border: 1px solid var(--public-line); border-radius: 11px; background: rgba(6, 16, 29, .54); }
.overview-cell span, .overview-cell small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.overview-cell span { color: #8195ac; font-size: 9px; }
.overview-cell strong {
  min-width: 7ch; display: block; margin: 8px 0 4px; color: #eaf2fa;
  font: 700 17px ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
}
.overview-cell small { color: #687e95; font-size: 9px; }
.pulse-majors { margin-top: 16px; }
.major-row {
  min-height: 50px; display: grid; grid-template-columns: minmax(90px, 1fr) 12ch 9ch;
  align-items: center; gap: 12px; border-bottom: 1px solid var(--public-line);
}
.major-row:last-child { border-bottom: 0; }
.symbol-lockup { min-width: 0; display: flex; align-items: center; gap: 10px; }
.symbol-avatar {
  flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 9px; background: linear-gradient(145deg, #20334b, #122237);
  color: var(--public-accent); font-size: 10px; font-weight: 850;
}
.symbol-lockup strong, .symbol-lockup small { display: block; }
.symbol-lockup small { margin-top: 2px; color: #6f8399; font-size: 9px; }
.major-price, .major-change, .numeric {
  text-align: right; font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.major-price { min-width: 11ch; color: #e6edf5; font-size: 11px; }
.major-change { min-width: 8ch; font-size: 11px; font-weight: 750; }
.positive { color: var(--public-green) !important; }
.negative { color: var(--public-red) !important; }
.neutral { color: #91a2b5 !important; }
.panel-link {
  margin: 14px -24px -24px; padding: 15px 24px; display: flex; justify-content: space-between;
  border-top: 1px solid var(--public-line); color: #8ba0b7; font-size: 11px;
}
.panel-link:hover { color: var(--public-accent); background: rgba(141, 240, 92, .025); }
.skeleton-line { height: 38px; border-radius: 8px; background: linear-gradient(90deg, #122238, #1a304c, #122238); background-size: 200% 100%; animation: shimmer 1.6s infinite; }
.skeleton-line.tall { height: 72px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.ai-entry {
  min-height: 112px; margin: 32px 0 88px; padding: 20px 24px; display: grid;
  grid-template-columns: auto minmax(250px, .8fr) minmax(380px, 1.2fr); align-items: center; gap: 20px;
  border-color: rgba(85, 168, 255, .22);
  background: linear-gradient(120deg, rgba(27, 46, 78, .78), rgba(12, 25, 43, .9));
}
.ai-orb, .ai-dialog-orb {
  position: relative; width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 50%; background: conic-gradient(from 20deg, var(--public-blue), var(--public-accent), #8a72ff, var(--public-blue));
  box-shadow: 0 0 35px rgba(85, 168, 255, .2);
}
.ai-orb::before, .ai-dialog-orb::before { content: ""; position: absolute; inset: 4px; border-radius: inherit; background: #0d1d31; }
.ai-orb span, .ai-dialog-orb span { z-index: 1; width: 17px; height: 17px; border: 2px solid #9ed4ff; border-radius: 48% 52% 45% 55%; animation: aiPulse 3s ease-in-out infinite; }
@keyframes aiPulse { 50% { transform: scale(.75) rotate(60deg); border-color: var(--public-accent); } }
.ai-entry-copy h2 { font-size: 18px; }
.ai-entry-copy p { margin: 7px 0 0; color: #7f94ab; font-size: 10px; line-height: 1.5; }
.ai-composer {
  height: 50px; padding: 0 6px 0 16px; display: flex; align-items: center; gap: 8px;
  border: 1px solid rgba(116, 160, 209, .24); border-radius: 13px; background: rgba(6, 16, 29, .65);
}
.ai-composer input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--public-text); }
.voice-button, .ai-send {
  flex: 0 0 auto; border: 0; display: grid; place-items: center; cursor: pointer;
}
.voice-button { width: 32px; height: 32px; border-radius: 9px; background: rgba(85, 168, 255, .1); color: #8fc9ff; }
.voice-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ai-send { width: 38px; height: 38px; border-radius: 10px; background: var(--public-accent); color: #07110c; font-size: 18px; }

.section-block { margin: 0 0 88px; }
.section-heading { margin-bottom: 24px; display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.section-heading p { margin: 8px 0 0; color: var(--public-muted); font-size: 11px; }
.text-link { color: var(--public-accent); font-size: 11px; }
.leaderboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.leaderboard-card { padding: 18px; }
.leaderboard-title { margin-bottom: 8px; display: flex; align-items: center; gap: 9px; }
.leaderboard-title h3 { margin: 0; font-size: 13px; }
.rank-icon { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: rgba(73, 216, 154, .08); }
.rank-icon.negative { background: rgba(255, 113, 133, .08); }
.rank-icon.active { color: var(--public-blue); background: rgba(85, 168, 255, .09); }
.rank-row {
  min-height: 52px; display: grid; grid-template-columns: 25px minmax(86px, 1fr) 11ch 8ch;
  align-items: center; gap: 8px; border-bottom: 1px solid var(--public-line);
}
.rank-row:last-child { border-bottom: 0; }
.rank-number { color: #536b84; font: 700 10px ui-monospace, monospace; }
.rank-symbol strong, .rank-symbol small { display: block; }
.rank-symbol strong { font-size: 11px; }
.rank-symbol small { margin-top: 2px; color: #647990; font-size: 8px; }
.rank-price { min-width: 10ch; color: #aebed0; font: 10px ui-monospace, monospace; text-align: right; font-variant-numeric: tabular-nums; }
.rank-change { min-width: 7ch; text-align: right; font: 750 10px ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.list-loading, .empty-inline { padding: 28px 5px; color: #667c94; text-align: center; font-size: 10px; }

.tradfi-preview {
  min-height: 370px; margin-bottom: 88px; padding: 42px; display: grid;
  grid-template-columns: minmax(330px, .82fr) minmax(440px, 1.18fr); gap: 60px;
  border-color: rgba(241, 197, 103, .18);
  background:
    radial-gradient(circle at 85% 25%, rgba(241, 197, 103, .08), transparent 18rem),
    linear-gradient(145deg, rgba(25, 30, 39, .95), rgba(10, 22, 37, .93));
}
.tradfi-preview-copy { align-self: center; }
.tradfi-preview h2 { margin-top: 12px; font-size: 30px; }
.tradfi-preview-copy > p { margin: 16px 0 24px; color: #91a2b4; font-size: 12px; line-height: 1.8; }
.tradfi-stats { margin-bottom: 26px; display: flex; gap: 25px; }
.tradfi-stats span { color: #718398; font-size: 9px; }
.tradfi-stats strong { display: block; margin-bottom: 5px; color: var(--public-warm); font: 750 19px ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.button-warm { background: var(--public-warm); color: #1a160c; }
.button-warm:hover { background: #ffd783; }
.tradfi-preview-list { align-self: center; }
.tradfi-preview-row {
  min-height: 70px; margin-bottom: 9px; padding: 12px 14px; display: grid;
  grid-template-columns: minmax(160px, 1fr) 110px 12ch 8ch; align-items: center; gap: 12px;
  border: 1px solid rgba(241, 197, 103, .12); border-radius: 12px; background: rgba(8, 18, 29, .6);
}
.tradfi-preview-row:hover { border-color: rgba(241, 197, 103, .28); }
.tradfi-name strong, .tradfi-name small { display: block; }
.tradfi-name strong { font-size: 11px; }
.tradfi-name small { margin-top: 5px; color: #70839a; font-size: 8px; }
.class-pill, .exposure-pill {
  width: fit-content; padding: 4px 7px; border: 1px solid rgba(241, 197, 103, .18);
  border-radius: 999px; color: #dcb96d; background: rgba(241, 197, 103, .06); font-size: 8px;
}
.tradfi-visual-placeholder { height: 250px; display: grid; place-items: center; align-content: center; gap: 12px; color: #6e7f93; }
.tradfi-visual-placeholder span { margin: 0 5px; padding: 5px 9px; border: 1px solid rgba(241, 197, 103, .13); border-radius: 99px; color: #9f894f; font-size: 8px; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.product-card {
  min-height: 128px; padding: 22px; display: grid; grid-template-columns: auto 1fr auto;
  align-items: start; gap: 14px; border: 1px solid var(--public-line); color: inherit;
  text-align: left; cursor: pointer;
}
.product-card:hover { transform: translateY(-2px); border-color: rgba(141, 240, 92, .3); }
.product-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; background: rgba(141, 240, 92, .07); color: var(--public-accent); }
.product-card h3 { margin: 1px 0 7px; font-size: 13px; }
.product-card p { margin: 0; color: #768ba2; font-size: 10px; line-height: 1.6; }
.product-card b { color: #5e758e; }

.page-hero {
  min-height: 144px; padding: 12px 0 16px; display: flex; align-items: center;
  justify-content: space-between; gap: 28px;
}
.page-hero > div:first-child { min-width: 0; }
.page-hero > div:first-child > p { max-width: 780px; margin: 8px 0 0; line-height: 1.65; }
.compact-hero h1, .tradfi-hero h1 { margin: 6px 0; font-size: clamp(30px, 3vw, 38px); }
.page-hero-actions { display: flex; gap: 10px; }
.market-workbench, .tradfi-workbench { overflow: hidden; }
.market-toolbar, .tradfi-toolbar {
  min-height: 76px; padding: 16px 18px; display: flex; align-items: center;
  justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--public-line);
}
.segmented, .tradfi-class-tabs { display: flex; align-items: center; gap: 5px; }
.segmented button, .tradfi-class-tabs button {
  min-height: 34px; padding: 0 12px; border: 1px solid transparent; border-radius: 8px;
  background: transparent; color: #71869e; cursor: pointer; font-size: 11px;
}
.segmented button[aria-pressed="true"], .tradfi-class-tabs button[aria-pressed="true"] {
  border-color: rgba(141, 240, 92, .22); background: rgba(141, 240, 92, .08); color: var(--public-accent);
}
.toolbar-controls { display: flex; align-items: center; gap: 9px; }
.workbench-search {
  width: 210px; height: 36px; padding: 0 10px; display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--public-line); border-radius: 9px; background: rgba(6, 16, 29, .65);
}
.select-control { color: #677d94; font-size: 9px; white-space: nowrap; }
.select-control select {
  height: 36px; margin-left: 5px; padding: 0 28px 0 9px; border: 1px solid var(--public-line);
  border-radius: 8px; outline: 0; background: #0b1929; color: #adc0d2; font-size: 10px;
}
.workbench-meta {
  min-height: 36px; padding: 0 18px; display: flex; justify-content: space-between;
  align-items: center; border-bottom: 1px solid var(--public-line); color: #687e96; font-size: 9px;
}
.market-table-wrap { overflow-x: auto; }
.market-table { width: 100%; min-width: 920px; border-collapse: collapse; table-layout: fixed; }
.market-table th {
  height: 42px; padding: 0 13px; color: #61768d; font-size: 9px; font-weight: 650;
  text-align: left; border-bottom: 1px solid var(--public-line);
}
.market-table th:nth-child(1) { width: 46px; }
.market-table th:nth-child(2) { width: 210px; }
.market-table th:nth-child(3) { width: 118px; }
.market-table th:nth-child(4) { width: 150px; }
.market-table th:nth-child(5), .market-table th:nth-child(6), .market-table th:nth-child(7) { width: 95px; }
.market-table th:nth-child(8) { width: 85px; }
.market-table th:nth-child(9) { width: 96px; }
.market-table td { height: 64px; padding: 0 13px; border-bottom: 1px solid var(--public-line); color: #a8bacb; font-size: 10px; }
.market-table tr:last-child td { border-bottom: 0; }
.market-table tbody tr:hover td { background: rgba(85, 168, 255, .025); }
.favorite-button {
  width: 28px; height: 28px; border: 0; background: none; color: #52677e; cursor: pointer; font-size: 16px;
}
.favorite-button.active { color: var(--public-warm); }
.market-product { display: flex; align-items: center; gap: 8px; color: #7890a8; }
.product-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--public-blue); }
.product-dot.spot { background: var(--public-accent); }
.price-cell { min-width: 13ch; color: #e2ebf4 !important; font-size: 11px !important; }
.change-cell { min-width: 8ch; font-weight: 700; }
.action-button { border: 0; background: transparent; color: var(--public-accent); cursor: pointer; font-size: 10px; }
.detail-button { margin-right: 10px; color: #78aee3; }
.table-state { min-height: 180px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #71869d; }
.spinner {
  width: 15px; height: 15px; display: inline-block; border: 2px solid #27405b; border-top-color: var(--public-accent);
  border-radius: 50%; animation: spin .85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.table-pagination {
  min-height: 54px; padding: 10px 18px; display: flex; align-items: center;
  justify-content: space-between; gap: 20px; border-top: 1px solid var(--public-line);
  color: #60768e; font-size: 9px;
}
.mobile-market-list { display: none; }

.tradfi-hero { min-height: 150px; }
.tradfi-boundary { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.tradfi-boundary span { padding: 5px 8px; border: 1px solid rgba(241, 197, 103, .19); border-radius: 7px; color: #c9ab68; background: rgba(241, 197, 103, .05); font-size: 8px; }
.tradfi-boundary small { color: #70849b; font-size: 9px; }
.tradfi-hero-metric {
  flex: 0 0 190px; min-height: 112px; padding: 17px 20px; display: flex; flex-direction: column;
  justify-content: center; border: 1px solid rgba(241, 197, 103, .18); border-radius: 13px;
  background: radial-gradient(circle at 50% 20%, rgba(241, 197, 103, .1), transparent 9rem), rgba(11, 23, 38, .78);
}
.tradfi-hero-metric span, .tradfi-hero-metric small { color: #74869a; font-size: 9px; }
.tradfi-hero-metric strong { margin: 5px 0; color: var(--public-warm); font: 800 30px ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.tradfi-toolbar h2 { font-size: 18px; }
.tradfi-class-tabs { padding: 12px 18px; overflow-x: auto; border-bottom: 1px solid var(--public-line); }
.tradfi-class-tabs button { flex: 0 0 auto; }
.tradfi-class-tabs button[aria-pressed="true"] { border-color: rgba(241, 197, 103, .22); background: rgba(241, 197, 103, .06); color: var(--public-warm); }
.tradfi-card-grid { min-height: 360px; padding: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tradfi-card {
  min-width: 0; min-height: 195px; padding: 18px; display: flex; flex-direction: column;
  border: 1px solid var(--public-line); border-radius: 13px; background: rgba(7, 18, 31, .55);
}
.tradfi-card:hover { border-color: rgba(241, 197, 103, .24); background: rgba(12, 25, 40, .8); }
.tradfi-card-head { display: flex; justify-content: space-between; gap: 12px; }
.tradfi-card-head .symbol-avatar { color: var(--public-warm); background: rgba(241, 197, 103, .08); }
.tradfi-card-head > span { color: #667d95; font-size: 8px; }
.tradfi-card h3 { margin: 16px 0 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.tradfi-card-sub { min-height: 28px; margin: 0; color: #71859d; font-size: 9px; line-height: 1.5; }
.tradfi-card-metrics { margin-top: auto; padding-top: 15px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; }
.tradfi-card-price span, .tradfi-card-change span { display: block; color: #60758d; font-size: 8px; }
.tradfi-card-price strong, .tradfi-card-change strong {
  min-width: 10ch; margin-top: 5px; display: block; font: 750 14px ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}
.tradfi-card-change { text-align: right; }
.tradfi-card-footer { margin-top: 13px; padding-top: 11px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--public-line); }
.tradfi-card-footer small { color: #5f748b; font-size: 8px; }
.tradfi-card-footer button { border: 0; background: none; color: var(--public-warm); font-size: 9px; cursor: pointer; }
.tradfi-product-tabs button[aria-pressed="true"] {
  border-color: rgba(241, 197, 103, .24);
  background: rgba(241, 197, 103, .07);
  color: var(--public-warm);
}
.tradfi-view-switch {
  height: 34px; padding: 3px; display: flex; align-items: center; gap: 2px;
  border: 1px solid var(--public-line); border-radius: 8px; background: rgba(6, 16, 29, .65);
}
.tradfi-view-switch button {
  height: 26px; padding: 0 9px; border: 0; border-radius: 6px;
  background: transparent; color: #687e95; cursor: pointer; font-size: 9px;
}
.tradfi-view-switch button[aria-pressed="true"] { color: #f5d58c; background: rgba(241, 197, 103, .1); }
.tradfi-heatmap {
  min-height: 520px; padding: 12px; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); grid-auto-rows: 82px; gap: 6px;
}
.tradfi-heat-tile {
  min-width: 0; padding: 10px; display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden; border: 1px solid rgba(218, 231, 241, .13); border-radius: 4px;
  color: #dce7f1; background: rgba(20, 34, 50, .76); text-align: left; cursor: pointer;
  transition: transform .15s, border-color .15s, filter .15s;
}
.tradfi-heat-tile:hover { z-index: 2; transform: scale(.985); border-color: rgba(255, 255, 255, .34); filter: brightness(1.15); }
.tradfi-heat-tile.positive.heat-level-0 { background: rgba(27, 75, 59, .48); }
.tradfi-heat-tile.positive.heat-level-1 { background: rgba(29, 101, 70, .58); }
.tradfi-heat-tile.positive.heat-level-2 { background: rgba(25, 126, 79, .67); }
.tradfi-heat-tile.positive.heat-level-3 { background: rgba(21, 151, 88, .76); }
.tradfi-heat-tile.positive.heat-level-4 { background: rgba(15, 176, 97, .84); }
.tradfi-heat-tile.positive.heat-level-5 { background: rgba(8, 198, 104, .92); }
.tradfi-heat-tile.negative.heat-level-0 { background: rgba(84, 39, 51, .48); }
.tradfi-heat-tile.negative.heat-level-1 { background: rgba(111, 43, 57, .58); }
.tradfi-heat-tile.negative.heat-level-2 { background: rgba(139, 42, 59, .67); }
.tradfi-heat-tile.negative.heat-level-3 { background: rgba(166, 38, 59, .76); }
.tradfi-heat-tile.negative.heat-level-4 { background: rgba(194, 35, 60, .84); }
.tradfi-heat-tile.negative.heat-level-5 { background: rgba(220, 33, 63, .92); }
.tradfi-heat-tile.neutral { background: rgba(41, 55, 71, .7); }
.tradfi-heat-tile.heat-no-data {
  background:
    repeating-linear-gradient(135deg, rgba(72, 87, 104, .18) 0 7px, rgba(30, 44, 59, .35) 7px 14px),
    #172330;
  color: #899aaa;
}
.heat-tile-head, .heat-tile-metrics { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.heat-tile-head strong {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #f2f6fa; font: 750 11px system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.heat-tile-head i {
  flex: 0 0 auto; color: rgba(255, 255, 255, .68); font-size: 7px; font-style: normal;
}
.tradfi-heat-tile > small {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: rgba(236, 244, 250, .62); font-size: 8px;
}
.heat-tile-metrics b, .heat-tile-metrics em {
  min-width: 7ch; color: #f5f8fb; font: 750 9px ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums; font-style: normal;
}
.heat-tile-metrics em { text-align: right; }
.tradfi-list-wrap { min-height: 520px; overflow-x: auto; }
.tradfi-table { width: 100%; min-width: 880px; border-collapse: collapse; table-layout: fixed; }
.tradfi-table th {
  height: 40px; padding: 0 13px; border-bottom: 1px solid var(--public-line);
  color: #61768d; text-align: left; font-size: 9px; font-weight: 650;
}
.tradfi-table th:first-child { width: 240px; }
.tradfi-table th:last-child { width: 72px; }
.tradfi-table td {
  height: 54px; padding: 0 13px; border-bottom: 1px solid var(--public-line);
  color: #93a8bb; font-size: 10px;
}
.tradfi-table tbody tr:hover td { background: rgba(241, 197, 103, .022); }
.tradfi-pager { display: flex; align-items: center; gap: 10px; }
.tradfi-pager > span {
  min-width: 7ch; color: #91a3b7; text-align: center;
  font: 700 9px ui-monospace, monospace; font-variant-numeric: tabular-nums;
}
.tradfi-pager button:disabled { opacity: .35; cursor: not-allowed; }
.tradfi-explainer { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tradfi-explainer article { padding: 22px; }
.explainer-number { color: var(--public-warm); font: 700 10px ui-monospace, monospace; }
.tradfi-explainer h3 { margin: 14px 0 8px; font-size: 13px; }
.tradfi-explainer p { margin: 0; color: #71869d; font-size: 10px; line-height: 1.7; }

/* 预测市场一期：紧凑事件矩阵，只展示真实元数据与诚实状态。 */
.prediction-page { display: grid; gap: 12px; }
.prediction-heading {
  min-height: 118px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid var(--public-line);
  border-radius: 13px;
  background: linear-gradient(110deg, rgba(12, 27, 42, .92), rgba(8, 18, 31, .78));
}
.prediction-heading h1 { margin: 7px 0 5px; font-size: clamp(25px, 3vw, 38px); letter-spacing: -.045em; }
.prediction-heading p { max-width: 720px; margin: 0; color: #7890a7; font-size: 10px; line-height: 1.7; }
.prediction-source {
  min-width: 210px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #223548;
  border-radius: 9px;
  background: rgba(7, 16, 28, .72);
}
.prediction-source > i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #687d91;
}
.prediction-source[data-prediction-status="live"] > i {
  background: var(--public-green);
  box-shadow: 0 0 9px rgba(73, 216, 154, .58);
}
.prediction-source[data-prediction-status="stale"] > i,
.prediction-source[data-prediction-status="warming"] > i,
.prediction-source[data-prediction-status="loading"] > i { background: var(--public-warm); }
.prediction-source[data-prediction-status="unavailable"] > i { background: var(--public-red); }
.prediction-source span,
.prediction-source strong,
.prediction-source small { min-width: 0; display: block; }
.prediction-source strong { color: #d7e3ed; font-size: 10px; }
.prediction-source small {
  max-width: 250px;
  margin-top: 4px;
  overflow: hidden;
  color: #657b90;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8px;
}
.prediction-workbench { overflow: hidden; border-radius: 12px; }
.prediction-toolbar {
  min-height: 66px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--public-line);
}
.prediction-toolbar h2 { margin: 4px 0 0; font-size: 15px; }
.prediction-filters { display: flex; align-items: end; gap: 7px; }
.prediction-filters label { display: grid; gap: 4px; color: #64798e; font-size: 8px; }
.prediction-filters select {
  height: 31px;
  min-width: 118px;
  padding: 0 8px;
  border: 1px solid #26384a;
  border-radius: 6px;
  outline: 0;
  background: #0a1724;
  color: #a9bac9;
  font-size: 9px;
}
.prediction-meta {
  min-height: 34px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--public-line);
  color: #60758a;
  font-size: 8px;
}
.prediction-meta b { color: var(--public-warm); font: 750 9px ui-monospace, monospace; }
.prediction-grid {
  min-height: 360px;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  align-content: start;
  gap: 5px;
  background: #07111c;
}
.prediction-event {
  min-width: 0;
  min-height: 180px;
  padding: 11px;
  display: flex;
  flex-direction: column;
  border: 1px solid #1d3042;
  border-radius: 6px;
  background: #0a1724;
}
.prediction-event[data-phase="current"] { border-color: rgba(73, 216, 154, .28); background: linear-gradient(145deg, rgba(18, 53, 48, .42), #0a1724 66%); }
.prediction-event[data-phase="next"] { border-color: rgba(85, 168, 255, .26); }
.prediction-event[data-phase="previous"] { opacity: .68; }
.prediction-event header { display: flex; align-items: center; gap: 5px; }
.prediction-event header span {
  padding: 3px 5px;
  border-radius: 4px;
  color: #9fb0bf;
  background: rgba(255, 255, 255, .045);
  font: 700 8px ui-monospace, monospace;
}
.prediction-event header b {
  margin-left: auto;
  color: #7290a7;
  font-size: 8px;
}
.prediction-event[data-phase="current"] header b { color: var(--public-green); }
.prediction-event[data-phase="next"] header b { color: var(--public-blue); }
.prediction-event h3 {
  margin: 10px 0 4px;
  overflow: hidden;
  color: #e0e8ef;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}
.prediction-event > p {
  min-height: 30px;
  margin: 0;
  overflow: hidden;
  color: #687e92;
  font-size: 8px;
  line-height: 1.6;
}
.prediction-event dl {
  margin: 9px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #192938;
}
.prediction-event dl div { min-width: 0; padding: 6px; background: #0b1926; }
.prediction-event dt { color: #53697d; font-size: 7px; }
.prediction-event dd {
  margin: 3px 0 0;
  overflow: hidden;
  color: #c3d0da;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 700 8px ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}
.prediction-event footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #536a7e;
  font-size: 7px;
}
.prediction-event footer em { color: var(--public-warm); font-style: normal; }
.prediction-empty {
  grid-column: 1 / -1;
  min-height: 310px;
  display: grid;
  place-content: center;
  gap: 8px;
  color: #60768a;
  text-align: center;
  font-size: 9px;
}
.prediction-empty strong { color: #aebdca; font-size: 12px; }
.prediction-boundary {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(241, 197, 103, .16);
  border-radius: 8px;
  background: rgba(241, 197, 103, .025);
}
.prediction-boundary span {
  flex: 0 0 auto;
  padding: 3px 6px;
  border: 1px solid rgba(241, 197, 103, .22);
  border-radius: 5px;
  color: var(--public-warm);
  font-size: 8px;
}
.prediction-boundary p { margin: 0; color: #677c90; font-size: 8px; line-height: 1.6; }

.trade-terminal { margin-top: -18px; }
.trade-market-bar {
  min-height: 88px; padding: 16px 18px; display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(230px, 320px);
  align-items: center; gap: 20px;
}
.trade-market-bar h1 { margin: 6px 0 0; font-size: 25px; letter-spacing: -.03em; }
.trade-search { width: 100%; }
.trade-terminal-grid {
  margin-top: 10px; display: grid; grid-template-columns: 245px minmax(0, 1fr) 330px;
  grid-template-rows: minmax(560px, auto) auto; gap: 10px;
}
.trade-symbol-panel, .trade-chart-panel, .trade-order-panel, .trade-account-panel { min-width: 0; overflow: hidden; }
.trade-panel-heading, .trade-account-heading {
  min-height: 68px; padding: 15px 16px; display: flex; align-items: center;
  justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--public-line);
}
.trade-panel-heading h2, .trade-account-heading h2 { margin: 5px 0 0; font-size: 16px; }
.trade-panel-heading > span { color: #71869d; font-size: 9px; }
.trade-symbol-list { max-height: 500px; overflow-y: auto; }
.trade-symbol-row {
  width: 100%; min-height: 58px; padding: 9px 11px; display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 6px;
  border: 0; border-bottom: 1px solid var(--public-line); background: transparent;
  color: inherit; text-align: left; cursor: pointer;
}
.trade-symbol-row > .favorite-button { width: 18px; height: 28px; padding: 0; font-size: 12px; }
.trade-symbol-row .symbol-lockup,
.trade-symbol-row .trade-symbol-numbers { min-width: 0; }
.trade-symbol-row:hover { background: rgba(85, 168, 255, .035); }
.trade-symbol-row.selected { background: rgba(141, 240, 92, .055); box-shadow: inset 2px 0 var(--public-accent); }
.trade-symbol-row .symbol-avatar { width: 25px; height: 25px; border-radius: 7px; font-size: 8px; }
.trade-symbol-row .symbol-lockup strong { font-size: 10px; }
.trade-symbol-row .symbol-lockup small { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 8px; }
.trade-symbol-numbers { text-align: right; }
.trade-symbol-numbers strong, .trade-symbol-numbers em {
  min-width: 9ch; display: block; font: 700 9px ui-monospace, monospace;
  font-variant-numeric: tabular-nums; font-style: normal;
}
.trade-symbol-numbers em { margin-top: 5px; font-size: 8px; }
.trade-chart-panel { padding: 20px; }
.trade-instrument-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.trade-instrument-name { min-width: 0; display: flex; align-items: center; gap: 11px; }
.trade-instrument-name .symbol-avatar { width: 38px; height: 38px; }
.trade-instrument-name h2 { margin: 0; font-size: 19px; }
.trade-instrument-name p { margin: 5px 0 0; color: #6e839a; font-size: 9px; }
.trade-live-price { text-align: right; }
.trade-live-price strong, .trade-live-price span {
  min-width: 12ch; display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
}
.trade-live-price strong { color: #edf3f8; font-size: 22px; }
.trade-live-price span { margin-top: 6px; font-size: 11px; font-weight: 750; }
.trade-period-strip { margin-top: 22px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.trade-period-strip div { padding: 11px 8px; border: 1px solid var(--public-line); border-radius: 8px; background: rgba(5, 15, 27, .45); text-align: center; }
.trade-period-strip span, .trade-period-strip strong { display: block; }
.trade-period-strip span { color: #637990; font-size: 8px; }
.trade-period-strip strong {
  min-width: 7ch; margin-top: 6px; font: 750 9px ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}
.trade-chart-empty {
  min-height: 320px; padding: 40px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
}
.trade-data-boundary-icon {
  width: 56px; height: 56px; margin-bottom: 22px; display: grid; place-items: center;
  border: 1px solid rgba(141, 240, 92, .2); border-radius: 16px;
  color: var(--public-accent); background: rgba(141, 240, 92, .05); font-size: 24px;
}
.trade-chart-empty strong { font-size: 13px; }
.trade-chart-empty p { max-width: 520px; margin: 11px auto 16px; color: #71869d; font-size: 10px; line-height: 1.7; }
.trade-order-panel { padding-bottom: 17px; }
.trade-side-switch { margin: 14px 16px 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.trade-side-switch button, .order-type-row button, .order-percent-row button {
  height: 34px; border: 1px solid var(--public-line); border-radius: 8px;
  background: rgba(6, 16, 29, .62); color: #71869c; cursor: pointer; font-size: 10px;
}
.trade-side-switch button[aria-pressed="true"] { border-color: rgba(73, 216, 154, .28); color: var(--public-green); background: rgba(73, 216, 154, .07); }
.trade-side-switch button[data-value="sell"][aria-pressed="true"] { border-color: rgba(255, 113, 133, .28); color: var(--public-red); background: rgba(255, 113, 133, .07); }
.order-type-row { margin: 0 16px 13px; display: flex; gap: 5px; }
.order-type-row button { height: 29px; padding: 0 12px; border: 0; background: transparent; }
.order-type-row button[aria-pressed="true"] { color: var(--public-text); background: rgba(85, 168, 255, .08); }
.contract-options { margin: 0 16px 13px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.contract-options label { color: #697f97; font-size: 8px; }
.contract-options select {
  width: 100%; height: 34px; margin-top: 5px; padding: 0 8px; border: 1px solid var(--public-line);
  border-radius: 8px; outline: 0; background: #0a1828; color: #b4c4d3; font-size: 10px;
}
.order-field { margin: 11px 16px 0; display: block; color: #687e96; font-size: 9px; }
.order-field > span {
  height: 40px; margin-top: 6px; padding: 0 11px; display: flex; align-items: center;
  border: 1px solid var(--public-line); border-radius: 8px; background: rgba(5, 15, 27, .58);
}
.order-field input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: #edf3f8; font: 700 11px ui-monospace, monospace; }
.order-field b { color: #6c829a; font-size: 9px; }
.order-percent-row { margin: 10px 16px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.order-percent-row button { height: 27px; font-size: 8px; }
.trade-access-note {
  margin: 13px 16px; padding: 9px 10px; border: 1px solid rgba(241, 197, 103, .13);
  border-radius: 8px; color: #9d8b62; background: rgba(241, 197, 103, .035);
  font-size: 8px; line-height: 1.55;
}
.trade-submit {
  width: calc(100% - 32px); height: 42px; margin: 0 16px; border: 0; border-radius: 9px;
  color: #07110c; font-weight: 800; cursor: pointer;
}
.trade-submit.buy { background: var(--public-green); }
.trade-submit.sell { color: #fff; background: var(--public-red); }
.trade-account-panel { grid-column: 1 / -1; min-height: 210px; }
.trade-account-heading { min-height: 64px; }
.trade-account-tabs { display: flex; align-items: center; gap: 4px; }
.trade-account-tabs button {
  height: 30px; padding: 0 10px; border: 0; border-radius: 7px;
  background: transparent; color: #687e95; cursor: pointer; font-size: 9px;
}
.trade-account-tabs button[aria-pressed="true"] { color: var(--public-text); background: rgba(85, 168, 255, .07); }
.trade-account-empty {
  min-height: 145px; padding: 25px; display: flex; align-items: center; justify-content: center; gap: 18px;
}
.account-lock { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(141, 240, 92, .07); color: var(--public-accent); }
.trade-account-empty strong { display: block; font-size: 12px; }
.trade-account-empty p { margin: 6px 0 0; color: #697f96; font-size: 9px; }
.trade-account-empty .button { margin-left: 20px; }

.public-footer {
  min-height: 180px; padding: 35px max(3.2vw, calc((100% - 1380px) / 2)); display: grid;
  grid-template-columns: 1fr auto; gap: 25px; align-items: start;
  border-top: 1px solid var(--public-line); background: rgba(5, 13, 24, .85); color: #63778e;
}
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand strong { color: #d6e2ee; font-size: 14px; }
.footer-brand span { margin-top: 8px; font-size: 10px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a, .footer-links button { border: 0; background: none; color: #8094aa; cursor: pointer; font-size: 10px; }
.public-footer > p { grid-column: 1 / -1; margin: 0; color: #52667c; font-size: 9px; }

.public-shell .overlay { z-index: 80; background: rgba(3, 9, 16, .82); backdrop-filter: blur(12px); }
.login-panel, .ai-dialog, .voice-dialog, .market-detail {
  position: relative; width: min(100%, 440px); padding: 34px; border: 1px solid var(--public-line-strong);
  border-radius: 18px; background: linear-gradient(145deg, #102138, #0a1728);
  box-shadow: 0 35px 100px rgba(0, 0, 0, .5);
}
.login-brand { margin-bottom: 26px; display: flex; align-items: center; gap: 10px; }
.login-panel h2, .ai-dialog h2, .voice-dialog h2 { margin: 10px 0 12px; font-size: 26px; }
.login-panel > p, .ai-dialog > p, .voice-dialog > p { margin: 0 0 22px; color: #8195ab; line-height: 1.7; }
.login-option { width: 100%; margin-top: 9px; }
.login-notice { margin-top: 20px; padding: 11px; border: 1px solid rgba(241, 197, 103, .15); border-radius: 9px; color: #c1a867; background: rgba(241, 197, 103, .04); font-size: 10px; }
.login-panel > small { margin-top: 13px; display: block; color: #64798f; line-height: 1.6; }
.ai-dialog, .voice-dialog { text-align: center; }
.ai-dialog-orb { margin: 0 auto 22px; }
.ai-honesty-list { margin: 0 0 24px; display: grid; gap: 8px; text-align: left; }
.ai-honesty-list span { padding: 9px 11px; border-radius: 8px; background: rgba(6, 16, 28, .6); color: #8da1b7; font-size: 10px; }
.ai-honesty-list i { margin-right: 7px; color: var(--public-accent); font-style: normal; }
.voice-wave { height: 64px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.voice-wave i { width: 3px; height: 13px; border-radius: 3px; background: var(--public-blue); }
.voice-wave i:nth-child(2), .voice-wave i:nth-child(4) { height: 34px; }
.voice-wave i:nth-child(3) { height: 52px; background: var(--public-accent); }
.voice-status { margin: 0 0 22px; color: #71869d; font-size: 10px; }
.voice-status span { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: #66788c; }
.market-detail { width: min(100%, 560px); }
.detail-title { display: flex; align-items: center; gap: 12px; }
.detail-title h2 { margin: 0; font-size: 24px; }
.detail-title p { margin: 5px 0 0; color: #748aa1; font-size: 10px; }
.detail-price { margin: 28px 0; }
.detail-price span { color: #6b8198; font-size: 9px; }
.detail-price strong { min-width: 14ch; margin-top: 7px; display: block; font: 750 28px ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.detail-periods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.detail-periods div { padding: 10px 7px; border: 1px solid var(--public-line); border-radius: 9px; text-align: center; }
.detail-periods span, .detail-periods strong { display: block; }
.detail-periods span { color: #667c93; font-size: 8px; }
.detail-periods strong { min-width: 7ch; margin-top: 6px; font: 700 10px ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.detail-actions { margin-top: 24px; display: flex; gap: 9px; }
.detail-boundary { margin: 20px 0 0; padding: 12px; border: 1px solid rgba(241, 197, 103, .14); border-radius: 9px; color: #8c825f; background: rgba(241, 197, 103, .035); font-size: 9px; line-height: 1.6; }
.toast-region {
  position: fixed; z-index: 100; right: 20px; bottom: 20px; max-width: min(360px, calc(100% - 40px));
  padding: 12px 16px; border: 1px solid var(--public-line-strong); border-radius: 10px;
  background: #102138; color: #c5d3e1; box-shadow: 0 18px 45px rgba(0, 0, 0, .35);
  font-size: 11px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s;
}
.toast-region.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1180px) {
  .public-topbar { grid-template-columns: auto 1fr minmax(190px, 280px) auto; gap: 15px; }
  .public-nav a, .public-nav .nav-action { padding: 0 8px; }
  .public-nav .private-link { display: none; }
  .home-hero { grid-template-columns: 1fr 430px; gap: 35px; }
  .ai-entry { grid-template-columns: auto .75fr 1.25fr; }
  .tradfi-preview { gap: 30px; padding: 32px; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .tradfi-card-grid { grid-template-columns: 1fr 1fr; }
  .trade-terminal-grid { grid-template-columns: 220px minmax(0, 1fr) 300px; }
}

@media (max-width: 920px) {
  .public-topbar { height: 62px; padding: 0 18px; grid-template-columns: 1fr auto; }
  .public-topbar { background: rgba(7, 16, 29, .98); backdrop-filter: none; }
  .public-nav {
    position: fixed; z-index: 40; right: 0; bottom: 0; left: 0; height: 58px;
    justify-content: space-around; border-top: 1px solid var(--public-line);
    background: rgba(7, 16, 29, .97); backdrop-filter: blur(16px);
  }
  .public-nav a, .public-nav .nav-action { height: 100%; padding: 0 8px; flex-direction: column; justify-content: center; gap: 3px; font-size: 10px; }
  .public-nav [aria-current="page"]::after { right: 8px; bottom: auto; left: 8px; top: -1px; }
  .tradfi-nav-link > span { display: none; }
  .global-search { display: none; }
  .public-topbar .account-area .button { display: none; }
  .market-ribbon { padding: 0 18px; }
  .market-ribbon-track { gap: 24px; }
  .ribbon-item:nth-child(n+4) { display: none; }
  .public-main { width: min(100% - 36px, 760px); padding: 46px 0 95px; }
  .home-hero { min-height: 0; grid-template-columns: 1fr; }
  .hero-copy { padding: 18px 0 5px; }
  .hero-pulse { max-width: none; }
  .ai-entry { margin: 20px 0 70px; grid-template-columns: auto 1fr; }
  .ai-composer { grid-column: 1 / -1; }
  .leaderboard-grid { grid-template-columns: 1fr; }
  .tradfi-preview { grid-template-columns: 1fr; }
  .tradfi-preview-list { width: 100%; }
  .page-hero { min-height: 142px; }
  .market-toolbar, .tradfi-toolbar { align-items: stretch; flex-direction: column; }
  .toolbar-controls { flex-wrap: wrap; }
  .workbench-search { flex: 1 1 220px; }
  .tradfi-explainer { grid-template-columns: 1fr; }
  .trade-market-bar { grid-template-columns: 1fr auto; }
  .trade-market-bar .trade-search { grid-column: 1 / -1; }
  .trade-terminal-grid { grid-template-columns: 220px minmax(0, 1fr); grid-template-rows: auto auto auto; }
  .trade-symbol-panel { grid-row: 1 / 3; }
  .trade-order-panel { grid-column: 2; }
  .trade-account-panel { grid-column: 1 / -1; }
  .public-footer { padding-bottom: 95px; }
}

@media (max-width: 640px) {
  .public-topbar { padding: 0 14px; }
  .public-brand small { display: none; }
  .market-ribbon { min-height: 35px; padding: 0 14px; }
  .market-ribbon-track { gap: 18px; }
  .ribbon-item:nth-child(n+3) { display: none; }
  .ribbon-status { font-size: 9px; }
  .public-main { width: calc(100% - 28px); padding-top: 34px; }
  .hero-copy h1 { margin-top: 15px; font-size: clamp(40px, 13vw, 56px); }
  .hero-copy > p { font-size: 13px; line-height: 1.7; }
  .page-hero > div > p { font-size: 11px; line-height: 1.55; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-trust { gap: 10px 14px; }
  .hero-pulse { padding: 18px; }
  .pulse-overview { grid-template-columns: 1fr 1fr; }
  .overview-cell:last-child { grid-column: 1 / -1; }
  .major-row { grid-template-columns: 1fr 10ch 8ch; }
  .panel-link { margin-right: -18px; margin-left: -18px; padding-right: 18px; padding-left: 18px; }
  .ai-entry { padding: 19px; grid-template-columns: auto 1fr; }
  .ai-entry-copy h2 { font-size: 16px; }
  .ai-composer { height: 48px; padding-left: 12px; }
  .ai-composer input { font-size: 11px; }
  .section-heading { align-items: start; flex-direction: column; gap: 10px; }
  .rank-row { grid-template-columns: 22px 1fr 9ch 7ch; }
  .tradfi-preview { padding: 24px 19px; }
  .tradfi-preview h2 { font-size: 25px; }
  .tradfi-stats { justify-content: space-between; gap: 10px; }
  .tradfi-preview-row { grid-template-columns: 1fr 10ch 7ch; }
  .tradfi-preview-row .class-pill { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .page-hero { min-height: 0; padding: 8px 0 18px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 12px; }
  .page-hero-actions { width: 100%; }
  .page-hero-actions .button { flex: 1; }
  .compact-hero h1, .tradfi-hero h1 { font-size: 32px; }
  .market-toolbar { padding: 12px; }
  .segmented { width: 100%; overflow-x: auto; }
  .segmented button { flex: 0 0 auto; }
  .toolbar-controls { width: 100%; }
  .workbench-search { flex: 1 1 100%; width: 100%; }
  .market-table-wrap { display: none; }
  .mobile-market-list { padding: 8px 12px; display: block; }
  .mobile-market-card {
    min-height: 84px; padding: 13px 3px; display: grid; grid-template-columns: auto 1fr auto;
    align-items: center; gap: 10px; border-bottom: 1px solid var(--public-line);
  }
  .mobile-market-card:last-child { border-bottom: 0; }
  .mobile-market-card .mobile-numbers { text-align: right; }
  .mobile-market-card .mobile-numbers strong, .mobile-market-card .mobile-numbers span {
    min-width: 10ch; display: block; font: 700 11px ui-monospace, monospace; font-variant-numeric: tabular-nums;
  }
  .mobile-market-card .mobile-numbers span { margin-top: 6px; font-size: 10px; }
  .market-detail { padding: 25px 19px; }
  .detail-periods { grid-template-columns: repeat(3, 1fr); }
  .tradfi-hero { min-height: 0; padding-bottom: 16px; gap: 12px; }
  .tradfi-boundary { margin-top: 9px; }
  .tradfi-hero-metric {
    width: 100%;
    min-height: 56px;
    padding: 9px 13px;
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 10px;
    flex-basis: auto;
  }
  .tradfi-hero-metric strong { margin: 0; font-size: 23px; }
  .tradfi-hero-metric small { text-align: right; }
  .tradfi-toolbar { min-height: 0; padding: 12px; gap: 10px; }
  .tradfi-toolbar > div:first-child {
    display: flex;
    align-items: baseline;
    gap: 10px;
  }
  .tradfi-toolbar > div:first-child .section-kicker { margin: 0; }
  .tradfi-toolbar > div:first-child h2 { margin: 0; font-size: 15px; }
  .tradfi-toolbar .toolbar-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(112px, 1.25fr) auto;
    gap: 7px;
  }
  .tradfi-toolbar .workbench-search,
  .tradfi-toolbar .tradfi-product-tabs { grid-column: 1 / -1; }
  .tradfi-card-grid { padding: 10px; grid-template-columns: 1fr; }
  .tradfi-product-tabs { width: 100%; }
  .tradfi-product-tabs button { flex: 1 1 0; text-align: center; }
  .tradfi-view-switch { width: auto; min-width: 0; }
  .tradfi-view-switch button { flex: 1; }
  .tradfi-heatmap { min-height: 0; padding: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 78px; gap: 5px; }
  .tradfi-heat-tile { padding: 8px; }
  .heat-tile-head i { display: none; }
  .heat-tile-metrics { align-items: flex-end; flex-direction: column; gap: 2px; }
  .tradfi-list-wrap { min-height: 0; }
  .tradfi-table { min-width: 700px; }
  .tradfi-pager { width: 100%; justify-content: space-between; }
  .trade-terminal { margin-top: 0; }
  .trade-market-bar { padding: 15px; grid-template-columns: 1fr; align-items: stretch; }
  .trade-market-bar .trade-search { grid-column: 1; }
  .trade-product-switch { order: 2; }
  .trade-search { order: 3; }
  .trade-terminal-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .trade-symbol-panel, .trade-chart-panel, .trade-order-panel, .trade-account-panel {
    grid-column: 1; grid-row: auto;
  }
  .trade-symbol-list { max-height: none; padding: 8px; display: flex; gap: 6px; overflow-x: auto; }
  .trade-symbol-row {
    flex: 0 0 190px; min-height: 62px; border: 1px solid var(--public-line); border-radius: 9px;
  }
  .trade-symbol-row.selected { box-shadow: inset 0 2px var(--public-accent); }
  .trade-chart-panel { padding: 16px; }
  .trade-instrument-head { align-items: flex-start; }
  .trade-live-price strong { font-size: 18px; }
  .trade-period-strip { grid-template-columns: repeat(3, 1fr); }
  .trade-chart-empty { min-height: 180px; padding: 24px 12px; }
  .trade-data-boundary-icon { width: 42px; height: 42px; margin-bottom: 14px; border-radius: 12px; font-size: 19px; }
  .trade-account-heading { align-items: flex-start; flex-direction: column; }
  .trade-account-tabs { width: 100%; overflow-x: auto; }
  .trade-account-tabs button { flex: 0 0 auto; }
  .trade-account-empty { align-items: flex-start; flex-wrap: wrap; justify-content: flex-start; }
  .trade-account-empty .button { width: 100%; margin: 0; }
  .table-pagination { align-items: flex-start; flex-direction: column; }
  .public-footer { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
  .public-shell .overlay { align-items: end; padding: 0; }
  .login-panel, .ai-dialog, .voice-dialog, .market-detail { width: 100%; border-radius: 20px 20px 0 0; }
}

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

/* DMA Trader 专业普通交易终端：桌面优先给 K 线、DOM、TAS 和下单面板。 */
body[data-public-page="trade"] {
  overflow: hidden;
  background: #050b12;
}
body[data-public-page="trade"] .ambient,
body[data-public-page="trade"] .public-footer { display: none; }
body[data-public-page="trade"] .market-ribbon { min-height: 32px; padding: 0 18px; }
body[data-public-page="trade"] .public-main {
  width: 100%;
  height: calc(100vh - 88px);
  margin: 0;
  padding: 0;
}
.trader-desk {
  height: 100%;
  margin: 0;
  display: grid;
  grid-template-rows: 44px minmax(0, 1fr);
  color: #c9d5df;
  background: #13202b;
}
.trade-command-bar {
  min-width: 0;
  padding: 5px 10px;
  display: grid;
  grid-template-columns: auto 142px minmax(150px, 240px) minmax(230px, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #1d2b38;
  background: #08111b;
}
.trade-venue-select {
  height: 30px;
  padding: 0 7px;
  display: flex;
  align-items: center;
  border: 1px solid #1d2b38;
  border-radius: 5px;
  background: #0b1621;
}
.trade-venue-select select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #93a6b8;
  font-size: 9px;
  cursor: pointer;
}
.trade-command-bar .segmented {
  width: auto;
  gap: 2px;
  padding: 2px;
  border: 1px solid #1d2b38;
  border-radius: 5px;
  background: #0d1823;
}
.trade-command-bar .segmented button {
  min-height: 27px;
  padding: 0 14px;
  border: 0;
  border-radius: 4px;
  font-size: 10px;
}
.trade-command-search {
  height: 30px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #1d2b38;
  border-radius: 5px;
  background: #0b1621;
}
.trade-command-search svg {
  width: 14px;
  fill: none;
  stroke: #64798c;
  stroke-width: 1.8;
}
.trade-command-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #dce6ee;
  font-size: 10px;
}
.terminal-source-status {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #60768a;
  font-size: 9px;
  white-space: nowrap;
}
.terminal-source-status i {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #607080;
}
.terminal-source-status strong { color: #93a6b8; }
.terminal-source-status span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.terminal-source-status[data-status="live"] i {
  background: var(--public-green);
  box-shadow: 0 0 8px rgba(73, 216, 154, .62);
}
.terminal-source-status[data-status="stale"] i,
.terminal-source-status[data-status="loading"] i { background: var(--public-warm); }
.terminal-source-status[data-status="error"] i { background: var(--public-red); }
.terminal-boundary {
  color: #64778a;
  font-size: 8px;
  white-space: nowrap;
}
.trade-terminal-grid {
  min-width: 0;
  min-height: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 205px minmax(420px, 1fr) 245px 300px;
  grid-template-rows: minmax(460px, 1fr) 132px;
  gap: 1px;
  background: #1c2a36;
}
.terminal-panel {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #08121c;
  box-shadow: none;
}
.terminal-panel-title {
  min-height: 35px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #192633;
  color: #63788c;
  font-size: 9px;
}
.terminal-panel-title strong { color: #b7c5d1; font-size: 10px; }
.terminal-panel-title small { color: #607486; font-size: 8px; font-weight: 600; }
.trade-symbol-panel {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
}
.trade-symbol-list {
  min-height: 0;
  max-height: none;
  flex: 1;
  overflow-y: auto;
  scrollbar-color: #283847 transparent;
  scrollbar-width: thin;
}
.trade-symbol-more {
  min-height: 30px;
  border: 0;
  border-top: 1px solid #192633;
  background: #091520;
  color: #7790a6;
  cursor: pointer;
  font-size: 8px;
}
.trade-symbol-more:hover { color: #c0d0de; background: #0c1a27; }
.trade-symbol-row {
  min-height: 46px;
  padding: 6px 8px;
  border-bottom-color: #14212d;
}
.trade-symbol-row.selected {
  background: rgba(141, 240, 92, .055);
  box-shadow: inset 2px 0 var(--public-accent);
}
.trade-symbol-row .symbol-avatar {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  font-size: 7px;
}
.trade-symbol-row .symbol-lockup { gap: 6px; }
.trade-symbol-row .symbol-lockup strong,
.trade-symbol-numbers strong { font-size: 9px; }
.trade-symbol-row .symbol-lockup small,
.trade-symbol-numbers em { font-size: 7px; }
.trade-chart-panel {
  grid-column: 2;
  grid-row: 1;
  padding: 0;
  display: grid;
  grid-template-rows: 67px 34px minmax(0, 1fr);
}
.trade-instrument-head {
  min-width: 0;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: minmax(118px, 1fr) minmax(90px, 110px) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #192633;
}
.trade-instrument-name { min-width: 0; }
.trade-instrument-name .symbol-avatar {
  width: 31px;
  height: 31px;
  border-radius: 7px;
}
.trade-instrument-name h2 {
  max-width: 18ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}
.trade-instrument-name p {
  max-width: 30ch;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8px;
}
.trade-live-price { min-width: 0; margin-left: 0; text-align: left; }
.trade-live-price strong {
  min-width: 10ch;
  color: #e7eff6;
  font-size: 18px;
  line-height: 1;
}
.trade-live-price span { margin-top: 4px; font-size: 9px; }
.trade-instrument-stats {
  margin: 0;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 16px);
}
.trade-instrument-stats div { min-width: 7ch; }
.trade-instrument-stats dt {
  color: #576c7f;
  font-size: 7px;
}
.trade-instrument-stats dd {
  min-width: 8ch;
  margin: 5px 0 0;
  color: #98abba;
  text-align: right;
  font: 650 9px ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
}
.trade-chart-toolbar {
  min-width: 0;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #192633;
  background: #0a141f;
}
.chart-intervals,
.chart-mode-switch {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 1px;
}
.chart-intervals button,
.chart-mode-switch button,
.chart-order-toggle,
.depth-controls button {
  height: 25px;
  padding: 0 7px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #65798c;
  cursor: pointer;
  font-size: 8px;
  white-space: nowrap;
}
.chart-intervals button[aria-pressed="true"],
.chart-mode-switch button[aria-pressed="true"],
.depth-controls button[aria-pressed="true"] {
  color: #dfe8ef;
  background: #142332;
}
.chart-mode-switch {
  margin-left: auto;
  padding-left: 8px;
  border-left: 1px solid #21303d;
}
.chart-order-toggle {
  border: 1px solid #243544;
  color: #8396a8;
}
.chart-order-toggle[aria-pressed="true"] {
  border-color: rgba(141, 240, 92, .25);
  color: var(--public-accent);
  background: rgba(141, 240, 92, .05);
}
.terminal-chart-stage,
.terminal-tradingview {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #07101a;
}
.terminal-chart-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}
.chart-live-legend {
  position: absolute;
  z-index: 3;
  top: 7px;
  left: 64px;
  right: 96px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  pointer-events: none;
  color: #71869a;
  font: 9px ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
}
.chart-live-legend > span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.chart-live-legend i {
  width: 12px;
  height: 2px;
  border-radius: 2px;
}
.chart-live-legend i.ma21 { background: #f1c567; }
.chart-live-legend i.ma200 { background: #72a7ff; }
.chart-live-legend b { color: #8ca0b1; font-weight: 650; }
.chart-live-legend em {
  min-width: 66px;
  color: #b9c7d2;
  text-align: right;
  font-style: normal;
}
.chart-live-legend .last-trade {
  margin-left: auto;
  gap: 6px;
}
.chart-live-legend .last-trade em {
  min-width: 76px;
  color: var(--public-green);
  font-weight: 750;
}
.chart-live-legend time {
  min-width: 52px;
  color: #667b8f;
  text-align: right;
}
.chart-subchart-label {
  position: absolute;
  z-index: 3;
  right: 96px;
  bottom: 62px;
  display: flex;
  align-items: center;
  gap: 7px;
  pointer-events: none;
  color: #667b8f;
  font: 8px ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
}
.chart-subchart-label strong { color: #8094a6; }
.chart-subchart-label span {
  min-width: 72px;
  color: #aab9c5;
  text-align: right;
}
.terminal-chart-state {
  position: absolute;
  z-index: 3;
  inset: 0;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 9px;
  color: #718699;
  background: rgba(7, 16, 26, .82);
  text-align: center;
  pointer-events: none;
}
.terminal-chart-state strong { color: #a9bac8; font-size: 10px; }
.terminal-chart-state small,
.terminal-chart-state span { max-width: 360px; color: #607486; font-size: 8px; line-height: 1.5; }
.terminal-chart-state[data-status="error"] strong { color: var(--public-warm); }
.terminal-tradingview iframe { width: 100%; height: 100%; border: 0; }
.chart-click-hint {
  position: absolute;
  z-index: 2;
  right: 80px;
  bottom: 5px;
  color: rgba(112, 132, 150, .58);
  font-size: 7px;
  pointer-events: none;
}
.chart-click-hint { display: none; }
.chart-crosshair-card {
  position: absolute;
  z-index: 4;
  width: 202px;
  padding: 7px 9px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 8px;
  border: 1px solid #283846;
  border-radius: 5px;
  background: rgba(8, 18, 28, .92);
  color: #8fa2b3;
  font: 7px ui-monospace, monospace;
  pointer-events: none;
}
.chart-crosshair-card b { grid-column: 1 / -1; color: #c5d1db; }
.chart-order-draft {
  position: absolute;
  z-index: 4;
  right: 76px;
  pointer-events: none;
}
.trade-microstructure {
  grid-column: 3;
  grid-row: 1;
  display: grid;
  grid-template-rows: minmax(310px, 1.12fr) minmax(210px, .88fr);
}
.micro-section {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.micro-section + .micro-section { border-top: 1px solid #1c2a36; }
.depth-controls { display: flex; gap: 1px; }
.depth-controls button { height: 22px; padding: 0 5px; }
.micro-table-head {
  min-height: 23px;
  padding: 0 7px;
  display: grid;
  grid-template-columns: 1fr .8fr .8fr;
  align-items: center;
  color: #52677a;
  font-size: 7px;
}
.micro-table-head span:not(:first-child) { text-align: right; }
.orderbook-side {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.orderbook-side.asks { justify-content: flex-end; }
.micro-row {
  position: relative;
  min-height: 18px;
  padding: 0 7px;
  display: grid;
  grid-template-columns: 1fr .8fr .8fr;
  align-items: center;
  border: 0;
  background: transparent;
  color: #8fa1b1;
  text-align: right;
  cursor: pointer;
  font: 7.5px ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
}
.micro-row:hover { background: rgba(255, 255, 255, .035); }
.micro-row i {
  position: absolute;
  z-index: 0;
  top: 1px;
  right: 0;
  bottom: 1px;
  width: var(--depth);
  pointer-events: none;
}
.micro-row.ask i { background: rgba(243, 101, 125, .09); }
.micro-row.bid i { background: rgba(53, 213, 154, .09); }
.micro-row strong,
.micro-row span,
.micro-row em { position: relative; z-index: 1; min-width: 0; font-style: normal; }
.micro-row strong { text-align: left; }
.micro-row.ask strong { color: #f07186; }
.micro-row.bid strong { color: #42d9a0; }
.orderbook-mid {
  min-height: 31px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-top: 1px solid #162330;
  border-bottom: 1px solid #162330;
  background: #0b1722;
  cursor: pointer;
}
.orderbook-mid strong {
  min-width: 11ch;
  color: #e1e9ef;
  text-align: left;
  font: 750 11px ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}
.orderbook-mid span { color: #5b7083; font-size: 7px; }
.tas-list {
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
.tas-row {
  min-height: 18px;
  padding: 0 7px;
  display: grid;
  grid-template-columns: 1fr .8fr .8fr;
  align-items: center;
  color: #8fa1b1;
  font: 7.5px ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
}
.tas-row strong { text-align: left; }
.tas-row span,
.tas-row time { text-align: right; }
.tas-row.buy strong { color: #42d9a0; }
.tas-row.sell strong { color: #f07186; }
.micro-empty {
  min-height: 52px;
  display: grid;
  place-items: center;
  color: #4f6477;
  font-size: 8px;
}
.trade-order-panel {
  grid-column: 4;
  grid-row: 1;
  padding: 0 0 12px;
  overflow-y: auto;
  scrollbar-color: #283847 transparent;
  scrollbar-width: thin;
}
.draft-badge {
  padding: 3px 5px;
  border: 1px solid rgba(241, 197, 103, .18);
  border-radius: 4px;
  color: #b49a61;
  font-size: 7px;
}
.trade-order-panel .trade-side-switch {
  margin: 8px 9px 6px;
  gap: 3px;
}
.trade-order-panel .trade-side-switch button {
  height: 30px;
  border-radius: 5px;
  font-size: 9px;
}
.trade-order-panel .order-type-row {
  margin: 0 9px 7px;
  padding-bottom: 2px;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.trade-order-panel .order-type-row button {
  height: 26px;
  padding: 0 8px;
  flex: 0 0 auto;
  border-radius: 4px;
  font-size: 8px;
}
.trade-order-panel .contract-options {
  margin: 0 9px 7px;
  gap: 5px;
}
.trade-order-panel .contract-options select {
  height: 29px;
  margin-top: 3px;
  border-radius: 5px;
  font-size: 8px;
}
.order-price-shortcuts {
  margin: 0 9px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.order-price-shortcuts button {
  height: 25px;
  border: 1px solid #1e2d39;
  border-radius: 4px;
  background: #0c1823;
  color: #667b8e;
  cursor: pointer;
  font-size: 7px;
}
.order-price-shortcuts button:hover { color: #c6d2db; border-color: #354756; }
.trade-order-panel .order-field { margin: 7px 9px 0; font-size: 8px; }
.trade-order-panel .order-field > span {
  height: 34px;
  margin-top: 3px;
  padding: 0 8px;
  border-radius: 5px;
}
.trade-order-panel .order-field input {
  text-align: right;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.trade-order-panel .order-percent-row {
  margin: 6px 9px 0;
  gap: 3px;
}
.trade-order-panel .order-percent-row button {
  height: 23px;
  border-radius: 4px;
  font-size: 7px;
}
.order-execution-options {
  margin: 8px 9px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  color: #64798c;
  font-size: 7px;
}
.order-execution-options label:first-child {
  grid-row: 1 / 3;
}
.order-execution-options select {
  width: 100%;
  height: 29px;
  margin-top: 3px;
  border: 1px solid #1e2d39;
  border-radius: 4px;
  background: #0b1722;
  color: #93a5b4;
  font-size: 8px;
}
.order-check {
  min-height: 20px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.order-check input { accent-color: var(--public-accent); }
.trade-order-panel .trade-access-note {
  margin: 8px 9px;
  padding: 7px 8px;
  border-radius: 5px;
  font-size: 7px;
}
.trade-order-panel .trade-submit {
  width: calc(100% - 18px);
  height: 36px;
  margin: 0 9px;
  border-radius: 5px;
  font-size: 10px;
}
.trade-account-panel {
  grid-column: 1 / -1;
  grid-row: 2;
  min-height: 0;
  display: grid;
  grid-template-rows: 35px minmax(0, 1fr);
}
.trade-account-heading {
  min-height: 35px;
  padding: 0 10px;
  border-bottom-color: #192633;
}
.trade-account-heading > strong { color: #64798c; font-size: 8px; }
.trade-account-tabs button {
  height: 26px;
  padding: 0 9px;
  border-radius: 4px;
  font-size: 8px;
}
.trade-account-empty {
  min-height: 0;
  padding: 12px;
  gap: 10px;
}
.trade-account-empty .account-lock {
  width: 29px;
  height: 29px;
}
.trade-account-empty strong { font-size: 9px; }
.trade-account-empty p { margin-top: 3px; font-size: 7px; }
.trade-account-empty .button {
  height: 29px;
  margin-left: 10px;
  font-size: 9px;
}
.trade-liquidation {
  width: min(300px, 24vw);
  min-width: 230px;
  padding: 7px 9px;
  align-self: stretch;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 5px;
  border: 1px solid #1b3040;
  border-radius: 6px;
  background: #091722;
}
.trade-liquidation header,
.trade-liquidation header span,
.trade-liquidation-values { display: flex; align-items: center; }
.trade-liquidation header { justify-content: space-between; gap: 7px; }
.trade-liquidation header span { gap: 5px; }
.trade-liquidation header i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #697b8b;
}
.trade-liquidation[data-liquidation-status="live"] header i {
  background: var(--public-green);
  box-shadow: 0 0 7px rgba(73, 216, 154, .55);
}
.trade-liquidation[data-liquidation-status="partial"] header i,
.trade-liquidation[data-liquidation-status="stale"] header i,
.trade-liquidation[data-liquidation-status="loading"] header i { background: var(--public-warm); }
.trade-liquidation[data-liquidation-status="unavailable"] header i { background: var(--public-red); }
.trade-liquidation header strong { color: #96a9b8; font-size: 8px; }
.trade-liquidation header button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #61778b;
  cursor: pointer;
  font-size: 7px;
}
.trade-liquidation-values { gap: 1px; background: #172633; }
.trade-liquidation-values > span {
  min-width: 0;
  flex: 1;
  padding: 4px 5px;
  background: #0b1925;
}
.trade-liquidation-values small,
.trade-liquidation-values b { display: block; }
.trade-liquidation-values small { color: #52687b; font-size: 6.5px; }
.trade-liquidation-values b {
  min-width: 8ch;
  margin-top: 3px;
  color: #c2d0db;
  font: 750 8px ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
}
.trade-liquidation-values b.negative { color: var(--public-red); }
.trade-liquidation-values b.positive { color: var(--public-green); }
.trade-liquidation footer {
  overflow: hidden;
  color: #506679;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 6.5px;
}

@media (max-width: 1180px) {
  .trade-terminal-grid {
    grid-template-columns: 185px minmax(380px, 1fr) 225px 275px;
  }
  .trade-instrument-stats div:nth-child(3) { display: none; }
  .terminal-boundary { display: none; }
  .trade-command-bar { grid-template-columns: auto 130px minmax(150px, 220px) minmax(190px, 1fr); }
  .trade-liquidation { width: 245px; min-width: 210px; }
}

@media (max-width: 1050px) {
  body[data-public-page="trade"] { overflow-y: auto; }
  body[data-public-page="trade"] .public-main { height: auto; min-height: calc(100vh - 88px); }
  .trader-desk { min-height: calc(100vh - 88px); height: auto; }
  .trade-terminal-grid {
    grid-template-columns: minmax(380px, 1fr) 225px 280px;
    grid-template-rows: 92px minmax(510px, calc(100vh - 220px)) 140px;
  }
  .trade-symbol-panel { grid-column: 1 / -1; grid-row: 1; }
  .trade-symbol-panel .terminal-panel-title { min-height: 28px; }
  .trade-symbol-list {
    padding: 5px;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .trade-symbol-row {
    flex: 0 0 174px;
    min-height: 52px;
    border: 1px solid #192633;
    border-radius: 5px;
  }
  .trade-symbol-row.selected { box-shadow: inset 0 2px var(--public-accent); }
  .trade-chart-panel { grid-column: 1; grid-row: 2; }
  .trade-microstructure { grid-column: 2; grid-row: 2; }
  .trade-order-panel { grid-column: 3; grid-row: 2; }
  .trade-account-panel { grid-row: 3; }
}

@media (max-width: 820px) {
  body[data-public-page="trade"] { overflow-y: auto; }
  body[data-public-page="trade"] .public-main {
    width: 100%;
    min-height: 0;
    padding: 0 0 68px;
  }
  .trader-desk { min-height: 0; }
  .trade-command-bar {
    min-height: 76px;
    padding: 7px;
    grid-template-columns: auto 126px minmax(0, 1fr);
    grid-template-rows: 31px 31px;
  }
  .trade-command-search { grid-column: 3; grid-row: 1; }
  .terminal-source-status { grid-column: 1 / -1; grid-row: 2; }
  .trade-terminal-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 94px 520px 650px auto 235px;
  }
  .trade-symbol-panel { grid-column: 1; grid-row: 1; }
  .trade-chart-panel { grid-column: 1; grid-row: 2; }
  .trade-microstructure {
    grid-column: 1;
    grid-row: 3;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr);
  }
  .micro-section + .micro-section { border-top: 0; border-left: 1px solid #1c2a36; }
  .trade-order-panel { grid-column: 1; grid-row: 4; max-height: none; }
  .trade-account-panel { grid-column: 1; grid-row: 5; }
  .trade-account-empty {
    padding: 8px;
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 7px;
  }
  .trade-account-empty > .account-lock,
  .trade-account-empty > div:not(.trade-liquidation):not(.trade-ai-inline),
  .trade-account-empty > .button { display: none; }
  .trade-liquidation { width: 100%; min-width: 0; min-height: 74px; }
  .trade-instrument-stats { display: none; }
  .trade-chart-toolbar { overflow-x: auto; }
  .chart-intervals,
  .chart-mode-switch,
  .chart-order-toggle { flex: 0 0 auto; }
  .chart-live-legend {
    top: 6px;
    left: 52px;
    right: 104px;
    gap: 7px;
  }
  .chart-live-legend em { min-width: 54px; }
  .chart-live-legend .last-trade { display: none; }
  .chart-subchart-label { right: 104px; bottom: 55px; }
  .chart-click-hint { display: none; }
}

@media (max-width: 540px) {
  .trade-terminal-grid { grid-template-rows: 94px 430px 930px auto 155px; }
  .trade-instrument-head { padding: 7px 9px; gap: 8px; }
  .trade-instrument-name .symbol-avatar { display: none; }
  .trade-instrument-name h2 { max-width: 13ch; font-size: 12px; }
  .trade-live-price strong { font-size: 14px; }
  .trade-chart-toolbar { padding: 0 5px; gap: 5px; }
  .chart-intervals button,
  .chart-mode-switch button,
  .chart-order-toggle { padding: 0 5px; }
  .trade-microstructure {
    grid-template-columns: 1fr;
    grid-template-rows: 540px 390px;
  }
  .micro-section + .micro-section { border-left: 0; border-top: 1px solid #1c2a36; }
  .trade-order-panel .contract-options,
  .order-execution-options { grid-template-columns: 1fr 1fr; }
  .trade-account-heading { align-items: center; flex-direction: row; }
  .trade-account-tabs { overflow-x: auto; }
  .trade-account-empty { flex-wrap: wrap; justify-content: flex-start; }
  .trade-account-empty .button { width: 100%; margin: 0; }
  .chart-live-legend {
    left: 46px;
    right: 96px;
    gap: 5px;
    font-size: 8px;
  }
  .chart-live-legend > span { gap: 3px; }
  .chart-live-legend em { min-width: 48px; }
  .chart-subchart-label { right: 96px; }
}

/* 行情列宽与高频数字槽位：表头、单元格共用同一对齐基线。 */
.market-table th,
.market-table td { box-sizing: border-box; }
.market-table th.numeric,
.market-table td.numeric {
  padding-right: 16px;
  padding-left: 8px;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.market-table th.favorite-col,
.market-table td:first-child { padding-right: 5px; padding-left: 5px; text-align: center; }
.market-table th.action-col,
.market-table td:last-child { padding-right: 14px; padding-left: 4px; text-align: right; white-space: nowrap; }
.table-sort-button {
  width: 100%;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}
.table-sort-button i {
  width: 8px;
  color: #526b82;
  font-style: normal;
  text-align: center;
}
.table-sort-button:hover,
.table-sort-button.active { color: #c9d8e5; }
.table-sort-button.active i { color: var(--public-accent); }

/* 传统金融热图：等面积网格与按 |24h 涨跌幅| 连续切分的轻量 treemap。 */
.heatmap-mode-switch[hidden] { display: none; }
.workbench-meta b,
.workbench-meta i { color: #879cb1; font-style: normal; font-weight: 650; }
.tradfi-heatmap.is-weighted {
  position: relative;
  min-height: 480px;
  padding: 0;
  display: block;
  overflow: hidden;
  background: #08131f;
}
.tradfi-heatmap.is-weighted .tradfi-heat-tile {
  margin: 0;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(5, 13, 21, .28);
}
.tradfi-heatmap.is-weighted .tradfi-heat-tile[data-density="micro"] {
  padding: 5px;
  justify-content: center;
  gap: 3px;
}
.tradfi-heatmap.is-weighted .tradfi-heat-tile[data-density="micro"] .heat-tile-head i,
.tradfi-heatmap.is-weighted .tradfi-heat-tile[data-density="micro"] > small,
.tradfi-heatmap.is-weighted .tradfi-heat-tile[data-density="micro"] .heat-tile-metrics b {
  display: none;
}
.tradfi-heatmap.is-weighted .tradfi-heat-tile[data-density="micro"] .heat-tile-head strong,
.tradfi-heatmap.is-weighted .tradfi-heat-tile[data-density="micro"] .heat-tile-metrics em {
  min-width: 0;
  font-size: 8px;
}
.tradfi-heatmap.is-weighted .tradfi-heat-tile[data-density="compact"] { padding: 7px; }
.tradfi-heatmap.is-weighted .tradfi-heat-tile[data-density="compact"] > small,
.tradfi-heatmap.is-weighted .tradfi-heat-tile[data-density="compact"] .heat-tile-metrics b { display: none; }
.tradfi-heatmap.is-weighted .tradfi-heat-tile[data-density="full"] .heat-tile-head strong { font-size: 14px; }
.tradfi-heatmap.is-weighted .tradfi-heat-tile[data-density="full"] .heat-tile-metrics em { font-size: 13px; }

/* 交易页 AI 指令入口只做产品预览，不占用 K 线、订单簿或 TAS 主空间。 */
.trade-ai-inline {
  width: min(440px, 42vw);
  margin-left: auto;
  display: grid;
  grid-template-columns: 120px minmax(220px, 1fr);
  align-items: center;
  gap: 9px;
}
.trade-ai-inline-head strong,
.trade-ai-inline-head span { display: block; }
.trade-ai-inline-head strong { color: #b9c9d6; font-size: 9px; }
.trade-ai-inline-head span { margin-top: 3px; color: #597086; font-size: 7px; }
.trade-ai-composer {
  height: 34px;
  padding: 0 4px 0 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #203344;
  border-radius: 6px;
  background: #07111b;
}
.trade-ai-composer input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #c5d3df;
  font-size: 8px;
}
.trade-ai-composer .voice-button { width: 26px; height: 26px; border-radius: 5px; }
.trade-ai-composer .voice-button svg { width: 14px; }
.trade-ai-composer .ai-send { width: 27px; height: 27px; border-radius: 5px; font-size: 14px; }

/* 设置中心只呈现权限与接入状态；敏感输入由正式安全后端接管后再开放。 */
.settings-hero { min-height: 150px; }
.settings-hero h1 { margin: 6px 0; font-size: clamp(30px, 3vw, 38px); }
.settings-hero > div:first-child { max-width: 720px; }
.settings-identity {
  flex: 0 0 225px;
  min-height: 124px;
  padding: 17px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.settings-identity > span,
.settings-identity > small { color: #6f859b; font-size: 9px; }
.settings-identity > strong { margin: 8px 0 5px; font-size: 22px; }
.settings-identity .button { width: fit-content; margin-top: 10px; }
.settings-readiness {
  min-height: 76px;
  margin-bottom: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.settings-readiness > div { display: flex; align-items: center; gap: 12px; }
.settings-readiness strong { display: block; font-size: 12px; }
.settings-readiness p { margin: 5px 0 0; color: #6f859b; font-size: 9px; }
.settings-status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--public-warm);
  box-shadow: 0 0 12px rgba(241, 197, 103, .35);
}
.readiness-badge {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid rgba(241, 197, 103, .2);
  border-radius: 999px;
  color: var(--public-warm);
  background: rgba(241, 197, 103, .06);
  font-size: 8px;
}
.settings-grid {
  margin-bottom: 72px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.settings-card {
  min-height: 315px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: opacity .18s, border-color .18s;
}
.settings-card header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 12px;
}
.settings-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--public-accent);
  background: rgba(141, 240, 92, .07);
  font: 750 10px ui-monospace, monospace;
}
.settings-card h2 { margin: 1px 0 6px; font-size: 14px; }
.settings-card header p { margin: 0; color: #667d94; font-size: 9px; line-height: 1.45; }
.settings-card header b {
  padding: 4px 6px;
  border-radius: 5px;
  color: #8ca2b7;
  background: rgba(111, 137, 161, .08);
  font-size: 7px;
}
.settings-card ul {
  margin: 24px 0;
  padding: 0;
  display: grid;
  gap: 11px;
  list-style: none;
}
.settings-card li {
  padding-left: 15px;
  position: relative;
  color: #8095a9;
  font-size: 9px;
  line-height: 1.5;
}
.settings-card li::before { content: "·"; position: absolute; left: 2px; color: var(--public-accent); }
.settings-card > .button { width: 100%; margin-top: auto; }
.settings-card button:disabled { opacity: .55; cursor: not-allowed; }
.settings-card.role-locked { opacity: .58; border-color: rgba(94, 117, 139, .11); }
.settings-policy { grid-column: span 1; }
.role-matrix { margin-top: 20px; display: grid; gap: 1px; background: var(--public-line); }
.role-matrix > div {
  min-height: 39px;
  padding: 0 9px;
  display: grid;
  grid-template-columns: 1.5fr .75fr .75fr;
  align-items: center;
  gap: 7px;
  background: #0a1623;
  color: #7f94a8;
  font-size: 8px;
}
.role-matrix > div:first-child { color: #aab9c7; background: #0d1b29; }
.role-matrix b { color: var(--public-green); }
.role-matrix em { color: var(--public-red); font-style: normal; }

@media (max-width: 1050px) {
  .settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trade-ai-inline { width: min(390px, 46vw); grid-template-columns: 100px minmax(190px, 1fr); }
}

@media (max-width: 820px) {
  .prediction-heading { align-items: flex-start; }
  .prediction-source { min-width: 190px; }
  .prediction-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trade-account-panel { grid-template-rows: 35px minmax(0, 1fr); }
  .trade-account-empty { align-content: center; }
  .trade-ai-inline {
    width: 100%;
    margin-left: 0;
    grid-template-columns: 100px minmax(0, 1fr);
  }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-card { min-height: 285px; }
}

@media (max-width: 640px) {
  .prediction-heading { min-height: 0; padding: 15px; display: grid; gap: 13px; }
  .prediction-heading h1 { font-size: 27px; }
  .prediction-source { width: 100%; min-width: 0; }
  .prediction-toolbar { align-items: flex-start; display: grid; }
  .prediction-filters { width: 100%; display: grid; grid-template-columns: 1fr 1fr auto; }
  .prediction-filters select { width: 100%; min-width: 0; }
  .prediction-meta { align-items: flex-start; padding-block: 8px; display: grid; }
  .prediction-grid { min-height: 300px; grid-template-columns: 1fr; }
  .prediction-event { min-height: 170px; }
  .prediction-boundary { align-items: flex-start; }
  .tradfi-heatmap.is-weighted {
    min-height: 440px;
  }
  .heatmap-mode-switch { width: auto; justify-content: center; }
  .settings-hero { padding-top: 8px; display: grid; gap: 12px; }
  .settings-identity {
    width: 100%;
    min-height: 68px;
    padding: 11px 13px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 12px;
  }
  .settings-identity > span { display: none; }
  .settings-identity > strong { margin: 0; font-size: 18px; }
  .settings-identity > small { margin-top: 3px; }
  .settings-identity .button {
    grid-column: 2;
    grid-row: 1 / 3;
    margin-top: 0;
  }
  .settings-readiness { align-items: flex-start; }
  .settings-readiness p { line-height: 1.5; }
  .trade-ai-inline { grid-template-columns: 1fr; }
  .trade-ai-inline-head { display: none; }
}
