:root {
  --ink: #f2f4f6;
  --muted: #8b95a1;
  --paper: #202027;
  --surface: #17171c;
  --line: #2c2c35;
  --brand: #3182f6;
  --brand-dark: #1b64da;
  --brand-pale: #202f46;
  --long: #f04452;
  --short: #3182f6;
  --good: #20c997;
}
html { background: #17171c; }
body { background: #17171c; color: #f2f4f6; font-family: "Toss Product Sans", -apple-system, BlinkMacSystemFont, "Noto Sans KR", "Segoe UI", sans-serif; }
.topbar { height: 64px; background: #17171c; color: #f2f4f6; border-bottom: 1px solid #292931; box-shadow: none; }
.wordmark { align-items: center; gap: 7px; }
.wordmark img { width: 28px; height: 28px; flex: 0 0 28px; object-fit: contain; }
.wordmark span { margin-left: 1px; font-weight: 700; }
.wordmark b { color: #f2f4f6; font-family: inherit; font-size: 1.15rem; font-weight: 800; }
.wordmark span { color: #f5c451; }
.source-global-nav { gap: 2px; }
.source-global-nav button { min-width: auto; padding: 0 18px; color: #8b95a1; font-weight: 600; }
.source-global-nav button.active { color: #f2f4f6; }
.source-global-nav button.active::after { display: none; }
.source-global-nav button:hover, .source-global-nav button:focus-visible { color: #f2f4f6; background: #202027; border-radius: 8px; }
.top-account span { color: #6b7684; }
.top-account b { color: #f2f4f6; }
.top-tools { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.notification-button { position: relative; display: grid; width: 34px; height: 34px; place-items: center; padding: 0; border: 0; border-radius: 8px; color: #8b95a1; background: #202027; }
.notification-button:hover, .notification-button:focus-visible { color: #f2f4f6; outline: 2px solid #3182f6; outline-offset: 1px; }
.notification-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.notification-button b { position: absolute; top: -5px; right: -5px; display: grid; min-width: 17px; height: 17px; place-items: center; padding: 0 4px; border: 2px solid #17171c; border-radius: 9px; color: #ffffff; background: #e9435a; font-size: .56rem; line-height: 1; }
.notification-button b[hidden] { display: none; }
.header-settings-button { margin-left: -3px; }
.header-layer-backdrop { position: fixed; z-index: 68; inset: 64px 0 0; visibility: hidden; opacity: 0; border: 0; background: rgba(8,8,12,.28); transition: opacity .2s cubic-bezier(.16,1,.3,1), visibility .2s; }
.header-layer-backdrop.open { visibility: visible; opacity: 1; }
.header-layer { position: fixed; z-index: 69; top: 72px; right: 18px; width: min(880px,calc(100vw - 36px)); max-height: min(720px,calc(100vh - 88px)); display: grid; grid-template-rows: auto minmax(0,1fr); visibility: hidden; opacity: 0; transform: translateY(-10px) scale(.985); overflow: hidden; border: 1px solid #2c2c35; border-radius: 8px; background: #1b1b21; box-shadow: 0 22px 60px rgba(0,0,0,.34); transform-origin: top right; transition: opacity .22s cubic-bezier(.16,1,.3,1),transform .22s cubic-bezier(.16,1,.3,1),visibility .22s; }
.header-layer.open { visibility: visible; opacity: 1; transform: translateY(0) scale(1); }
.header-layer.settings { width: min(680px,calc(100vw - 36px)); }
.header-layer-head { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 17px; border-bottom: 1px solid #2c2c35; background: #202027; }
.header-layer-head div { display: flex; align-items: baseline; gap: 9px; }
.header-layer-head b { color: #f2f4f6; font-size: .9rem; }
.header-layer-head span { color: #6b7684; font-size: .68rem; }
.header-layer-head button { width: 32px; height: 32px; border: 0; border-radius: 5px; background: transparent; color: #8b95a1; font-size: 1.35rem; line-height: 1; cursor: pointer; }
.header-layer-head button:hover,.header-layer-head button:focus-visible { background: #2c2c35; color: #f2f4f6; }
.header-layer-body { min-height: 0; overflow: auto; }
.header-layer .notification-toolbar { padding: 12px 14px; border-bottom: 1px solid #2c2c35; }
.header-layer .notification-layout { min-height: 410px; max-height: calc(100vh - 210px); }
.header-layer .settings-layout { min-height: 430px; }
.header-layer .settings-panel { box-shadow: none; border: 0; border-radius: 0; }
html[data-theme="light"] .header-layer-backdrop { background: rgba(16,24,40,.18); }
html[data-theme="light"] .header-layer { border-color: #e5e8eb; background: #fff; box-shadow: 0 22px 60px rgba(20,31,50,.18); }
html[data-theme="light"] .header-layer-head { border-color: #e5e8eb; background: #f8f9fa; }
html[data-theme="light"] .header-layer-head b { color: #191f28; }
html[data-theme="light"] .header-layer-head span { color: #8b95a1; }
html[data-theme="light"] .header-layer-head button { color: #8b95a1; }
html[data-theme="light"] .header-layer-head button:hover,html[data-theme="light"] .header-layer-head button:focus-visible { background: #e9ecef; color: #333d4b; }
html[data-theme="light"] .header-layer .notification-toolbar { border-color: #e5e8eb; }
@media (max-width:720px){.header-layer-backdrop{inset:56px 0 70px}.header-layer{top:62px;right:8px;width:calc(100vw - 16px)!important;max-height:calc(100vh - 142px);border-radius:7px}.header-layer-head{min-height:48px;padding:0 12px}.header-layer .notification-layout{grid-template-columns:1fr;min-height:0;max-height:none}.header-layer .notification-list{border-right:0}.header-layer .notification-detail{display:none}.header-layer .settings-layout{min-height:0}.header-layer .settings-tabs{overflow-x:auto}.header-layer .settings-tabs button{white-space:nowrap}}
@media (prefers-reduced-motion:reduce){.header-layer,.header-layer-backdrop{transition-duration:.01ms}}
.theme-switch { display: grid; grid-template-columns: repeat(2, 32px); gap: 2px; padding: 3px; background: #202027; border-radius: 8px; }
.theme-switch button { width: 32px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; color: #6b7684; background: transparent; font-size: 1rem; }
.theme-switch button:hover, .theme-switch button:focus-visible { color: #f2f4f6; outline: 2px solid #3182f6; outline-offset: 1px; }
.theme-switch button.active { color: #f2f4f6; background: #3a3a44; }
.app-shell { background: #17171c; }
.view { width: min(100%, 1320px); padding: 24px 20px 40px; }
.view-head { margin-bottom: 18px; }
.view-head h1 { color: #f2f4f6; font-size: 1.5rem; font-weight: 700; }
.mobile-trade-tabs, .mobile-bottom-nav { display: none; }
.mobile-menu-backdrop { display: none; }
.metric-strip { gap: 8px; padding: 8px; background: #202027; border: 0; border-radius: 12px; }
.metric { min-height: 62px; padding: 10px 12px; border: 0; border-radius: 8px; background: #26262e; }
.metric span { color: #8b95a1; }
.metric b { color: #f2f4f6; }
.trade-metrics { margin-bottom: 8px; overflow: hidden; background: #202027; border-radius: 8px; }
.trade-metrics-toggle { width: 100%; min-height: 40px; display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: 0 12px; border: 0; color: #8b95a1; background: transparent; font-size: .66rem; }
.trade-metrics-toggle:hover, .trade-metrics-toggle:focus-visible { color: #f2f4f6; background: #26262e; outline: 2px solid #3182f6; outline-offset: -2px; }
.trade-metrics-toggle span { margin-right: auto; color: #d1d6db; font-weight: 700; }
.trade-metrics-toggle b { font-size: .6rem; font-weight: 600; }
.trade-metrics-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform 180ms cubic-bezier(.16,1,.3,1); }
.trade-metrics.expanded .trade-metrics-toggle svg { transform: rotate(180deg); }
.trade-metrics .metric-strip { margin: 0; border-top: 1px solid #2c2c35; border-radius: 0; }
.positive, .buy-value { color: var(--long) !important; }
.negative, .sell-value { color: var(--short) !important; }
.metric .positive { color: var(--long) !important; }
.metric .negative { color: var(--short) !important; }
.instrument-summary { min-height: 118px; padding: 20px 22px; background: #202027; border: 0; border-radius: 12px; }
.instrument-summary h2 { color: #f2f4f6; font-size: 1.25rem; }
.instrument-summary h2 em { color: #8b95a1; }
.instrument-summary h2 span { color: #8b95a1; border-color: #4e5968; }
.instrument-summary small { color: #8b95a1; }
.instrument-summary dl { padding: 12px 14px; border: 0; border-radius: 8px; background: #26262e; }
.instrument-summary dt { color: #8b95a1; }
.instrument-mini-chart { position: relative; width: 150px; height: 72px; flex: 0 0 150px; }
.instrument-mini-chart svg { display: block; width: 150px; height: 64px; overflow: visible; }
.instrument-mini-chart polyline { fill: none; stroke: #e9435a; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.instrument-mini-chart polygon { fill: #e9435a; opacity: .12; }
.instrument-mini-chart line { stroke: #4a4a54; stroke-width: 1; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.instrument-mini-chart.down polyline { stroke: #3182f6; }
.instrument-mini-chart.down polygon { fill: #3182f6; }
.instrument-mini-chart > span { position: absolute; right: 0; bottom: 0; color: #6b7684; font-size: .59rem; }
.panel { background: #202027; border: 0; border-radius: 12px; }
.trade-workspace .panel { border-radius: 12px; }
.trade-workspace { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: flex-start; gap: 12px; }
.trade-workspace > .panel:last-child { grid-column: auto; }
.trade-card { width: 100%; min-width: 0; height: fit-content; flex: 0 0 auto; align-self: start; overflow: hidden; cursor: grab; user-select: none; transition: opacity 180ms cubic-bezier(.16,1,.3,1),outline-color 180ms cubic-bezier(.16,1,.3,1),transform 180ms cubic-bezier(.16,1,.3,1),box-shadow 180ms cubic-bezier(.16,1,.3,1); }
.trade-card[data-card-id="symbols"] { width: calc((100% - 24px) * .22); }
.trade-card[data-card-id="book"] { width: calc((100% - 24px) * .48); min-width: 390px; }
.trade-card[data-card-id="order"] { width: calc((100% - 24px) * .30); }
.trade-card[data-card-id="activity"] { width: calc((100% - 24px) * .38); }
.trade-card[data-card-id="indicators"] { width: calc((100% - 24px) * .32); }
.trade-card[data-card-id="insight"] { width: calc((100% - 24px) * .30); }
@media (min-width: 721px) {
  .trade-card[data-card-id="symbols"], .trade-card[data-card-id="book"], .trade-card[data-card-id="order"] { height: 654px; }
  .trade-card[data-card-id="order"] > .order-ticket { height: calc(100% - 52px); overflow-y: auto; }
  .trade-card[data-card-id="symbols"] .trade-symbol-list { height: 534px; }
  .trade-card[data-card-id="symbols"] .trade-symbol-item { min-height: 50px; margin-top: 1px; margin-bottom: 1px; }
  .trade-card[data-card-id="symbols"] .trade-symbol-select { min-height: 50px; padding-top: 6px; padding-bottom: 6px; }
  .trade-card[data-card-id="symbols"] .symbol-logo { width: 28px; height: 28px; flex-basis: 28px; border-radius: 8px; font-size: .62rem; }
  .trade-card[data-card-id="symbols"] .trade-symbol-select b { font-size: .72rem; }
  .trade-card[data-card-id="symbols"] .trade-symbol-select small, .trade-card[data-card-id="symbols"] .trade-symbol-select em { font-size: .58rem; }
}
.trade-card-head { justify-content: flex-start; gap: 7px; cursor: default; user-select: none; }
.trade-card-head > h2 { min-width: 0; }
.trade-card-head > .center-mode { margin-left: auto; }
.trade-card-handle { width: 22px; height: 30px; flex: 0 0 22px; display: grid; place-items: center; padding: 0; border: 0; color: #6b7684; background: transparent; font-size: 1rem; line-height: 1; cursor: grab; }
.trade-card-handle:hover, .trade-card-handle:focus-visible { color: #d1d6db; outline: 2px solid #3182f6; outline-offset: -2px; }
.trade-card-handle:active { cursor: grabbing; }
.trade-card.dragging { opacity: .5; cursor: grabbing; transform: scale(.985); box-shadow: 0 16px 34px rgba(0,0,0,.34); }
.trade-card.drag-over { outline: 2px solid #3182f6; outline-offset: -3px; transform: translateY(-2px); }
.trade-card.drop-blocked { outline: 2px solid rgba(240,68,82,.7); outline-offset: -3px; cursor: not-allowed; }
.trade-activity-card, .order-insight-card { font-variant-numeric: tabular-nums; }
.indicator-card { font-variant-numeric: tabular-nums; }
.indicator-widget { min-height: 212px; }
.indicator-widget-head { height: 34px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; color: #8b95a1; border-bottom: 1px solid #2c2c35; font-size: .58rem; }
.indicator-widget-head span { display: flex; align-items: center; gap: 6px; }
.indicator-widget-head i { width: 6px; height: 6px; border-radius: 50%; background: #8b95a1; }
.indicator-widget-head i.live { background: #40d9a5; }
.indicator-widget-head i.stale { background: #ffbd66; }
.indicator-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); min-height: 144px; }
.indicator-grid article { min-width: 0; display: grid; grid-template-rows: auto 36px; gap: 7px; padding: 13px 10px; border-right: 1px solid #2c2c35; }
.indicator-grid article:last-child { border-right: 0; }
.indicator-grid article > div { display: grid; gap: 3px; min-width: 0; }
.indicator-grid b { overflow: hidden; color: #d1d6db; font-size: .64rem; text-overflow: ellipsis; white-space: nowrap; }
.indicator-grid strong { color: #f2f4f6; font-size: .76rem; }
.indicator-grid span { font-size: .58rem; white-space: nowrap; }
.indicator-grid svg { width: 100%; height: 36px; overflow: visible; }
.indicator-grid polyline { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.indicator-grid polyline.up { stroke: #f04452; }
.indicator-grid polyline.down { stroke: #3182f6; }
.indicator-pager { display: flex; justify-content: center; gap: 5px; height: 26px; align-items: center; }
.indicator-pager i { width: 5px; height: 5px; border-radius: 50%; background: #4e5968; }
.indicator-pager i.active { width: 14px; border-radius: 3px; background: #3182f6; }
.panel-head { min-height: 52px; padding: 0 16px; background: transparent; border-bottom: 1px solid #2c2c35; }
.panel-head h2 { color: #f2f4f6; font-size: .95rem; font-weight: 700; }
.view-head h1, .panel-head h2, .account-chart-heading h2 { display: flex; align-items: center; gap: 9px; }
.line-icon { width: 19px; height: 19px; flex: 0 0 19px; fill: none; stroke: #8b95a1; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.view-head h1 .line-icon { width: 22px; height: 22px; flex-basis: 22px; color: #3182f6; stroke: #3182f6; }
.panel-head h2 .line-icon, .account-chart-heading h2 .line-icon { width: 17px; height: 17px; flex-basis: 17px; }
.panel-head h2 span, .view-head h1 span, .account-chart-heading h2 span { min-width: 0; }
.market-center-panel .panel-head { justify-content: space-between; }
.account-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding: 24px 28px; margin-bottom: 12px; background: #202027; border-radius: 12px; }
.account-hero > div { display: grid; gap: 6px; }
.account-hero span, .account-risk-band span, .fee-summary span { color: #8b95a1; font-size: .72rem; }
.account-hero strong { color: #f2f4f6; font-size: 1.75rem; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.account-hero em { font-size: .78rem; font-style: normal; font-weight: 700; }
.account-hero dl { display: grid; grid-template-columns: auto auto; gap: 7px 24px; margin: 0; text-align: right; }
.account-hero dt { color: #8b95a1; font-size: .72rem; }
.account-hero dd { margin: 0; color: #f2f4f6; font-weight: 700; font-variant-numeric: tabular-nums; }
.account-stat-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 1px; margin-bottom: 12px; overflow: hidden; border-radius: 10px; background: #31313a; }
.account-stat-grid > div { display: grid; gap: 7px; min-width: 0; padding: 14px 16px; background: #26262e; }
.account-stat-grid span { color: #8b95a1; font-size: .69rem; }
.account-stat-grid b { color: #f2f4f6; font-size: .92rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.account-risk-band { display: grid; grid-template-columns: minmax(150px,.65fr) minmax(280px,1.35fr) minmax(280px,1fr); align-items: center; gap: 28px; padding: 18px 22px; margin-bottom: 12px; background: #202027; border-radius: 12px; }
.account-risk-copy { display: grid; gap: 4px; }
.account-risk-copy strong { color: #f2f4f6; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.account-risk-band small { color: #8b95a1; font-size: .68rem; }
.account-utilization { display: grid; gap: 7px; }
.account-utilization > div:first-child { display: flex; justify-content: space-between; }
.account-utilization b { color: #f2f4f6; font-variant-numeric: tabular-nums; }
.account-progress { height: 7px; overflow: hidden; border-radius: 4px; background: #34343d; }
.account-progress i { display: block; height: 100%; border-radius: inherit; background: #3182f6; }
.account-exposure { display: grid; gap: 9px; }
.account-exposure div { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.account-exposure b { font-size: .75rem; font-variant-numeric: tabular-nums; }
.account-bottom-grid { display: grid; grid-template-columns: minmax(300px,.7fr) minmax(500px,1.3fr); gap: 12px; margin-top: 12px; }
.fee-summary { display: grid; grid-template-columns: 1fr 1fr; }
.fee-summary > div { display: grid; gap: 7px; min-height: 76px; padding: 16px; border-right: 1px solid #2c2c35; border-bottom: 1px solid #2c2c35; }
.fee-summary > div:nth-child(even) { border-right: 0; }
.fee-summary > div:nth-last-child(-n+2) { border-bottom: 0; }
.fee-summary b { color: #f2f4f6; font-size: .95rem; font-variant-numeric: tabular-nums; }
.data-table td:last-child b { display: block; }
.data-table td:last-child small { display: block; margin-top: 3px; color: inherit; font-size: .64rem; }
.account-chart-section { margin-bottom: 12px; overflow: hidden; border-radius: 12px; background: #202027; }
.account-chart-heading { display: flex; justify-content: space-between; align-items: center; min-height: 58px; padding: 0 18px; border-bottom: 1px solid #2c2c35; }
.account-chart-heading h2, .account-chart-card h3 { margin: 0; color: #f2f4f6; font-size: .9rem; }
.account-chart-heading p { margin: 4px 0 0; color: #8b95a1; font-size: .68rem; }
.account-chart-heading > span { color: #3182f6; font-size: .68rem; font-weight: 700; }
.account-chart-grid { display: grid; grid-template-columns: 1.05fr 1.15fr .9fr; }
.account-chart-card { min-width: 0; padding: 18px; border-right: 1px solid #2c2c35; }
.account-chart-card:last-child { border-right: 0; }
.account-chart-card header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.account-chart-card header span { color: #8b95a1; font-size: .65rem; white-space: nowrap; }
.allocation-body { display: grid; grid-template-columns: 138px minmax(140px,1fr); align-items: center; gap: 18px; }
.donut-chart { position: relative; width: 132px; aspect-ratio: 1; }
.donut-chart svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-chart circle { fill: none; stroke: var(--segment); stroke-width: 13; stroke-dasharray: var(--share) calc(100 - var(--share)); stroke-dashoffset: var(--offset); stroke-linecap: butt; }
.donut-chart .donut-base { stroke: #303039; stroke-dasharray: none; }
.donut-chart > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-chart b { color: #f2f4f6; font-size: 1.2rem; }
.donut-chart span { color: #8b95a1; font-size: .63rem; }
.allocation-body ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.allocation-body li { display: grid; grid-template-columns: 8px minmax(60px,1fr) auto; align-items: center; gap: 7px; font-size: .68rem; }
.allocation-body li i { width: 7px; height: 7px; border-radius: 50%; background: var(--legend); }
.allocation-body li span { overflow: hidden; color: #d5d8dc; text-overflow: ellipsis; white-space: nowrap; }
.allocation-body li b { color: #f2f4f6; font-variant-numeric: tabular-nums; }
.allocation-body li small { grid-column: 2/4; color: #6b7684; font-size: .6rem; }
.pnl-chart, .sold-chart { display: grid; gap: 14px; }
.pnl-chart-row { display: grid; grid-template-columns: minmax(108px,.9fr) minmax(100px,1.25fr) auto; align-items: center; gap: 10px; }
.pnl-chart-row > div:first-child, .sold-chart-row > div:first-child { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pnl-chart-row span, .sold-chart-row span { display: grid; min-width: 0; }
.pnl-chart-row span b, .sold-chart-row span b { overflow: hidden; color: #d5d8dc; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.pnl-chart-row span small, .sold-chart-row span small { color: #6b7684; font-size: .58rem; }
.pnl-track { position: relative; height: 8px; border-radius: 4px; background: linear-gradient(90deg,#303039 0 49.5%,#4b4b56 49.5% 50.5%,#303039 50.5%); }
.pnl-track i { position: absolute; top: 0; height: 100%; border-radius: 4px; }
.pnl-track i.gain { left: 50%; background: #e9435a; }
.pnl-track i.loss { right: 50%; background: #3182f6; }
.pnl-chart-row strong, .sold-chart-row strong { min-width: 76px; font-size: .68rem; font-variant-numeric: tabular-nums; text-align: right; }
.sold-chart-row { display: grid; grid-template-columns: minmax(110px,.9fr) minmax(80px,1fr) auto; align-items: center; gap: 10px; }
.sold-chart-row > div:nth-child(2) { height: 8px; overflow: hidden; border-radius: 4px; background: #303039; }
.sold-chart-row > div:nth-child(2) i { display: block; height: 100%; border-radius: inherit; background: #3182f6; }
.sold-chart-row strong { color: #f2f4f6; }
.chart-empty { display: grid; min-height: 132px; place-items: center; color: #8b95a1; font-size: .72rem; }
.notification-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 12px; }
.notification-filters { display: flex; gap: 4px; padding: 4px; border-radius: 8px; background: #202027; }
.notification-filters button, .mark-all-read { min-height: 34px; padding: 0 12px; border: 0; border-radius: 6px; color: #8b95a1; background: transparent; font-size: .72rem; font-weight: 700; }
.notification-filters button.active { color: #f2f4f6; background: #35353e; }
.notification-filters b { margin-left: 4px; font-size: .62rem; }
.mark-all-read { color: #5b9cff; background: #263249; }
.mark-all-read:disabled { color: #62626d; background: #303038; }
.notification-layout { display: grid; grid-template-columns: minmax(360px,.8fr) minmax(440px,1.2fr); min-height: 570px; overflow: hidden; border-radius: 12px; background: #202027; }
.notification-list { border-right: 1px solid #2c2c35; }
.notification-item { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; width: 100%; min-height: 104px; padding: 16px 18px; border: 0; border-bottom: 1px solid #2c2c35; color: #f2f4f6; background: transparent; text-align: left; }
.notification-item:hover, .notification-item:focus-visible { background: #26262e; outline: 0; }
.notification-item.active { background: #292933; }
.notification-item.read { opacity: .72; }
.notification-item time, .notification-detail time { color: #6b7684; font-size: .64rem; text-align: right; }
.notification-item > b { grid-column: 1/-1; font-size: .82rem; }
.notification-item p { grid-column: 1/-1; margin: 0; overflow: hidden; color: #8b95a1; font-size: .69rem; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.notification-item > i { position: absolute; right: 14px; bottom: 14px; width: 6px; height: 6px; border-radius: 50%; background: #3182f6; }
.notification-type { justify-self: start; display: inline-flex; align-items: center; min-height: 22px; padding: 0 7px; border-radius: 5px; color: #d5d8dc; background: #34343d; font-size: .62rem; font-weight: 800; }
.notification-type.execution { color: #ff8b97; background: #3b2930; }
.notification-type.losscut, .notification-type.liquidation { color: #ffbd66; background: #3b3227; }
.notification-type.overnight { color: #70aaff; background: #263249; }
.notification-type.admin { color: #69d2aa; background: #243a34; }
.notification-detail { padding: 34px 38px; }
.notification-detail header { display: flex; justify-content: space-between; align-items: center; }
.notification-detail h2 { margin: 24px 0 12px; color: #f2f4f6; font-size: 1.3rem; letter-spacing: 0; }
.notification-detail > p { max-width: 64ch; margin: 0; color: #a8b0ba; font-size: .8rem; line-height: 1.75; }
.notification-detail dl { display: grid; grid-template-columns: 100px 1fr; gap: 14px; margin: 32px 0; padding: 22px 0; border-top: 1px solid #2c2c35; border-bottom: 1px solid #2c2c35; }
.notification-detail dt { color: #6b7684; font-size: .7rem; }
.notification-detail dd { margin: 0; color: #d5d8dc; font-size: .74rem; }
.notification-detail > button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 8px; color: #f2f4f6; background: #3182f6; font-weight: 700; }
.notification-empty { display: grid; min-height: 180px; place-items: center; color: #8b95a1; font-size: .75rem; }
.transfer-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin-bottom: 12px; overflow: hidden; border-radius: 12px; background: #31313a; }
.transfer-summary > div { display: grid; gap: 7px; padding: 18px 20px; background: #202027; }
.transfer-summary span { color: #8b95a1; font-size: .72rem; }
.transfer-summary strong { color: #f2f4f6; font-size: 1.12rem; font-variant-numeric: tabular-nums; }
.transfer-layout { display: grid; grid-template-columns: minmax(380px,1.3fr) minmax(260px,.7fr); gap: 12px; margin-bottom: 12px; }
.transfer-form { display: grid; gap: 18px; padding: 20px; }
.transfer-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 8px; background: #2a2a32; }
.transfer-tabs button { height: 40px; border: 0; border-radius: 6px; color: #8b95a1; background: transparent; font-weight: 700; }
.transfer-tabs button.active.deposit { color: #ff6b7a; background: #353039; }
.transfer-tabs button.active.withdrawal { color: #5b9cff; background: #2d323d; }
.transfer-account { display: grid; grid-template-columns: 1fr auto; gap: 5px 16px; padding-bottom: 16px; border-bottom: 1px solid #2c2c35; }
.transfer-account span, .transfer-account small { color: #8b95a1; font-size: .7rem; }
.transfer-account b { color: #f2f4f6; font-size: .82rem; }
.transfer-account small { grid-column: 2; text-align: right; }
.transfer-amount { margin: 0; }
.transfer-amount > div { position: relative; }
.transfer-amount input { width: 100%; height: 48px; padding-right: 42px; border: 1px solid #3b3b45; border-radius: 8px; color: #f2f4f6; background: #282830; font-size: 1.05rem; font-weight: 700; text-align: right; }
.transfer-amount > div span { position: absolute; right: 15px; top: 50%; color: #8b95a1; transform: translateY(-50%); }
.transfer-presets { grid-template-columns: repeat(5,1fr); }
.transfer-presets button { min-height: 34px; }
.transfer-after { display: grid; grid-template-columns: 1fr auto; gap: 9px; padding: 14px; border-radius: 8px; background: #282830; }
.transfer-after span { color: #8b95a1; font-size: .72rem; }
.transfer-after b { color: #f2f4f6; font-size: .78rem; font-variant-numeric: tabular-nums; text-align: right; }
.transfer-submit { min-height: 46px; border: 0; border-radius: 8px; color: #f2f4f6; font-weight: 800; }
.transfer-submit.deposit { background: #e9435a; }
.transfer-submit.withdrawal { background: #3182f6; }
.transfer-submit:disabled { color: #62626d; background: #303038; cursor: not-allowed; }
.transfer-guide dl { display: grid; grid-template-columns: 1fr auto; gap: 14px 20px; margin: 0; padding: 20px; }
.transfer-guide dt { color: #8b95a1; font-size: .72rem; }
.transfer-guide dd { margin: 0; color: #f2f4f6; font-size: .75rem; font-weight: 700; text-align: right; }
.transfer-notice { margin: 0 20px 20px; padding-top: 16px; border-top: 1px solid #2c2c35; }
.transfer-notice b { color: #f2f4f6; font-size: .75rem; }
.transfer-notice p { margin: 7px 0 0; color: #8b95a1; font-size: .7rem; line-height: 1.55; }
.center-mode { display: flex; gap: 2px; padding: 3px; background: #26262e; border-radius: 8px; }
.center-mode button, .chart-toolbar button { height: 30px; padding: 0 11px; border: 0; border-radius: 6px; color: #8b95a1; background: transparent; font-weight: 700; font-size: .72rem; }
.center-mode button.active, .chart-toolbar button.active { color: #f2f4f6; background: #3a3a44; }
.click-order-guide, .chart-order-guide { min-height: 34px; display: flex; align-items: center; padding: 0 12px; color: #8b95a1; background: #26262e; border-bottom: 1px solid #2c2c35; font-size: .62rem; }
.click-order-panel .book-price { cursor: crosshair; }
.click-order-panel .book-price:hover, .click-order-panel .book-price:focus-visible { color: #ffffff; background: #3182f6; outline: 0; }
@media (min-width: 721px) { .click-order-panel .book-ladder { height: 534px; } }
.chart-toolbar { height: 44px; display: flex; align-items: center; gap: 3px; padding: 0 12px; border-bottom: 1px solid #2c2c35; }
.trading-chart { width: 100%; height: 466px; }
.chart-attribution { height: 24px; display: flex; align-items: center; justify-content: flex-end; gap: 3px; padding: 0 10px; color: #6b7684; font-size: .62rem; }
.chart-attribution a { color: #8b95a1; }
.data-table th, .book-head { color: #8b95a1; background: #202027; border-top: 0; border-bottom: 1px solid #2c2c35; }
.data-table td { color: #d1d6db; border-bottom-color: #292931; }
.data-table tbody tr:nth-child(even) { background: transparent; }
.data-table tbody tr:hover { background: #292931; }
.trade-symbol-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 38px; align-items: center; margin: 2px 6px; border: 1px solid transparent; border-radius: 8px; }
.trade-symbol-list .trade-symbol-select { width: 100%; min-height: 64px; padding: 10px 8px 10px 14px; color: #f2f4f6; background: transparent; border: 0; display: flex; align-items: center; justify-content: space-between; text-align: left; }
.trade-symbol-list .trade-symbol-select:hover, .trade-symbol-list .trade-symbol-select:focus-visible { color: #f2f4f6; background: transparent; outline: none; }
.trade-symbol-item:hover, .trade-symbol-item:focus-within { background: transparent; border-color: #4e5968; }
.trade-symbol-item.active { background: #263249; border-color: #3f5379; }
.trade-symbol-list small, .trade-symbol-list em { color: #8b95a1; }
.symbol-list-loader { display: grid; min-height: 34px; place-items: center; color: #8b95a1; font-size: .58rem; }
.symbol-search { display: grid; gap: 7px; padding: 12px 12px 10px; border-bottom: 1px solid #292931; }
.symbol-search label { color: #8b95a1; font-size: .65rem; font-weight: 700; }
.symbol-search > div { position: relative; }
.symbol-search > div > span { position: absolute; left: 11px; top: 50%; color: #8b95a1; font-size: 1rem; transform: translateY(-50%); pointer-events: none; }
.symbol-search input { width: 100%; height: 38px; padding: 0 34px; border: 1px solid #383842; border-radius: 8px; color: #f2f4f6; background: #282830; outline: 0; }
.symbol-search input:focus { border-color: #3182f6; box-shadow: 0 0 0 2px #253d60; }
.symbol-search input::placeholder { color: #6b7684; }
.symbol-search [data-clear-symbol-search] { position: absolute; top: 50%; right: 6px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; color: #8b95a1; background: transparent; font-size: 1rem; transform: translateY(-50%); }
.symbol-search [data-clear-symbol-search]:hover { color: #f2f4f6; background: #383842; }
.symbol-search-result { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 9px; min-height: 62px; padding: 8px 12px; border-bottom: 1px solid #292931; }
.symbol-search-result > div { display: grid; min-width: 0; gap: 3px; }
.symbol-search-result > div b { overflow: hidden; color: #f2f4f6; font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
.symbol-search-result > div small { color: #8b95a1; font-size: .61rem; }
.search-trade-button, .trade-request-button { min-width: 62px; height: 32px; padding: 0 9px; border: 0; border-radius: 7px; color: #f2f4f6; background: #3182f6; font-size: .68rem; font-weight: 700; }
.trade-request-button { color: #5b9cff; background: #263249; }
.trade-request-button.requested { color: #8b95a1; background: #303038; cursor: default; }
.symbol-search-empty { display: grid; gap: 5px; min-height: 130px; place-content: center; padding: 18px; text-align: center; }
.symbol-search-empty b { color: #d5d8dc; font-size: .75rem; }
.symbol-search-empty span { color: #8b95a1; font-size: .65rem; }
.instrument-identity { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.symbol-logo { width: 32px; height: 32px; flex: 0 0 32px; display: inline-grid; place-items: center; overflow: hidden; border-radius: 10px; color: #fff; background: var(--symbol-color); font-size: .72rem; font-weight: 800; letter-spacing: -.03em; }
.symbol-logo.small { width: 28px; height: 28px; flex-basis: 28px; border-radius: 8px; font-size: .64rem; }
.symbol-logo.large { width: 44px; height: 44px; flex-basis: 44px; border-radius: 12px; font-size: .86rem; }
.symbol-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.symbol-logo img + b { display: none; }
.trade-symbol-select .symbol-logo { margin-right: 2px; }
.trade-symbol-select > span:not(.symbol-logo) { margin-right: auto; }
.instrument-summary-main { display: flex; align-items: center; gap: 14px; }
.instrument-summary-main .instrument-mini-chart { margin-left: auto; }
.instrument-summary { flex-wrap: nowrap; gap: 18px 28px; }
.instrument-price-copy { min-width: 190px; }
.market-stat-grid { display: grid !important; flex: 1 1 420px; grid-template-columns: repeat(5,minmax(0,1fr)) !important; width: auto; min-width: 360px !important; max-width: 560px; gap: 10px 18px !important; margin: 0; padding: 0 !important; overflow: hidden; background: transparent !important; border: 0 !important; border-radius: 0 !important; }
.market-stat-grid > div { display: flex; align-items: baseline; justify-content: center; min-width: 0; gap: 5px; padding: 0; border: 0; }
.market-stat-grid dt, .market-stat-grid dd { display: inline; margin: 0; text-align: left !important; }
.market-stat-grid dt { color: #6b7684; font-size: .61rem; white-space: nowrap; }
.market-stat-grid dd { overflow: hidden; color: #d1d6db; font-size: .73rem; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.ticket-account-line { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; margin: -2px 0 14px; padding: 10px 0; border-bottom: 1px solid #2c2c35; font-size: .7rem; }
.ticket-account-line span { color: #8b95a1; }
.ticket-account-line b { color: #d1d6db; text-align: right; font-variant-numeric: tabular-nums; }
.ticket-task-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); height: 42px; margin: -14px -14px 14px; border-bottom: 1px solid #2c2c35; }
.ticket-task-tabs button { position: relative; border: 0; color: #8b95a1; background: transparent; font-size: .72rem; font-weight: 700; }
.ticket-task-tabs button:hover, .ticket-task-tabs button:focus-visible { color: #f2f4f6; background: #26262e; outline: 2px solid #3182f6; outline-offset: -2px; }
.ticket-task-tabs button.active { color: #f2f4f6; }
.ticket-task-tabs button.active::after { content: ""; position: absolute; right: 20px; bottom: -1px; left: 20px; height: 2px; background: #3182f6; }
.position-side-buttons { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-bottom: 12px; }
.position-side-buttons button { height: 44px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #3a3a44; border-radius: 8px; background: #26262e; font-size: .72rem; font-weight: 800; }
.position-side-buttons button b { font-size: .78rem; }
.position-side-buttons button span { font-size: .64rem; font-weight: 700; opacity: .8; }
.position-side-buttons button.long { color: var(--long); border-color: rgba(240,68,82,.55); background: rgba(240,68,82,.1); }
.position-side-buttons button.short { color: var(--short); border-color: rgba(49,130,246,.55); background: rgba(49,130,246,.1); }
.position-side-buttons button.active.long { color: #fff; background: var(--long); }
.position-side-buttons button.active.short { color: #fff; background: var(--short); }
.ticket-submit-side { font-weight: 900; }
.direct-order-buttons { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 10px; }
.order-ticket > .position-side-buttons { display: none !important; }
.direct-order { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 8px; color: #fff; cursor: pointer; }
.direct-order b { font-size: .78rem; }
.direct-order span { font-size: .64rem; font-weight: 700; }
.direct-order.long { background: var(--long); }
.direct-order.short { background: var(--short); }
.direct-order:hover, .direct-order:focus-visible { filter: brightness(1.08); outline: 2px solid #fff; outline-offset: 2px; }
.margin-slider { margin: 4px 0 12px; }
.margin-slider > div, .margin-slider p { display: flex; align-items: center; justify-content: space-between; }
.margin-slider label, .margin-slider output { color: #8b95a1; font-size: .68rem; font-weight: 700; }
.margin-slider output { color: #d1d6db; font-variant-numeric: tabular-nums; }
.margin-slider input { width: 100%; height: 30px; margin: 3px 0 0; accent-color: #3182f6; cursor: pointer; }
.margin-slider p { margin: -3px 0 0; color: #6b7684; font-size: .54rem; }
.manage-orders { min-height: 250px; }
.manage-order-head, .manage-order-row { display: grid; grid-template-columns: minmax(78px,1.25fr) 46px 48px minmax(64px,.8fr) 76px; align-items: center; gap: 5px; }
.manage-order-head { height: 30px; color: #6b7684; font-size: .56rem; text-align: center; }
.manage-order-row { min-height: 52px; border-top: 1px solid #2c2c35; color: #d1d6db; font-size: .62rem; }
.manage-order-row small { display: block; margin-top: 3px; color: #6b7684; font-size: .52rem; }
.manage-order-row > span, .manage-order-row > strong, .manage-order-row > em { text-align: center; font-style: normal; font-variant-numeric: tabular-nums; }
.manage-order-row > div:last-child { display: flex; justify-content: flex-end; gap: 3px; }
.manage-order-row button { height: 28px; padding: 0 7px; border: 0; border-radius: 6px; color: #d1d6db; background: #33333d; font-size: .55rem; }
.manage-order-row button:last-child { color: var(--short); }
.mobile-symbol-head { display: none; }
.trade-symbol-list .favorite-button, .favorite-button { width: 34px; min-width: 34px; max-width: 34px; min-height: 34px; height: 34px; flex: 0 0 34px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 8px; color: #6b7684; background: transparent; font-size: 1.25rem; line-height: 1; text-align: center; }
.favorite-button > span { display: block; line-height: 1; }
.favorite-button:hover, .favorite-button:focus-visible { color: #f04452; background: #33333d; outline: 2px solid #3182f6; outline-offset: 1px; }
.favorite-button.active { color: #f04452; }
.favorite-cell { width: 46px; text-align: center !important; padding: 0 6px !important; }
.watch-filter { display: flex; gap: 6px; margin: 0 0 12px; }
.watch-filter button { height: 36px; padding: 0 14px; border: 0; border-radius: 8px; color: #8b95a1; background: #202027; font-weight: 700; }
.watch-filter button.active { color: #f2f4f6; background: #33333d; }
.watch-filter b { margin-left: 4px; color: #ffc342; }
.book-ladder { scrollbar-color: #4e5968 transparent; }
.book-head { height: 34px; color: #d1d6db; background: #2b2b34; border-top: 1px solid #ffffff; border-bottom: 1px solid #ffffff; }
.book-row { height: 24px; color: #d1d6db; background: #1d2736; border-bottom-color: #ffffff; }
.book-head > span, .book-row > * { border-right-color: #ffffff; }
.book-row.bid { background: #302126; border-bottom-color: #ffffff; }
.book-row:hover, .book-row:focus-visible { background: #26364d; outline: 1px solid #4e5968; }
.book-row.bid:hover, .book-row.bid:focus-visible { background: #43282f; }
.book-quantity i { background: rgba(49, 130, 246, .38); }
.book-row.bid .book-quantity i { background: rgba(240, 68, 82, .36); }
.book-current { color: #f2f4f6; background: #26262e; border-color: #ffffff; }
.book-current span { color: #8b95a1; }
.book-current.trade-up { background: #3a252b; box-shadow: inset 4px 0 #f04452; }
.book-current.trade-down { background: #20324c; box-shadow: inset 4px 0 #3182f6; }
.book-totals { color: #8b95a1; border-top: 1px solid #ffffff; }
.order-book, .book-head, .book-row, .book-head > span, .book-row > *, .book-current, .book-totals { border-color: transparent !important; }
.book-head { border-top: 0 !important; border-bottom: 0 !important; }
.book-row { border-bottom: 0 !important; }
.book-totals { border-top: 0 !important; }
[data-theme="light"] .order-book, [data-theme="light"] .book-head, [data-theme="light"] .book-row, [data-theme="light"] .book-head > span, [data-theme="light"] .book-row > *, [data-theme="light"] .book-current, [data-theme="light"] .book-totals { border-color: #ffffff !important; }
[data-theme="light"] .book-head { border-top: 1px solid #ffffff !important; border-bottom: 1px solid #ffffff !important; }
[data-theme="light"] .book-row { border-bottom: 1px solid #ffffff !important; }
[data-theme="light"] .book-totals { border-top: 1px solid #ffffff !important; }
[data-theme="dark"] .order-book, [data-theme="dark"] .book-head, [data-theme="dark"] .book-row, [data-theme="dark"] .book-head > span, [data-theme="dark"] .book-row > *, [data-theme="dark"] .book-current, [data-theme="dark"] .book-totals { border-color: #17171C !important; }
[data-theme="dark"] .book-head { border-top: 1px solid #17171C !important; border-bottom: 1px solid #17171C !important; }
[data-theme="dark"] .book-row { border-bottom: 1px solid #17171C !important; }
[data-theme="dark"] .book-totals { border-top: 1px solid #17171C !important; }
.trade-activity-card, .order-insight-card { background: #202027; }
.trade-subtabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: 38px; border-bottom: 1px solid #2c2c35; }
.trade-subtabs button { position: relative; min-width: 0; padding: 0 6px; border: 0; color: #8b95a1; background: transparent; font-size: .68rem; font-weight: 700; }
.trade-subtabs button:hover, .trade-subtabs button:focus-visible { color: #f2f4f6; background: #26262e; outline: 2px solid #3182f6; outline-offset: -2px; }
.trade-subtabs button.active { color: #f2f4f6; }
.trade-subtabs button.active::after { content: ""; position: absolute; right: 12px; bottom: 0; left: 12px; height: 2px; background: #3182f6; }
.activity-head, .activity-row { display: grid; grid-template-columns: minmax(64px,.8fr) minmax(54px,.65fr) minmax(80px,1fr) minmax(72px,.8fr); align-items: center; gap: 8px; padding: 0 12px; }
.activity-head { height: 28px; color: #6b7684; background: #1c1c22; font-size: .58rem; }
.activity-list { height: 150px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #4e5968 transparent; }
.activity-row { min-height: 30px; border-bottom: 1px solid #292931; color: #d1d6db; font-size: .65rem; }
.activity-head > *, .activity-row > * { min-width: 0; text-align: center; }
.activity-row time, .activity-row em { color: #8b95a1; font-style: normal; }
.activity-row.latest { animation: activity-in 420ms cubic-bezier(.16,1,.3,1); }
.trade-empty { display: grid; min-height: 112px; place-items: center; color: #6b7684; font-size: .68rem; }
@keyframes activity-in { from { opacity: .28; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.order-insight-card { margin: 0; }
.order-status-body { min-height: 178px; }
.order-status-head, .order-status-row { display: grid; grid-template-columns: 52px minmax(74px,1fr) 48px 48px minmax(64px,.8fr); align-items: center; gap: 5px; padding: 0 12px; }
.order-status-head { height: 28px; color: #6b7684; background: #1c1c22; font-size: .56rem; }
.order-status-row { min-height: 30px; border-bottom: 1px solid #292931; color: #d1d6db; font-size: .61rem; }
.order-status-head > *, .order-status-row > * { min-width: 0; text-align: center; }
.order-status-row time, .order-status-row em { color: #8b95a1; font-style: normal; }
.losscut-current { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; margin: 12px; padding: 12px; border: 1px solid #3a3a44; border-radius: 8px; }
.losscut-current span, .losscut-current small { color: #8b95a1; font-size: .62rem; }
.losscut-current strong { font-size: 1.05rem; }
.losscut-current small { grid-column: 1/-1; }
.losscut-current.safe strong { color: #20c997; }
.losscut-current.warning strong { color: #ffc342; }
.losscut-current.blocked strong, .losscut-current.danger strong { color: var(--short); }
.losscut-levels { display: grid; grid-template-columns: repeat(3,1fr); margin: 0 12px 12px; border: 1px solid #3a3a44; border-radius: 8px; overflow: hidden; }
.losscut-levels div { display: grid; gap: 3px; padding: 9px 6px; border-right: 1px solid #3a3a44; text-align: center; }
.losscut-levels div:last-child { border-right: 0; }
.losscut-levels b { font-size: .68rem; }
.losscut-levels span { color: #8b95a1; font-size: .54rem; }
.segmented { margin-bottom: 16px; border-bottom: 1px solid #2c2c35; }
.segmented button { color: #8b95a1; background: transparent; border: 0; }
.segmented button.active { background: transparent !important; }
.segmented button.active.long { color: #f04452; }
.segmented button.active.short { color: #3182f6; }
.field-label, .field label { color: #8b95a1; }
.field input, .field select { color: #f2f4f6; background: #26262e; border: 1px solid #3a3a44; border-radius: 8px; }
.field input:focus, .field select:focus { border-color: #3182f6; outline: 2px solid #203a61; }
.ticket-control-field { align-items: start; }
.stepper { display: grid; grid-template-columns: 36px minmax(72px, 1fr) 36px; gap: 4px; }
.stepper input { width: 100%; min-width: 0; padding: 0 6px; text-align: center; font-variant-numeric: tabular-nums; appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.stepper button, .quick-options button { border: 0; border-radius: 8px; color: #d1d6db; background: #26262e; font-weight: 700; }
.stepper button { width: 36px; height: 36px; padding: 0; font-size: 1rem; }
.stepper button:hover, .stepper button:focus-visible, .quick-options button:hover, .quick-options button:focus-visible { color: #f2f4f6; background: #33333d; outline: 2px solid #3182f6; outline-offset: 1px; }
.stepper button:disabled { opacity: .32; cursor: not-allowed; }
#ticketPrice[readonly] { color: #8b95a1; cursor: not-allowed; font-weight: 800; }
.quick-options { grid-column: 2; display: grid; gap: 4px; margin-top: 2px; }
.quantity-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.quick-options button { min-width: 0; height: 30px; padding: 0 4px; color: #8b95a1; font-size: .65rem; white-space: nowrap; }
.quick-options button.active { color: #f2f4f6; background: #3a3a44; }
.ticket-account-line b.long, .quick-options button.buy-value { color: var(--long) !important; }
.ticket-account-line b.short, .quick-options button.sell-value { color: var(--short) !important; }
.order-type-buttons { gap: 6px; }
.order-type-buttons { grid-template-columns: repeat(3,minmax(0,1fr)); }
.order-type-buttons button { height: 36px; color: #8b95a1; background: #26262e; border: 0; border-radius: 8px; }
.order-type-buttons button + button { border-left: 0; }
.order-type-buttons button.active { color: #f2f4f6; background: #3a3a44; }
.ticket-summary { color: #d1d6db; background: #26262e; border-radius: 8px; }
.ticket-submit { height: 48px; border-radius: 8px; }
.ticket-submit.long { background: #f04452; }
.ticket-submit.short { background: #3182f6; }
.button, .mini-button { color: #d1d6db; background: #26262e; border: 0; border-radius: 8px; }
.button:hover, .mini-button:hover { background: #33333d; color: #f2f4f6; }
.button.primary { background: #3182f6; border: 0; }
.badge { border-radius: 6px; }
.badge.good { color: #40d9a5; background: #203b35; }
dialog { color: #f2f4f6; background: #202027; border: 1px solid #3a3a44; border-radius: 12px; }
dialog::backdrop { background: rgba(0, 0, 0, .7); }
#orderForm > p { color: #8b95a1; }
#toast { position: fixed; top: 70px; left: 50%; right: auto; bottom: auto; z-index: 100; display: flex; align-items: center; justify-content: center; width: min(620px,calc(100vw - 32px)); min-width: 0; min-height: 38px; padding: 7px 16px; color: #f2f4f6; background: #202027; border: 1px solid #3a3a44; border-radius: 7px; box-shadow: 0 7px 18px rgba(0,0,0,.22); font-size: .7rem; font-weight: 700; line-height: 1.35; text-align: center; opacity: 0; transform: translate(-50%,-8px); pointer-events: none; transition: opacity 180ms cubic-bezier(.16,1,.3,1),transform 180ms cubic-bezier(.16,1,.3,1); }
#toast.show { opacity: 1; transform: translate(-50%,0); }
#toast[data-kind="execution"] { border-color: rgba(240,68,82,.65); }
#toast[data-kind="transfer"] { border-color: rgba(49,130,246,.65); }
#toast[data-kind="message"] { border-color: rgba(64,217,165,.65); }
#toast[data-kind="error"] { border-color: rgba(255,189,102,.7); }
#toast[data-kind="loss-cut"] { color: #ffd6a0; border-color: rgba(255,189,102,.85); background: #3b3227; }
#toast[data-kind="market-close"] { border-color: rgba(112,170,255,.75); background: #263249; }
.support-tabs { display: flex; gap: 28px; min-height: 54px; margin-bottom: 16px; border-bottom: 1px solid #2c2c35; }
.positions-tabs { display: flex; min-height: 48px; margin: 12px 0; overflow-x: auto; border-bottom: 1px solid #2c2c35; scrollbar-width: thin; scrollbar-color: #4e5968 transparent; }
.positions-tabs button { position: relative; flex: 0 0 auto; min-width: 108px; padding: 0 14px; border: 0; color: #8b95a1; background: transparent; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.positions-tabs button:hover, .positions-tabs button:focus-visible { color: #f2f4f6; background: #26262e; outline: 2px solid #3182f6; outline-offset: -2px; }
.positions-tabs button.active { color: #f2f4f6; }
.positions-tabs button.active::after { content: ""; position: absolute; right: 14px; bottom: -1px; left: 14px; height: 2px; background: #3182f6; }
.positions-tabs button b { margin-left: 3px; color: #f04452; }
.support-tabs button { position: relative; padding: 0 2px; color: #8b95a1; background: transparent; border: 0; font-size: .92rem; font-weight: 700; }
.support-tabs button::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: transparent; }
.support-tabs button:hover, .support-tabs button:focus-visible, .support-tabs button.active { color: #f2f4f6; outline: 0; }
.support-tabs button.active::after { background: #3182f6; }
.settings-layout { max-width: 760px; margin: 0 auto; }
.settings-tabs { display: flex; gap: 24px; min-height: 52px; margin-bottom: 12px; border-bottom: 1px solid #2c2c35; }
.settings-tabs button { position: relative; padding: 0 2px; border: 0; color: #8b95a1; background: transparent; font-size: .76rem; font-weight: 700; }
.settings-tabs button.active { color: #f2f4f6; }
.settings-tabs button.active::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: #3182f6; }
.settings-panel { overflow: hidden; background: #202027; border-radius: 10px; }
.settings-panel > header { padding: 22px 24px; border-bottom: 1px solid #2c2c35; }
.settings-panel h2 { margin: 0 0 6px; color: #f2f4f6; font-size: 1rem; }
.settings-panel header p { margin: 0; color: #8b95a1; font-size: .7rem; }
.setting-toggle-row { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 24px; border-bottom: 1px solid #2c2c35; cursor: pointer; }
.setting-toggle-row:last-child { border-bottom: 0; }
.setting-toggle-row > span { display: grid; gap: 5px; }
.setting-toggle-row b { color: #d1d6db; font-size: .76rem; }
.setting-toggle-row small { color: #8b95a1; font-size: .65rem; line-height: 1.45; }
.setting-toggle-row input { position: absolute; opacity: 0; pointer-events: none; }
.setting-toggle-row > i { position: relative; width: 42px; height: 24px; flex: 0 0 42px; border-radius: 12px; background: #4e5968; transition: background 160ms ease; }
.setting-toggle-row > i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #ffffff; transition: transform 160ms ease; }
.setting-toggle-row input:checked + i { background: #3182f6; }
.setting-toggle-row input:checked + i::after { transform: translateX(18px); }
.setting-toggle-row:focus-within > i { outline: 2px solid #3182f6; outline-offset: 2px; }
.profile-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 24px; }
.profile-settings .field { margin: 0; }
.profile-settings .field:nth-child(n+3), .profile-settings .settings-save { grid-column: 1/-1; }
.settings-save { min-height: 44px; border: 0; border-radius: 8px; color: #ffffff; background: #3182f6; font-weight: 800; }
.overnight-notice { padding: 22px 24px; color: #a8b0ba; }
.overnight-notice > b { color: #f2f4f6; font-size: .8rem; }
.overnight-notice p, .overnight-notice li { font-size: .68rem; line-height: 1.65; }
.overnight-notice ul { margin: 14px 0 0; padding-left: 18px; }
.support-tabs b { min-width: 19px; margin-left: 4px; color: #6b7684; font-size: .7rem; }
.support-surface { overflow: hidden; min-height: 560px; background: #202027; border-radius: 8px; }
.support-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 68px; padding: 12px 20px; border-bottom: 1px solid #2c2c35; }
.support-toolbar p { margin: 0; color: #8b95a1; font-size: .78rem; }
.support-primary { height: 38px; padding: 0 16px; color: #fff; background: #3182f6; border: 0; border-radius: 8px; font-weight: 700; }
.support-primary:hover, .support-primary:focus-visible { background: #1769d2; outline: 2px solid #90b8ed; outline-offset: 2px; }
.support-layout { display: grid; grid-template-columns: minmax(300px, 38%) minmax(0, 1fr); min-height: 560px; }
.support-toolbar + .support-layout { min-height: 492px; }
.support-list { border-right: 1px solid #2c2c35; }
.support-list-item { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; width: 100%; min-height: 82px; gap: 12px; padding: 14px 18px; color: #f2f4f6; text-align: left; background: transparent; border: 0; border-bottom: 1px solid #2c2c35; }
.support-list-item:hover, .support-list-item:focus-visible, .support-list-item.active { background: #26262e; outline: 0; }
.support-list-item.active { box-shadow: inset 3px 0 #3182f6; }
.support-list-item > span:nth-last-of-type(1) { overflow: hidden; }
.support-list-item b, .support-list-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-list-item b { font-size: .88rem; }
.support-list-item small { margin-top: 7px; color: #8b95a1; font-size: .72rem; font-weight: 500; }
.support-list-item > i { color: #6b7684; font-size: 1.15rem; font-style: normal; }
.support-label, .support-status { display: inline-grid; place-items: center; min-width: 42px; height: 24px; padding: 0 7px; color: #8b95a1; background: #33333d; border-radius: 6px; font-size: .66rem; font-style: normal; font-weight: 800; white-space: nowrap; }
.support-label.important { color: #ff8c95; background: #46292e; }
.support-label.message, .support-status.answered { color: #65a8ff; background: #203a61; }
.support-status.received { color: #f8c45b; background: #493c20; }
.support-list-item.message { grid-template-columns: 8px minmax(0,1fr) auto; }
.support-list-item.message.read { color: #b0b8c1; }
.message-dot { width: 7px; height: 7px; background: #3182f6; border-radius: 50%; }
.support-detail { min-width: 0; padding: 38px 42px; }
.support-detail header { display: flex; align-items: center; gap: 10px; }
.support-detail time { color: #8b95a1; font-size: .75rem; }
.support-detail h2 { margin: 22px 0 18px; color: #f2f4f6; font-size: 1.22rem; }
.support-detail > p, .inquiry-copy p, .inquiry-answer p { max-width: 760px; margin: 0; color: #b0b8c1; font-size: .9rem; line-height: 1.85; white-space: pre-wrap; }
.support-detail dl { display: grid; grid-template-columns: 86px minmax(0,1fr); gap: 10px 18px; margin-top: 40px; padding-top: 20px; border-top: 1px solid #2c2c35; font-size: .76rem; }
.support-detail dt { color: #6b7684; }
.support-detail dd { margin: 0; color: #b0b8c1; }
.inquiry-copy, .inquiry-answer, .inquiry-waiting { margin-top: 20px; padding: 18px 20px; background: #26262e; border-radius: 8px; }
.inquiry-copy span, .inquiry-answer span { display: block; margin-bottom: 9px; color: #8b95a1; font-size: .7rem; font-weight: 800; }
.inquiry-answer { border-left: 3px solid #3182f6; }
.inquiry-waiting, .support-empty { color: #8b95a1; font-size: .82rem; }
.support-empty { display: grid; place-items: center; min-height: 160px; }
.inquiry-field { align-items: start; }
.inquiry-field textarea { width: 100%; resize: vertical; color: #f2f4f6; background: #26262e; border: 1px solid #3a3a44; border-radius: 8px; padding: 12px; font: inherit; line-height: 1.6; }
.inquiry-field textarea:focus { border-color: #3182f6; outline: 2px solid #203a61; }
#orderForm > h2 .line-icon { width: 20px; height: 20px; margin-right: 8px; vertical-align: -4px; }
[data-theme="light"] { color-scheme: light; background: #f7f8fa; }
[data-theme="light"] body, [data-theme="light"] .app-shell { color: #191f28; background: #f7f8fa; }
[data-theme="light"] .topbar { color: #191f28; background: #ffffff; border-bottom-color: #e5e8eb; }
[data-theme="light"] .wordmark span { color: #a86400; }
[data-theme="light"] .wordmark b, [data-theme="light"] .top-account b { color: #191f28; }
[data-theme="light"] .top-account span { color: #8b95a1; }
[data-theme="light"] .source-global-nav button { color: #8b95a1; }
[data-theme="light"] .source-global-nav button.active { color: #191f28; }
[data-theme="light"] .source-global-nav button:hover, [data-theme="light"] .source-global-nav button:focus-visible { color: #191f28; background: #f2f4f6; }
[data-theme="light"] .theme-switch { background: #f2f4f6; }
[data-theme="light"] .theme-switch button { color: #8b95a1; }
[data-theme="light"] .theme-switch button:hover, [data-theme="light"] .theme-switch button:focus-visible { color: #191f28; }
[data-theme="light"] .theme-switch button.active { color: #191f28; background: #ffffff; box-shadow: 0 1px 4px rgba(0, 27, 55, .12); }
[data-theme="light"] .notification-button, [data-theme="light"] .notification-filters { color: #8b95a1; background: #f2f4f6; }
[data-theme="light"] .notification-button:hover, [data-theme="light"] .notification-button:focus-visible { color: #191f28; }
[data-theme="light"] .notification-button b { border-color: #ffffff; }
[data-theme="light"] .notification-filters button.active { color: #191f28; background: #ffffff; }
[data-theme="light"] .notification-layout { background: #ffffff; }
[data-theme="light"] .notification-list, [data-theme="light"] .notification-item, [data-theme="light"] .notification-detail dl { border-color: #e5e8eb; }
[data-theme="light"] .notification-item { color: #191f28; }
[data-theme="light"] .notification-item:hover, [data-theme="light"] .notification-item:focus-visible, [data-theme="light"] .notification-item.active { background: #f7f8fa; }
[data-theme="light"] .notification-detail h2 { color: #191f28; }
[data-theme="light"] .notification-detail > p, [data-theme="light"] .notification-detail dd { color: #4e5968; }
[data-theme="light"] .view-head h1, [data-theme="light"] .instrument-summary h2, [data-theme="light"] .panel-head h2 { color: #191f28; }
[data-theme="light"] .line-icon { stroke: #6b7684; }
[data-theme="light"] .view-head h1 .line-icon { stroke: #3182f6; }
[data-theme="light"] .metric-strip, [data-theme="light"] .instrument-summary, [data-theme="light"] .panel { background: #ffffff; }
[data-theme="light"] .metric { background: #f7f8fa; }
[data-theme="light"] .metric span, [data-theme="light"] .instrument-summary small, [data-theme="light"] .instrument-summary dt, [data-theme="light"] .instrument-summary h2 em, [data-theme="light"] .field-label, [data-theme="light"] .field label { color: #8b95a1; }
[data-theme="light"] .metric b { color: #191f28; }
[data-theme="light"] .metric .positive { color: var(--long) !important; }
[data-theme="light"] .metric .negative { color: var(--short) !important; }
[data-theme="light"] .instrument-summary dl, [data-theme="light"] .ticket-summary { background: #f2f4f6; }
[data-theme="light"] .ticket-task-tabs, [data-theme="light"] .manage-order-row { border-color: #e5e8eb; }
[data-theme="light"] .positions-tabs { border-color: #e5e8eb; }
[data-theme="light"] .positions-tabs button.active { color: #191f28; }
[data-theme="light"] .trade-metrics { background: #ffffff; }
[data-theme="light"] .trade-metrics-toggle span { color: #333d4b; }
[data-theme="light"] .trade-metrics .metric-strip { border-color: #e5e8eb; }
[data-theme="light"] .ticket-task-tabs button.active { color: #191f28; }
[data-theme="light"] .position-side-buttons button, [data-theme="light"] .manage-order-row button { background: #f2f4f6; border-color: #e5e8eb; }
[data-theme="light"] .margin-slider output, [data-theme="light"] .manage-order-row { color: #333d4b; }
[data-theme="light"] .market-stat-grid dd, [data-theme="light"] .ticket-account-line b { color: #333d4b; }
[data-theme="light"] .ticket-account-line { border-bottom-color: #e5e8eb; }
[data-theme="light"] .instrument-mini-chart line { stroke: #d1d6db; }
[data-theme="light"] .instrument-mini-chart polygon { opacity: .09; }
[data-theme="light"] .panel-head, [data-theme="light"] .segmented { border-bottom-color: #e5e8eb; }
[data-theme="light"] .account-hero, [data-theme="light"] .account-risk-band { background: #ffffff; }
[data-theme="light"] .account-hero strong, [data-theme="light"] .account-hero dd, [data-theme="light"] .account-risk-copy strong, [data-theme="light"] .account-utilization b, [data-theme="light"] .fee-summary b { color: #191f28; }
[data-theme="light"] .account-stat-grid { background: #e5e8eb; }
[data-theme="light"] .account-stat-grid > div { background: #f7f8fa; }
[data-theme="light"] .account-stat-grid b { color: #191f28; }
[data-theme="light"] .account-progress { background: #e5e8eb; }
[data-theme="light"] .fee-summary > div { border-color: #e5e8eb; }
[data-theme="light"] .account-chart-section { background: #ffffff; }
[data-theme="light"] .account-chart-heading, [data-theme="light"] .account-chart-card { border-color: #e5e8eb; }
[data-theme="light"] .account-chart-heading h2, [data-theme="light"] .account-chart-card h3, [data-theme="light"] .donut-chart b, [data-theme="light"] .allocation-body li b, [data-theme="light"] .sold-chart-row strong { color: #191f28; }
[data-theme="light"] .allocation-body li span, [data-theme="light"] .pnl-chart-row span b, [data-theme="light"] .sold-chart-row span b { color: #4e5968; }
[data-theme="light"] .donut-chart .donut-base, [data-theme="light"] .sold-chart-row > div:nth-child(2) { stroke: #e5e8eb; background: #e5e8eb; }
[data-theme="light"] .pnl-track { background: linear-gradient(90deg,#e5e8eb 0 49.5%,#b8c0c8 49.5% 50.5%,#e5e8eb 50.5%); }
[data-theme="light"] .transfer-summary { background: #e5e8eb; }
[data-theme="light"] .transfer-summary > div, [data-theme="light"] .transfer-panel, [data-theme="light"] .transfer-guide { background: #ffffff; }
[data-theme="light"] .transfer-summary strong, [data-theme="light"] .transfer-account b, [data-theme="light"] .transfer-after b, [data-theme="light"] .transfer-guide dd, [data-theme="light"] .transfer-notice b { color: #191f28; }
[data-theme="light"] .transfer-tabs, [data-theme="light"] .transfer-after { background: #f2f4f6; }
[data-theme="light"] .transfer-tabs button.active.deposit { background: #fff0f1; }
[data-theme="light"] .transfer-tabs button.active.withdrawal { background: #edf5ff; }
[data-theme="light"] .transfer-account, [data-theme="light"] .transfer-notice { border-color: #e5e8eb; }
[data-theme="light"] .transfer-amount input { color: #191f28; background: #ffffff; border-color: #d1d6db; }
[data-theme="light"] .center-mode { background: #f2f4f6; }
[data-theme="light"] .click-order-guide, [data-theme="light"] .chart-order-guide { color: #6b7684; background: #f7f8fa; border-bottom-color: #e5e8eb; }
[data-theme="light"] .center-mode button.active, [data-theme="light"] .chart-toolbar button.active { color: #191f28; background: #ffffff; }
[data-theme="light"] .chart-toolbar { border-bottom-color: #e5e8eb; }
[data-theme="light"] .data-table th, [data-theme="light"] .book-head { color: #6b7684; background: #ffffff; border-bottom-color: #e5e8eb; }
[data-theme="light"] .data-table td { color: #333d4b; border-bottom-color: #f2f4f6; }
[data-theme="light"] .data-table tbody tr:hover { background: #f7f8fa; }
[data-theme="light"] .trade-symbol-item { border-color: transparent; }
[data-theme="light"] .trade-symbol-item:hover, [data-theme="light"] .trade-symbol-item:focus-within { background: transparent; border-color: #b8c0c8; }
[data-theme="light"] .trade-symbol-list .trade-symbol-select { color: #191f28; background: transparent; }
[data-theme="light"] .trade-symbol-list .trade-symbol-select:hover, [data-theme="light"] .trade-symbol-list .trade-symbol-select:focus-visible { color: #191f28; background: transparent; }
[data-theme="light"] .trade-symbol-item.active { background: #e8f3ff; border-color: #90b8ed; }
[data-theme="light"] .symbol-search { border-color: #f2f4f6; }
[data-theme="light"] .symbol-search input { color: #191f28; background: #f7f8fa; border-color: #d1d6db; }
[data-theme="light"] .symbol-search input:focus { border-color: #3182f6; box-shadow: 0 0 0 2px #dbeafe; }
[data-theme="light"] .symbol-search [data-clear-symbol-search]:hover { color: #191f28; background: #e5e8eb; }
[data-theme="light"] .symbol-search-result { border-color: #f2f4f6; }
[data-theme="light"] .symbol-search-result > div b, [data-theme="light"] .symbol-search-empty b { color: #191f28; }
[data-theme="light"] .search-trade-button { color: #ffffff; }
[data-theme="light"] .trade-request-button { color: #1769d2; background: #e8f3ff; }
[data-theme="light"] .trade-request-button.requested { color: #8b95a1; background: #f2f4f6; }
[data-theme="light"] .favorite-button:hover, [data-theme="light"] .favorite-button:focus-visible { background: #f2f4f6; }
[data-theme="light"] .favorite-button.active { color: #e5394f; }
[data-theme="light"] .watch-filter button { color: #8b95a1; background: #ffffff; }
[data-theme="light"] .watch-filter button.active { color: #191f28; background: #e5e8eb; }
[data-theme="light"] .book-head { color: #4e5968; background: #eef1f4; border-color: #ffffff; }
[data-theme="light"] .book-row { color: #333d4b; background: #edf6ff; border-bottom-color: #ffffff; }
[data-theme="light"] .book-head > span, [data-theme="light"] .book-row > * { border-right-color: #ffffff; }
[data-theme="light"] .book-row.bid { background: #fff0f1; border-bottom-color: #ffffff; }
[data-theme="light"] .book-quantity i { background: rgba(49, 130, 246, .26); }
[data-theme="light"] .book-row.bid .book-quantity i { background: rgba(240, 68, 82, .24); }
[data-theme="light"] .book-current { color: #191f28; background: #f2f4f6; border-color: #ffffff; }
[data-theme="light"] .book-current.trade-up { background: #ffe8ea; }
[data-theme="light"] .book-current.trade-down { background: #e8f3ff; }
[data-theme="light"] .book-totals { color: #6b7684; border-top-color: #ffffff; }
[data-theme="light"] .trade-activity-card, [data-theme="light"] .order-insight-card { background: #ffffff; }
[data-theme="light"] .indicator-widget-head, [data-theme="light"] .indicator-grid article { border-color: #e5e8eb; }
[data-theme="light"] .indicator-grid b { color: #4e5968; }
[data-theme="light"] .indicator-grid strong { color: #191f28; }
[data-theme="light"] .trade-card-handle { color: #8b95a1; }
[data-theme="light"] .trade-card-handle:hover, [data-theme="light"] .trade-card-handle:focus-visible { color: #191f28; }
[data-theme="light"] .trade-subtabs { border-bottom-color: #e5e8eb; }
[data-theme="light"] .trade-subtabs button:hover, [data-theme="light"] .trade-subtabs button:focus-visible { color: #191f28; background: #f2f4f6; }
[data-theme="light"] .trade-subtabs button.active { color: #191f28; }
[data-theme="light"] .activity-head, [data-theme="light"] .order-status-head { color: #8b95a1; background: #f7f8fa; }
[data-theme="light"] .activity-row, [data-theme="light"] .order-status-row { color: #333d4b; border-bottom-color: #f2f4f6; }
[data-theme="light"] .losscut-current, [data-theme="light"] .losscut-levels { border-color: #e5e8eb; }
[data-theme="light"] .losscut-levels div { border-right-color: #e5e8eb; }
[data-theme="light"] .segmented button, [data-theme="light"] .order-type-buttons button { color: #8b95a1; background: #f2f4f6; }
[data-theme="light"] .order-type-buttons button.active { color: #191f28; background: #e5e8eb; }
[data-theme="light"] .field input, [data-theme="light"] .field select { color: #191f28; background: #ffffff; border-color: #d1d6db; }
[data-theme="light"] .stepper button, [data-theme="light"] .quick-options button { color: #6b7684; background: #f2f4f6; }
[data-theme="light"] .stepper button:hover, [data-theme="light"] .stepper button:focus-visible, [data-theme="light"] .quick-options button:hover, [data-theme="light"] .quick-options button:focus-visible { color: #191f28; background: #e5e8eb; }
[data-theme="light"] .quick-options button.active { color: #191f28; background: #d1d6db; }
[data-theme="light"] .ticket-account-line b.long, [data-theme="light"] .quick-options button.buy-value { color: var(--long) !important; }
[data-theme="light"] .ticket-account-line b.short, [data-theme="light"] .quick-options button.sell-value { color: var(--short) !important; }
[data-theme="light"] .button, [data-theme="light"] .mini-button { color: #333d4b; background: #f2f4f6; }
[data-theme="light"] dialog { color: #191f28; background: #ffffff; border-color: #d1d6db; }
[data-theme="light"] #toast { color: #333d4b; background: #ffffff; border-color: #d1d6db; box-shadow: 0 7px 18px rgba(25,31,40,.14); }
[data-theme="light"] .support-tabs { border-bottom-color: #e5e8eb; }
[data-theme="light"] .support-tabs button:hover, [data-theme="light"] .support-tabs button:focus-visible, [data-theme="light"] .support-tabs button.active { color: #191f28; }
[data-theme="light"] .support-surface { background: #ffffff; }
[data-theme="light"] .support-toolbar, [data-theme="light"] .support-list, [data-theme="light"] .support-list-item, [data-theme="light"] .support-detail dl { border-color: #e5e8eb; }
[data-theme="light"] .support-list-item { color: #191f28; }
[data-theme="light"] .support-list-item:hover, [data-theme="light"] .support-list-item:focus-visible, [data-theme="light"] .support-list-item.active { background: #f7f8fa; }
[data-theme="light"] .support-list-item.message.read { color: #6b7684; }
[data-theme="light"] .settings-tabs { border-color: #e5e8eb; }
[data-theme="light"] .settings-tabs button.active, [data-theme="light"] .settings-panel h2, [data-theme="light"] .setting-toggle-row b, [data-theme="light"] .overnight-notice > b { color: #191f28; }
[data-theme="light"] .settings-panel { background: #ffffff; }
[data-theme="light"] .settings-panel > header, [data-theme="light"] .setting-toggle-row { border-color: #e5e8eb; }
[data-theme="light"] .overnight-notice { color: #4e5968; }
[data-theme="light"] .support-label { background: #f2f4f6; }
[data-theme="light"] .support-label.important { color: #e5394f; background: #fff0f1; }
[data-theme="light"] .support-label.message, [data-theme="light"] .support-status.answered { color: #1769d2; background: #e8f3ff; }
[data-theme="light"] .support-status.received { color: #8a6300; background: #fff5d6; }
[data-theme="light"] .support-detail h2 { color: #191f28; }
[data-theme="light"] .support-detail > p, [data-theme="light"] .support-detail dd, [data-theme="light"] .inquiry-copy p, [data-theme="light"] .inquiry-answer p { color: #4e5968; }
[data-theme="light"] .inquiry-copy, [data-theme="light"] .inquiry-answer, [data-theme="light"] .inquiry-waiting { background: #f7f8fa; }
[data-theme="light"] .inquiry-field textarea { color: #191f28; background: #ffffff; border-color: #d1d6db; }
@media (max-width: 1100px) {
  .account-stat-grid { grid-template-columns: repeat(3,1fr); }
  .account-risk-band { grid-template-columns: 1fr 2fr; }
  .account-exposure { grid-column: 1/-1; }
  .account-bottom-grid { grid-template-columns: 1fr; }
  .account-chart-grid { grid-template-columns: 1fr 1fr; }
  .account-chart-card:nth-child(2) { border-right: 0; }
  .account-chart-card:last-child { grid-column: 1/-1; border-top: 1px solid #2c2c35; }
  .transfer-layout { grid-template-columns: 1fr; }
  .trade-workspace { display: flex; flex-wrap: wrap; }
  .market-stat-grid { min-width: 330px !important; }
}
@media (max-width: 720px) {
  .account-hero { align-items: flex-start; flex-direction: column; gap: 18px; padding: 20px; }
  .account-hero strong { font-size: 1.45rem; }
  .account-hero dl { width: 100%; text-align: left; }
  .account-stat-grid { grid-template-columns: repeat(2,1fr); }
  .account-risk-band { grid-template-columns: 1fr; gap: 18px; padding: 18px; }
  .account-exposure { grid-column: auto; }
  .account-bottom-grid { grid-template-columns: minmax(0,1fr); }
  .account-chart-grid { grid-template-columns: 1fr; }
  .account-chart-card { border-right: 0; border-bottom: 1px solid #2c2c35; }
  .account-chart-card:last-child { grid-column: auto; border-top: 0; border-bottom: 0; }
  .allocation-body { grid-template-columns: 120px minmax(0,1fr); }
  .donut-chart { width: 116px; }
  .pnl-chart-row, .sold-chart-row { grid-template-columns: minmax(105px,.8fr) minmax(80px,1fr) auto; }
  .transfer-summary { grid-template-columns: 1fr; }
  .transfer-layout { grid-template-columns: minmax(0,1fr); }
  .transfer-presets { grid-template-columns: repeat(2,1fr); }
  body.mobile-nav-open { overflow: hidden; }
  .topbar { background: #17171c; }
  .mobile-menu { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid #3a3a44; border-radius: 8px; color: #f2f4f6; background: #26262e; line-height: 1; }
  .mobile-menu:hover, .mobile-menu:focus-visible { color: #ffffff; background: #33333d; outline: 2px solid #3182f6; outline-offset: 1px; }
  .sidebar { position: fixed; z-index: 60; top: 64px; bottom: 0; left: 0; display: block !important; width: min(284px,82vw); height: auto; padding: 18px 12px calc(82px + env(safe-area-inset-bottom)); overflow-y: auto; background: #202027; box-shadow: 18px 0 36px rgba(0,0,0,.28); transform: translateX(-102%); opacity: 0; visibility: hidden; transition: transform 260ms cubic-bezier(.16,1,.3,1),opacity 180ms cubic-bezier(.16,1,.3,1),visibility 0s linear 260ms; }
  .sidebar.open { transform: translateX(0); opacity: 1; visibility: visible; transition-delay: 0s; }
  .mobile-menu-backdrop { position: fixed; z-index: 59; inset: 64px 0 0; display: block; padding: 0; border: 0; background: rgba(8,9,12,.58); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 220ms cubic-bezier(.16,1,.3,1),visibility 0s linear 220ms; }
  .mobile-menu-backdrop.open { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .view { padding: 12px 0 28px; }
  main { padding-bottom: 72px; }
  .view-head { padding: 0 12px; }
  .view:has(.trade-workspace) .view-head { display: none; }
  .trade-metrics { margin: 0; border-radius: 0; border-bottom: 1px solid #2c2c35; }
  .trade-metrics-toggle { min-height: 36px; padding: 0 10px; font-size: .58rem; }
  .trade-metrics .metric-strip { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; padding: 0; }
  .trade-metrics .metric-strip .metric { min-height: 66px; padding: 10px 4px; text-align: center; background: transparent; border-right: 1px solid #2c2c35; border-radius: 0; }
  .trade-metrics .metric-strip .metric span { min-height: 24px; font-size: .58rem; line-height: 1.25; }
  .trade-metrics .metric-strip .metric b { font-size: .68rem; }
  .instrument-summary { align-items: stretch; flex-wrap: wrap; gap: 12px; margin: 0; padding: 16px 12px 0; border-radius: 0; }
  .instrument-summary-main { display: grid; grid-template-columns: auto minmax(0,1fr) 82px; width: 100%; gap: 10px; }
  .instrument-summary-main .symbol-logo { grid-row: 1/3; }
  .instrument-price-copy { min-width: 0; }
  .instrument-summary-main .instrument-mini-chart { width: 82px; height: 50px; margin-left: 0; }
  .instrument-summary-main .instrument-mini-chart svg { width: 82px; height: 45px; }
  .instrument-summary-main .instrument-mini-chart > span { display: none; }
  .mobile-trade-tabs { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); height: 44px; border-top: 1px solid #2c2c35; border-bottom: 1px solid #2c2c35; background: #202027; }
  .mobile-trade-tabs button { position: relative; min-width: 0; padding: 0 4px; border: 0; color: #8b95a1; background: transparent; font-size: .65rem; font-weight: 700; }
  .mobile-trade-tabs button.active { color: #f2f4f6; }
  .mobile-trade-tabs button.active::after { content: ""; position: absolute; right: 12px; bottom: -1px; left: 12px; height: 2px; background: #3182f6; }
  .mobile-trade-tabs button:hover, .mobile-trade-tabs button:focus-visible { color: #f2f4f6; outline: 2px solid #3182f6; outline-offset: -2px; }
  .mobile-bottom-nav { position: fixed; z-index: 50; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); min-height: 66px; padding: 5px 4px max(5px,env(safe-area-inset-bottom)); border-top: 1px solid #3a3a44; background: #202027; }
  .mobile-bottom-nav button { min-width: 0; display: grid; place-items: center; align-content: center; gap: 3px; padding: 0 2px; border: 0; color: #8b95a1; background: transparent; font-size: .5rem; white-space: nowrap; }
  .mobile-bottom-nav svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-bottom-nav button.active { color: #3182f6; }
  .mobile-bottom-nav button:hover, .mobile-bottom-nav button:focus-visible { color: #f2f4f6; outline: 2px solid #3182f6; outline-offset: -2px; }
  .instrument-price-copy h2 { font-size: 1.05rem; }
  .instrument-price-copy strong { display: block; margin: 8px 0 2px; font-size: 1.55rem; }
  .market-stat-grid { flex: 1 1 100%; grid-template-columns: repeat(5,minmax(0,1fr)) !important; width: 100%; min-width: 0 !important; max-width: none; gap: 0 !important; padding: 6px 0 10px !important; border: 0 !important; border-radius: 0 !important; }
  .market-stat-grid > div { display: block; padding: 0 4px; text-align: center; }
  .market-stat-grid dt, .market-stat-grid dd { text-align: center !important; }
  .market-stat-grid dt { font-size: .56rem; }
  .market-stat-grid dd { font-size: .62rem; }
  .trade-workspace { display: grid; grid-template-columns: minmax(0,47fr) minmax(0,53fr); gap: 0; }
  .trade-symbol-panel { display: none; }
  .trade-symbol-panel.mobile-open { position: fixed; z-index: 45; inset: 58px 0 0; display: block; overflow: auto; padding: 12px; background: #17171c; }
  .trade-symbol-panel.mobile-open { min-height: calc(100vh - 82px); }
  .mobile-symbol-head { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 14px; border-bottom: 1px solid #2c2c35; }
  .mobile-symbol-head button { width: 34px; height: 34px; color: #8b95a1; background: transparent; border: 0; font-size: 1.3rem; }
  .trade-card { border-radius: 0 !important; transition: none; }
  .trade-card { cursor: default; }
  .trade-card[data-card-id="symbols"], .trade-card[data-card-id="book"], .trade-card[data-card-id="order"], .trade-card[data-card-id="activity"], .trade-card[data-card-id="insight"], .trade-card[data-card-id="indicators"] { width: 100%; min-width: 0; }
  .trade-card { flex: initial; }
  .trade-card-head { cursor: default; }
  .trade-card-handle { display: none; }
  [data-card-id="symbols"] { display: none; }
  [data-card-id="book"] { order: 1; }
  [data-card-id="order"] { order: 2; }
  [data-card-id="activity"] { order: 3; grid-column: 1/-1; }
  [data-card-id="insight"] { order: 4; grid-column: 1/-1; }
  [data-card-id="indicators"] { order: 5; grid-column: 1/-1; }
  .trade-workspace > [data-card-id="activity"],
  .trade-workspace > [data-card-id="insight"],
  .trade-workspace > [data-card-id="indicators"] { grid-column: 1 / -1 !important; justify-self: stretch; inline-size: 100% !important; max-width: none !important; }
  .order-insight-card > .trade-card-head,
  .order-insight-card > .trade-subtabs,
  .order-insight-card > .order-status-body { display: grid; inline-size: 100%; max-width: none; }
  .order-insight-card > .trade-card-head { display: flex; }
  [data-card-id="book"] > .panel-head, [data-card-id="order"] > .panel-head { display: none; }
  .center-mode { gap: 2px; padding: 2px; }
  .center-mode button { min-width: 38px; height: 28px; padding: 0 5px; font-size: .62rem; }
  .book-head, .book-row { grid-template-columns: 24px 28px minmax(42px,1fr) 68px minmax(42px,1fr) 28px 24px; padding: 0 3px; }
  .book-head { font-size: .56rem; }
  .book-row { height: 28px; font-size: .61rem; }
  .book-price { font-size: .66rem; }
  .book-side-action { font-size: .52rem; }
  .book-mit { font-size: .49rem; }
  .book-quantity b { overflow: hidden; text-overflow: ellipsis; }
  .book-ladder { height: 566px; }
  .book-current { grid-template-columns: 1fr; gap: 1px; height: 58px; padding: 5px 8px; text-align: center; }
  .book-current b { font-size: 1rem; }
  .book-current span, .book-current em { font-size: .58rem; }
  .book-totals { grid-template-columns: 1fr; height: auto; min-height: 50px; padding: 6px; text-align: center; }
  .book-totals span { font-size: .57rem; }
  .trade-subtabs { height: 34px; }
  .trade-subtabs button { font-size: .58rem; }
  .activity-head, .activity-row { grid-template-columns: minmax(52px,.8fr) 43px minmax(62px,1fr) minmax(52px,.8fr); gap: 4px; padding: 0 7px; }
  .activity-head { font-size: .5rem; }
  .activity-row { font-size: .57rem; }
  .activity-list { height: 136px; }

  .book-totals span:last-child { text-align: center; }
  .order-ticket { padding: 8px; }
  .ticket-task-tabs { height: 38px; margin: -8px -8px 10px; }
  .ticket-task-tabs button { font-size: .62rem; }
  .position-side-buttons { gap: 6px; margin-bottom: 9px; }
  .position-side-buttons button { height: 34px; font-size: .62rem; }
  .direct-order { min-height: 40px; }
  .order-insight-card { margin: 0; }
  .order-insight-card, .order-insight-card .order-status-body { width: 100%; max-width: none; }
  .order-status-head, .order-status-row { width: 100%; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 0; padding: 0 6px; }
  .order-status-head { font-size: .48rem; }
  .order-status-row { font-size: .53rem; }
  .losscut-current { margin: 8px; padding: 9px; }
  .losscut-levels { margin: 0 8px 8px; }
  .segmented { margin-bottom: 8px; }
  .segmented button { height: 34px; font-size: .68rem; }
  .ticket-account-line { gap: 4px 6px; margin-bottom: 9px; padding: 7px 0; font-size: .58rem; }
  .field { margin-bottom: 8px; }
  .field-label, .field label { font-size: .58rem; }
  .order-type-buttons button { height: 32px; padding: 0 3px; font-size: .6rem; }
  .stepper { grid-template-columns: 30px minmax(48px,1fr) 30px; }
  .stepper button { width: 30px; height: 32px; }
  .stepper input { height: 32px; font-size: .65rem; }
  .quick-options { grid-column: 1/-1; }
  .quantity-options { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .quick-options button { height: 26px; font-size: .55rem; }
  .margin-slider label, .margin-slider output { font-size: .58rem; }
  .manage-order-head, .manage-order-row { grid-template-columns: minmax(64px,1fr) 38px 42px minmax(54px,.75fr) 64px; gap: 3px; }
  .manage-order-head { font-size: .48rem; }
  .manage-order-row { font-size: .53rem; }
  .manage-order-row button { padding: 0 5px; font-size: .48rem; }
  .ticket-summary { gap: 5px; margin: 8px 0; padding: 7px; font-size: .57rem; }
  .ticket-summary span:nth-of-type(-n+2), .ticket-summary span:nth-of-type(-n+2) + b { display: none; }
  .ticket-submit { height: 42px; font-size: .66rem; }
  .trading-chart { height: 430px; }
  .top-tools { gap: 6px; }
  .notification-button { width: 32px; height: 32px; }
  #toast { top: 68px; left: 50%; right: auto; width: calc(100vw - 24px); min-height: 36px; padding: 6px 12px; font-size: .66rem; }
  .theme-switch { grid-template-columns: repeat(2, 30px); }
  .theme-switch button { width: 30px; }
  .notification-toolbar { align-items: stretch; flex-direction: column; }
  .notification-layout { grid-template-columns: 1fr; }
  .notification-list { border-right: 0; border-bottom: 1px solid #2c2c35; }
  .notification-detail { padding: 24px 20px; }
  .settings-layout { padding: 0 12px; }
  .settings-tabs { gap: 14px; overflow-x: auto; }
  .settings-tabs button { flex: 0 0 auto; }
  .settings-panel > header, .setting-toggle-row, .overnight-notice { padding-right: 16px; padding-left: 16px; }
  .profile-settings { grid-template-columns: 1fr; padding: 18px 16px; }
  .profile-settings .field, .profile-settings .field:nth-child(n+3), .profile-settings .settings-save { grid-column: 1; }
  .support-tabs { gap: 18px; overflow-x: auto; }
  .positions-tabs { min-height: 44px; margin: 0 0 8px; padding: 0 6px; background: #202027; }
  .positions-tabs button { min-width: auto; min-height: 44px; padding: 0 12px; font-size: .62rem; }
  [data-theme="light"] .positions-tabs { background: #ffffff; }
  .support-layout { grid-template-columns: 1fr; }
  .support-list { border-right: 0; border-bottom: 1px solid #2c2c35; }
  .support-detail { padding: 26px 20px; }
  .support-toolbar { align-items: flex-start; gap: 10px; flex-direction: column; }
  [data-theme="light"] .topbar { background: #ffffff; }
  [data-theme="light"] .mobile-menu { color: #333d4b; background: #f2f4f6; border-color: #d1d6db; }
  [data-theme="light"] .mobile-menu:hover, [data-theme="light"] .mobile-menu:focus-visible { color: #191f28; background: #e5e8eb; }
  [data-theme="light"] .sidebar { color: #333d4b; background: #ffffff; box-shadow: 18px 0 36px rgba(25,31,40,.18); }
  [data-theme="light"] .sidebar .nav-group p { color: #8b95a1; }
  [data-theme="light"] .sidebar .nav-group button { color: #4e5968; }
  [data-theme="light"] .sidebar .nav-group button:hover, [data-theme="light"] .sidebar .nav-group button:focus-visible { color: #191f28; background: #f2f4f6; }
  [data-theme="light"] .sidebar .nav-group button.active { color: #ffffff; background: #3182f6; }
  [data-theme="light"] .mobile-menu-backdrop { background: rgba(25,31,40,.34); }
  [data-theme="light"] .mobile-trade-tabs, [data-theme="light"] .mobile-bottom-nav { border-color: #e5e8eb; background: #ffffff; }
  [data-theme="light"] .mobile-bottom-nav button { color: #6b7684; }
  [data-theme="light"] .mobile-bottom-nav button:hover,
  [data-theme="light"] .mobile-bottom-nav button:focus-visible,
  [data-theme="light"] .mobile-bottom-nav button:active { color: #1b64da; background: #edf4ff; }
  [data-theme="light"] .mobile-bottom-nav button.active,
  [data-theme="light"] .mobile-bottom-nav button.active:hover,
  [data-theme="light"] .mobile-bottom-nav button.active:focus-visible,
  [data-theme="light"] .mobile-bottom-nav button.active:active { color: #3182f6; background: #edf4ff; }
  [data-theme="light"] .trade-symbol-panel.mobile-open { background: #f7f8fa; }
  [data-theme="light"] .market-stat-grid, [data-theme="light"] .mobile-symbol-head, [data-theme="light"] .trade-metrics, [data-theme="light"] .trade-metrics .metric-strip .metric { border-color: #e5e8eb !important; }
  [data-theme="light"] .support-list { border-bottom-color: #e5e8eb; }
}
@media (max-width: 520px) {
  .trade-workspace { grid-template-columns: minmax(0,44fr) minmax(0,56fr); }
  .trade-workspace.mobile-mode-chart { grid-template-columns: minmax(0,1fr); }
  .trade-workspace.mobile-mode-chart .market-center-panel { grid-column: 1/-1; }
  .trade-workspace.mobile-mode-chart [data-card-id="order"] { display: none; }
  .book-head, .book-row { grid-template-columns: minmax(0,1fr) 54px; padding: 0 4px; }
  .book-head > span, .book-row > * { display: none; }
  .book-head > span:nth-child(4), .book-head > span:nth-child(3), .book-row .book-price, .book-row .book-quantity { display: block; }
  .book-head > span:nth-child(4), .book-row .book-price { grid-column: 1; grid-row: 1; }
  .book-head > span:nth-child(3), .book-row .book-quantity { grid-column: 2; grid-row: 1; }
  .book-head { font-size: .58rem; }
  .book-row { font-size: .61rem; }
  .book-price { font-size: .74rem; }
  .book-quantity b { position: relative; z-index: 1; display: block; padding-right: 2px; font-size: .56rem; text-align: right; }
  .book-current { grid-template-columns: 1fr; }
  .activity-head, .activity-row { grid-template-columns: minmax(66px,.8fr) 54px minmax(82px,1fr) minmax(66px,.8fr); padding: 0 10px; }
  .activity-row { font-size: .64rem; }
  .order-status-head, .order-status-row { grid-template-columns: repeat(5,minmax(0,1fr)); padding: 0 6px; }
  .order-status-row { font-size: .61rem; }
}
@media (prefers-reduced-motion: reduce) {
  .activity-row.latest { animation: none; }
  .trade-metrics-toggle svg { transition: none; }
  .sidebar, .mobile-menu-backdrop { transition: none; }
  .trade-card { transition: none; }
}
