:root {
  --bg: #f4f6f8;
  --panel: #ffffff;
  --ink: #18212f;
  --muted: #6d7888;
  --line: #dbe2ea;
  --red: #cf3434;
  --green: #16805a;
  --blue: #2563eb;
  --amber: #9a6700;
  --accent: #e6b450;
  --shadow: 0 10px 30px rgba(21, 35, 52, 0.08);
}

.workspace-grid.quant-review-workspace {
  grid-template-columns: minmax(0, 1fr);
}

.quant-review-panel {
  padding: 20px;
  background:
    radial-gradient(circle at 92% 2%, rgba(44, 103, 190, 0.12), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #f2f5f9 100%);
}

.quant-review-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid #d7e1ee;
  border-radius: 14px;
  background: #101827;
  color: #f8fafc;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.quant-review-head span {
  color: #8fb8f7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.quant-review-head h2 {
  margin: 5px 0 4px;
  font-size: 28px;
}

.quant-review-head p {
  margin: 0;
  color: #b9c6d8;
  font-size: 13px;
}

.quant-review-head .quant-safety-badge {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid rgba(230, 180, 80, 0.55);
  border-radius: 999px;
  background: rgba(230, 180, 80, 0.12);
  color: #f3c866;
  letter-spacing: 0;
}

.quant-manual {
  margin: 0 0 16px;
  overflow: hidden;
  border: 1px solid #cfdbea;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
}

.quant-manual summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  color: #20324b;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.quant-manual summary::-webkit-details-marker {
  display: none;
}

.quant-manual summary::after {
  content: "展开";
  margin-left: auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: #edf4fd;
  color: #2462a8;
  font-size: 11px;
  font-weight: 800;
}

.quant-manual[open] summary::after {
  content: "收起";
}

.quant-manual summary span,
.quant-manual summary small {
  display: block;
}

.quant-manual summary span {
  font-size: 14px;
  font-weight: 900;
}

.quant-manual summary small {
  color: #718096;
  font-size: 11px;
}

.quant-manual-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 16px 16px;
  border-top: 1px solid #e3e9f1;
}

.quant-manual-body section {
  min-width: 0;
  margin-top: 14px;
  padding: 13px;
  border-radius: 9px;
  background: #f6f9fd;
  color: #4b5b71;
  font-size: 11px;
  line-height: 1.65;
}

.quant-manual-body h3 {
  margin: 0 0 8px;
  color: #1c3150;
  font-size: 13px;
}

.quant-manual-body p,
.quant-manual-body ol,
.quant-manual-body ul,
.quant-manual-body dl {
  margin: 0;
}

.quant-manual-body ol,
.quant-manual-body ul {
  padding-left: 18px;
}

.quant-manual-body li + li {
  margin-top: 5px;
}

.quant-manual-body dl {
  display: grid;
  gap: 7px;
}

.quant-manual-body dl div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 8px;
}

.quant-manual-body dt {
  color: #253d5f;
  font-weight: 900;
}

.quant-manual-body dd {
  margin: 0;
}

.quant-review-layout {
  display: grid;
  grid-template-columns: minmax(440px, 1.15fr) minmax(360px, 0.85fr);
  gap: 16px;
}

.quant-config-card,
.quant-rule-card,
.quant-result-card {
  border: 1px solid #dce4ee;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.quant-config-card,
.quant-rule-card {
  padding: 16px;
}

.quant-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.quant-card-title > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: #1f5fae;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.quant-card-title strong,
.quant-card-title small {
  display: block;
}

.quant-card-title strong {
  color: #172033;
  font-size: 15px;
}

.quant-card-title small {
  margin-top: 2px;
  color: #758297;
  font-size: 11px;
}

.quant-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.quant-form-grid label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #5a6679;
  font-size: 11px;
  font-weight: 800;
}

.quant-form-grid input,
.quant-form-grid select {
  width: 100%;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid #cdd7e4;
  border-radius: 7px;
  background: #fbfdff;
  color: #182235;
  font-variant-numeric: tabular-nums;
}

.quant-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 13px;
  color: #425066;
  font-size: 12px;
  font-weight: 700;
}

.quant-checkboxes label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.quant-run-button {
  width: 100%;
  min-height: 42px;
  margin-top: 14px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #1c61b9, #174981);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.quant-run-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.quant-cost-note {
  margin: 8px 0 0;
  color: #7c8798;
  font-size: 10px;
  line-height: 1.45;
}

.quant-rule-card ol {
  margin: 12px 0 0;
  padding-left: 20px;
  color: #4f5d72;
  font-size: 12px;
  line-height: 1.7;
}

.quant-rule-summary {
  display: grid;
  gap: 7px;
}

.quant-rule-summary span {
  display: block;
  padding: 8px 10px;
  border-left: 3px solid #3a79c7;
  border-radius: 4px;
  background: #f2f7fd;
  color: #35445b;
  font-size: 12px;
}

.quant-data-quality {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 7px;
  background: #eef2f7;
  color: #5a687c;
  font-size: 11px;
  line-height: 1.55;
}

.quant-data-quality.verified {
  background: #e8f7f0;
  color: #17654e;
}

.quant-data-quality.warning {
  background: #fff4dc;
  color: #80560a;
}

.quant-review-status {
  margin: 16px 0;
  padding: 11px 14px;
  border: 1px solid #d7e0eb;
  border-radius: 8px;
  background: #fff;
  color: #58677b;
  font-size: 12px;
}

.quant-review-status.loading {
  border-color: #b7cdeb;
  background: #edf5ff;
  color: #235b9c;
}

.quant-review-status.error {
  border-color: #f0c5c5;
  background: #fff0f0;
  color: #a22f2f;
}

.quant-review-results {
  display: grid;
  gap: 16px;
}

.quant-verdict {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid #d8e1ed;
  border-radius: 12px;
  background: #fff;
}

.quant-verdict-score {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: #17243a;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.quant-verdict-score.quant-stage-mark {
  background: linear-gradient(145deg, #0f8f82, #1463b8);
  font-size: 24px;
}

.quant-strategy-sample {
  border-color: rgba(20, 143, 130, 0.34);
  background: linear-gradient(135deg, rgba(235, 250, 247, 0.94), rgba(241, 247, 255, 0.96));
}

.quant-sample-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.quant-sample-head h3,
.quant-sample-head p {
  margin: 0;
}

.quant-sample-head p {
  margin-top: 6px;
  color: #65758b;
  font-size: 13px;
}

.quant-sample-head > strong {
  flex: 0 0 auto;
  padding: 8px 13px;
  border-radius: 999px;
  color: #087265;
  background: #d8f4ec;
  font-size: 14px;
}

.quant-verdict strong,
.quant-verdict p {
  display: block;
  margin: 0;
}

.quant-verdict strong {
  color: #192438;
  font-size: 17px;
}

.quant-verdict p {
  margin-top: 4px;
  color: #647187;
  font-size: 12px;
}

.quant-verdict-action {
  max-width: 270px;
  padding: 8px 10px;
  border-radius: 7px;
  background: #f2f5f9;
  color: #3c4b61;
  font-size: 11px;
  font-weight: 800;
}

.quant-metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.quant-metric {
  min-width: 0;
  padding: 12px;
  border: 1px solid #dfe6ef;
  border-radius: 9px;
  background: #fff;
}

.quant-metric span,
.quant-metric strong,
.quant-metric small {
  display: block;
}

.quant-metric span {
  color: #788499;
  font-size: 10px;
}

.quant-metric strong {
  margin: 4px 0;
  color: #172033;
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}

.quant-metric small {
  color: #8a95a6;
  font-size: 9px;
}

.quant-result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: 16px;
}

.quant-result-card {
  min-width: 0;
  padding: 15px;
}

.quant-result-card h3 {
  margin: 0 0 10px;
  color: #1c273a;
  font-size: 14px;
}

.quant-equity-chart {
  display: block;
  width: 100%;
  height: 220px;
  border-radius: 8px;
  background: #101827;
}

.quant-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quant-split-card {
  padding: 12px;
  border-radius: 8px;
  background: #f3f6fa;
}

.quant-split-card span,
.quant-split-card strong,
.quant-split-card small {
  display: block;
}

.quant-split-card span {
  color: #6f7c90;
  font-size: 10px;
}

.quant-split-card strong {
  margin: 4px 0;
  font-size: 18px;
  color: #1c293d;
}

.quant-split-card small {
  color: #7a8799;
  font-size: 10px;
}

.quant-current-gate {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #fff6df;
  color: #79570d;
  font-size: 11px;
  line-height: 1.6;
}

.quant-current-gate.pass {
  background: #e8f7f0;
  color: #17654e;
}

.quant-year-bars {
  display: grid;
  gap: 7px;
}

.quant-year-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 62px;
  align-items: center;
  gap: 8px;
  color: #5f6d80;
  font-size: 11px;
}

.quant-funnel-row {
  grid-template-columns: minmax(170px, 0.45fr) minmax(160px, 1fr) 62px;
}

.quant-year-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf3;
}

.quant-year-fill {
  height: 100%;
  border-radius: inherit;
  background: #2e73c4;
}

.quant-year-fill.negative {
  background: #3aa879;
}

.quant-trade-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.quant-trade-table th,
.quant-trade-table td {
  padding: 8px 9px;
  border-bottom: 1px solid #e7ebf1;
  font-size: 10px;
  text-align: left;
  white-space: nowrap;
}

.quant-trade-table th {
  color: #738096;
  background: #f6f8fb;
}

.quant-trade-table td {
  color: #344158;
}

.quant-result-note {
  padding: 12px 14px;
  border-left: 4px solid #d5a735;
  background: #fff9ea;
  color: #66521b;
  font-size: 11px;
  line-height: 1.6;
}

@media (max-width: 1180px) {
  .quant-review-layout,
  .quant-result-grid {
    grid-template-columns: 1fr;
  }

  .quant-manual-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quant-form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quant-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .quant-review-panel {
    padding: 10px;
  }

  .quant-review-head,
  .quant-verdict {
    grid-template-columns: 1fr;
  }

  .quant-review-head {
    display: grid;
  }

  .quant-manual summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .quant-manual summary small {
    width: 100%;
  }

  .quant-manual-body {
    grid-template-columns: 1fr;
  }

  .quant-review-head .quant-safety-badge {
    justify-self: start;
  }

  .quant-review-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .quant-form-grid,
  .quant-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quant-verdict {
    justify-items: start;
  }

  .quant-verdict-action {
    max-width: none;
  }

  .quant-sample-head {
    display: block;
  }

  .quant-sample-head > strong {
    display: inline-block;
    margin-top: 10px;
  }
}

.position-track-button {
  margin-top: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(78, 161, 255, 0.55);
  border-radius: 8px;
  background: rgba(78, 161, 255, 0.12);
  color: #b9dcff;
  font-size: 12px;
  cursor: pointer;
}

.position-track-button:hover { background: rgba(78, 161, 255, 0.22); }
.position-track-button.tracked { border-color: rgba(86, 211, 154, 0.55); background: rgba(86, 211, 154, 0.12); color: #a8efcf; }

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.access-gate {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.62);
}

.access-gate[hidden] { display: none; }

.access-card {
  display: grid;
  gap: 12px;
  width: min(360px, 100%);
  padding: 22px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(0,0,0,0.22);
}

.access-card h2 {
  font-size: 18px;
}

.access-card input {
  min-height: 42px;
  padding: 0 10px;
}

.access-card button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.access-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.access-card p {
  min-height: 18px;
  color: var(--red);
  font-size: 13px;
}

button, input, textarea {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.app-shell.left-collapsed {
  grid-template-columns: 72px minmax(0, 1fr);
}

.side-panel {
  background: #111827;
  color: #eef2f7;
  padding: 12px;
  overflow-y: auto;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.brand-copy {
  min-width: 0;
  flex: 1;
}

.sidebar-toggle {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  flex: 0 0 30px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: #344154;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.sidebar-toggle:hover {
  border-color: #9db7ee;
  background: #edf4ff;
  color: var(--blue);
}

.side-panel.left-collapsed {
  padding: 12px 8px;
  overflow: hidden;
}

.side-panel.left-collapsed .brand-block {
  justify-content: center;
  gap: 6px;
  padding-bottom: 0;
  border-bottom: 0;
}

.side-panel.left-collapsed .brand-copy,
.side-panel.left-collapsed .panel-section {
  display: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #e6b450;
  color: #101827;
  font-weight: 900;
}

h1 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0;
}

p { margin: 0; color: #aab4c3; }

.panel-section {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.panel-section h2 {
  margin-bottom: 10px;
  color: #ffffff;
}

.status-panel {
  padding: 0;
}

.status-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  color: #eef2f7;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  list-style: none;
}

.status-panel summary::-webkit-details-marker { display: none; }
.status-panel summary::after { content: "▾"; color: #94a3b8; }
.status-panel[open] summary::after { content: "▴"; }
.status-panel summary small { color: #94a3b8; font-size: 10px; font-weight: 600; }
.status-panel[open] summary small { display: none; }
.status-panel .source-box { margin: 0 10px 10px; }

.focus-core-filter {
  margin-top: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
}

.focus-core-filter summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  color: #eef2f7;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  list-style: none;
}

.focus-core-filter summary::-webkit-details-marker { display: none; }
.focus-core-filter summary::after { content: "▾"; color: #94a3b8; }
.focus-core-filter[open] summary::after { content: "▴"; }
.focus-core-filter summary small { color: #94a3b8; font-size: 10px; font-weight: 600; }
.focus-core-filter[open] summary small { display: none; }

.core-filter-body {
  display: grid;
  gap: 2px;
  padding: 0 10px 10px;
}

.core-filter-body label { min-height: 32px; font-size: 12px; }
.core-filter-body label input[type="number"] { width: 58px; padding: 5px 6px; }

.market-index-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.market-index-head h2 { margin-bottom: 10px; }

.market-index-head span,
.market-index-hint { color: #94a3b8; font-size: 10px; }

.market-index-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.market-index-card {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  background: rgba(255,255,255,0.055);
  color: #eef2f7;
  text-align: left;
  cursor: pointer;
}

.market-index-card:hover,
.market-index-card:focus-visible {
  border-color: rgba(230,180,80,0.7);
  background: rgba(230,180,80,0.1);
  outline: none;
}

.market-index-card span {
  overflow: hidden;
  color: #aab4c3;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-index-card strong { font-size: 14px; }
.market-index-card em { font-size: 11px; font-style: normal; font-weight: 800; }
.market-index-card .market-up { color: #ff7b78; }
.market-index-card .market-down { color: #56d39a; }
.market-index-card .market-flat { color: #cbd5e1; }
.market-index-hint { margin-top: 8px; line-height: 1.45; }

.holder-query-status {
  min-height: 16px;
  margin: 6px 0 0;
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.4;
}

.holder-query-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #f0cf82;
  border-radius: 8px;
  background: #fff9e8;
}

.holder-query-summary[hidden] { display: none; }
.holder-query-summary > div { display: grid; gap: 4px; }
.holder-query-summary strong { color: #6f4b00; font-size: 14px; }
.holder-query-summary span { color: #5f6b7a; font-size: 12px; line-height: 1.45; }
.holder-query-summary .holder-identity-warning { color: #9a6700; }
.holder-query-summary button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #d9b764;
  border-radius: 7px;
  background: #ffffff;
  color: #765000;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.holder-identity-inline { color: #9a6700; }

.filter-subhead {
  margin: 14px 0 6px;
  color: #aab4c3;
  font-size: 12px;
  font-weight: 700;
}

label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  color: #dce4ef;
  font-size: 14px;
}

input, textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
}

input:focus, textarea:focus {
  border-color: #5b8def;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

label input[type="number"] {
  width: 72px;
  padding: 6px 7px;
}

input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #e6b450;
}

.switch-line {
  align-items: center;
  flex-wrap: wrap;
}

textarea {
  width: 100%;
  min-height: 150px;
  padding: 10px;
  resize: vertical;
  line-height: 1.55;
}

.compact-keywords {
  min-height: 92px;
  max-height: 128px;
  font-size: 13px;
}

.side-action {
  width: 100%;
  min-height: 38px;
  margin-top: 10px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 8px;
  background: #e6b450;
  color: #101827;
  font-weight: 800;
  cursor: pointer;
}

.focus-add,
.holder-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 8px;
}

.focus-add input,
.holder-add input {
  min-width: 0;
  min-height: 38px;
}

.focus-add-button {
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.focus-add-button:hover {
  background: #d69b21;
}

.focus-remove-button {
  width: 26px;
  height: 26px;
  margin-left: 6px;
  border: 0;
  border-radius: 5px;
  background: #fce5e5;
  color: #b42318;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
}

.focus-remove-button:hover {
  background: #f7caca;
}

.keyword-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.keyword-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 4px 5px 4px 9px;
  border: 1px solid rgba(230, 180, 80, 0.45);
  border-radius: 6px;
  background: rgba(230, 180, 80, 0.14);
  color: #f5ddb0;
  font-size: 12px;
}

.keyword-chip button {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #f5ddb0;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.keyword-chip button:hover {
  background: rgba(255,255,255,0.16);
}

.compact-action {
  min-height: 34px;
  margin-top: 8px;
  background: #ffffff;
  color: #172033;
}

.source-box {
  padding: 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #dce4ef;
  font-size: 13px;
  line-height: 1.55;
  word-break: break-all;
}

.source-pools {
  margin-top: 8px;
  color: #aab4c3;
}

.position-entry-copy,
.position-notification-hint {
  color: #aab4c3;
  font-size: 12px;
  line-height: 1.5;
}

.position-add-action {
  margin-top: 10px;
}

.position-dialog {
  width: min(760px, calc(100vw - 28px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.position-dialog::backdrop {
  background: rgba(15, 23, 42, 0.62);
}

.position-form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.position-dialog-head,
.position-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.position-dialog-head span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.position-dialog-head h2 {
  margin-top: 3px;
  font-size: 20px;
}

.dialog-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
}

.position-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.position-form label {
  display: grid;
  align-items: start;
  gap: 6px;
  color: #344154;
  font-size: 13px;
  font-weight: 700;
}

.position-form input,
.position-form textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  font-weight: 400;
}

.position-form label input[type="number"] {
  width: 100%;
}

.position-form textarea {
  min-height: 86px;
}

.position-wide-field {
  min-height: 0;
}

.position-form-message {
  min-height: 18px;
  color: var(--red);
  font-size: 13px;
}

.position-form-actions {
  justify-content: flex-end;
}

.position-form-actions button,
.position-inline-actions button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: #344154;
  font-weight: 800;
  cursor: pointer;
}

.position-form-actions .primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.position-disclaimer {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.market-index-dialog-card {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.market-index-dialog-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.market-index-detail {
  display: grid;
  gap: 5px;
  min-height: 70px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.market-index-detail span { color: var(--muted); font-size: 12px; }
.market-index-detail strong { color: var(--ink); font-size: 17px; }
.market-index-detail strong.market-up { color: var(--red); }
.market-index-detail strong.market-down { color: var(--green); }
.market-index-detail strong.market-flat { color: var(--ink); }
.market-index-detail.market-index-wide { grid-column: 1 / -1; min-height: 0; }

.daily-stock-dialog {
  width: min(980px, calc(100vw - 24px));
}

.daily-stock-dialog-card {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.daily-stock-dialog-body {
  display: grid;
  gap: 12px;
}

.daily-stock-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #dce6f2;
  border-radius: 9px;
  background: #f8fbff;
}

.daily-stock-hero > div:first-child {
  display: grid;
  gap: 3px;
}

.daily-stock-hero > div:first-child span {
  color: #1e3b61;
  font-weight: 900;
}

.daily-stock-hero small {
  color: #6d7e92;
  line-height: 1.4;
}

.daily-stock-live-price {
  display: grid;
  min-width: 86px;
  text-align: right;
}

.daily-stock-live-price strong {
  color: #172033;
  font-size: 22px;
}

.daily-stock-live-price em {
  font-style: normal;
  font-weight: 800;
}

.daily-stock-live-price .up { color: var(--red); }
.daily-stock-live-price .down { color: var(--green); }

.daily-stock-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.daily-stock-metric-grid > div {
  display: grid;
  gap: 3px;
  min-height: 76px;
  padding: 10px;
  border: 1px solid #e0e8f2;
  border-radius: 8px;
  background: #ffffff;
}

.daily-stock-metric-grid span,
.daily-stock-metric-grid small {
  color: #718096;
  font-size: 11px;
}

.daily-stock-metric-grid strong {
  color: #17324f;
  font-size: 19px;
}

.daily-stock-section {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid #dfe7f1;
  border-radius: 9px;
  background: #ffffff;
}

.daily-stock-section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.daily-stock-section > header strong {
  color: #1d3554;
  font-size: 14px;
}

.daily-stock-section > header span {
  color: #748398;
  font-size: 11px;
}

.daily-stock-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.daily-stock-check {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 8px;
  padding: 8px 9px;
  border-radius: 7px;
  background: #f6f8fb;
}

.daily-stock-check span {
  color: #33475f;
  font-size: 12px;
  font-weight: 800;
}

.daily-stock-check b {
  font-size: 11px;
}

.daily-stock-check small {
  grid-column: 1 / -1;
  color: #738297;
  font-size: 11px;
}

.daily-stock-check.pass b { color: #12805d; }
.daily-stock-check.fail b { color: #c2413a; }
.daily-stock-check.pending b { color: #8b6b21; }

.daily-stock-holder-meta {
  color: #65768b;
  font-size: 11px;
}

.daily-stock-holder-list {
  display: grid;
  gap: 5px;
}

.daily-stock-holder-row {
  display: grid;
  grid-template-columns: 54px minmax(160px, 1fr) minmax(160px, auto) minmax(110px, auto);
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 7px;
  background: #f7f9fc;
  color: #53657c;
  font-size: 11px;
}

.daily-stock-holder-row .holder-rank {
  color: #2c5c99;
  font-weight: 900;
}

.daily-stock-holder-row strong {
  color: #26384f;
  font-size: 12px;
}

.daily-stock-holder-row small {
  color: #76869a;
  text-align: right;
}

.daily-stock-holder-empty {
  padding: 12px;
  border-radius: 7px;
  background: #f5f7fa;
  color: #6d7e92;
  font-size: 12px;
  text-align: center;
}

.daily-stock-kline {
  min-height: 242px;
}

.daily-stock-kline-tabs {
  display: inline-flex;
  gap: 3px;
  margin-bottom: 7px;
  padding: 3px;
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  background: #f2f5f9;
}

.daily-stock-kline-tabs button {
  min-width: 54px;
  padding: 5px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #52667d;
  font-size: 12px;
  font-weight: 800;
}

.daily-stock-kline-tabs button[aria-selected="true"] {
  background: #ffffff;
  color: #1f5fbf;
  box-shadow: 0 1px 4px rgba(32, 58, 92, 0.14);
}

.daily-stock-kline-canvas {
  display: block;
  width: 100%;
  height: 240px;
  border: 1px solid #e3e9f1;
  border-radius: 8px;
  background: #fbfcfe;
}

.daily-stock-kline-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  color: #718096;
  font-size: 11px;
}

.daily-stock-ma-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  gap: 5px;
  margin-top: 7px;
}

.daily-stock-ma-grid > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  padding: 5px 7px;
  border: 1px solid #e4e9f0;
  border-left: 3px solid var(--ma-color);
  border-radius: 6px;
  background: #fafbfd;
}

.daily-stock-ma-grid small {
  color: #718096;
  font-size: 10px;
  font-weight: 800;
}

.daily-stock-ma-grid b {
  overflow: hidden;
  color: #26384f;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-stock-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 2px;
}

.daily-stock-dialog-actions span {
  color: #718096;
  font-size: 11px;
}

.position-plan-card {
  border-left: 4px solid var(--blue);
  background: #f5f8ff;
}

.position-alert-card {
  border-left: 4px solid var(--red);
  background: #fff5f5;
}

.intraday-primary-card {
  border-left: 4px solid #2563eb;
  background: #f6f9ff;
}

.intraday-primary-card p strong {
  font-size: 16px;
}

.intraday-chart-wrap {
  margin-top: 10px;
  padding: 8px 8px 4px;
  border: 1px solid #dce6f7;
  border-radius: 8px;
  background: #ffffff;
}

.intraday-chart {
  display: block;
  width: 100%;
  height: 126px;
}

.intraday-grid-line {
  stroke: #dfe6ef;
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.intraday-price-line {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.intraday-price-line.up { stroke: var(--red); }
.intraday-price-line.down { stroke: var(--green); }

.intraday-axis {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}

.intraday-meta {
  margin-top: 8px;
  color: var(--muted) !important;
  font-size: 12px;
}

.intraday-empty {
  margin-top: 10px;
  padding: 12px;
  border: 1px dashed #b9c9e7;
  border-radius: 8px;
  color: var(--muted);
  background: #ffffff;
  font-size: 12px;
  line-height: 1.6;
}

.position-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.position-inline-actions .danger {
  border-color: #f0c4c4;
  color: #b42318;
  background: #fff7f7;
}

.main-panel {
  min-width: 0;
  padding: 18px;
}

.mobile-app-bar,
.mobile-sidebar-backdrop {
  display: none;
}

.top-strip {
  display: block;
  margin-bottom: 12px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.daily-standards-panel {
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid #cfdcf0;
  border-left: 4px solid #2563eb;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
  box-shadow: var(--shadow);
}

.daily-standards-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.daily-standards-head span {
  color: #59708f;
  font-size: 12px;
  font-weight: 800;
}

.daily-standards-head h2 {
  margin: 3px 0 0;
  color: #162844;
  font-size: 20px;
}

.daily-standards-summary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: #64748b;
  font-size: 12px;
}

.daily-standards-summary strong {
  color: #165c49;
  font-size: 14px;
}

.daily-standards-summary time {
  color: #7b8797;
}

.daily-standards-rule {
  margin: 0;
  color: #5f6f84;
  font-size: 12px;
  line-height: 1.55;
}

.daily-standards-meta {
  margin: 8px 0 10px;
  border: 1px solid #d9e4f1;
  border-radius: 8px;
  background: rgba(247, 250, 255, 0.9);
}

.daily-standards-meta > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px;
  color: #315273;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.daily-standards-meta > summary::-webkit-details-marker { display: none; }
.daily-standards-meta > summary span::before { content: "＋"; margin-right: 5px; color: #2563eb; }
.daily-standards-meta[open] > summary span::before { content: "－"; }

.daily-standards-meta > summary em {
  overflow: hidden;
  color: #708197;
  font-style: normal;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-standards-meta-body {
  display: grid;
  gap: 9px;
  padding: 9px 10px 10px;
  border-top: 1px solid #dfe8f3;
}

.daily-standards-pool-breakdown {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  color: #64748b;
  font-size: 11px;
}

.daily-pool-chip {
  padding: 4px 7px;
  border: 1px solid #d7e2f2;
  border-radius: 999px;
  background: #ffffff;
  color: #51647e;
  font-weight: 800;
}

.daily-pool-chip.total {
  border-color: #9bb9ee;
  background: #eef5ff;
  color: #2055a8;
}

.daily-pool-chip.innovation {
  border-color: #9fcbbd;
  background: #ecfaf5;
  color: #0f6a54;
}

.daily-pool-chip.broad {
  border-color: #dcc5a1;
  background: #fff9ed;
  color: #855813;
}

.daily-standards-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.daily-top-pool {
  min-width: 0;
  padding: 10px;
  border: 1px solid #d8e3f1;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.72);
  container-type: inline-size;
}

.daily-top-pool.innovation {
  border-left: 4px solid #16876c;
  background: linear-gradient(135deg, #f7fffc 0%, #eefaf6 100%);
}

.daily-top-pool.broad {
  border-left: 4px solid #bd7a16;
  background: linear-gradient(135deg, #fffefb 0%, #fff8ea 100%);
}

.daily-top-pool-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.daily-top-pool-head > div {
  display: grid;
  gap: 3px;
}

.daily-top-pool-head strong {
  color: #20334d;
  font-size: 15px;
}

.daily-top-pool-head span {
  max-width: 1100px;
  color: #68788e;
  font-size: 11px;
  line-height: 1.5;
}

.daily-top-pool-head > b {
  flex: 0 0 auto;
  min-width: 48px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eaf1ff;
  color: #1f5bc6;
  font-size: 12px;
  text-align: center;
}

.daily-top-pool.innovation .daily-top-pool-head > b {
  background: #dff5ed;
  color: #116d55;
}

.daily-top-pool.broad .daily-top-pool-head > b {
  background: #fff0cd;
  color: #8b5b06;
}

.daily-top-pool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.daily-standard-card {
  display: grid;
  grid-template-areas: "rank stock price k status";
  grid-template-columns: 30px minmax(130px, 1.05fr) 70px minmax(135px, 0.9fr) minmax(112px, 0.75fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 76px;
  padding: 8px 10px;
  border: 1px solid #dce5f1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #263549;
  text-align: left;
  cursor: pointer;
}

.daily-standard-card.innovation {
  border-color: #cfe8df;
}

.daily-standard-card.broad {
  border-color: #eadfcb;
}

.daily-standard-card:hover,
.daily-standard-card:focus-visible {
  border-color: #77a4ee;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
  outline: none;
}

.daily-standard-rank {
  grid-area: rank;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eaf1ff;
  color: #1e5ac8;
  font-size: 12px;
  font-weight: 900;
  align-self: center;
}

.daily-standard-stock,
.daily-standard-price,
.daily-standard-k {
  min-width: 0;
}

.daily-standard-stock {
  grid-area: stock;
  display: grid;
  gap: 2px;
}

.daily-standard-price {
  grid-area: price;
  display: grid;
  gap: 2px;
}

.daily-standard-k {
  grid-area: k;
  display: grid;
  gap: 2px;
}

.daily-standard-stock strong,
.daily-standard-k b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-standard-card small {
  color: #718096;
  font-size: 11px;
  font-weight: 600;
}

.daily-standard-price strong {
  color: #172033;
  font-size: 14px;
}

.daily-standard-price .up {
  color: var(--red);
}

.daily-standard-price .down {
  color: var(--green);
}

.daily-standard-k > small {
  width: fit-content;
  max-width: 100%;
  padding: 2px 5px;
  border-radius: 4px;
  background: #e7f7f1;
  color: #13735a;
  line-height: 1.35;
  white-space: normal;
}

.daily-standard-k b {
  font-size: 12px;
}

.daily-standard-status {
  grid-area: status;
  justify-self: end;
  width: fit-content;
  max-width: 145px;
  padding: 5px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
}

@container (max-width: 900px) {
  .daily-top-pool-grid {
    grid-template-columns: 1fr;
  }
}

@container (max-width: 720px) {
  .daily-standard-card {
    grid-template-areas:
      "rank stock price"
      "rank k k"
      "rank status status";
    grid-template-columns: 28px minmax(0, 1fr) 74px;
    gap: 6px 8px;
  }

  .daily-standard-rank {
    align-self: start;
  }

  .daily-standard-status {
    justify-self: start;
    max-width: none;
  }
}

.daily-standard-status.strong {
  background: #dff7ec;
  color: #116b50;
}

.daily-standard-status.near {
  background: #fff0c2;
  color: #8a5b00;
}

.daily-standard-status.watch {
  background: #edf1f6;
  color: #536175;
}

.daily-standards-empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px dashed #bfcde0;
  border-radius: 8px;
  color: #64748b;
  text-align: center;
}

.metric-tile, .search-box, .table-zone, .insight-zone {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric-tile {
  min-height: 72px;
  padding: 12px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.metric-tile:hover,
.metric-tile.active {
  border-color: #8eace8;
  background: #f3f7ff;
}

.metric-tile span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.metric-tile strong {
  display: block;
  margin-top: 6px;
  font-size: 26px;
  line-height: 1;
}

.search-box {
  display: flex;
  align-items: center;
  padding: 12px;
}

.search-box input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
}

.market-regime-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-left: 4px solid #8b98a9;
  background: #ffffff;
  color: #344154;
  font-size: 13px;
}

.market-temperature-section .market-regime-bar {
  min-height: 0;
  padding: 9px 10px;
  flex-wrap: wrap;
  border-radius: 7px;
  background: #f8fafc;
  line-height: 1.5;
}

.market-temperature-section .regime-detail {
  width: 100%;
}

.seasonal-entry-tracker {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #d8e2ee;
  border-radius: 7px;
  background: #fff;
  color: #43536a;
  font-size: 12px;
  line-height: 1.55;
}

.seasonal-entry-tracker p { margin: 4px 0; }
.seasonal-entry-tracker ol { margin: 6px 0 0 18px; padding: 0; }
.seasonal-tracker-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; color: #1e3657; }
.seasonal-phase, .sector-entry-status { display: inline-flex; align-items: center; border-radius: 999px; padding: 1px 7px; font-weight: 700; }
.seasonal-phase.active, .sector-entry-status.ready { background: #dff5e9; color: #08714c; }
.seasonal-phase.prepare, .sector-entry-status.prepare { background: #fff0c7; color: #8a5a00; }
.seasonal-phase.conditional, .sector-entry-status.conditional { background: #f3e8ff; color: #7e22ce; }
.seasonal-phase.off, .sector-entry-status.off { background: #edf1f6; color: #607086; }
.window-state-chip,
.window-action-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}
.window-state-chip.confirmed { background: #dff5e9; color: #08714c; }
.window-state-chip.warming { background: #fff0c7; color: #8a5a00; }
.window-state-chip.fading { background: #ffe6d5; color: #a04413; }
.window-state-chip.closed { background: #edf1f6; color: #607086; }
.window-action-chip { background: #edf4ff; color: #245aa8; }
.window-action-chip.avoid { background: #f0f2f5; color: #5d6878; }
.window-action-chip.entry,
.window-action-chip.breakout { background: #dcf7eb; color: #08714c; }
.window-action-chip.pullback { background: #fff1c9; color: #8a5a00; }
.window-action-chip.position { background: #efe7ff; color: #6f35b5; }
.stock-window-state,
.window-action-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}
.window-action-line { margin: 0 0 7px; }
.window-action-line b { color: #1f334d; font-size: 13px; }
.window-fusion-card { border-left: 4px solid #d3a11b; }
.window-fusion-card.confirmed { border-left-color: #16805a; background: #f3fbf7; }
.window-fusion-card.fading { border-left-color: #d2692e; background: #fff8f1; }
.window-fusion-card.closed { border-left-color: #7d8999; background: #f7f9fb; }
.seasonal-pool-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid #dce5f0;
  border-radius: 8px;
  background: #f8fbff;
  color: #52637a;
  font-size: 12px;
}
.seasonal-pool-summary[hidden] { display: none; }
.seasonal-pool-summary strong { color: #1f334d; }
.seasonal-pool-summary span {
  padding: 2px 7px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #e5ebf2;
}
.seasonal-pool-summary button {
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid #d7e0ec;
  border-radius: 999px;
  background: #ffffff;
  color: #40536d;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(31, 51, 77, 0.05);
}
.seasonal-pool-summary button:hover,
.seasonal-pool-summary button:focus-visible {
  border-color: #5c88c7;
  background: #eef5ff;
  color: #174f9c;
  outline: none;
}
.seasonal-pool-summary button.active {
  border-color: #2c6ecb;
  background: #e8f1ff;
  color: #174f9c;
  font-weight: 700;
}
.sector-entry-status.wait { background: #e6efff; color: #2563c8; }
.seasonal-history { display: grid; gap: 2px; margin: 7px 0; padding: 7px; border-radius: 6px; background: #f4f7fb; color: #53657d; font-size: 11px; }
.seasonal-disclaimer { color: #748197; font-size: 11px; }

.seasonal-window-hero {
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid #d6b45e;
  border-radius: 10px;
  background: linear-gradient(135deg, #fffdf6 0%, #fff8e7 48%, #f5f9ff 100%);
  box-shadow: 0 10px 28px rgba(86, 61, 8, 0.09);
}

.seasonal-window-hero .seasonal-entry-tracker {
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(440px, 2fr);
  gap: 8px 24px;
  margin: 0;
  padding: 18px 22px;
  border: 0;
  background: transparent;
  font-size: 14px;
  line-height: 1.65;
}

.seasonal-window-hero .seasonal-tracker-head {
  grid-column: 1 / -1;
  justify-content: flex-start;
  gap: 12px;
}

.seasonal-window-hero .seasonal-tracker-head strong {
  color: #172a46;
  font-size: 21px;
}

.seasonal-current-market {
  display: grid;
  grid-template-columns: minmax(190px, 0.65fr) minmax(260px, 0.9fr) minmax(360px, 1.5fr);
  grid-column: 1 / -1;
  align-items: center;
  gap: 14px 22px;
  padding: 15px 17px;
  border: 1px solid #e1bd61;
  border-left: 6px solid #9a6700;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(86, 61, 8, 0.08);
}

.seasonal-current-market.confirmed { border-left-color: #16805a; background: #f3fbf7; }
.seasonal-current-market.open { border-left-color: #2563eb; background: #f5f8ff; }
.seasonal-current-market.conditional { border-left-color: #7e22ce; background: #fbf7ff; }
.seasonal-current-market.blocked { border-left-color: #cf3434; background: #fff6f6; }
.seasonal-current-market.fading { border-left-color: #d2692e; background: #fff8f1; }
.seasonal-current-market.off { border-left-color: #7d8999; background: #f7f9fb; }

.seasonal-current-title {
  display: grid;
  gap: 2px;
}

.seasonal-current-title span {
  color: #7c6020;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.seasonal-current-title strong {
  color: #172a46;
  font-size: 22px;
}

.seasonal-current-facts {
  display: grid;
  gap: 3px;
  color: #56657a;
  font-size: 13px;
}

.seasonal-current-facts span:last-child {
  color: #8a5a00;
  font-weight: 800;
}

.seasonal-current-verdict b {
  color: #172a46;
  font-size: 16px;
}

.seasonal-current-verdict p { margin: 3px 0; }
.seasonal-current-verdict small { color: #6d7888; }

.seasonal-window-hero .seasonal-history {
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 0;
  padding: 10px;
  border: 1px solid rgba(214, 180, 94, 0.35);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.seasonal-window-hero .seasonal-history span {
  padding: 3px 8px;
  border-left: 3px solid #d6b45e;
}

.seasonal-window-hero .seasonal-entry-tracker ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-column: 1 / -1;
  gap: 10px 28px;
  margin: 3px 0 3px 22px;
}

.seasonal-window-hero .seasonal-disclaimer {
  grid-column: 1 / -1;
  font-size: 12px;
}

.seasonal-window-hero {
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.seasonal-window-hero .seasonal-entry-tracker {
  display: block;
  padding: 0;
}

.seasonal-window-summary-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr) 34px;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 86px;
  padding: 12px 14px;
  border: 1px solid #d6b45e;
  border-left: 6px solid #9a6700;
  border-radius: 10px;
  background: linear-gradient(135deg, #fffdf7 0%, #fff9eb 60%, #f7faff 100%);
  color: #2b3c54;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(86, 61, 8, 0.07);
}

.seasonal-window-summary-card.confirmed { border-left-color: #16805a; background: #f3fbf7; }
.seasonal-window-summary-card.open { border-left-color: #2563eb; background: #f5f8ff; }
.seasonal-window-summary-card.conditional { border-left-color: #7e22ce; background: #fbf7ff; }
.seasonal-window-summary-card.blocked { border-left-color: #cf3434; background: #fff6f6; }
.seasonal-window-summary-card.fading { border-left-color: #d2692e; background: #fff8f1; }
.seasonal-window-summary-card.off { border-left-color: #7d8999; background: #f7f9fb; }

.seasonal-window-summary-card:hover,
.seasonal-window-summary-card:focus-visible {
  border-color: #8f6a15;
  background: #ffffff;
  outline: 2px solid rgba(37, 99, 235, 0.16);
  outline-offset: 2px;
}

.seasonal-window-summary-copy,
.seasonal-window-summary-status {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.seasonal-window-summary-copy small {
  color: #7c6020;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.seasonal-window-summary-copy strong {
  overflow: hidden;
  color: #172a46;
  font-size: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seasonal-window-summary-copy em {
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seasonal-window-summary-status {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.seasonal-window-summary-status b {
  color: #213752;
  font-size: 14px;
}

.seasonal-window-summary-status small {
  grid-column: 1 / -1;
  overflow: hidden;
  color: #6d7b8d;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seasonal-window-summary-arrow {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #d4deeb;
  border-radius: 8px;
  background: #ffffff;
  color: #2c5c99;
  font-size: 19px;
}

.seasonal-window-dialog {
  width: min(1040px, calc(100vw - 24px));
}

.seasonal-window-dialog-card,
.seasonal-window-dialog-body {
  display: grid;
  gap: 14px;
}

.seasonal-window-dialog-card {
  padding: 20px;
}

.seasonal-window-dialog-body .seasonal-tracker-head {
  justify-content: flex-start;
  gap: 10px;
}

.seasonal-window-dialog-body .seasonal-history {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.seasonal-window-dialog-body .seasonal-history span {
  padding: 4px 7px;
  border-left: 3px solid #d6b45e;
}

.seasonal-window-dialog-body ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 24px;
  margin: 0 0 0 20px;
  padding: 0;
  color: #40516a;
  font-size: 12px;
  line-height: 1.55;
}

.seasonal-window-dialog-body .seasonal-disclaimer {
  margin: 0;
  padding: 9px 10px;
  border-radius: 7px;
  background: #f8fafc;
  color: #748197;
  font-size: 11px;
  line-height: 1.55;
}

.seasonal-stock-context {
  margin-bottom: 7px;
  padding-bottom: 7px;
  border-bottom: 1px dashed #d9e1eb;
}

.seasonal-stock-context > strong {
  margin-left: 6px;
}

.decision-bars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.market-regime-bar strong {
  color: var(--ink);
  font-size: 14px;
}

.market-regime-bar .regime-label {
  padding: 3px 7px;
  border-radius: 5px;
  background: #eef2f6;
  color: #445064;
  font-weight: 800;
}

.market-regime-bar.panic { border-left-color: var(--red); }
.market-regime-bar.weak { border-left-color: var(--amber); }
.market-regime-bar.active { border-left-color: var(--green); }
.market-regime-bar .regime-detail { color: var(--muted); }

.right-side-decision-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 82px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #e7c46d;
  border-left: 6px solid var(--red);
  background: #fffaf0;
  box-shadow: 0 8px 24px rgba(86, 61, 8, 0.08);
}

.left-side-decision-bar {
  border-color: #a8d5c6;
  border-left-color: #1f6d5a;
  background: #f3fbf7;
  box-shadow: 0 8px 24px rgba(31, 109, 90, 0.08);
}

.left-side-decision-bar .right-side-eyebrow,
.left-side-decision-bar .right-side-count strong {
  color: #155a49;
}

.right-side-decision-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.right-side-eyebrow {
  color: #8b1d1d;
  font-size: 12px;
  font-weight: 800;
}

.right-side-decision-copy strong {
  font-size: 20px;
  line-height: 1.35;
}

.right-side-decision-copy > span:last-child {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.right-side-decision-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.right-side-count {
  display: grid;
  min-width: 72px;
  gap: 3px;
  text-align: center;
}

.right-side-count span {
  color: var(--muted);
  font-size: 11px;
}

.right-side-count strong {
  color: #8b1d1d;
  font-size: 24px;
}

#openRightSideButton {
  min-height: 38px;
  padding: 0 13px;
  border: 0;
  border-radius: 6px;
  background: #8b1d1d;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

#openLeftSideButton {
  min-height: 38px;
  padding: 0 13px;
  border: 0;
  border-radius: 6px;
  background: #1f6d5a;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
}

.workspace-grid.insight-collapsed {
  grid-template-columns: minmax(0, 1fr) 48px;
}

.table-zone, .insight-zone {
  min-width: 0;
  overflow: hidden;
}

.zone-head {
  min-height: 58px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.zone-head.stacked {
  align-items: stretch;
  flex-direction: column;
}

.workspace-tabs {
  display: inline-flex;
  align-self: flex-start;
  gap: 4px;
  padding: 4px;
  background: #e8edf3;
  border-radius: 8px;
}

.workspace-tabs button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #445064;
  font-weight: 800;
  cursor: pointer;
}

.workspace-tabs button.active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.workspace-tabs button[data-workspace="rightSide"].active {
  background: #8b1d1d;
  color: #ffffff;
}

.workspace-tabs button[data-workspace="leftSide"].active {
  background: #1f6d5a;
  color: #ffffff;
}

.right-side-filters,
.left-side-filters,
#rightStockCodeLocator,
#leftStockCodeLocator,
#headFilters,
#individualQualityFilters {
  display: none;
}

.individual-quality-filters {
  border-left: 3px solid #b8871b;
  background: #fff9eb;
}

.individual-quality-filters .filter-row-title {
  color: #76540c;
}

.stock-code-locator {
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  background: #f8fafc;
}

.stock-code-locator label {
  color: #344154;
  font-size: 13px;
  font-weight: 800;
}

.stock-code-locator input {
  width: 180px;
  min-height: 36px;
  padding: 0 10px;
  font-variant-numeric: tabular-nums;
}

.stock-code-locator button {
  min-height: 36px;
  padding: 0 12px;
}

.stock-code-locator button.secondary {
  border-color: #cfd7e2;
  background: #ffffff;
  color: #445064;
}

.stock-code-locator span {
  color: var(--muted);
  font-size: 12px;
}

.zone-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.source-tabs {
  display: inline-flex;
  width: 100%;
  gap: 8px;
  padding: 4px;
  background: #eef2f6;
  border-radius: 8px;
}

.top-strip .source-tab-group {
  flex: 1 1 0;
}

.top-strip .source-tab-group > span {
  color: #344154;
  font-size: 13px;
}

.top-strip .source-tab-group > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
}

.top-strip .source-tabs button {
  min-height: 40px;
  font-size: 14px;
  font-weight: 800;
}

.top-strip .entry-nav-group {
  border-color: #e7c46d;
  background: #fffaf0;
}

.top-strip .entry-nav-group button.active {
  background: #8b1d1d;
  color: #fff;
}

.entry-action-plan {
  display: grid;
  gap: 5px;
}

.action-plan-step {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 6px;
  align-items: start;
  line-height: 1.45;
}

.action-plan-step b {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #eef2f6;
  color: #344154;
  font-size: 11px;
}

.source-tab-group {
  display: grid;
  gap: 3px;
  padding: 4px;
  border: 1px solid #d8e0e9;
  border-radius: 7px;
  background: rgba(255,255,255,0.5);
}

.source-tab-group > span {
  padding: 0 7px;
  color: #7a8595;
  font-size: 10px;
  font-weight: 800;
}

.source-tab-group > div { display: flex; gap: 3px; }

.source-tabs button {
  border: 0;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  color: #445064;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.source-tabs button.active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #eef2f6;
  border-radius: 8px;
}

.segmented button {
  border: 0;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  color: #445064;
  background: transparent;
  cursor: pointer;
}

.segmented button.active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.filter-row-title {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px 0 6px;
  border-right: 1px solid #d8e0ea;
  color: #34475f;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.observation-filters {
  display: flex;
  width: 100%;
  max-width: 100%;
  border-left: 3px solid #2563eb;
  background: #f5f8ff;
}

.observation-tech-category-filters {
  display: flex;
  width: calc(100% - 18px);
  max-width: calc(100% - 18px);
  align-items: center;
  gap: 2px;
  margin-left: 18px;
  padding: 3px;
  border-left: 2px solid #6957c8;
  background: #f7f5ff;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #c7c1e8 transparent;
}

.observation-tech-category-filters .filter-row-title {
  position: sticky;
  left: 0;
  z-index: 1;
  min-height: 28px;
  padding: 0 8px 0 5px;
  background: #f7f5ff;
  font-size: 11px;
}

.observation-tech-category-filters button {
  flex: 0 0 auto;
  min-width: max-content;
  min-height: 28px;
  padding: 0 8px;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.observation-tech-category-filters[hidden] {
  display: none;
}

.observation-entry-filters {
  display: flex;
  flex-wrap: wrap;
  border-left: 3px solid #0f766e;
  background: #effcf8;
}

.metric-ready-help {
  align-self: center;
  margin-left: auto;
  padding: 0 8px;
  color: #617286;
  font-size: 11px;
  white-space: nowrap;
}

.observation-stage-panel {
  display: grid;
  gap: 5px;
  width: calc(100% - 36px);
  margin-left: 36px;
  padding: 4px;
  border: 1px solid #cfe3df;
  border-radius: 9px;
  background: #f6fcfa;
}

.observation-stage-panel > .segmented {
  width: 100%;
  max-width: 100%;
}

.observation-window-filters {
  border-left: 3px solid #b7791f;
  background: #fff9ec;
}

.observation-window-submenu {
  width: calc(100% - 26px) !important;
  margin-left: 26px;
  border-left-width: 2px;
  background: #fffaf0;
  transform: scale(0.97);
  transform-origin: left top;
}

.observation-filter-path {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  width: calc(100% - 72px);
  margin-left: 72px;
  padding: 7px 10px;
  border: 1px solid #bfd3ee;
  border-radius: 8px;
  background: #f3f8ff;
  color: #40536d;
  font-size: 12px;
}

.observation-filter-path[hidden] { display: none; }
.observation-filter-path strong { color: #174f9c; white-space: nowrap; }
.observation-filter-path span { color: #253b57; }
.observation-filter-path b { color: #6d84a2; }
.observation-filter-path em { color: #6d7d92; font-style: normal; }

.observation-structure strong,
.observation-score strong {
  color: #172033;
}

.individual-observation-metrics {
  display: grid;
  gap: 7px;
  min-width: 220px;
}

.k-data-basis {
  color: #6c7c91;
  font-size: 10px;
  line-height: 1.35;
}

.k-data-basis.completed {
  color: #08745b;
  font-weight: 800;
}

.k-data-basis.pending { color: #9a6b0b; }
.k-data-basis.intraday { color: #6f7f95; }

.price-k-priority {
  width: max-content;
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid #9bdcc5;
  border-radius: 999px;
  background: #dff7ec;
  color: #08745b;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}

.k-priority-band {
  width: max-content;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef2f7;
  color: #65758b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.k-priority-band.first {
  background: #dff7ec;
  color: #08745b;
}

.k-priority-band.second {
  background: #fff1c8;
  color: #895d00;
}

.k-priority-band.pending {
  background: #edf0f4;
  color: #77859a;
}

.indicator-k-row,
.indicator-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.indicator-k {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 5px;
  min-width: 60px;
  padding: 5px 7px;
  border: 1px solid #dce4ed;
  border-radius: 7px;
  background: #f7f9fc;
  color: #344154;
  font-variant-numeric: tabular-nums;
}

.indicator-k small {
  color: #718096;
  font-size: 10px;
}

.indicator-k strong {
  font-size: 13px;
}

.indicator-chip {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #edf1f6;
  color: #566174;
  font-size: 10px;
  line-height: 1.35;
}

.indicator-k.target,
.indicator-chip.target {
  border-color: #a9d9c6;
  background: #e3f7ef;
  color: #07634c;
}

.indicator-k.low,
.indicator-chip.low {
  border-color: #c9d7eb;
  background: #edf4ff;
  color: #255b9d;
}

.indicator-k.high,
.indicator-chip.high {
  border-color: #edb8b8;
  background: #fff0f0;
  color: #a32727;
}

.indicator-k.pending,
.indicator-chip.pending {
  border-style: dashed;
  background: #f5f6f8;
  color: #8791a0;
}

.workspace-grid.individual-observation-workspace:not(.right-side-workspace) .table-wrap table {
  min-width: 1680px;
  table-layout: fixed;
}

.workspace-grid.individual-observation-workspace:not(.right-side-workspace) th:nth-child(1) { width: 135px; }
.workspace-grid.individual-observation-workspace:not(.right-side-workspace) th:nth-child(2) { width: 92px; }
.workspace-grid.individual-observation-workspace:not(.right-side-workspace) th:nth-child(3) { width: 92px; }
.workspace-grid.individual-observation-workspace:not(.right-side-workspace) th:nth-child(4) { width: 105px; }
.workspace-grid.individual-observation-workspace:not(.right-side-workspace) th:nth-child(5) { width: 250px; }
.workspace-grid.individual-observation-workspace:not(.right-side-workspace) th:nth-child(6) { width: 230px; }
.workspace-grid.individual-observation-workspace:not(.right-side-workspace) th:nth-child(7) { width: 285px; }
.workspace-grid.individual-observation-workspace:not(.right-side-workspace) th:nth-child(8) { width: 335px; }
.workspace-grid.individual-observation-workspace:not(.right-side-workspace) th:nth-child(9) { width: 155px; }

.workspace-grid.individual-observation-workspace:not(.right-side-workspace) td {
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: top;
}

.entry-decision-cell {
  display: grid;
  gap: 5px;
  min-width: 260px;
}

.entry-time {
  color: #172033;
  font-size: 12px;
  line-height: 1.5;
}

.entry-invalidation,
.entry-primary-risk {
  color: #9b2525 !important;
}

.entry-order-rank {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.entry-order-rank.rank-1 {
  color: #8b1d1d;
  background: #ffe5e5;
}

.entry-order-rank.rank-2 {
  color: #785000;
  background: #fff0bf;
}

.entry-order-rank.rank-3 {
  color: #075f46;
  background: #dff7ec;
}

.entry-order-rank.rank-4,
.entry-order-rank.rank-5 {
  color: #4f5664;
  background: #e9edf3;
}

.entry-proximity-score {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-top: 7px;
  color: #344154;
}

.entry-proximity-score strong {
  color: #174f9c;
  font-size: 22px;
  line-height: 1;
}

.entry-proximity-score span {
  font-size: 11px;
  white-space: nowrap;
}

.entry-primary-card {
  border-left: 4px solid #64748b;
  background: #f8fafc;
}

.entry-primary-card.strong {
  border-left-color: #c62828;
  background: #fff7f7;
}

.entry-primary-card.near {
  border-left-color: #d18b00;
  background: #fffaf0;
}

.entry-primary-card.watch {
  border-left-color: #168064;
  background: #f3fbf7;
}

.entry-primary-time {
  color: #172033 !important;
  font-size: 15px !important;
  font-weight: 800;
}

.theme-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}

.theme-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #dbeafe;
  font-size: 11px;
  line-height: 1.4;
}

.leader-evidence {
  color: #8a5a00;
}

.table-scroll-controls {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.table-scroll-controls button {
  width: 34px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: #344154;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.table-scroll-controls button:hover:not(:disabled) {
  border-color: #9db7ee;
  background: #edf4ff;
  color: var(--blue);
}

.table-scroll-controls button:disabled {
  cursor: default;
  opacity: 0.35;
}

.table-wrap {
  max-height: calc(100vh - 160px);
  overflow: auto;
  scroll-behavior: auto;
  overscroll-behavior: contain;
}

table {
  width: 100%;
  min-width: 1280px;
  border-collapse: collapse;
  font-size: 13px;
}

th, td {
  padding: 11px 10px;
  text-align: left;
  border-bottom: 1px solid #edf1f5;
  vertical-align: middle;
  white-space: nowrap;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--muted);
  background: #fafbfd;
  font-weight: 600;
}

.th-sort {
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.th-sort.active {
  color: var(--blue);
}

.kdj-sort-button {
  display: block;
  width: max-content;
  margin-top: 5px;
  padding: 3px 7px;
  border: 1px solid #cbd8ea;
  border-radius: 999px;
  background: #fff;
  color: #52647a;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.kdj-sort-button.active {
  border-color: #2f6fff;
  background: #edf4ff;
  color: #1955cc;
}

.kdj-sort-button[hidden] {
  display: none;
}

tbody tr {
  cursor: pointer;
}

tbody tr:hover, tbody tr.selected {
  background: #f1f6ff;
}

tbody tr.right-side-ready-row {
  box-shadow: inset 4px 0 0 #cf3434;
}

tbody tr.left-side-ready-row {
  box-shadow: inset 4px 0 0 #1f6d5a;
}

tbody tr.trade-transition-row {
  box-shadow: inset 4px 0 0 #5d55c7;
}

.stock-name {
  display: grid;
  gap: 3px;
}

.stock-name strong {
  font-size: 14px;
}

.stock-name span, .subline {
  color: var(--muted);
  font-size: 12px;
}

.stock-industry {
  width: max-content;
  max-width: 150px;
  overflow: hidden;
  padding: 3px 7px;
  border-radius: 999px;
  background: #edf4ff;
  color: #315f9e;
  font-size: 11px;
  font-style: normal;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.tag.strong { color: #8b1d1d; background: #ffe5e5; }
.tag.near { color: #785000; background: #fff0bf; }
.tag.watch { color: #075f46; background: #dff7ec; }
.tag.risk { color: #4f5664; background: #e9edf3; }

.strategy-label.strong { color: #8b1d1d; }
.strategy-label.near { color: #785000; }
.strategy-label.watch { color: #075f46; }
.strategy-label.risk { color: #4f5664; }

.right-side-primary-card {
  border-left: 4px solid var(--red);
  background: #fff8f0;
}

.left-side-primary-card {
  border-left: 4px solid #1f6d5a;
  background: #f3fbf7;
}

.left-side-primary-card p strong {
  color: #155a49;
  font-size: 16px;
}

.trade-lifecycle-card {
  border-left: 4px solid #5d55c7;
  background: #f7f6ff;
}

.trade-lifecycle-card p strong {
  color: #4338a8;
  font-size: 16px;
}

.right-side-primary-card p strong {
  color: #8b1d1d;
  font-size: 16px;
}

.red { color: var(--red); }
.green { color: var(--green); }
.blue { color: var(--blue); }
.amber { color: var(--amber); }

.score {
  font-weight: 800;
}

.insight-zone {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 34px);
  align-self: start;
  overflow-x: hidden;
  overflow-y: auto;
  position: sticky;
  top: 12px;
}

.workspace-grid.insight-collapsed .insight-zone {
  min-height: 460px;
}

.workspace-grid.insight-collapsed .insight-zone .zone-head {
  justify-content: center;
  min-height: 100%;
  padding: 10px 8px;
  border-bottom: 0;
}

.workspace-grid.insight-collapsed .insight-zone h2,
.workspace-grid.insight-collapsed .insight-zone #selectedTag,
.workspace-grid.insight-collapsed .insight-zone .insight-body,
.workspace-grid.insight-collapsed .insight-zone .sector-board {
  display: none;
}

.insight-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

#selectedTag {
  color: var(--muted);
  font-size: 13px;
}

.insight-body {
  flex: 0 0 auto;
  padding: 14px;
  display: grid;
  gap: 12px;
  overflow: visible;
}

.insight-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfe;
}

.insight-card h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.insight-card p {
  color: #344154;
  line-height: 1.65;
  font-size: 13px;
}

.workspace-grid.right-side-workspace {
  grid-template-columns: minmax(0, 1fr) 380px;
}

.workspace-grid.right-side-workspace.insight-collapsed {
  grid-template-columns: minmax(0, 1fr) 48px;
}

/* Entry decisions contain multi-line action plans.  Fixed column budgets keep
   the rank badge, trigger text and plan in their own cells instead of letting
   long text paint over the next column when the table is scrolled. */
.workspace-grid.right-side-workspace .table-wrap table {
  min-width: 1760px;
  table-layout: fixed;
}

.workspace-grid.right-side-workspace th:nth-child(1) { width: 132px; }
.workspace-grid.right-side-workspace th:nth-child(2) { width: 92px; }
.workspace-grid.right-side-workspace th:nth-child(3) { width: 96px; }
.workspace-grid.right-side-workspace th:nth-child(4) { width: 105px; }
.workspace-grid.right-side-workspace th:nth-child(5) { width: 220px; }
.workspace-grid.right-side-workspace th:nth-child(6) { width: 285px; }
.workspace-grid.right-side-workspace th:nth-child(7) { width: 235px; }
.workspace-grid.right-side-workspace th:nth-child(8) { width: 360px; }
.workspace-grid.right-side-workspace th:nth-child(9) { width: 160px; }

.workspace-grid.right-side-workspace td {
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: top;
}

.workspace-grid.right-side-workspace .entry-order-rank {
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}

.workspace-grid.right-side-workspace .action-plan-step span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.right-side-cell-reason {
  margin-top: 6px;
  color: #344154;
  font-size: 12px;
  line-height: 1.5;
}

.right-side-level {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 112px;
  padding: 3px 0;
}

.right-side-level span {
  color: var(--muted);
  font-size: 11px;
}

.right-side-level.entry strong { color: #9f2020; }
.right-side-level.stop strong,
.right-side-risk-text { color: #b42318; }

.right-side-next-action {
  max-width: 280px;
  color: #26364a;
  font-weight: 700;
  line-height: 1.5;
}

.right-side-decision-hero {
  overflow: hidden;
  border: 1px solid #e6c5c5;
  border-radius: 10px;
  background: #fff8f7;
  box-shadow: 0 8px 24px rgba(115, 31, 31, 0.08);
}

.right-side-decision-hero.ready { border-color: #d8a448; background: #fffaf0; }
.right-side-decision-hero.breakout { border-color: #98b5e7; background: #f6f9ff; }
.right-side-decision-hero.wash { border-color: #9bcbb9; background: #f4fbf8; }
.right-side-decision-hero.anchor { border-color: #d7dde6; background: #f8fafc; }
.right-side-decision-hero.risk { border-color: #e5aaaa; background: #fff5f5; }

.right-side-hero-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 13px 14px 0;
}

.right-side-hero-top span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.right-side-hero-top strong {
  font-size: 18px;
  line-height: 1.3;
}

.right-side-hero-top b {
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.85);
  color: #8b1d1d;
  font-size: 12px;
}

.right-side-action {
  margin: 10px 14px 0;
  color: #1c2b3d;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
}

.right-side-reason {
  margin: 5px 14px 12px;
  color: #5f6b7a;
  font-size: 12px;
  line-height: 1.55;
}

.right-side-price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(117, 94, 94, 0.13);
  border-bottom: 1px solid rgba(117, 94, 94, 0.13);
  background: rgba(255, 255, 255, 0.72);
}

.right-side-price-grid > div {
  min-width: 0;
  padding: 11px 12px;
  border-right: 1px solid rgba(117, 94, 94, 0.13);
}

.right-side-price-grid > div:last-child { border-right: 0; }
.right-side-price-grid span { display: block; color: var(--muted); font-size: 10px; }
.right-side-price-grid strong { display: block; margin-top: 4px; font-size: 18px; }
.right-side-price-grid .stop strong { color: #b42318; }

.right-side-next-trigger {
  padding: 10px 14px;
  color: #344154;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.right-side-process {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.right-side-process > h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

.right-side-step {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 62px;
  padding: 9px 0;
}

.right-side-step + .right-side-step { border-top: 1px solid #edf0f4; }

.step-number {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: #e9edf3;
  color: #536073;
  font-size: 12px;
  font-weight: 900;
}

.right-side-step.complete .step-number { background: #dff5ea; color: #126247; }
.right-side-step.active .step-number { background: #ffe5e5; color: #9f2020; }
.right-side-step.failed .step-number { background: #fee4e2; color: #b42318; }
.right-side-step.locked { opacity: 0.58; }

.right-side-step strong { font-size: 13px; }
.right-side-step p { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.right-side-step em { color: #5f6b7a; font-size: 11px; font-style: normal; font-weight: 800; }
.right-side-step.complete em { color: #126247; }
.right-side-step.active em,
.right-side-step.failed em { color: #9f2020; }

.right-side-checklist {
  display: grid;
  gap: 8px;
}

.right-side-checklist > div {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 8px;
  background: #ffffff;
}

.right-side-checklist .passed { border-left-color: #25815f; }
.right-side-checklist .waiting { border-left-color: #d1a037; }
.right-side-checklist .risk { border-left-color: #c83c3c; }
.right-side-checklist h3 { margin: 0 0 4px; font-size: 12px; }
.right-side-checklist p { color: #4b5869; font-size: 12px; line-height: 1.5; }

.right-side-details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.right-side-details summary {
  padding: 11px 12px;
  color: #344154;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.right-side-detail-grid {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
}

.right-side-detail-grid > div {
  padding: 9px 10px;
  border: 1px solid #e7ebf0;
  border-radius: 7px;
  background: #ffffff;
}

.right-side-detail-grid span { display: block; color: var(--muted); font-size: 10px; }
.right-side-detail-grid strong { display: block; margin-top: 3px; font-size: 12px; }
.right-side-detail-grid p { margin-top: 4px; color: #5f6b7a; font-size: 11px; line-height: 1.5; }

.right-side-disclaimer {
  padding: 0 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.sector-board {
  flex: 0 0 auto;
  margin-top: 0;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.sector-board h2 {
  margin-bottom: 10px;
}

.sector-item {
  display: grid;
  grid-template-columns: minmax(125px, 1.3fr) minmax(80px, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  font-size: 13px;
}

.sector-item strong {
  min-width: 0;
  line-height: 1.4;
  overflow-wrap: normal;
  word-break: keep-all;
}

.sector-entry-summary { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.sector-entry-summary h3 { margin: 0 0 8px; font-size: 13px; color: #1e3657; }
.seasonal-sector-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 6px; padding: 8px 0; border-bottom: 1px dashed #e2e8f0; font-size: 12px; }
.seasonal-sector-item:last-child { border-bottom: 0; }
.seasonal-sector-item small, .seasonal-sector-item p { grid-column: 1 / -1; margin: 0; color: #6b778b; line-height: 1.45; }

.heat-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 8px;
  background: #e8edf3;
}

.heat-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #16805a, #e6b450, #cf3434);
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .app-shell.left-collapsed {
    grid-template-columns: 1fr;
  }
  .side-panel {
    max-height: none;
  }
  .workspace-grid {
    grid-template-columns: 1fr;
  }
  .top-strip .source-tabs { flex-direction: column; }
  .daily-top-pool-grid {
    grid-template-columns: 1fr;
  }
  .daily-standard-card {
    grid-template-columns: 30px minmax(130px, 1.05fr) 70px minmax(135px, 0.9fr) minmax(112px, 0.75fr);
  }
  .decision-bars {
    grid-template-columns: 1fr;
  }
  .workspace-grid.right-side-workspace {
    grid-template-columns: 1fr;
  }
  .workspace-grid.insight-collapsed {
    grid-template-columns: 1fr;
  }
  .workspace-grid.insight-collapsed .insight-zone {
    min-height: 48px;
  }
  .workspace-grid.insight-collapsed .insight-zone .zone-head {
    min-height: 48px;
    justify-content: flex-end;
  }
  .table-wrap, .insight-zone {
    max-height: none;
  }
  .zone-title-row, .source-tabs {
    align-items: stretch;
    flex-direction: column;
  }
  .source-tabs button {
    width: 100%;
  }
  .market-regime-bar {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .right-side-decision-bar {
    grid-template-columns: 1fr;
  }
  .right-side-decision-actions {
    justify-content: flex-start;
  }
  .seasonal-window-hero .seasonal-entry-tracker {
    grid-template-columns: 1fr;
  }
  .seasonal-current-market {
    grid-template-columns: 1fr 1fr;
  }
  .seasonal-current-verdict {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  body {
    overflow-x: hidden;
  }

  .daily-standards-panel {
    padding: 11px;
  }

  .daily-standards-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .daily-standards-summary {
    justify-content: flex-start;
  }

  .daily-top-pool {
    padding: 8px;
  }

  .daily-top-pool-head {
    align-items: center;
    flex-direction: row;
    gap: 8px;
    margin-bottom: 6px;
  }

  .daily-top-pool-head > b {
    width: auto;
    min-width: 40px;
  }

  .daily-top-pool-head span {
    display: none;
  }

  .daily-top-pool-head strong {
    font-size: 13px;
  }

  .daily-standards-meta > summary em {
    display: none;
  }

  .daily-standard-card {
    grid-template-areas:
      "rank stock price"
      "rank k k"
      "rank status status";
    grid-template-columns: 28px minmax(0, 1fr) 72px;
    gap: 6px 8px;
  }

  .daily-standard-rank {
    align-self: start;
  }

  .daily-standard-price {
    text-align: right;
  }

  .daily-standard-status {
    justify-self: start;
    max-width: none;
  }

  .daily-stock-dialog-card {
    gap: 10px;
    padding: 14px;
  }

  .daily-stock-hero {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .daily-stock-hero > .daily-standard-status {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .daily-stock-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .daily-stock-check-grid {
    grid-template-columns: 1fr;
  }

  .daily-stock-holder-row {
    grid-template-columns: 44px minmax(0, 1fr) auto;
  }

  .daily-stock-holder-row small {
    grid-column: 2 / -1;
    text-align: left;
  }

  .daily-stock-dialog-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .daily-stock-dialog-actions button {
    width: 100%;
  }

  body.mobile-sidebar-open {
    overflow: hidden;
  }

  .observation-filters,
  .observation-tech-category-filters,
  .observation-stage-panel,
  .observation-window-submenu,
  .observation-filter-path {
    width: 100% !important;
    max-width: 100%;
    margin-left: 0;
  }

  .market-index-dialog-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .app-shell,
  .app-shell.left-collapsed {
    display: block;
    min-height: 100vh;
  }

  .main-panel {
    padding: 10px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }

  .mobile-app-bar {
    position: sticky;
    z-index: 12;
    top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    margin: -10px -10px 10px;
    padding: 8px 10px;
    padding-top: max(8px, env(safe-area-inset-top));
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 14px rgba(21, 35, 52, 0.08);
  }

  .seasonal-window-hero .seasonal-entry-tracker {
    padding: 14px;
    font-size: 13px;
  }

  .seasonal-window-hero .seasonal-history,
  .seasonal-window-hero .seasonal-entry-tracker ol {
    grid-template-columns: 1fr;
  }

  .seasonal-current-market {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .seasonal-current-verdict {
    grid-column: auto;
  }

  .seasonal-window-summary-card {
    grid-template-columns: minmax(0, 1fr) 32px;
    gap: 8px 10px;
    min-height: 0;
    padding: 10px 11px;
  }

  .seasonal-window-hero .seasonal-entry-tracker {
    padding: 0;
  }

  .seasonal-window-summary-copy strong {
    font-size: 18px;
  }

  .seasonal-window-summary-status {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .seasonal-window-summary-status small {
    display: none;
  }

  .seasonal-window-summary-arrow {
    grid-column: 2;
    grid-row: 1;
  }

  .seasonal-window-dialog-card {
    gap: 10px;
    padding: 14px;
  }

  .seasonal-window-dialog-body .seasonal-history,
  .seasonal-window-dialog-body ol {
    grid-template-columns: 1fr;
  }

  .seasonal-window-dialog-body .seasonal-current-market {
    grid-template-columns: 1fr;
  }

  .seasonal-window-dialog-body .seasonal-current-verdict {
    grid-column: auto;
  }

  .mobile-drawer-button {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
    color: var(--ink);
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
  }

  .mobile-app-title {
    display: grid;
    min-width: 0;
    gap: 2px;
  }

  .mobile-app-title strong {
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-app-title span {
    color: var(--muted);
    font-size: 11px;
  }

  .side-panel,
  .side-panel.left-collapsed {
    position: fixed;
    z-index: 30;
    inset: 0 auto 0 0;
    width: min(88vw, 360px);
    max-height: none;
    padding: max(14px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: 18px 0 42px rgba(0, 0, 0, 0.28);
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  .side-panel.mobile-open,
  .side-panel.left-collapsed.mobile-open {
    transform: translateX(0);
  }

  .side-panel.left-collapsed .brand-block {
    justify-content: flex-start;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.14);
  }

  .side-panel.left-collapsed .brand-copy,
  .side-panel.left-collapsed .panel-section {
    display: block;
  }

  .side-panel .left-toggle {
    font-size: 22px;
  }

  .mobile-sidebar-backdrop {
    position: fixed;
    z-index: 25;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.52);
  }

  .mobile-sidebar-backdrop.visible {
    display: block;
  }

  .top-strip {
    gap: 8px;
    margin-bottom: 10px;
  }

  .metric-tile {
    min-height: 60px;
    padding: 9px 10px;
  }

  .metric-tile span {
    font-size: 11px;
  }

  .metric-tile strong {
    margin-top: 5px;
    font-size: 21px;
  }

  .search-box {
    grid-column: 1 / -1;
    padding: 8px;
  }

  .search-box input {
    min-height: 42px;
  }

  .market-regime-bar {
    margin: 0;
    padding: 9px 10px;
    font-size: 12px;
  }

  .right-side-decision-bar {
    gap: 12px;
    margin: 0;
    padding: 12px;
  }

  .right-side-decision-copy strong {
    font-size: 17px;
  }

  .right-side-decision-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .right-side-count {
    min-width: 0;
    padding: 7px;
    border: 1px solid #eadfbf;
    background: #ffffff;
  }

  #openRightSideButton {
    grid-column: 1 / -1;
    width: 100%;
  }

  .workspace-grid,
  .workspace-grid.insight-collapsed {
    gap: 10px;
  }

  .zone-head,
  .zone-head.stacked {
    gap: 9px;
    padding: 10px;
  }

  .zone-title-row {
    align-items: stretch;
    flex-direction: column;
  }

  .zone-title-row h2 {
    font-size: 14px;
  }

  .workspace-tabs,
  .source-tabs,
  .segmented {
    display: flex;
    width: 100%;
    max-width: 100%;
    align-items: stretch;
    flex-direction: row;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .workspace-tabs::-webkit-scrollbar,
  .source-tabs::-webkit-scrollbar,
  .segmented::-webkit-scrollbar {
    display: none;
  }

  .workspace-tabs button,
  .source-tabs button,
  .segmented button {
    width: auto;
    min-width: max-content;
    flex: 0 0 auto;
    padding-right: 11px;
    padding-left: 11px;
    font-size: 13px;
  }

  .source-tab-group { min-width: max-content; }

  .table-scroll-controls {
    display: none;
  }

  .table-wrap {
    max-height: none;
    overflow: visible;
    background: var(--bg);
  }

  table {
    display: block;
    width: 100%;
    min-width: 0;
    font-size: 13px;
  }

  thead {
    display: none;
  }

  tbody {
    display: grid;
    gap: 9px;
    padding: 9px;
  }

  tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 3px 12px rgba(21, 35, 52, 0.05);
  }

  tbody tr.selected {
    border-color: #8fb2f2;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.10);
  }

  tbody td {
    display: block;
    min-width: 0;
    padding: 9px 10px;
    border-bottom: 1px solid #edf1f5;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
  }

  tbody td:nth-child(1),
  tbody td:nth-child(5),
  tbody td:nth-child(6),
  tbody td:nth-child(7),
  tbody td:nth-child(8) {
    grid-column: 1 / -1;
  }

  tbody td:nth-child(1) { order: 1; }
  tbody td:nth-child(2) { order: 2; }
  tbody td:nth-child(4) { order: 3; }
  tbody td:nth-child(3) { order: 4; }
  tbody td:nth-child(9) { order: 5; }
  tbody td:nth-child(5) { order: 6; }
  tbody td:nth-child(6) { order: 7; }
  tbody td:nth-child(7) { order: 8; }
  tbody td:nth-child(8) { order: 9; }

  tbody td:nth-child(2),
  tbody td:nth-child(4),
  tbody td:nth-child(3),
  tbody td:nth-child(9) {
    min-height: 82px;
  }

  tbody td:nth-child(1) {
    padding: 11px 10px;
    background: #f8fafc;
  }

  tbody td:nth-child(1)::before {
    display: none;
  }

  tbody td:nth-child(6) {
    background: #fbfcfe;
  }

  tbody tr:not([data-code]) {
    display: block;
  }

  tbody tr:not([data-code]) td {
    border: 0;
  }

  .stock-name strong {
    font-size: 16px;
  }

  .daily-stock-kline {
    min-height: 202px;
  }

  .daily-stock-kline-canvas {
    height: 200px;
  }

  .daily-stock-kline-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .daily-stock-ma-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .daily-stock-kline-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }

  .subline {
    line-height: 1.45;
  }

  .focus-remove-button {
    float: right;
  }

  .insight-zone {
    max-height: none;
  }

  .insight-body,
  .sector-board {
    padding: 10px;
  }

  .insight-card {
    padding: 10px;
  }

  .workspace-grid.insight-collapsed .insight-zone {
    min-height: 48px;
  }

  .access-gate {
    padding: 14px;
  }

  .access-card {
    padding: 18px;
  }

  .position-form {
    padding: 16px;
  }

  .position-form-grid {
    grid-template-columns: 1fr;
  }
}
