:root {
  color-scheme: dark;
  --bg: #0b1018;
  --rail: #0e141e;
  --panel: #121a26;
  --line: #25303e;
  --faint: #1e2937;
  --text: #e8edf4;
  --muted: #96a3b5;
  --dim: #748399;
  --accent: #4bd9ae;
  --red: #fc808c;
  --green: #48d3a5;
  --purple: #a69af7;
  --amber: #edb665;
  --chart-main: #4ddbb4;
  --chart-large: #aa99fb;
  --chart-small: #eaba73;
  --chart-price: #6bc8ef;
  --mono: 'Inter', 'Bahnschrift', 'Arial', sans-serif;
  --railwidth: 202px;
  font-family: Inter, 'Microsoft YaHei UI', 'Microsoft YaHei', 'PingFang SC', system-ui, sans-serif;
  font-synthesis: none;
}
:root[data-theme='light'] {
  color-scheme: light;
  --bg: #f4f7fa;
  --rail: #f7fafb;
  --panel: #fff;
  --line: #cbd5dd;
  --faint: #e2e8ee;
  --text: #1a2a38;
  --muted: #4a5c6d;
  --dim: #5c6c7c;
  --accent: #087651;
  --red: #b32c43;
  --green: #08794f;
  --purple: #6943a0;
  --amber: #845411;
  --chart-main: #168268;
  --chart-large: #725aa6;
  --chart-small: #996716;
  --chart-price: #08739e;
}
:root[data-theme='light'] .ru-view {
  --ru-bg: var(--bg);
  --ru-panel: var(--panel);
  --ru-border: var(--line);
  --ru-ink: var(--text);
  --ru-muted: var(--muted);
  --ru-subtle: var(--dim);
  --ru-teal: var(--accent);
  --ru-red: var(--red);
  --ru-green: var(--green);
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: none;
  padding: 5px 8px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  color: var(--muted);
  font-size: 11px;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-symbol::before { content: '☀'; font: 16px/1 'Segoe UI Symbol', sans-serif; }
[data-theme='light'] .theme-symbol::before { content: '☾'; }
[data-theme='light'] svg text[fill='#738399'] { fill: var(--dim); }
[data-theme='light'] svg [stroke='#2a3544'],
[data-theme='light'] svg [stroke='#2b3744'] { stroke: var(--line); }
[data-theme='light'] svg [stroke='#445364'] { stroke: #91a3b2; }
[data-theme='light'] svg :is([stroke='#56cda7'],[stroke='#55d1a5']) { stroke: var(--green); }
[data-theme='light'] svg :is([stroke='#ef919a'],[stroke='#fa8894']) { stroke: var(--red); }
[data-theme='light'] svg :is([stroke='#8dbbff'],[stroke='#81a9eb']) { stroke: var(--chart-price); }
[data-theme='light'] svg [fill='#55d1a5'] { fill: var(--green); }
[data-theme='light'] svg [fill='#fa8894'] { fill: var(--red); }
[data-theme='light'] svg [fill='#d4ba83'] { fill: var(--amber); }
[data-theme='light'] svg [fill='#18212b'] { fill: var(--panel); }
[data-theme='light'] .chart-tooltip > div { color: var(--text) !important; }
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}
body {
  font-size: 14px;
  line-height: 1.5;
}
button,
input,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.62;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
i[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
}
svg {
  flex: none;
}
small {
  font-size: 12px;
}
button {
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
button:hover {
  color: #fff;
}
b,
strong {
  font-weight: 600;
}
::selection {
  background: #225749;
  color: #fff;
}
::-webkit-scrollbar {
  width: 7px;
  height: 6px;
}
::-webkit-scrollbar-thumb {
  border-radius: 9px;
  background: #334151;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--railwidth);
  z-index: 6;
  background: linear-gradient(150deg, #111923 0%, #0e151e 44%, #0d141d);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 0 14px;
  overflow: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 27px 9px 29px;
}
.brand img {
  width: 37px;
  height: 37px;
  box-shadow: 0 0 22px #36d4a715;
  border-radius: 10px;
}
.brand strong {
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: 2px;
}
.brand strong span {
  font-size: 13px;
  letter-spacing: 0.5px;
  color: #9ba9ba;
  margin-left: 6px;
  font-weight: 500;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 1.45px;
  color: #8c9caf;
  margin-top: 4px;
}
.nav-group {
  margin-bottom: 24px;
}
.nav-group-title {
  font-size: 10.5px;
  letter-spacing: 1.8px;
  font-weight: 600;
  color: #7d8b9e;
  margin: 0 12px 9px;
}
.nav-link {
  height: 40px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 13px;
  color: #aab5c4;
  border: 1px solid transparent;
  border-radius: 6px;
  margin-bottom: 3px;
  font-size: 13px;
  letter-spacing: 0.2px;
}
.nav-link svg {
  width: 17px;
  height: 17px;
}
.nav-link:hover {
  background: #182230;
  color: #f0f3f6;
}
.nav-link.active {
  color: #63e5bc;
  border-color: #265045;
  background: #163128;
  font-weight: 600;
}
.nav-link.active:after {
  content: '';
  display: block;
  margin-left: auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5bd8ae;
}
.rail-bottom {
  margin-top: auto;
  padding: 16px 0 0;
}
.connection {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #131d28;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
}
.connection .status-led {
  margin-top: 2px;
}
.status-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  background: var(--accent);
  box-shadow: 0 0 8px #4bd9ae3b;
  flex: none;
}
.connection b,
.work-profile b {
  display: block;
  font-size: 12px;
}
.connection small,
.work-profile small {
  color: var(--dim);
  font-size: 10px;
  display: block;
  margin-top: 3px;
}
.connection i {
  margin-left: auto;
  color: var(--dim);
}
.connection i svg {
  width: 13px;
}
.work-profile {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 17px 3px;
  border-top: 1px solid var(--faint);
  margin-top: 18px;
}
.profile-icon {
  width: 33px;
  height: 33px;
  color: #a6b4c8;
  display: grid;
  place-items: center;
  border: 1px solid #304052;
  background: #1c2837;
  border-radius: 9px;
}
.main-shell {
  margin-left: var(--railwidth);
}
.topbar {
  height: 57px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 28px;
  border-bottom: 1px solid var(--faint);
  background: #0e141d;
}
.breadcrumbs,
.top-actions,
.heading-tools,
.title-line {
  display: flex;
  align-items: center;
}
.breadcrumbs {
  gap: 12px;
  color: var(--dim);
  font-size: 12px;
}
.breadcrumbs b {
  color: #c6d0dd;
  font-weight: 500;
}
.breadcrumbs .desktop-crumb {
  color: #8f9eb2;
}
.slash {
  color: #49576a;
}
.top-actions {
  gap: 14px;
}
.search-trigger {
  height: 32px;
  width: 224px;
  padding: 0 9px 0 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: #141c27;
  border-radius: 6px;
  color: #92a0b3;
  text-align: left;
  font-size: 11px;
}
.search-trigger i svg {
  width: 15px;
}
.search-trigger kbd {
  margin-left: auto;
  border: 1px solid #344154;
  border-radius: 3px;
  width: 17px;
  text-align: center;
  height: 18px;
  line-height: 15px;
  color: #8996a7;
}
.top-sep {
  width: 1px;
  height: 19px;
  background: var(--line);
}
.icon-btn {
  color: #9aa7b7;
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 5px;
}
.icon-btn:hover {
  background: #1b2734;
}
.mobile-menu {
  display: none;
}
main {
  max-width: 1880px;
  margin: auto;
  padding: 25px 28px 36px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 15px;
}
.title-line {
  gap: 12px;
}
h1 {
  font-size: 27px;
  letter-spacing: 0.6px;
  line-height: 1.35;
  font-weight: 650;
  margin: 0;
  color: #f2f5f9;
}
.session {
  font-size: 10px;
  line-height: 20px;
  border-radius: 4px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #162d2a;
  color: #7ed8b8;
  border: 1px solid #24463d;
}
.session > span {
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}
.page-subtitle {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-subtitle i svg {
  width: 13px;
  height: 13px;
}
.sub-dot {
  color: #546278;
}
.heading-tools {
  gap: 17px;
}
.button,
.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.button {
  border: 1px solid #344253;
  background: #1a2532;
  color: #e1e8f0;
  border-radius: 6px;
  font-size: 12px;
  padding: 7px 12px;
  min-height: 32px;
}
.button svg {
  width: 14px;
  height: 14px;
}
.button:hover {
  background: #253542;
  border-color: #4c6272;
}
.button.primary {
  background: #1c3c32;
  border-color: #32604f;
  color: #6ae6bd;
}
.auto-button {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  padding: 4px 0;
}
.switch {
  width: 24px;
  height: 14px;
  border-radius: 99px;
  background: #424d5c;
  padding: 3px;
  display: flex;
}
.switch:after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cfdae0;
}
.auto-button[aria-checked='true'] .switch {
  background: #286950;
  justify-content: flex-end;
}
.auto-button[aria-checked='true'] .switch:after {
  background: #70e6b9;
}
.busy svg {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.index-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 17px;
}
.index-card {
  display: block;
  text-align: left;
  position: relative;
  overflow: hidden;
  min-height: 121px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: linear-gradient(115deg, #151e2c, #121a26);
  isolation: isolate;
}
.index-card:hover {
  border-color: #465567;
  background: #17212e;
}
.index-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}
.index-name {
  font-size: 13px;
  font-weight: 600;
  color: #dce3ed;
}
.index-code {
  font-family: var(--mono);
  font-size: 10px;
  color: #7d8ba1;
  letter-spacing: 0.6px;
}
.index-price {
  font-family: var(--mono);
  letter-spacing: 0.3px;
  font-size: 27px;
  font-weight: 600;
  line-height: 1.2;
  display: block;
  margin: 12px 0 5px;
  font-variant-numeric: tabular-nums;
  position: relative;
  z-index: 1;
}
.index-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2px;
}
.pct-tag {
  padding: 1px 5px;
  background: #f77e8f17;
  border-radius: 3px;
  font-size: 10.5px;
  font-weight: 600;
}
.down-txt .pct-tag {
  background: #41ca9b19;
}
.up-txt {
  color: var(--red);
}
.down-txt {
  color: var(--green);
}
.neutral-txt {
  color: #a4b1c1;
}
.mini-chart {
  position: absolute;
  width: 31%;
  height: 42px;
  bottom: 17px;
  right: 13px;
  z-index: 0;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.69fr) minmax(295px, 1fr);
  gap: 16px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  overflow: hidden;
  min-width: 0;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 17px 18px 0;
}
.card-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  letter-spacing: 0.3px;
  font-weight: 600;
  color: #e6edf6;
  white-space: nowrap;
}
.icon-tile {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: #19382f;
  color: #56deb3;
  border-radius: 7px;
}
.icon-tile svg {
  width: 17px;
  height: 17px;
}
.icon-tile.blue {
  background: #1c2e46;
  color: #88b7f6;
}
.icon-tile.violet {
  background: #2d2843;
  color: #b9a4fd;
}
.icon-tile.amber {
  background: #352e25;
  color: #ebbb75;
}
.action-link {
  padding: 3px 0 3px 3px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.action-link svg {
  width: 13px;
  height: 13px;
}
.action-link:hover {
  color: var(--accent);
}
.segments {
  display: inline-flex;
  background: #0d141f;
  border-radius: 5px;
  border: 1px solid #26313e;
  padding: 2px;
}
.seg {
  color: #8493a7;
  border-radius: 3px;
  padding: 3px 9px;
  font-size: 10.5px;
  white-space: nowrap;
}
.seg.active {
  background: #273544;
  color: #dfe9f2;
}
.metrics-row {
  display: flex;
  gap: clamp(16px, 3.1vw, 58px);
  padding: 15px 19px 6px;
}
.metric small,
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #aab5c5;
  font-size: 10.5px;
}
.metric i,
.legend-item i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  background: var(--series);
}
.metric b {
  font: 600 21px/1.35 var(--mono);
  letter-spacing: 0.3px;
  color: #e5ecf5;
  font-variant-numeric: tabular-nums;
}
.metric em {
  font-size: 10px;
  font-style: normal;
  color: #8796a9;
  margin-left: 4px;
}
.plot-wrap {
  margin: 1px 15px 2px 10px;
  position: relative;
  height: 190px;
}
.plot-wrap svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.chart-tooltip {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  display: none;
  min-width: 125px;
  padding: 7px 10px;
  border: 1px solid #405065;
  border-radius: 5px;
  background: #172330f2;
  color: #cbd7e4;
  font-size: 10.5px;
  box-shadow: 0 6px 18px #0007;
}
.chart-tooltip b {
  display: block;
  margin-bottom: 2px;
}
.chart-cursor {
  stroke: #8896a8;
  stroke-dasharray: 3 3;
}
.card-foot {
  border-top: 1px solid var(--faint);
  padding: 9px 18px;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  color: var(--dim);
}
.source-note {
  font-size: 10px;
  color: var(--dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.source-note svg {
  width: 11px;
  height: 11px;
  vertical-align: -2px;
  margin-right: 4px;
}
.flow-card,
.rank-card {
  display: flex;
  flex-direction: column;
}
.flow-card .card-foot,
.rank-card .card-foot {
  margin-top: auto;
}
.rank-header,
.rank-row {
  display: grid;
  grid-template-columns: 22px minmax(56px, 1fr) minmax(38px, 0.8fr) 75px;
  align-items: center;
  gap: 4px;
}
.rank-list {
  padding: 10px 18px 8px;
}
.rank-header {
  color: var(--dim);
  font-size: 10px;
  margin: 1px 0 6px;
}
.rank-header span:last-child {
  grid-column: 3/5;
  text-align: right;
}
.rank-row {
  width: 100%;
  height: 31px;
  font-size: 12px;
  padding: 0;
  text-align: left;
}
.rank-no {
  font-family: var(--mono);
  font-size: 10.5px;
  color: #7e8da1;
  width: 17px;
  text-align: center;
  font-weight: 600;
}
.rank-no.top {
  border-radius: 3px;
  background: #312b26;
  color: #e8be80;
}
.rank-bar {
  background: #293342;
  height: 5px;
  border-radius: 2px;
  overflow: hidden;
}
.rank-bar > i {
  display: block;
  height: 100%;
  background: var(--red);
  border-radius: 2px;
}
.rank-bar.out > i {
  background: var(--green);
}
.rank-val {
  text-align: right;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.rank-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-switch .seg.active {
  color: var(--red);
  background: #3a2730;
}
.rank-switch.is-out .seg.active {
  color: var(--green);
  background: #1c3831;
}
.table-card .card-head {
  padding-bottom: 12px;
}
.compact-tabs {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}
.compact-tabs button {
  font-size: 11px;
  padding: 5px 0 8px;
  color: #8c9bad;
  border-bottom: 2px solid transparent;
}
.compact-tabs button.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.simple-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11.5px;
}
.simple-table th,
.simple-table td {
  padding: 9px 12px;
  text-align: left;
}
.simple-table th {
  font-weight: 400;
  color: #8897ab;
  background: #101823;
  font-size: 10px;
  white-space: nowrap;
}
.simple-table th:first-child,
.simple-table td:first-child {
  padding-left: 18px;
}
.simple-table th:last-child,
.simple-table td:last-child {
  padding-right: 18px;
}
.simple-table tbody tr + tr {
  border-top: 1px solid var(--faint);
}
.simple-table tr[data-stock],
.list-line[data-stock] {
  cursor: pointer;
}
.simple-table tr[data-stock]:hover,
.list-line[data-stock]:hover {
  background: #182432;
}
.stock-name {
  font-weight: 550;
  font-size: 12px;
  color: #dce5ef;
}
.stock-code {
  font-size: 10px;
  color: #7f8ea4;
  font-family: var(--mono);
  letter-spacing: 0.4px;
  display: block;
  margin-top: 1px;
}
.numeric {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.align-right {
  text-align: right !important;
}
.subtle {
  color: var(--muted);
}
.hold-name {
  max-width: 170px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.seat-list {
  padding: 3px 18px 0;
}
.list-line {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--faint);
  text-align: left;
  width: 100%;
}
.list-line:last-child {
  border-bottom: 0;
}
.seat-symbol {
  width: 25px;
  height: 27px;
  display: grid;
  place-items: center;
  background: #302b26;
  border: 1px solid #3b3328;
  color: #dbaf70;
  border-radius: 5px;
}
.seat-symbol svg {
  width: 13px;
  height: 13px;
}
.seat-sub {
  display: block;
  font-size: 10px;
  color: var(--dim);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.seat-money {
  font-size: 13px;
  font-family: var(--mono);
  text-align: right;
}
.seat-caption {
  margin: 12px 18px 0;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--dim);
}
.empty,
.loading-state {
  color: var(--muted);
  font-size: 13px;
  padding: 28px 18px;
  text-align: center;
}
.loading-state {
  min-height: 200px;
  display: grid;
  place-items: center;
}
.plot-wrap .empty {
  height: 100%;
  display: grid;
  place-items: center;
}
.watch-head {
  padding-bottom: 16px;
}
.watch-head small {
  font-weight: 400;
  color: var(--dim);
}
.watch-blank {
  padding: 55px 20px;
  text-align: center;
}
.watch-blank > svg {
  color: #8aa094;
}
.watch-blank h3 {
  margin: 8px 0 4px;
}
.watch-blank p {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 16px;
}
dialog {
  color: var(--text);
  border: 1px solid #354456;
  border-radius: 12px;
  padding: 0;
  background: #121b27;
  width: min(560px, calc(100vw - 28px));
  max-height: 85dvh;
  box-shadow: 0 24px 100px #0009;
}
dialog::backdrop {
  background: #050a13ba;
  backdrop-filter: blur(4px);
}
.modal-content {
  padding: 22px;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.modal-head h2 {
  font-size: 19px;
  font-weight: 600;
  margin: 0;
}
.modal-head .icon-btn {
  flex: none;
}
.modal-input {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #0c131e;
  border: 1px solid #386456;
  border-radius: 6px;
  padding: 0 12px;
  color: var(--muted);
}
.modal-input input {
  border: 0;
  outline: 0;
  width: 100%;
  background: transparent;
  color: var(--text);
  padding: 11px 0;
}
.search-label {
  font-size: 11px;
  color: var(--dim);
  margin: 17px 0 6px;
}
.search-result {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 9px 6px;
  text-align: left;
  border-bottom: 1px solid var(--faint);
}
.search-result:hover {
  background: #1b2734;
}
.exchange {
  color: #82b1bd;
  background: #1b2c38;
  border: 1px solid #2b4050;
  border-radius: 4px;
  padding: 1px 4px;
  font-size: 10px;
  letter-spacing: 0.4px;
}
.search-result small {
  color: var(--muted);
  font-family: var(--mono);
}
.search-result > svg {
  margin-left: auto;
  color: var(--dim);
}
.modal-section {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 15px;
}
.modal-section h3 {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 8px;
}
.detail-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.detail-price {
  font: 600 32px var(--mono);
  letter-spacing: 0.2px;
}
.detail-code {
  font: 12px var(--mono);
  color: var(--dim);
  margin-left: 8px;
}
.detail-asof {
  color: var(--dim);
  font-size: 11px;
  margin: 10px 0;
}
.detail-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.detail-facts div {
  background: #0e1621;
  padding: 8px 10px;
  border-radius: 5px;
}
.detail-facts small {
  display: block;
  color: var(--dim);
  font-size: 10px;
}
.detail-facts b {
  font: 600 14px var(--mono);
}
.detail-periods {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.detail-periods .segments {
  margin-bottom: 6px;
}
.source-row {
  border-top: 1px solid var(--faint);
  padding: 10px 0;
}
.source-row header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.source-row header b {
  font-size: 13px;
}
.source-row header span {
  font-size: 10px;
  color: var(--accent);
}
.source-row p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin: 4px 0 0;
}
.source-row a {
  color: #87cdb7;
  font-size: 11px;
}
.detail-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.75;
}
.data-link {
  color: var(--accent);
  font-size: 11px;
}
.source-row a svg,
.data-link svg {
  width: 11px;
  height: 11px;
  vertical-align: -1px;
}
.chart-legend {
  display: flex;
  gap: 13px;
  align-items: center;
}
.detail-card {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-top: 7px;
  background: #101822;
}
.detail-card b {
  font-size: 12px;
}
.detail-card small {
  display: block;
  color: var(--dim);
  margin-top: 3px;
  font-size: 11px;
}
#toast {
  position: fixed;
  bottom: 22px;
  left: calc(50% + var(--railwidth) / 2);
  transform: translate(-50%, 15px);
  border: 1px solid #39594f;
  background: #1a2e27;
  color: #d4f4e5;
  border-radius: 7px;
  box-shadow: 0 5px 30px #0005;
  padding: 8px 15px;
  opacity: 0;
  pointer-events: none;
  transition: 0.18s;
  z-index: 16;
  font-size: 12px;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
#shade {
  display: none;
}
@media (min-width: 1600px) {
  :root {
    --railwidth: 220px;
  }
  main {
    padding: 30px 36px;
  }
  .topbar {
    padding: 0 36px;
  }
  .index-card {
    min-height: 138px;
    padding: 18px 20px;
  }
  .index-price {
    font-size: 30px;
  }
  .plot-wrap {
    height: 225px;
  }
  .rank-row {
    height: 36px;
  }
  .index-grid,
  .dashboard-grid {
    gap: 18px;
  }
}
@media (max-width: 1240px) {
  :root {
    --railwidth: 178px;
  }
  main {
    padding: 21px 19px;
  }
  .topbar {
    padding: 0 19px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.53fr) minmax(280px, 1fr);
    gap: 12px;
  }
  .index-grid {
    gap: 10px;
  }
  .index-card {
    padding: 13px 12px;
  }
  .index-price {
    font-size: 25px;
  }
  .mini-chart {
    right: 10px;
    width: 29%;
    height: 34px;
  }
  .metrics-row {
    gap: 20px;
  }
  .rank-list {
    padding-left: 14px;
    padding-right: 14px;
  }
  .card-head {
    padding: 15px 14px 0;
  }
  .rank-header,
  .rank-row {
    grid-template-columns: 19px minmax(54px, 1fr) minmax(28px, 0.65fr) 66px;
  }
  .hold-name {
    max-width: 140px;
  }
  .index-name {
    font-size: 12px;
  }
  .index-code {
    font-size: 9px;
  }
  .index-bottom {
    gap: 5px;
  }
  .metric b {
    font-size: 19px;
  }
}
@media (max-width: 1010px) {
  :root {
    --railwidth: 136px;
  }
  .sidebar {
    padding: 0 8px;
  }
  .brand {
    padding: 22px 5px 27px;
  }
  .brand small,
  .brand strong span,
  .nav-link.active:after,
  .work-profile > span + span,
  .connection > span:not(.status-led),
  .connection i {
    display: none;
  }
  .nav-link {
    gap: 7px;
    height: 35px;
    padding: 0 6px;
    font-size: 12px;
  }
  .nav-group-title {
    margin: 10px 6px 5px;
    font-size: 10px;
  }
  .nav-group {
    margin-bottom: 15px;
  }
  .connection {
    justify-content: center;
    padding: 10px 0;
  }
  .work-profile {
    justify-content: center;
  }
  .metrics-row {
    gap: 24px;
  }
  .index-grid {
    gap: 9px;
  }
}
@media (max-width: 780px) {
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .index-card {
    min-height: 106px;
  }
  .mini-chart {
    width: 39%;
    height: 42px;
    bottom: 12px;
  }
  .metrics-row {
    justify-content: space-between;
    margin-right: 12px;
  }
  .rank-row {
    height: 34px;
  }
  .plot-wrap {
    height: 200px;
  }
  .search-trigger {
    width: 185px;
  }
  .index-price {
    margin-top: 8px;
  }
  .heading-tools {
    gap: 10px;
  }
  .hold-name {
    max-width: 185px;
  }
}
@media (max-width: 560px) {
  :root {
    --railwidth: 66px;
  }
  .sidebar {
    padding: 0 3px;
    scrollbar-width: thin;
    overscroll-behavior: contain;
  }
  .sidebar .brand {
    padding: 7px 0 3px;
    justify-content: center;
    gap: 2px;
    flex-direction: column;
  }
  .sidebar .brand img { width: 26px; height: 26px; }
  .sidebar .brand strong { font-size: 12px; letter-spacing: 2px; }
  .sidebar .nav-group-title {
    margin: 6px 0 3px;
    font-size: 9px;
    letter-spacing: .2px;
    text-align: center;
  }
  .sidebar .nav-group { margin-bottom: 5px; }
  .sidebar .nav-link {
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    min-height: 38px;
    height: auto;
    padding: 3px 0;
    margin-bottom: 1px;
    font-size: 10px;
    line-height: 1.2;
    text-align: center;
  }
  .sidebar .nav-link svg { width: 14px; height: 14px; }
  .sidebar .nav-link span { display: block; max-width: 58px; }
  .sidebar .connection > span:not(.status-led) { display: inline; }
  .sidebar .connection b { font-size: 10px; }
  .sidebar .connection .status-led { display: none; }
  .sidebar .connection { padding: 4px; gap: 3px; }
  .sidebar .connection small, .sidebar .work-profile { display: none; }
  .sidebar .rail-bottom { padding: 7px 0; }
  .main-shell { min-width: 0; }
  main, #view { min-width: 0; }
  .index-card .mini-chart { display: none; }
  .topbar { gap: 4px; }
  .top-actions { gap: 3px; }
  .theme-toggle { padding: 3px 5px; gap: 3px; font-size: 10px; }
  .dashboard-grid, .index-grid, .card, .table-card { min-width: 0; }
  .simple-table { min-width: 330px; }
  .table-card { overflow-x: auto; }
  .breadcrumbs {
    gap: 8px;
  }
  .desktop-crumb,
  .top-sep,
  .top-actions > .icon-btn {
    display: none !important;
  }
  .topbar {
    padding: 0 12px;
    height: 48px;
  }
  .search-trigger {
    width: 33px;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: 0;
  }
  .search-trigger span,
  .search-trigger kbd {
    display: none;
  }
  main {
    padding: 18px 12px;
  }
  .page-heading {
    gap: 8px;
    margin-bottom: 15px;
    align-items: flex-start;
  }
  .heading-tools {
    margin-top: 3px;
  }
  .auto-button {
    display: none;
  }
  h1 {
    font-size: 24px;
  }
  .title-line {
    gap: 8px;
  }
  .page-subtitle {
    font-size: 10.5px;
    gap: 5px;
  }
  .session {
    font-size: 9px;
  }
  .button {
    font-size: 11px;
    padding: 5px 8px;
  }
  .index-card {
    min-height: 103px;
  }
  .index-name {
    font-size: 12px;
  }
  .index-price {
    font-size: 23px;
  }
  .index-grid {
    gap: 8px;
    margin-bottom: 12px;
  }
  .mini-chart {
    width: 27%;
    height: 30px;
  }
  .card-head {
    padding: 13px 12px 0;
  }
  .card-title {
    font-size: 14px;
    gap: 7px;
  }
  .metrics-row {
    gap: 6px;
    margin-right: 0;
    padding: 12px 12px 4px;
  }
  .metric b {
    font-size: 17px;
  }
  .metric em {
    font-size: 9px;
    margin-left: 2px;
  }
  .metric small {
    font-size: 10px;
  }
  .card-foot {
    padding: 8px 12px;
  }
  .plot-wrap {
    height: 175px;
  }
  .simple-table th,
  .simple-table td {
    padding: 8px 5px;
  }
  .simple-table th:first-child,
  .simple-table td:first-child {
    padding-left: 12px;
  }
  .simple-table th:last-child,
  .simple-table td:last-child {
    padding-right: 10px;
  }
  .hold-name {
    max-width: 108px;
  }
  .modal-content {
    padding: 15px;
  }
  .modal-head h2 {
    font-size: 17px;
  }
  .simple-table {
    font-size: 10.5px;
  }
  .seg {
    padding: 3px 6px;
  }
  .heading-tools .button span {
    display: none;
  }
}
@font-face {
  font-family: Inter;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
.seat-rank {
  color: #8595ab;
  font: 500 11px var(--mono);
  text-align: left;
}
.seat-ticker {
  color: #8492a5;
  font: 10px var(--mono);
  margin-left: 4px;
}
.seat-money small {
  font-family: 'Microsoft YaHei UI', sans-serif;
  font-weight: 400;
  font-size: 10px;
}
@media (min-width: 1100px) {
  .rank-card .rank-row {
    height: 36px;
  }
  .card .rank-list {
    padding-top: 12px;
  }
  .card .rank-val {
    font-size: 13px;
  }
  .card .rank-header,
  .card .seat-caption {
    font-size: 11px;
  }
  .index-card .index-name {
    font-size: 14px;
  }
  .index-card .index-price {
    font-weight: 580;
    letter-spacing: -0.8px;
  }
  .card .metric b {
    letter-spacing: -0.5px;
  }
  .card .card-title {
    font-size: 16px;
  }
  .card .seat-sub {
    font-size: 11px;
  }
  .card .stock-name {
    font-size: 13px;
  }
}
