:root {
  --ink-950: #090d10;
  --ink-900: #10161b;
  --ink-850: #151d23;
  --ink-800: #1b252c;
  --ink-700: #2c3942;
  --ink-600: #485965;
  --ink-500: #70808a;
  --ink-300: #aeb9bf;
  --ink-200: #d5dcdf;
  --ink-100: #edf0ef;
  --paper: #f5f4ef;
  --paper-strong: #ffffff;
  --teal: #0b9f91;
  --teal-strong: #08776d;
  --teal-soft: #dff5f1;
  --amber: #c98520;
  --amber-soft: #fff2d8;
  --red: #c74740;
  --red-strong: #9d312c;
  --red-soft: #fde7e5;
  --blue: #376f9e;
  --blue-soft: #e5eff8;
  --line: #d9dedf;
  --line-dark: rgba(255, 255, 255, 0.11);
  --shadow-sm: 0 6px 18px rgba(12, 18, 22, 0.08);
  --shadow-md: 0 16px 42px rgba(12, 18, 22, 0.13);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --topbar-height: 66px;
  --sidebar-width: 224px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-height) + 18px);
}

body {
  margin: 0;
  color: var(--ink-900);
  background: var(--paper);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  color: #fff;
  background: var(--ink-950);
  border-radius: var(--radius-sm);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.risk-ribbon {
  position: relative;
  z-index: 80;
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 24px;
  color: #fff8f7;
  background: var(--red-strong);
  font-size: 12px;
  line-height: 1.45;
}

.risk-ribbon strong {
  flex: 0 0 auto;
  padding: 2px 7px;
  color: var(--red-strong);
  background: #fff;
  border-radius: 4px;
  font-size: 11px;
}

.topbar {
  position: sticky;
  z-index: 70;
  top: 0;
  display: grid;
  height: var(--topbar-height);
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  gap: 20px;
  padding: 0 26px;
  color: #fff;
  background: rgba(9, 13, 16, 0.97);
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-self: start;
  gap: 11px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  color: #071113;
  background: #59d8ca;
  border-radius: 8px;
}

.brand-mark svg {
  width: 23px;
  height: 23px;
  stroke-width: 2.2;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
  line-height: 1.2;
}

.brand small {
  margin-top: 2px;
  color: #8fa0a8;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.topbar-status {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #b9c5ca;
  font-size: 12px;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(201, 133, 32, 0.15);
}

.topbar-status.is-live .status-dot {
  background: #42d1bd;
  box-shadow: 0 0 0 4px rgba(66, 209, 189, 0.15);
}

.topbar-status.is-error .status-dot {
  background: #f06b64;
  box-shadow: 0 0 0 4px rgba(240, 107, 100, 0.15);
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
}

.button,
.icon-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:active,
.icon-button:active {
  transform: translateY(1px);
}

.button:focus-visible,
.icon-button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(11, 159, 145, 0.26);
  outline-offset: 2px;
}

.button svg,
.icon-button svg {
  width: 17px;
  height: 17px;
}

.button {
  padding: 0 13px;
  font-size: 13px;
  font-weight: 650;
}

.button-primary {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.button-primary:hover {
  background: var(--teal-strong);
  border-color: var(--teal-strong);
}

.button-quiet {
  color: #d9e1e4;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.19);
}

.button-quiet:hover {
  background: rgba(255, 255, 255, 0.08);
}

.content .button-quiet,
.modal .button-quiet {
  color: var(--ink-700);
  border-color: var(--line);
  background: #fff;
}

.content .button-quiet:hover,
.modal .button-quiet:hover {
  background: var(--ink-100);
}

.button-danger {
  color: var(--red);
  background: #fff;
  border-color: #e9b8b5;
}

.button-small {
  min-height: 33px;
  padding: 0 10px;
  font-size: 12px;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

#workspace {
  display: grid;
  width: min(1600px, 100%);
  margin: 0 auto;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: var(--topbar-height);
  height: calc(100vh - var(--topbar-height));
  padding: 28px 18px 22px 24px;
  border-right: 1px solid var(--line);
  overflow-y: auto;
}

.sidebar-title {
  margin: 0 10px 12px;
  color: var(--ink-500);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.step-nav {
  display: grid;
  gap: 3px;
}

.step-nav a {
  position: relative;
  display: grid;
  min-height: 42px;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  color: var(--ink-600);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
}

.step-nav a span {
  color: #8c999f;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.step-nav a:hover {
  color: var(--ink-900);
  background: #e9ebe8;
}

.step-nav a.active {
  color: #fff;
  background: var(--ink-900);
}

.step-nav a.active span {
  color: #5bd8c9;
}

.data-note {
  margin-top: 24px;
  padding: 14px;
  color: var(--ink-600);
  background: #e9ebe8;
  border: 1px solid #d9ddda;
  border-radius: var(--radius);
  font-size: 11px;
  line-height: 1.65;
}

.data-note-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  color: var(--ink-800);
  font-size: 12px;
  font-weight: 700;
}

.data-note-title svg {
  width: 15px;
  height: 15px;
}

.data-note p {
  margin: 0;
}

.content {
  min-width: 0;
  padding: 22px;
}

.site-search-band {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(190px, 0.32fr) minmax(320px, 1fr);
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 15px 18px;
  color: #fff;
  background: var(--ink-900);
  border: 1px solid #26343b;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.site-search-copy span,
.site-search-copy strong {
  display: block;
}

.site-search-copy span {
  color: #56d6c8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.site-search-copy strong {
  margin-top: 3px;
  color: #dce4e7;
  font-size: 12px;
}

.site-search-box {
  display: flex;
  min-height: 47px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 8px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.site-search-box:focus-within {
  border-color: #57d8ca;
  box-shadow: 0 0 0 4px rgba(87, 216, 202, 0.13);
}

.site-search-box svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  color: var(--ink-600);
}

.site-search-box input {
  width: 100%;
  min-width: 0;
  padding: 10px 0;
  color: var(--ink-900);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 14px;
}

.site-search-band .global-search-panel {
  grid-column: 2;
  margin: 0;
  background: #f7faf9;
  border-color: #bfd8d3;
}

.market-banner {
  position: relative;
  min-height: 270px;
  margin-bottom: 18px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.market-banner > img,
.market-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.market-banner > img {
  object-fit: cover;
}

.market-overlay {
  background:
    linear-gradient(90deg, rgba(7, 12, 15, 0.96) 0%, rgba(7, 12, 15, 0.82) 48%, rgba(7, 12, 15, 0.28) 100%),
    linear-gradient(0deg, rgba(7, 12, 15, 0.5), rgba(7, 12, 15, 0.05));
}

.market-copy {
  position: relative;
  z-index: 2;
  width: min(760px, 86%);
  padding: 35px 40px;
  color: #fff;
}

.market-kicker {
  display: inline-flex;
  margin-bottom: 13px;
  padding: 5px 9px;
  color: #77e0d4;
  background: rgba(15, 129, 119, 0.22);
  border: 1px solid rgba(89, 216, 202, 0.34);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.market-copy h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(25px, 3.2vw, 42px);
  line-height: 1.12;
}

.market-copy p {
  max-width: 680px;
  margin: 14px 0 20px;
  color: #bdc9cd;
  font-size: 14px;
}

.market-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
  color: #91a1a8;
  font-size: 11px;
}

.market-facts span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.market-facts b {
  color: #fff;
  font-size: 14px;
}

.panel {
  margin-bottom: 18px;
  padding: 22px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

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

.panel-head.compact {
  margin-bottom: 14px;
}

.panel-head h2,
.panel-head h3 {
  margin: 2px 0 3px;
  color: var(--ink-900);
  font-size: 20px;
  line-height: 1.3;
}

.panel-head p {
  max-width: 760px;
  margin: 0;
  color: var(--ink-500);
  font-size: 12px;
}

.step-label {
  display: block;
  color: var(--teal-strong);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.panel-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.sector-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.search-box {
  display: flex;
  width: min(360px, 100%);
  min-height: 40px;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  background: #f7f8f6;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.search-box.small {
  width: 230px;
}

.search-box svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--ink-500);
}

.search-box input {
  width: 100%;
  min-width: 0;
  padding: 9px 0;
  color: var(--ink-900);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 13px;
}

.segment {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 3px;
  background: #e9ebe8;
  border-radius: var(--radius-sm);
}

.segment button {
  min-height: 32px;
  padding: 0 10px;
  color: var(--ink-600);
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
}

.segment button:hover {
  color: var(--ink-900);
}

.segment button.active {
  color: #fff;
  background: var(--ink-900);
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.15);
}

.sector-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.38fr);
  gap: 16px;
}

.sector-list {
  display: grid;
  max-height: 490px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding-right: 4px;
  overflow-y: auto;
}

.sector-item {
  position: relative;
  display: grid;
  min-height: 80px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 13px;
  text-align: left;
  background: #fafbf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.sector-item:hover {
  border-color: #9ab7b2;
  box-shadow: 0 5px 15px rgba(13, 24, 26, 0.07);
  transform: translateY(-1px);
}

.sector-item.selected {
  border-color: var(--teal);
  box-shadow: inset 3px 0 0 var(--teal);
}

.sector-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  color: var(--ink-900);
  font-size: 13px;
  font-weight: 750;
}

.sector-name span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sector-code {
  color: var(--ink-500);
  font-size: 9px;
  font-weight: 600;
}

.sector-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink-500);
  font-size: 10px;
}

.sector-change {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.sector-summary {
  min-width: 0;
  padding: 17px;
  background: var(--ink-900);
  border-radius: 9px;
  color: #fff;
}

.sector-summary h3 {
  margin: 8px 0 3px;
  font-size: 19px;
}

.sector-summary p {
  margin: 0;
  color: #9eacb2;
  font-size: 11px;
}

.stage-badge,
.status-badge,
.score-badge,
.catalyst-strength {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
}

.stage-up,
.is-good,
.strength-high {
  color: #075f56;
  background: var(--teal-soft);
}

.stage-sideways,
.is-neutral,
.strength-medium {
  color: #88580e;
  background: var(--amber-soft);
}

.stage-down,
.is-risk,
.strength-low {
  color: var(--red-strong);
  background: var(--red-soft);
}

.sector-reasons {
  display: grid;
  gap: 7px;
  margin-top: 15px;
}

.sector-reason {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: #c6d0d4;
  font-size: 11px;
}

.sector-reason::before {
  width: 6px;
  height: 6px;
  margin-top: 6px;
  background: #6a7b83;
  border-radius: 50%;
  content: "";
}

.stage-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 15px;
}

.stage-stat {
  padding: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}

.stage-stat span,
.stage-stat strong {
  display: block;
}

.stage-stat span {
  color: #84949b;
  font-size: 9px;
}

.stage-stat strong {
  margin-top: 2px;
  color: #fff;
  font-size: 13px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ranking-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 12px;
  background: #f4f5f2;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pagination-summary {
  color: var(--ink-500);
  font-size: 11px;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.pagination-controls select {
  min-height: 33px;
  padding: 4px 9px;
  color: var(--ink-800);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: 0;
  font-size: 11px;
}

.pagination-controls select:focus {
  border-color: var(--teal);
}

.global-search-panel {
  margin: -2px 0 14px;
  padding: 12px;
  background: #f4f8f6;
  border: 1px solid #cfe1dc;
  border-radius: 8px;
}

.global-search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.global-search-head span {
  color: var(--ink-800);
  font-size: 11px;
  font-weight: 750;
}

.global-search-head small {
  color: var(--ink-500);
  font-size: 9px;
}

.global-search-results {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.global-search-item {
  min-width: 0;
  padding: 9px 10px;
  text-align: left;
  background: #fff;
  border: 1px solid #d9e5e1;
  border-radius: 6px;
  cursor: pointer;
}

.global-search-item:hover {
  border-color: var(--teal);
  box-shadow: 0 3px 10px rgba(11, 159, 145, 0.1);
}

.global-search-item strong,
.global-search-item span {
  display: block;
}

.global-search-item strong {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  color: var(--ink-900);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-type {
  flex: 0 0 auto;
  padding: 2px 5px;
  color: var(--teal-strong);
  background: var(--teal-soft);
  border-radius: 3px;
  font-size: 8px;
  font-weight: 750;
}

.global-search-item span {
  margin-top: 2px;
  color: var(--ink-500);
  font-size: 9px;
}

.global-search-empty {
  grid-column: 1 / -1;
  padding: 12px;
  color: var(--ink-500);
  text-align: center;
  font-size: 10px;
}

.ranking-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ranking-meta {
  color: var(--ink-500);
  font-size: 10px;
  text-align: right;
}

.candidate-panel {
  margin-bottom: 14px;
  padding: 14px;
  background: #f4f8f6;
  border: 1px solid #cfe1dc;
  border-radius: 9px;
}

.candidate-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 11px;
}

.candidate-panel-head strong,
.candidate-panel-head span {
  display: block;
}

.candidate-panel-head strong {
  color: var(--ink-900);
  font-size: 14px;
}

.candidate-panel-head span {
  margin-top: 2px;
  color: var(--ink-500);
  font-size: 10px;
}

.candidate-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.candidate-status {
  margin: 0 !important;
  color: var(--teal-strong) !important;
  font-weight: 700;
  white-space: nowrap;
}

.candidate-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.candidate-item {
  min-width: 0;
  padding: 11px;
  text-align: left;
  background: #fff;
  border: 1px solid #d3e4df;
  border-radius: 7px;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.candidate-item:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 12px rgba(11, 159, 145, 0.11);
}

.candidate-item strong,
.candidate-item span,
.candidate-item small {
  display: block;
}

.candidate-item strong {
  color: var(--ink-900);
  font-size: 12px;
}

.candidate-item span {
  margin-top: 3px;
  color: var(--ink-600);
  font-size: 10px;
}

.candidate-item small {
  margin-top: 7px;
  color: var(--teal-strong);
  font-size: 9px;
  font-weight: 700;
}

.stock-table {
  width: 100%;
  min-width: 990px;
  border-collapse: collapse;
}

.stock-table th,
.stock-table td {
  padding: 11px 10px;
  text-align: left;
  border-bottom: 1px solid #e7e9e6;
  font-size: 11px;
  white-space: nowrap;
  vertical-align: middle;
}

.stock-table th {
  color: var(--ink-500);
  background: #f4f5f2;
  font-size: 10px;
  font-weight: 750;
}

.stock-table tbody tr {
  cursor: pointer;
  transition: background-color 130ms ease;
}

.stock-table tbody tr:hover {
  background: #f5faf8;
}

.stock-table tbody tr.selected {
  background: #e9f7f4;
  box-shadow: inset 3px 0 0 var(--teal);
}

.stock-table tbody tr.preferred {
  background: #f1faf7;
}

.stock-table tbody tr.preferred td:first-child {
  box-shadow: inset 3px 0 0 #46b7a7;
}

.stock-table tbody tr:last-child td {
  border-bottom: 0;
}

.stock-name {
  display: block;
  max-width: 180px;
  overflow: hidden;
  color: var(--ink-900);
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
}

.stock-code {
  display: block;
  margin-top: 1px;
  color: var(--ink-500);
  font-size: 9px;
}

.number-up {
  color: var(--red);
  font-weight: 750;
}

.number-down {
  color: var(--teal-strong);
  font-weight: 750;
}

.number-flat {
  color: var(--ink-500);
  font-weight: 700;
}

.score-badge {
  min-width: 48px;
  color: var(--ink-700);
  background: var(--ink-100);
}

.score-badge.score-high {
  color: #075f56;
  background: var(--teal-soft);
}

.score-badge.score-mid {
  color: #88580e;
  background: var(--amber-soft);
}

.score-badge.score-low {
  color: var(--red-strong);
  background: var(--red-soft);
}

.loading-block,
.empty-state {
  padding: 34px 18px;
  color: var(--ink-500);
  text-align: center;
  font-size: 12px;
}

.analysis-empty {
  display: grid;
  min-height: 260px;
  place-items: center;
  align-content: center;
  text-align: center;
}

.empty-illustration {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  margin-bottom: 12px;
  color: var(--teal-strong);
  background: var(--teal-soft);
  border-radius: 50%;
}

.empty-illustration svg {
  width: 30px;
  height: 30px;
}

.analysis-empty h2 {
  margin: 0;
  font-size: 19px;
}

.analysis-empty p {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--ink-500);
  font-size: 12px;
}

.analysis-header {
  position: relative;
  margin-bottom: 18px;
  padding: 21px 22px;
  color: #fff;
  background: var(--ink-900);
  border-radius: var(--radius);
  overflow: hidden;
}

.analysis-header::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 36%;
  height: 100%;
  background:
    linear-gradient(135deg, transparent 0 38%, rgba(88, 216, 202, 0.09) 38% 40%, transparent 40%),
    linear-gradient(45deg, transparent 0 62%, rgba(201, 133, 32, 0.08) 62% 64%, transparent 64%);
  content: "";
  pointer-events: none;
}

.analysis-header-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.analysis-title {
  min-width: 0;
}

.analysis-title h2 {
  margin: 4px 0 3px;
  font-size: clamp(23px, 3vw, 34px);
  line-height: 1.15;
}

.analysis-title p {
  margin: 0;
  color: #9eabb1;
  font-size: 11px;
}

.analysis-price {
  flex: 0 0 auto;
  text-align: right;
}

.analysis-price strong {
  display: block;
  font-size: 25px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.analysis-price span {
  color: #a6b3b8;
  font-size: 11px;
}

.analysis-header-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.analysis-header .button-quiet {
  color: #dbe4e7;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.analysis-header .button-quiet:hover {
  background: rgba(255, 255, 255, 0.12);
}

.analysis-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.analysis-summary-card {
  min-width: 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
}

.analysis-summary-card span,
.analysis-summary-card strong {
  display: block;
}

.analysis-summary-card span {
  color: #87969d;
  font-size: 9px;
}

.analysis-summary-card strong {
  margin-top: 4px;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.analysis-step {
  min-width: 0;
  padding: 20px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.analysis-step.wide {
  grid-column: 1 / -1;
}

.step-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 15px;
}

.step-heading h3 {
  margin: 2px 0 0;
  font-size: 17px;
}

.step-heading p {
  margin: 3px 0 0;
  color: var(--ink-500);
  font-size: 11px;
}

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

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

.metric-item {
  min-width: 0;
  padding: 11px;
  background: #f7f8f6;
  border: 1px solid #e6e9e5;
  border-radius: 7px;
}

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

.metric-item span {
  color: var(--ink-500);
  font-size: 9px;
}

.metric-item strong {
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: var(--ink-900);
  font-size: 14px;
}

.metric-item small {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 9px;
}

.plain-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  position: relative;
  padding-left: 16px;
  color: var(--ink-600);
  font-size: 11px;
}

.plain-list li::before {
  position: absolute;
  top: 7px;
  left: 2px;
  width: 5px;
  height: 5px;
  background: var(--teal);
  border-radius: 50%;
  content: "";
}

.risk-list li::before {
  background: var(--red);
}

.valuation-verdict,
.technical-verdict,
.catalyst-verdict,
.conclusion-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding: 13px;
  border-radius: 7px;
}

.valuation-verdict {
  background: var(--blue-soft);
  border: 1px solid #c9dbea;
}

.technical-verdict {
  background: #edf4f2;
  border: 1px solid #d3e4e0;
}

.catalyst-verdict {
  background: var(--amber-soft);
  border: 1px solid #efdab1;
}

.verdict-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--teal-strong);
  background: #fff;
  border-radius: 50%;
}

.verdict-icon svg {
  width: 18px;
  height: 18px;
}

.valuation-verdict strong,
.technical-verdict strong,
.catalyst-verdict strong {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
}

.valuation-verdict p,
.technical-verdict p,
.catalyst-verdict p {
  margin: 0;
  color: var(--ink-600);
  font-size: 10px;
}

.chart-wrap {
  margin: 8px 0 15px;
  padding: 11px;
  background: #10171b;
  border-radius: 8px;
  overflow: hidden;
}

.candlestick-chart {
  width: 100%;
  height: auto;
  min-height: 220px;
}

.chart-empty {
  display: grid;
  min-height: 220px;
  place-items: center;
  color: #83939a;
  font-size: 11px;
}

.indicator-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 13px;
}

.indicator-pill {
  min-width: 0;
  padding: 9px;
  background: #f5f6f4;
  border: 1px solid #e5e8e4;
  border-radius: 6px;
  text-align: center;
}

.indicator-pill span,
.indicator-pill strong {
  display: block;
}

.indicator-pill span {
  color: var(--ink-500);
  font-size: 8px;
}

.indicator-pill strong {
  margin-top: 3px;
  color: var(--ink-800);
  font-size: 11px;
}

.catalyst-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.catalyst-item {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: start;
  padding: 11px 0;
  border-bottom: 1px solid #e8eae7;
}

.catalyst-item:last-child {
  border-bottom: 0;
}

.catalyst-date {
  color: var(--ink-500);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.catalyst-content strong {
  display: block;
  font-size: 11px;
}

.catalyst-content span {
  display: block;
  margin-top: 2px;
  color: var(--ink-500);
  font-size: 9px;
}

.trade-parameters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.trade-card {
  padding: 14px;
  background: #f7f8f6;
  border: 1px solid #e3e7e3;
  border-radius: 8px;
}

.trade-card.stop {
  background: var(--red-soft);
  border-color: #efc9c6;
}

.trade-card.target-one {
  background: var(--teal-soft);
  border-color: #bfe1da;
}

.trade-card.target-two {
  background: var(--blue-soft);
  border-color: #c9dbea;
}

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

.trade-card span {
  color: var(--ink-500);
  font-size: 9px;
}

.trade-card strong {
  margin: 4px 0 5px;
  color: var(--ink-900);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.trade-card small {
  color: var(--ink-600);
  font-size: 9px;
}

.conclusion-box {
  display: grid;
  min-height: 180px;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  margin-top: 0;
  padding: 20px;
  color: #fff;
  background: var(--ink-900);
  border: 0;
}

.conclusion-score {
  display: grid;
  width: 90px;
  height: 90px;
  place-items: center;
  background: conic-gradient(#50d5c5 var(--score-angle, 0deg), #29343a 0);
  border-radius: 50%;
}

.conclusion-score-inner {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  align-content: center;
  background: var(--ink-900);
  border-radius: 50%;
  text-align: center;
}

.conclusion-score strong {
  font-size: 24px;
  line-height: 1;
}

.conclusion-score span {
  margin-top: 2px;
  color: #87969d;
  font-size: 8px;
}

.conclusion-copy h3 {
  margin: 5px 0 7px;
  font-size: 24px;
}

.conclusion-copy p {
  margin: 0;
  color: #aab6bb;
  font-size: 11px;
}

.conclusion-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.reason-chip {
  padding: 4px 7px;
  color: #c7d1d5;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 4px;
  font-size: 9px;
}

.report-disclaimer {
  margin-top: 14px;
  padding: 11px 12px;
  color: var(--red-strong);
  background: var(--red-soft);
  border: 1px solid #ecc5c2;
  border-radius: 7px;
  font-size: 10px;
}

.site-footer {
  display: flex;
  width: min(1600px, 100%);
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  padding: 24px 28px 32px calc(var(--sidebar-width) + 28px);
  color: var(--ink-500);
  border-top: 1px solid var(--line);
  font-size: 10px;
}

.site-footer strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink-800);
}

.site-footer p {
  max-width: 700px;
  margin: 0;
}

.footer-risk {
  flex: 0 0 auto;
  color: var(--red-strong);
  font-weight: 700;
}

.modal-mask {
  position: fixed;
  z-index: 150;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 9, 11, 0.68);
  backdrop-filter: blur(5px);
}

.modal {
  width: min(780px, 100%);
  max-height: min(88vh, 780px);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
  overflow: auto;
}

.modal-head {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 19px 20px 15px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.modal-head h3 {
  margin: 3px 0 0;
  font-size: 20px;
}

.icon-button {
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  padding: 0;
  color: var(--ink-600);
  background: #f1f3f1;
  border-color: var(--line);
}

.icon-button:hover {
  color: var(--ink-900);
  background: #e6e9e6;
}

.modal-body {
  padding: 18px 20px;
}

.modal-note {
  margin: 0 0 15px;
  padding: 10px 11px;
  color: var(--ink-600);
  background: #f4f5f2;
  border-left: 3px solid var(--amber);
  border-radius: 4px;
  font-size: 10px;
}

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

.form-grid label {
  display: grid;
  gap: 5px;
  color: var(--ink-600);
  font-size: 10px;
  font-weight: 650;
}

.form-grid input,
.form-grid select {
  width: 100%;
  min-height: 38px;
  padding: 7px 9px;
  color: var(--ink-900);
  background: #fafbf9;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: 0;
  font-size: 12px;
}

.modal-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.toast {
  position: fixed;
  z-index: 180;
  right: 20px;
  bottom: 20px;
  max-width: min(390px, calc(100vw - 40px));
  padding: 11px 14px;
  color: #fff;
  background: var(--ink-900);
  border-radius: 7px;
  box-shadow: var(--shadow-md);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  background: var(--red-strong);
}

@media (max-width: 1180px) {
  :root {
    --sidebar-width: 190px;
  }

  .content {
    padding: 18px;
  }

  .sector-layout {
    grid-template-columns: 1fr;
  }

  .sector-summary {
    min-height: 220px;
  }

  .analysis-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  :root {
    --topbar-height: 62px;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0 15px;
  }

  .topbar-status {
    display: none;
  }

  #workspace {
    display: block;
  }

  .sidebar {
    position: sticky;
    z-index: 55;
    top: var(--topbar-height);
    height: auto;
    padding: 8px 12px;
    background: rgba(245, 244, 239, 0.96);
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    backdrop-filter: blur(10px);
  }

  .sidebar-title,
  .data-note {
    display: none;
  }

  .step-nav {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .step-nav::-webkit-scrollbar {
    display: none;
  }

  .step-nav a {
    min-height: 36px;
    grid-template-columns: auto 1fr;
    flex: 0 0 auto;
    gap: 5px;
    padding: 5px 9px;
    background: #e9ebe8;
    border: 0;
    font-size: 11px;
  }

  .step-nav a span {
    font-size: 8px;
  }

  .analysis-grid {
    grid-template-columns: 1fr;
  }

  .analysis-step.wide {
    grid-column: auto;
  }

  .site-footer {
    display: block;
    padding: 22px;
  }

  .footer-risk {
    margin-top: 12px;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 14px;
  }

  .risk-ribbon {
    display: block;
    padding: 7px 12px;
    font-size: 10px;
    text-align: center;
  }

  .risk-ribbon strong {
    display: inline-block;
    margin-right: 5px;
  }

  .topbar {
    gap: 8px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-mark svg {
    width: 20px;
    height: 20px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small {
    display: none;
  }

  .topbar-actions .button {
    width: 38px;
    padding: 0;
  }

  .topbar-actions .button span,
  .topbar-actions .button:not(:has(svg)) {
    display: none;
  }

  .content {
    padding: 12px;
  }

  .market-banner {
    min-height: 330px;
  }

  .market-overlay {
    background: linear-gradient(0deg, rgba(7, 12, 15, 0.97) 0%, rgba(7, 12, 15, 0.72) 68%, rgba(7, 12, 15, 0.35) 100%);
  }

  .market-copy {
    display: flex;
    width: 100%;
    min-height: 330px;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px 20px;
  }

  .market-copy h1 {
    font-size: 26px;
  }

  .market-copy p {
    font-size: 12px;
  }

  .market-facts {
    gap: 11px;
  }

  .panel,
  .analysis-step {
    padding: 15px;
  }

  .panel-head {
    display: block;
    margin-bottom: 14px;
  }

  .panel-head p {
    font-size: 11px;
  }

  .panel-actions,
  .panel-head > .search-box {
    width: 100%;
    margin-top: 10px;
  }

  .sector-toolbar {
    display: grid;
  }

  .search-box,
  .search-box.small {
    width: 100%;
  }

  .segment {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .segment button {
    padding: 0 5px;
  }

  .sector-list {
    max-height: 520px;
    grid-template-columns: 1fr;
  }

  .ranking-toolbar {
    display: grid;
  }

  .ranking-meta {
    text-align: left;
  }

  .candidate-panel-head {
    display: grid;
  }

  .candidate-actions {
    justify-content: space-between;
  }

  .candidate-list {
    grid-template-columns: 1fr;
  }

  .ranking-pagination {
    display: grid;
  }

  .pagination-controls {
    display: grid;
    grid-template-columns: 1fr minmax(110px, 1fr) 1fr;
  }

  .global-search-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-search-band {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 13px;
  }

  .site-search-band .global-search-panel {
    grid-column: 1;
  }

  .analysis-header-main {
    display: block;
  }

  .analysis-price {
    margin-top: 12px;
    text-align: left;
  }

  .analysis-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-grid.three,
  .indicator-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trade-parameters {
    grid-template-columns: 1fr;
  }

  .conclusion-box {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }

  .conclusion-score {
    justify-self: center;
  }

  .conclusion-reasons {
    justify-content: center;
  }

  .catalyst-item {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .catalyst-item .catalyst-strength {
    grid-column: 2;
    justify-self: start;
  }

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

@media (max-width: 430px) {
  .analysis-summary-grid,
  .metric-grid,
  .metric-grid.three,
  .indicator-row,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .global-search-head {
    display: block;
  }

  .global-search-head small {
    display: block;
    margin-top: 2px;
  }

  .site-search-copy {
    display: flex;
    align-items: baseline;
    gap: 8px;
  }

  .site-search-copy strong {
    margin-top: 0;
  }

  .analysis-header-actions .button {
    width: 100%;
  }

  .sector-list {
    max-height: 430px;
  }
}

@media print {
  :root {
    --sidebar-width: 0px;
  }

  body {
    background: #fff;
  }

  .risk-ribbon {
    position: static;
    color: #000;
    background: #fff;
    border: 2px solid #000;
  }

  .risk-ribbon strong {
    color: #000;
  }

  .topbar,
  .sidebar,
  .sector-panel,
  .pool-panel,
  .analysis-header-actions,
  .site-footer,
  .toast,
  .modal-mask {
    display: none !important;
  }

  #workspace,
  .content {
    display: block;
    width: 100%;
    padding: 0;
  }

  .market-banner {
    min-height: 210px;
    box-shadow: none;
  }

  .analysis-step,
  .panel {
    break-inside: avoid;
    box-shadow: none;
  }
}
