.ru-view {
  --ru-bg: #0c1420;
  --ru-panel: #111b29;
  --ru-border: #243142;
  --ru-ink: #e6ebf2;
  --ru-muted: #9aa9bd;
  --ru-subtle: #8596ac;
  --ru-teal: #37d3ac;
  --ru-red: #fa727b;
  --ru-green: #36cbaa;
  --ru-band-0: #537091;
  --ru-band-1: #5887a2;
  --ru-band-2: #43a4ac;
  --ru-band-3: #38b99f;
  --ru-band-4: #39d3a9;
  color: var(--ru-ink);
  display: grid;
  gap: 16px;
  min-width: 0;
  font-size: 13px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.ru-view *, .ru-view *::before, .ru-view *::after { box-sizing: border-box; }
.ru-view button, .ru-view input, .ru-view select { font: inherit; }
.ru-view button { color: inherit; cursor: pointer; }
.ru-view :is(button, select, a, input):focus-visible { outline: 2px solid var(--ru-teal); outline-offset: 2px; }
.ru-view .ru-up { color: var(--ru-red); }
.ru-view .ru-down { color: var(--ru-green); }
.ru-card, .ru-stats, .ru-stat { min-width: 0; }
.ru-card, .ru-stat {
  background: var(--ru-panel);
  border: 1px solid var(--ru-border);
  border-radius: 11px;
}
.ru-card { overflow: hidden; }
.ru-cardhead {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 21px;
}
.ru-cardhead h3, .ru-subsection h4, .ru-topicmain h3 { color: var(--ru-ink); margin: 0; font-weight: 650; }
.ru-cardhead h3 { font-size: 16px; letter-spacing: .01em; }
.ru-cardhead p, .ru-topicmain p { color: var(--ru-muted); }
.ru-cardhead p { font-size: 12px; margin: 4px 0 0; }
.ru-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ru-stat { padding: 16px 20px 14px; }
.ru-stat > span { display: block; color: var(--ru-muted); font-size: 12px; }
.ru-stat > strong { display: block; font-size: clamp(22px, 2vw, 28px); font-weight: 610; margin-top: 4px; }
.ru-stat small, .ru-band strong small, .ru-chartread strong small { color: var(--ru-muted); margin-left: 6px; font-size: 12px; font-weight: 450; }
.ru-tools, .ru-toolright, .ru-tabs, .ru-picker, .ru-search, .ru-pager, .ru-pager > div,
.ru-source > div, .ru-source, .ru-chartread { display: flex; align-items: center; }
.ru-tools { gap: 10px; justify-content: space-between; flex-wrap: wrap; padding: 0 21px 16px; }
.ru-toolright { flex-wrap: wrap; gap: 10px; }
.ru-tabs { flex-wrap: wrap; gap: 2px; padding: 3px; background: var(--ru-bg); border: 1px solid var(--ru-border); border-radius: 7px; }
.ru-tabs button { background: transparent; border: 0; border-radius: 4px; padding: 4px 10px; font-size: 12px; color: var(--ru-muted); }
.ru-tabs button:hover { color: var(--ru-ink); }
.ru-tabs button[aria-pressed=true] { background: #17352f; color: var(--ru-teal); }
.ru-picker { gap: 6px; color: var(--ru-muted); font-size: 12px; }
.ru-picker select, .ru-search { background: var(--ru-bg); border: 1px solid var(--ru-border); border-radius: 6px; color: var(--ru-ink); }
.ru-picker select { max-width: 170px; height: 33px; padding: 2px 5px; color-scheme: dark; }
.ru-search { height: 33px; gap: 7px; color: var(--ru-subtle); padding: 0 10px; }
.ru-search:focus-within { border-color: var(--ru-teal); }
.ru-search input { width: 138px; outline: none; background: transparent; border: none; color: var(--ru-ink); min-width: 0; font-size: 12px; }
.ru-search input:focus-visible { outline: none; }
.ru-search input::placeholder { color: var(--ru-subtle); }
.ru-date, .ru-count { color: var(--ru-muted); font-size: 12px; white-space: nowrap; }
.ru-count { background: #1b293b; border-radius: 5px; padding: 2px 8px; }
.ru-scroll { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.ru-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ru-table :is(th, td) { text-align: left; padding: 11px 10px; border: 0; border-bottom: 1px solid #202c3b; white-space: nowrap; vertical-align: middle; }
.ru-table th { background: #101925; border-top: 1px solid var(--ru-border); font-weight: 500; font-size: 12px; color: var(--ru-muted); }
.ru-table :is(th, td):first-child { padding-left: 21px; }
.ru-table :is(th, td):last-child { padding-right: 21px; }
.ru-table td.ru-namecell { min-width: 125px; max-width: 315px; white-space: normal; }
.ru-table .ru-namecell small { display: block; color: var(--ru-subtle); margin-top: 1px; font-size: 11px; }
.ru-table tbody tr:hover td { background: #142030; }
.ru-num, .ru-rank { font-family: 'IBM Plex Mono', Consolas, 'Microsoft YaHei', monospace; font-variant-numeric: tabular-nums; }
.ru-rank { color: var(--ru-subtle); }
.ru-stock { display: inline-flex; flex-direction: column; align-items: flex-start; padding: 0; border: 0; background: none; text-align: left; line-height: 1.5; }
.ru-stock span { color: var(--ru-ink); font-weight: 570; }
.ru-stock small { color: var(--ru-subtle); font-size: 11px; font-family: 'IBM Plex Mono', Consolas, monospace; }
.ru-stock:hover span { color: var(--ru-teal); }
.ru-tag, .ru-height, .ru-status, .ru-theme-sector { display: inline-flex; align-items: center; gap: 5px; line-height: 1.45; font-size: 11px; border-radius: 4px; }
.ru-tag, .ru-height { padding: 3px 6px; background: #182d32; color: #87d9c6; border: 1px solid #294347; }
.ru-view .ru-tag { color: #87d9c6; }
.ru-tag:hover { border-color: var(--ru-teal); }
.ru-height { background: #32252a; color: #eea0a5; border-color: #493139; }
.ru-source { flex-wrap: wrap; gap: 6px 12px; padding: 12px 21px; background: var(--ru-bg); color: var(--ru-subtle); font-size: 11px; border-top: 1px solid var(--ru-border); }
.ru-source > div { gap: 6px; }
.ru-source .ru-status { color: var(--ru-muted); background: #1d2a3b; padding: 2px 5px; white-space: nowrap; }
.ru-source p { flex: 1 1 275px; margin: 0; }
.ru-link { color: var(--ru-teal); text-decoration: none; white-space: nowrap; }
.ru-link:hover { text-decoration: underline; }
.ru-link > span { font-size: .92em; }
.ru-pager { justify-content: space-between; padding: 9px 21px; min-height: 36px; font-size: 11px; color: var(--ru-subtle); }
.ru-pager > div { gap: 8px; }
.ru-pager button { color: var(--ru-muted); background: transparent; border: 1px solid var(--ru-border); min-height: 24px; font-size: 11px; padding: 1px 8px; border-radius: 4px; }
.ru-pager button:disabled { opacity: .45; cursor: default; }
.ru-table .ru-empty, .ru-empty { color: var(--ru-muted); padding: 32px 13px; text-align: center; white-space: normal; }
.ru-table .ru-expanded td { white-space: normal; padding: 12px 21px; background: var(--ru-bg); color: var(--ru-muted); }
.ru-expanded td > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 3px 0; }
.ru-expanded td b { font-weight: 550; color: var(--ru-ink); white-space: nowrap; }
.ru-ladder { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 0 21px 18px; gap: 8px; }
.ru-band { min-width: 0; text-align: left; border: 1px solid var(--ru-border); border-radius: 7px; background: var(--ru-bg); padding: 11px 13px 13px; }
.ru-band:hover, .ru-band[aria-pressed=true] { border-color: #377e71; background: #122a2b; }
.ru-band-name { display: block; color: var(--ru-muted); font-size: 12px; }
.ru-band strong { display: block; font-size: 22px; font-weight: 600; line-height: 1.8; }
.ru-bartrack, .ru-sectortrack { display: block; overflow: hidden; border-radius: 2px; background: #1f2d3d; height: 4px; }
.ru-bartrack i, .ru-sectortrack i { display: block; height: 100%; border-radius: inherit; }
.ru-bartrack i { background: var(--band); }
.ru-sectortrack { max-width: 170px; min-width: 70px; }
.ru-sectortrack i { background: currentColor; }
.ru-topicgrid { display: grid; align-items: start; grid-template-columns: minmax(145px, .64fr) minmax(0, 1.8fr); gap: 14px; }
.ru-topiclist { padding: 0 9px 9px; }
.ru-topic { display: flex; width: 100%; align-items: center; justify-content: space-between; border: 1px solid transparent; border-radius: 7px; background: transparent; text-align: left; padding: 12px; }
.ru-topic strong, .ru-topic small { display: block; }
.ru-topic strong { color: var(--ru-ink); font-size: 14px; font-weight: 550; }
.ru-topic small { color: var(--ru-subtle); font-size: 11px; padding-top: 2px; }
.ru-topic-arrow { color: var(--ru-subtle); font-size: 18px; }
.ru-topic:hover { background: #182536; }
.ru-topic[aria-pressed=true] { border-color: #26483f; background: #152c29; }
.ru-topic[aria-pressed=true] :is(strong, .ru-topic-arrow) { color: var(--ru-teal); }
.ru-topicmain, .ru-subsection { padding: 20px 22px; }
.ru-topicmain h3 { font-size: 23px; margin-top: 7px; }
.ru-topicmain p { margin: 8px 0 0; line-height: 1.85; }
.ru-theme-sector { color: var(--ru-teal); background: #17352f; padding: 2px 7px; }
.ru-subsection { border-top: 1px solid var(--ru-border); }
.ru-subsection h4 { font-size: 14px; margin-bottom: 12px; }
.ru-metrics { margin: 0; padding-left: 17px; color: #b6c2d2; line-height: 1.85; }
.ru-metrics li + li { margin-top: 5px; }
.ru-metrics li::marker { color: var(--ru-teal); }
.ru-stockgrid { display: flex; flex-wrap: wrap; gap: 8px; }
.ru-stockgrid .ru-stock { background: var(--ru-bg); border: 1px solid var(--ru-border); border-radius: 6px; padding: 7px 12px; min-width: 95px; }
.ru-chartread { gap: 8px; flex-wrap: wrap; padding: 0 21px 8px; }
.ru-chartread > span { color: var(--ru-muted); font-size: 12px; }
.ru-chartread > span:last-child { font-variant-numeric: tabular-nums; }
.ru-chartread strong { font-size: 20px; font-weight: 600; }
.ru-chartwrap { margin: 0 12px 10px; }
.ru-chart { display: block; width: 100%; height: clamp(140px, 19vw, 225px); }
.ru-chart text { fill: var(--ru-subtle); font-family: 'IBM Plex Mono', Consolas, monospace; font-size: 11px; }
.ru-chartgrid line { stroke: var(--ru-border); stroke-width: 1; stroke-dasharray: 3 4; }
.ru-flowline { stroke: var(--ru-teal); stroke-width: 2; fill: none; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ru-flowarea { fill: var(--ru-teal); opacity: .075; }
@media (max-width: 900px) {
  .ru-topicgrid { grid-template-columns: minmax(140px, .68fr) minmax(0, 1.6fr); }
  .ru-band { padding: 9px; }
  .ru-table :is(th, td) { padding-inline: 8px; }
}
@media (max-width: 640px) {
  .ru-view { gap: 12px; }
  .ru-cardhead, .ru-topicmain, .ru-subsection { padding: 14px; }
  .ru-cardhead { flex-wrap: wrap; }
  .ru-cardhead h3 { font-size: 15px; }
  .ru-stats { gap: 6px; }
  .ru-stat { padding: 10px; }
  .ru-stat > span, .ru-picker > span { font-size: 11px; }
  .ru-tools { padding: 0 14px 12px; }
  .ru-toolright { gap: 6px; }
  .ru-tabs button { padding-inline: 7px; }
  .ru-ladder { padding: 0 14px 14px; gap: 5px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ru-band { padding: 6px 8px; }
  .ru-band strong { font-size: 18px; }
  .ru-topicgrid { grid-template-columns: minmax(0, 1fr); }
  .ru-topiclist { display: flex; gap: 5px; overflow-x: auto; }
  .ru-topic { width: auto; padding: 7px 9px; flex-shrink: 0; }
  .ru-topic small, .ru-topic-arrow { display: none; }
  .ru-topic strong { font-size: 12px; }
  .ru-chartread, .ru-source, .ru-pager { padding-inline: 14px; }
  .ru-chartwrap { margin-inline: 4px; }
  .ru-chart { min-width: 450px; }
  .ru-chartwrap { overflow-x: auto; }
  .ru-table :is(th, td):first-child { padding-left: 14px; }
  .ru-table :is(th, td):last-child { padding-right: 14px; }
}
.board-leaders {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--ru-border);
  padding: 13px 20px 16px;
  background: #111b26;
}
.board-lead-title strong, .board-lead-title span, .board-cell-sub, .board-reason-cell small {
  display: block;
}
.board-lead-title strong { font-size: 13px; }
.board-lead-title span, .board-cell-sub, .board-reason-cell small {
  font-size: 11px;
  color: var(--ru-subtle);
  margin-top: 3px;
}
.board-pair { display: flex; gap: 12px; flex-wrap: wrap; }
.board-leader {
  flex: 1 1 195px;
  padding: 9px 13px;
  text-align: left;
  background: #172431;
  border: 1px solid #2b3d4a;
  border-radius: 7px;
}
.board-leader:hover { border-color: #457965; background: #182b32; }
.board-leader-name { display: flex; align-items: baseline; gap: 8px; font-weight: 600; }
.board-leader-name small, .board-review-code { font: 400 11px var(--mono); color: var(--ru-subtle); }
.board-leader-reason, .board-leader-foot { display: block; font-size: 11.5px; margin-top: 3px; }
.board-leader-reason { color: #b2cfca; }
.board-leader-foot { color: var(--ru-muted); }
.board-leader-foot i { float: right; color: var(--ru-teal); font-style: normal; }
.ru-table td.board-reason-cell { min-width: 145px; max-width: 310px; white-space: normal; }
.board-review { border-color: #305049; scroll-margin-top: 12px; }
.board-review .ru-cardhead { background: #14242a; }
.board-review-code { margin-left: 7px; }
.board-review-actions, .board-review-foot, .board-review-foot > span { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.board-close { color: var(--ru-subtle) !important; font-size: 11px !important; }
.board-facts { display: grid; grid-template-columns: repeat(auto-fit,minmax(100px,1fr)); gap: 11px; margin: 0; padding: 14px 20px; border-block: 1px solid var(--ru-border); }
.board-facts dt { color: var(--ru-subtle); font-size: 11px; }
.board-facts dd { margin: 4px 0 0; color: #dce8ed; font: 550 12px var(--mono); }
.board-analysis { display: grid; grid-template-columns: 1fr 1fr 1.1fr; padding: 16px 20px; gap: 18px; }
.board-analysis h4, .board-plan h4 { font-size: 13px; margin: 0 0 8px; }
.board-analysis h4 { display: flex; align-items: center; gap: 7px; }
.board-analysis strong { font-size: 12px; color: #cfe8db; }
.board-analysis p, .board-plan p, .board-risk-list { font-size: 12px; line-height: 1.75; color: #b2c0d0; margin: 4px 0; }
.board-risk-list { padding-left: 15px; color: #d2b695; }
.board-key { width: 3px; height: 12px; border-radius: 2px; background: var(--ru-teal); }
.board-key.violet { background: #ad94ed; }
.board-key.gold { background: #e2b37a; }
.board-plan { border-top: 1px solid var(--ru-border); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 13px 20px; background: #101a24; }
.board-plan h4 { color: #a4d1c6; font-size: 12px; margin-bottom: 2px; }
.board-plan > div + div h4 { color: #dbb37f; }
.board-review-foot { justify-content: space-between; border-top: 1px solid var(--ru-border); padding: 10px 20px; }
@media (max-width: 900px) {
  .board-analysis { grid-template-columns: 1fr; gap: 14px; }
  .board-leaders { grid-template-columns: 1fr; }
  .board-lead-title { display: flex; align-items: center; gap: 8px; }
}
@media (max-width: 620px) {
  .board-plan { grid-template-columns: 1fr; gap: 10px; }
  .board-leaders, .board-analysis, .board-plan, .board-review-foot, .board-facts { padding-inline: 14px; }
  .board-leader { flex-basis: 100%; }
}
.closing-review {
  background: #14252b;
  border-block: 1px solid #284138;
  padding: 13px 20px;
}
.closing-review h3 { margin: 0; font-size: 13px; color: #c6e5d5; }
.closing-review h3 small { color: #9aafa8; margin-left: 6px; font-size: 10px; font-weight: 400; }
.closing-review p, .pool-ui .closing-review p { margin: 6px 0; color: #c4d4d4; font-size: 12px; line-height: 1.85; }
.closing-review a { color: #86cdb0; font-size: 11px; }
.closing-review a svg { vertical-align: -1px; }
.buy-review { padding: 14px 20px; background: #131e29; border-block: 1px solid #283649; }
.buy-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.buy-review h3 { margin: 0; font-size: 14px; color: #e0eaf2; }
.buy-badge { display: inline-flex; vertical-align: middle; align-items: center; align-self:flex-start; border: 1px solid #334353; background:#202b38; color:#b2c0d0; font-size:11px; line-height:1.6; border-radius:4px; padding:1px 6px; }
.buy-A { color:#75e5b7; background:#17342b; border-color:#2e5b49; }
.buy-B { color:#a6c2ef; background:#1b2a3e; border-color:#354863; }
.buy-C { color:#dec194; background:#322e27; border-color:#514535; }
.buy-D { color:#ed98a3; background:#35252e; border-color:#593944; }
.buy-review p, .pool-ui .buy-review p { color:#b4c2d2; font-size:12px; line-height:1.75; margin:7px 0 0; }
.buy-review dl { margin:9px 0; }
.buy-review dl div { display:grid; grid-template-columns:60px 1fr; gap:6px; margin-top:5px; font-size:12px; }
.buy-review dt { color:#93abbb; }
.buy-review dd { margin:0; line-height:1.65; color:#ccd6e1; }
.buy-review summary { color:#9cb5c4; font-size:11px; cursor:pointer; }
.modal-content .buy-review { margin-top:15px; padding:12px; border:1px solid #2b3b4a; border-radius:7px; }
.dialog-scenario { margin-top:16px; }
