:root {
  color-scheme: light;
  --bg: #f4f7f8;
  --panel: #ffffff;
  --ink: #152029;
  --muted: #65717c;
  --line: #dbe3e8;
  --accent: #0f766e;
  --accent-2: #2563eb;
  --up: #c2410c;
  --down: #047857;
  --warn: #9a3412;
  --shadow: 0 10px 28px rgba(21, 32, 41, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.scroll-locked {
  position: fixed;
  right: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(160deg, #e8f5f2 0%, #eef3fa 48%, #f8fafc 100%);
}

.login-panel {
  width: min(420px, 100%);
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.boot-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 20% 10%, rgba(15, 118, 110, 0.12), transparent 28%),
    linear-gradient(160deg, #e8f5f2 0%, #eef3fa 52%, #f8fafc 100%);
}

.boot-card {
  width: min(760px, 100%);
  display: grid;
  justify-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  text-align: center;
}

.boot-card h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.08;
}

.boot-loader {
  width: 54px;
  height: 54px;
  border: 4px solid #dbeafe;
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: boot-spin 0.9s linear infinite;
}

.boot-text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.boot-progress {
  width: min(520px, 100%);
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.boot-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #14b8a6);
  transition: width 0.25s ease;
}

.boot-count {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.boot-steps {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.boot-steps span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.boot-steps b,
.boot-steps em {
  display: block;
  font-style: normal;
}

.boot-steps b {
  color: var(--ink);
  font-size: 13px;
}

.boot-steps em {
  margin-top: 2px;
  color: var(--muted);
}

.boot-step.loading {
  border-color: #99f6e4;
  background: #f0fdfa;
  color: var(--accent);
}

.boot-step.loading em,
.boot-step.done em {
  color: var(--accent);
}

.boot-step.degraded {
  border-color: #fed7aa;
  background: #fff7ed;
}

.boot-step.degraded em {
  color: #c2410c;
}

@keyframes boot-spin {
  to {
    transform: rotate(360deg);
  }
}

.big-screen-body {
  overflow: hidden;
  background: #050910;
}

.big-screen {
  --screen-bg: #050910;
  --screen-panel: rgba(8, 17, 31, 0.74);
  --screen-panel-strong: rgba(8, 28, 47, 0.9);
  --screen-line: rgba(94, 234, 212, 0.28);
  --screen-glow: rgba(45, 212, 191, 0.32);
  --screen-cyan: #67e8f9;
  --screen-green: #2dd4bf;
  --screen-red: #fb7185;
  --screen-amber: #fbbf24;
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  padding: 18px;
  background: var(--screen-bg);
  color: #dffcff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.big-screen-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(20, 184, 166, 0.22), transparent 28%),
    radial-gradient(circle at 72% 24%, rgba(37, 99, 235, 0.18), transparent 24%),
    linear-gradient(rgba(103, 232, 249, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 232, 249, 0.055) 1px, transparent 1px);
  background-size: auto, auto, 52px 52px, 52px 52px;
}

.big-screen::before,
.big-screen::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.big-screen::before {
  background: linear-gradient(120deg, transparent 0 34%, rgba(103, 232, 249, 0.08) 42%, transparent 50% 100%);
  animation: screen-scan 8s linear infinite;
}

.big-screen::after {
  background: repeating-linear-gradient(180deg, transparent 0 6px, rgba(255, 255, 255, 0.025) 7px);
  mix-blend-mode: screen;
}

.big-screen.paused *,
.big-screen.paused::before {
  animation-play-state: paused !important;
}

.big-screen-header,
.big-screen-ticker,
.big-screen-grid,
.big-screen-footer,
.big-screen-controls {
  position: relative;
  z-index: 1;
}

.big-screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 86px;
  border: 1px solid var(--screen-line);
  border-radius: 8px;
  padding: 14px 20px;
  background:
    linear-gradient(90deg, rgba(8, 47, 73, 0.68), rgba(4, 9, 20, 0.2), rgba(8, 47, 73, 0.52)),
    linear-gradient(180deg, rgba(20, 184, 166, 0.08), transparent);
  box-shadow: 0 0 36px rgba(34, 211, 238, 0.12), inset 0 0 24px rgba(45, 212, 191, 0.08);
}

.big-screen-header p,
.big-screen-header h1,
.big-screen-status {
  margin: 0;
}

.big-screen-header p {
  color: var(--screen-green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.big-screen-header h1 {
  font-size: clamp(28px, 2.7vw, 48px);
  letter-spacing: 0;
  line-height: 1.05;
}

.big-screen-status {
  display: grid;
  justify-items: end;
  gap: 2px;
  color: #b6d8df;
}

.big-screen-status span {
  border: 1px solid rgba(45, 212, 191, 0.4);
  border-radius: 999px;
  padding: 2px 10px;
  color: var(--screen-green);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 0 18px var(--screen-glow);
}

.big-screen-status strong {
  font-size: 26px;
}

.big-screen-status em {
  color: #7dd3fc;
  font-size: 12px;
  font-style: normal;
}

.big-screen-ticker {
  height: 56px;
  overflow: hidden;
  margin: 12px 0;
  border: 1px solid var(--screen-line);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.72), rgba(8, 47, 73, 0.34), rgba(2, 6, 23, 0.72));
}

.big-screen-ticker div {
  display: flex;
  width: max-content;
  min-width: 100%;
  animation: ticker-slide 30s linear infinite;
}

.big-screen-ticker span {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
  height: 54px;
  padding: 0 20px;
  border-right: 1px solid rgba(103, 232, 249, 0.18);
  white-space: nowrap;
}

.big-screen-ticker i,
.big-screen-ticker em {
  color: #93a8b3;
  font-style: normal;
  font-weight: 800;
}

.big-screen-ticker b {
  display: inline-block;
  color: #f8fafc;
  font-size: 22px;
  font-weight: 950;
}

.big-screen-ticker em {
  display: inline-block;
}

.big-screen-ticker .up-text i,
.big-screen-ticker .up-text b,
.big-screen-ticker .up-text em {
  color: var(--screen-red);
  text-shadow: 0 0 14px rgba(251, 113, 133, 0.38);
}

.big-screen-ticker .down-text i,
.big-screen-ticker .down-text b,
.big-screen-ticker .down-text em {
  color: var(--screen-green);
  text-shadow: 0 0 14px rgba(45, 212, 191, 0.34);
}

.big-screen-ticker .flat i,
.big-screen-ticker .flat b,
.big-screen-ticker .flat em {
  color: #cbd5e1;
  text-shadow: none;
}

.big-screen .up-text {
  color: var(--screen-red) !important;
}

.big-screen .down-text {
  color: var(--screen-green) !important;
}

.big-screen .flat {
  color: #cbd5e1 !important;
}

.big-screen .value-changed,
.big-screen .value-changed b,
.big-screen .value-changed em,
.big-screen .value-changed strong {
  animation: quote-flash 1.15s ease-out;
  transform-origin: center;
}

.big-screen-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(620px, 1.7fr) minmax(320px, 0.9fr);
  gap: 12px;
  height: calc(100vh - 198px);
  min-height: 620px;
}

.big-screen-column,
.big-screen-center {
  display: grid;
  gap: 12px;
  min-height: 0;
}

.big-screen-column {
  grid-template-rows: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.big-screen-center {
  grid-template-rows: minmax(220px, 0.62fr) minmax(245px, 0.74fr) minmax(150px, 0.44fr);
}

.big-screen-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--screen-line);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 24%),
    var(--screen-panel);
  box-shadow: 0 0 24px rgba(8, 145, 178, 0.12), inset 0 0 26px rgba(14, 165, 233, 0.08);
}

.big-screen-card::after {
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(103, 232, 249, 0.72));
  content: "";
}

.big-screen-card::before {
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  content: "";
  animation: card-light 6s ease-in-out infinite;
}

.big-screen-card > header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.big-screen-card header span {
  color: #f8fafc;
  font-size: 18px;
  font-weight: 950;
}

.big-screen-card header b {
  color: var(--screen-cyan);
  font-size: 13px;
}

.big-screen-scroll-viewport {
  position: relative;
  height: calc(100% - 40px);
  min-height: 0;
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}

.big-screen-scroll-list {
  position: absolute;
  inset: 0 auto auto 0;
  display: grid;
  width: 100%;
  gap: 8px;
  animation: vertical-scroll 40s linear infinite;
}

.big-screen-card.watch .big-screen-mini-rank,
.big-screen-card.ranking .big-screen-rank-list,
.big-screen-card.heat .big-screen-mini-rank {
  max-height: 100%;
  overflow: hidden;
}

.big-screen-scroll-list p,
.big-screen-rank-list li,
.big-screen-mini-rank li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  padding: 8px 0;
}

.big-screen-scroll-list p {
  min-height: 38px;
}

.big-screen-scroll-list i,
.big-screen-rank-list i,
.big-screen-mini-rank i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(45, 212, 191, 0.16);
  color: var(--screen-cyan);
  font-style: normal;
  font-weight: 950;
}

.big-screen-scroll-list span,
.big-screen-rank-list span,
.big-screen-mini-rank span {
  min-width: 0;
  overflow: hidden;
  color: #e5faff;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.big-screen-scroll-list em,
.big-screen-rank-list em,
.big-screen-mini-rank em {
  display: block;
  margin-top: 2px;
  color: #7c94a3;
  font-size: 11px;
  font-style: normal;
}

.big-screen-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.big-screen-kpi-row span {
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 8px;
  padding: 8px;
  background: rgba(15, 23, 42, 0.58);
}

.big-screen-kpi-row i {
  display: block;
  color: #8aa1ad;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.big-screen-kpi-row strong {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: #f8fafc;
  font-size: 15px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.big-screen-breadth {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  min-height: 170px;
}

.big-screen-breadth span {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
}

.big-screen-breadth b {
  font-size: 18px;
  font-weight: 950;
}

.big-screen-breadth i {
  width: 100%;
  min-height: 8px;
  border-radius: 5px 5px 2px 2px;
  box-shadow: 0 0 18px currentColor;
}

.big-screen-breadth em {
  color: #a8bdc8;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.big-screen-breadth .up {
  color: var(--screen-red);
}

.big-screen-breadth .up i {
  background: linear-gradient(180deg, var(--screen-red), rgba(251, 113, 133, 0.16));
}

.big-screen-breadth .down {
  color: var(--screen-green);
}

.big-screen-breadth .down i {
  background: linear-gradient(180deg, var(--screen-green), rgba(45, 212, 191, 0.16));
}

.big-screen-breadth .flat {
  color: #94a3b8;
}

.big-screen-breadth .flat i {
  background: linear-gradient(180deg, #94a3b8, rgba(148, 163, 184, 0.18));
}

.market-core footer {
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
}

.market-core footer div {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.22);
}

.market-core footer div span {
  display: block;
  width: var(--up-ratio);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--screen-red), rgba(251, 113, 133, 0.34));
}

.big-screen-flow-svg {
  display: block;
  width: 100%;
  height: calc(100% - 42px);
  min-height: 210px;
}

.big-screen-flow-svg rect {
  fill: rgba(2, 6, 23, 0.42);
  stroke: rgba(103, 232, 249, 0.14);
}

.big-screen-flow-svg line {
  stroke: rgba(148, 163, 184, 0.18);
}

.big-screen-flow-svg polyline {
  fill: none;
  stroke-width: 2.6;
  filter: drop-shadow(0 0 5px currentColor);
}

.big-screen-flow-svg text {
  fill: #bed3dc;
  font-size: 12px;
  font-weight: 850;
}

.big-screen-rank-list,
.big-screen-mini-rank {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.big-screen-rank-list li {
  grid-template-columns: 34px minmax(0, 1fr) 82px;
  padding: 9px 0;
}

.big-screen-rank-list b,
.big-screen-mini-rank b {
  justify-self: end;
  font-size: 18px;
  font-weight: 950;
}

.big-screen-mini-rank .big-screen-watch-profit {
  display: grid;
  justify-items: end;
  gap: 2px;
  min-width: 108px;
  line-height: 1;
}

.big-screen-mini-rank .big-screen-watch-profit small,
.big-screen-mini-rank .big-screen-watch-profit em {
  color: inherit;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  opacity: 0.84;
}

.big-screen-heat-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.big-screen-mainline-list {
  position: relative;
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.big-screen-mainline-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 76px 92px;
  gap: 9px;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(103, 232, 249, 0.12);
  border-radius: 7px;
  padding: 7px 9px;
  background: linear-gradient(90deg, rgba(20, 184, 166, 0.1), rgba(15, 23, 42, 0.26));
}

.big-screen-mainline-list i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(251, 113, 133, 0.18);
  color: var(--screen-red);
  font-style: normal;
  font-weight: 950;
  box-shadow: 0 0 14px rgba(251, 113, 133, 0.22);
}

.big-screen-mainline-list span {
  min-width: 0;
  overflow: hidden;
  color: #e5faff;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.big-screen-mainline-list em {
  display: block;
  margin-top: 2px;
  color: #8aa1ad;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.big-screen-mainline-list strong {
  justify-self: end;
  font-size: 17px;
  font-weight: 950;
}

.big-screen-mainline-list b {
  justify-self: end;
  color: #bed3dc;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.big-screen-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.big-screen-tags span {
  border: 1px solid rgba(251, 191, 36, 0.26);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(251, 191, 36, 0.09);
  color: #ffe8a3;
  font-size: 12px;
  font-weight: 900;
}

.big-screen-tags b {
  color: var(--screen-red);
}

.big-screen-footer {
  height: 34px;
  overflow: hidden;
  margin-top: 10px;
  border: 1px solid var(--screen-line);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.74);
}

.big-screen-marquee {
  display: flex;
  width: max-content;
  animation: ticker-slide 54s linear infinite;
}

.big-screen-marquee span {
  display: block;
  min-width: 100vw;
  padding: 7px 22px;
  color: #dffcff;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.big-screen-controls {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 8px;
  opacity: 0.16;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.big-screen:hover .big-screen-controls,
.big-screen-controls:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.big-screen-controls button,
.big-screen-mobile-note button {
  min-height: 34px;
  border: 1px solid rgba(103, 232, 249, 0.38);
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(2, 6, 23, 0.84);
  color: #dffcff;
  font-size: 12px;
  font-weight: 900;
}

.big-screen-empty {
  display: grid;
  min-height: 160px;
  place-items: center;
  color: #7c94a3;
  font-weight: 850;
}

.big-screen-mobile-note {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #050910;
  color: #dffcff;
}

.big-screen-mobile-note section {
  max-width: 460px;
  border: 1px solid rgba(103, 232, 249, 0.3);
  border-radius: 8px;
  padding: 24px;
  background: rgba(8, 17, 31, 0.88);
  box-shadow: 0 0 32px rgba(34, 211, 238, 0.14);
}

@keyframes ticker-slide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes vertical-scroll {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-50%);
  }
}

@keyframes quote-flash {
  0% {
    filter: brightness(1.9);
    transform: scale(1.05);
  }

  100% {
    filter: brightness(1);
    transform: scale(1);
  }
}

@keyframes screen-scan {
  from {
    transform: translateX(-90%);
  }

  to {
    transform: translateX(90%);
  }
}

@keyframes card-light {
  0%,
  35% {
    transform: translateX(0);
    opacity: 0;
  }

  55% {
    opacity: 1;
  }

  100% {
    transform: translateX(460%);
    opacity: 0;
  }
}

@media (max-width: 1320px) {
  .big-screen-grid {
    grid-template-columns: 300px minmax(540px, 1fr) 300px;
  }

  .big-screen-header h1 {
    font-size: 30px;
  }

  .big-screen-kpi-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .boot-card {
    width: 100%;
    padding: 26px 18px;
  }

  .boot-card h1 {
    font-size: 28px;
  }

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

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.login-panel h1,
.topbar h1 {
  margin-bottom: 0;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.08;
}

.login-form {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

input,
select {
  min-height: 42px;
  padding: 0 12px;
}

textarea {
  min-height: 120px;
  resize: vertical;
  padding: 10px 12px;
  line-height: 1.5;
}

.login-form button,
.watch-form button,
.text-button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.app-shell {
  min-height: 100vh;
  padding: 18px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1500px;
  margin: 0 auto 16px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-update-banner {
  max-width: 1500px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #fbbf24;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fffbeb;
  color: #92400e;
}

.app-update-banner div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
}

.app-update-banner strong {
  font-size: 14px;
}

.app-update-banner span {
  font-size: 13px;
}

.app-update-banner button {
  flex: 0 0 auto;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  background: #92400e;
  color: #fff;
  font-weight: 800;
}

.view-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 8px;
  background: #fff;
  min-height: 42px;
}

.view-switcher span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.view-switcher select {
  width: auto;
  min-width: 128px;
  max-width: 190px;
  min-height: 34px;
  border: 0;
  padding: 0 4px;
  background: transparent;
  font-weight: 800;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 22px;
}

.dashboard-grid {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(360px, 1fr) minmax(380px, 1.08fr);
  grid-template-areas:
    "market news eastnews"
    "market stocksearch stocksearch"
    "ai ai ai"
    "watch heat heat"
    "sectorfeature sectorfeature sectorfeature"
    "nationalteam nationalteam nationalteam"
    "mainlinemonitor mainlinemonitor mainlinemonitor"
    "etfholdings etfholdings etfholdings"
    "admin admin admin"
    "guide guide guide";
  gap: 12px;
  align-items: start;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(21, 32, 41, 0.05);
}

.heat-row {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.95fr);
  gap: 12px;
  align-self: stretch;
  align-items: stretch;
  height: 100%;
}

.heat-row > .panel {
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
}

.market-panel { grid-area: market; }
.watch-panel { grid-area: watch; }
.news-panel { grid-area: news; }
.eastmoney-news-panel { grid-area: eastnews; }
.stock-search-panel { grid-area: stocksearch; }
.dsa-panel { grid-area: ai; }
.heat-row { grid-area: heat; }
.sector-feature-panel { grid-area: sectorfeature; }
.national-team-panel { grid-area: nationalteam; }
.mainline-monitor-panel { grid-area: mainlinemonitor; }

.etf-holdings-panel { grid-area: etfholdings; }

.etf-toolbar,
.etf-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.etf-category-panel .etf-toolbar {
  gap: 8px;
  align-items: end;
  margin-bottom: 8px;
}

.etf-category-panel .etf-toolbar label {
  gap: 4px;
  width: 210px;
  min-width: 0;
  font-size: 12px;
  font-weight: 750;
}

.etf-category-panel .etf-toolbar label:nth-child(3) {
  width: 150px;
}

.etf-category-panel .etf-toolbar select {
  width: 100%;
  min-height: 34px;
  background-position: right 9px center;
  background-size: 15px;
  padding: 6px 30px 6px 10px;
  font-size: 13px;
  font-weight: 750;
}

.etf-category-panel .etf-toolbar .etf-toolbar-clear {
  min-height: 34px;
  padding: 5px 10px;
}

.etf-toolbar label {
  display: grid;
  gap: 7px;
  min-width: 220px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.etf-toolbar select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  appearance: none;
  background-color: var(--panel);
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5' stroke='%2364758b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 18px;
  color: var(--ink);
  padding: 8px 42px 8px 14px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.etf-toolbar select:disabled {
  color: var(--muted);
  background-color: #f8fafc;
  cursor: not-allowed;
}

.etf-toolbar select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  outline: none;
}

.etf-toolbar button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  padding: 6px 11px;
  cursor: pointer;
}

.etf-toolbar button:disabled {
  cursor: wait;
  opacity: 0.64;
}

.etf-toolbar-clear {
  align-self: end;
  min-height: 44px;
  background: #fff;
  color: var(--muted);
  font-weight: 750;
}

.etf-toolbar-clear:hover {
  border-color: #94a3b8;
  color: var(--ink);
}

.etf-stock-lookup,
.etf-strategy-panel,
.etf-category-panel {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8fafc;
}

.etf-category-panel {
  background: #fff;
  border-color: #cbd5e1;
}

.etf-strategy-panel {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 56%);
}

.etf-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.etf-section-head strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.etf-section-head small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.etf-section-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.etf-section-actions button {
  min-height: 34px;
  border: 1px solid #2563eb;
  border-radius: 7px;
  background: #2563eb;
  color: #fff;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.etf-section-actions .ghost-button {
  border-color: var(--line);
  background: #fff;
  color: var(--muted);
}

.etf-section-actions button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.etf-stock-lookup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.etf-stock-lookup-form label {
  display: grid;
  gap: 6px;
  flex: 1 1 320px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.etf-stock-lookup-form input {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 7px 10px;
  font-size: 15px;
  font-weight: 650;
}

.etf-stock-lookup-form input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  outline: none;
}

.etf-stock-lookup-form button {
  min-height: 36px;
  border: 1px solid #2563eb;
  border-radius: 7px;
  background: #2563eb;
  color: #fff;
  padding: 7px 14px;
  font-weight: 800;
  cursor: pointer;
}

.etf-stock-lookup-form .ghost-button {
  border-color: var(--line);
  background: #fff;
  color: var(--muted);
}

.etf-stock-lookup-form .ghost-button:hover {
  border-color: #94a3b8;
  color: var(--ink);
}

.etf-stock-lookup-form button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.etf-stock-hint {
  margin: -2px 2px 0;
  color: var(--muted);
  font-size: 12px;
}

.etf-stock-selected {
  color: #047857;
  font-weight: 800;
}

.etf-stock-suggestions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 7px;
  margin-top: -2px;
}

.etf-stock-suggest {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 5px 8px;
  align-items: baseline;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 7px 9px;
  text-align: left;
  cursor: pointer;
}

.etf-stock-suggest:hover {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.etf-stock-suggest strong {
  font-size: 14px;
  font-weight: 850;
}

.etf-stock-suggest span {
  color: #0f766e;
  font-size: 13px;
  font-weight: 850;
}

.etf-stock-suggest small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.etf-stock-suggest-empty {
  color: var(--muted);
  font-size: 12px;
  padding: 4px 2px;
}

.etf-stock-no-match {
  display: grid;
  gap: 4px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
  color: #9a3412;
  padding: 10px 12px;
}

.etf-stock-no-match strong {
  color: #c2410c;
  font-size: 15px;
  font-weight: 900;
}

.etf-stock-no-match span {
  color: #9a3412;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.etf-stock-result {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.etf-stock-result-summary {
  height: 100%;
}

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

.etf-stock-result header strong {
  color: var(--ink);
  font-size: 16px;
}

.etf-stock-result header small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.etf-stock-summary-metrics {
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
}

.etf-stock-strategy-signal {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  padding: 8px 10px;
}

.etf-stock-strategy-signal > div:first-child {
  display: grid;
  gap: 2px;
  min-width: 180px;
}

.etf-stock-strategy-signal small,
.etf-stock-strategy-signal span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.etf-stock-strategy-signal strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.etf-stock-strategy-signal.is-priority {
  border-color: #fed7aa;
  background: #fff7ed;
}

.etf-stock-strategy-signal.is-backup {
  border-color: #fde68a;
  background: #fffbeb;
}

.etf-stock-strategy-signal.is-single_watch {
  border-color: #e9d5ff;
  background: #faf5ff;
}

.etf-stock-strategy-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.etf-stock-strategy-pills span {
  border: 1px solid #dbe3ec;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  padding: 3px 7px;
  white-space: nowrap;
}

.etf-stock-strategy-pills b {
  color: #9a3412;
  font-weight: 950;
}

.etf-stock-periods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 7px;
}

.etf-stock-period {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 8px 9px;
}

.etf-stock-period small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.etf-stock-period strong,
.etf-stock-period b {
  font-size: 13px;
  font-weight: 850;
}

.etf-watch-holdings-result {
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

.etf-watch-holdings-result > header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.etf-watch-holdings-result > header strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.etf-watch-holdings-result > header small,
.etf-watch-holdings-result > header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.etf-watch-holdings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 10px;
}

.etf-strategy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.etf-strategy-meta span {
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #fff;
  color: #1e3a8a;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
}

.etf-strategy-reference {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.etf-strategy-ref-card {
  display: grid;
  gap: 4px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  padding: 8px 10px;
}

.etf-strategy-ref-card strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.etf-strategy-ref-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.etf-strategy-ref-card small {
  border-top: 1px dashed #cbd5e1;
  color: #64748b;
  margin-top: 3px;
  padding-top: 4px;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.35;
}

.etf-strategy-source-note {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  background: #fffbeb;
  padding: 8px 10px;
}

.etf-strategy-source-note strong {
  color: #78350f;
  font-size: 12px;
  font-weight: 950;
}

.etf-strategy-source-note span,
.etf-strategy-source-note em {
  border-left: 1px solid #fbbf24;
  color: #92400e;
  padding-left: 7px;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.etf-strategy-source-note em {
  color: #b45309;
}

.etf-strategy-rule-note {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  padding: 8px 10px;
}

.etf-strategy-rule-note strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.etf-strategy-rule-note span {
  border-left: 1px solid #cbd5e1;
  color: #475569;
  padding-left: 7px;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
}

.etf-strategy-insight {
  display: grid;
  gap: 8px;
  border: 1px solid #bfdbfe;
  border-radius: 9px;
  background: #ffffff;
  padding: 10px;
}

.etf-strategy-insight > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.etf-strategy-insight > header strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.etf-strategy-insight > header span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.etf-strategy-insight > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 7px;
}

.etf-strategy-insight article {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-left-width: 4px;
  border-radius: 8px;
  background: #f8fafc;
  padding: 8px;
}

.etf-strategy-insight article.hot {
  border-left-color: #dc2626;
}

.etf-strategy-insight article.cover {
  border-left-color: #2563eb;
}

.etf-strategy-insight article.capital {
  border-left-color: #7c3aed;
}

.etf-strategy-insight article.clean {
  border-left-color: #059669;
}

.etf-strategy-insight article.risk {
  border-left-color: #f97316;
}

.etf-strategy-insight b {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.etf-strategy-insight span {
  min-width: 0;
  color: #334155;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.etf-strategy-groups {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.etf-strategy-primary-stack {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.etf-strategy-group {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.etf-strategy-group > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.etf-strategy-group > header strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.etf-strategy-group > header small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.35;
}

.etf-strategy-group > header span {
  flex: 0 0 auto;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 800;
}

.etf-strategy-group > header b {
  color: #047857;
  font-size: 18px;
}

.etf-strategy-list {
  display: grid;
  gap: 7px;
}

.etf-strategy-card {
  display: grid;
  gap: 7px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.etf-strategy-card > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.etf-strategy-card > header strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.etf-strategy-card > header small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.etf-strategy-card-meta {
  display: flex !important;
  flex-wrap: wrap;
  gap: 3px 7px;
  align-items: center;
}

.etf-strategy-card-meta span {
  color: var(--muted);
}

.etf-strategy-card-meta span:nth-child(2) b {
  color: #111827;
  font-size: 13px;
  font-weight: 950;
}

.etf-strategy-card-meta span:nth-child(3) b {
  color: #b45309;
  font-size: 13px;
  font-weight: 950;
}

.etf-strategy-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.etf-strategy-badges span {
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
}

.etf-strategy-badges .entry-capital_override {
  border-color: #ddd6fe;
  background: #f5f3ff;
  color: #6d28d9;
}

.etf-strategy-badges .entry-single_etf_capital_watch {
  border-color: #fbcfe8;
  background: #fdf2f8;
  color: #be185d;
}

.etf-strategy-badges .capital-strong {
  border-color: #e9d5ff;
  background: #faf5ff;
  color: #7e22ce;
}

.etf-strategy-badges .capital-weak {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

.etf-strategy-badges .risk-watch {
  border-color: #fde68a;
  background: #fffbeb;
  color: #a16207;
}

.etf-strategy-badges .risk-high {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #be123c;
}

.etf-strategy-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin-top: 5px;
}

.etf-strategy-tags b,
.etf-strategy-tags span {
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
}

.etf-strategy-tags b {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
}

.etf-strategy-tags-secondary span {
  border: 1px solid #e7e5e4;
  background: #fafaf9;
  color: #57534e;
}

.etf-strategy-tags-concept span {
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.etf-strategy-card .etf-card-metrics {
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
}

.etf-strategy-etfs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.etf-strategy-etfs span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-width: 0;
  gap: 4px;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  padding: 3px 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.etf-strategy-etfs b {
  color: #334155;
}

.etf-strategy-etfs em {
  min-width: 0;
  overflow: hidden;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.etf-strategy-etfs strong {
  color: #c2410c;
}

@media (max-width: 1120px) {
  .etf-strategy-groups {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 520px) {
  .etf-strategy-etfs {
    grid-template-columns: 1fr;
  }
}

.etf-note,
.etf-status-row,
.etf-failures {
  color: var(--muted);
  font-size: 13px;
}

.etf-daily-status {
  display: grid;
  gap: 9px;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 13px;
}

.etf-daily-status-head,
.etf-daily-status-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}

.etf-daily-status-head strong {
  color: var(--ink);
  font-size: 15px;
}

.etf-daily-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.etf-daily-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #16a34a);
  transition: width 0.24s ease;
}

.etf-status-row {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.etf-failures {
  margin: -4px 0 14px;
}

.etf-failures ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.etf-change-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.etf-change-block {
  min-width: 0;
}

.etf-change-block header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.etf-block-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.etf-change-block header strong {
  min-width: 0;
  font-size: 16px;
  line-height: 1.25;
}

.etf-sort-control {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.etf-sort-control select {
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 3px 24px 3px 9px;
  font-size: 12px;
  font-weight: 750;
}

.etf-block-count {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid #d8e2eb;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.etf-block-count b {
  color: #087f5b;
  font-size: 14px;
  line-height: 1;
}

.etf-change-list {
  display: grid;
  gap: 7px;
}

.etf-change-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.etf-change-card:hover {
  border-color: #b9c8d6;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.etf-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.etf-card-count {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 24px;
  padding: 2px 7px;
  border: 1px solid #dbe6ee;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.etf-card-count small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.etf-card-count b {
  color: #087f5b;
  font-size: 17px;
  line-height: 1;
}

.etf-card-count em {
  color: var(--muted);
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
}

.etf-card-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  justify-content: start;
  gap: 5px;
}

.etf-card-metric {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 3px;
  border-radius: 5px;
  background: #f6f9fb;
  padding: 5px 6px;
}

.etf-card-metric small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
}

.etf-card-metric strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.25;
}

.etf-detail-scroll {
  margin-top: 8px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.etf-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.etf-detail-table th,
.etf-detail-table td {
  padding: 7px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  vertical-align: top;
  white-space: nowrap;
}

.etf-detail-table th:first-child,
.etf-detail-table td:first-child {
  text-align: left;
}

.etf-stock-button {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.etf-stock-main {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.etf-stock-button strong {
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.2;
}

.etf-stock-button small,
.etf-detail-table small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.etf-expand-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid #cbd8e4;
  border-radius: 999px;
  background: #fff;
  color: #356179;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.etf-stock-button:hover .etf-expand-pill,
.etf-stock-button.is-open .etf-expand-pill {
  border-color: #2f80ed;
  background: #eef6ff;
  color: #1d63b7;
}

.etf-detail-table {
  background: #f8fafc;
  overflow: hidden;
}

.national-team-panel { grid-area: nationalteam; }

.nt-status-line {
  margin: -2px 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.nt-status-line.warning {
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 8px 10px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
}

.nt-kpi-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 12px;
}

.nt-kpi-strip > span,
.nt-top-chips button {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 9px;
  background: #fbfdfe;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.nt-kpi-strip > span {
  min-width: 270px;
  padding-right: 18px;
  padding-left: 18px;
}

.nt-kpi-strip strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.nt-kpi-strip strong.up-text {
  color: var(--up);
}

.nt-kpi-strip strong.down-text {
  color: var(--down);
}

.nt-kpi-strip em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.nt-top-chips-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.nt-top-label {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: baseline;
  justify-content: center;
  min-height: 30px;
  padding: 6px 2px 6px 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.nt-top-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
}

.nt-top-chips button {
  min-height: 30px;
  padding-right: 10px;
  padding-left: 10px;
  cursor: pointer;
}

.nt-top-chips button:hover {
  border-color: #99f6e4;
  background: #f0fdfa;
}

.nt-top-chips strong {
  max-width: 110px;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nt-top-chips span {
  color: var(--muted);
  font-size: 12px;
}

.nt-workbench {
  display: grid;
  gap: 12px;
}

.nt-toolbar {
  gap: 8px;
  align-items: end;
  margin-bottom: 10px;
}

.nt-toolbar label {
  gap: 4px;
  min-width: 136px;
  font-size: 12px;
  font-weight: 750;
}

.nt-toolbar label:nth-child(2) {
  min-width: 190px;
}

.nt-toolbar select {
  min-height: 34px;
  background-position: right 9px center;
  background-size: 15px;
  padding: 6px 30px 6px 10px;
  font-size: 13px;
  font-weight: 750;
}

.nt-toolbar .etf-toolbar-clear {
  min-height: 34px;
  padding: 5px 10px;
}

.nt-search-form {
  display: flex;
  min-width: min(170px, 100%);
  gap: 6px;
}

.nt-search-form input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px 8px;
  background: #fff;
  font-size: 12px;
  font-weight: 650;
}

.nt-search-form button {
  min-height: 34px;
  border: 1px solid #99f6e4;
  border-radius: 7px;
  padding: 5px 10px;
  background: #f0fdfa;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.nt-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

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

.nt-table th,
.nt-table td {
  border-bottom: 1px solid #edf2f7;
  padding: 10px;
  text-align: left;
  vertical-align: middle;
}

.nt-table th {
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.nt-table tr.active > td { background: #f0fdfa; }

.nt-stock-button {
  display: inline-grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.nt-expand-cue {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.nt-stock-button:hover .nt-expand-cue,
.nt-stock-button.expanded .nt-expand-cue {
  border-color: rgba(15, 127, 112, 0.28);
  background: #f0fdfa;
  color: var(--accent);
}

.nt-stock-label {
  display: grid;
  min-width: 0;
  gap: 2px;
}

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

.nt-stock-label > span,
.nt-holder em,
.nt-price-pair em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.nt-holder {
  display: grid;
  max-width: 260px;
  gap: 2px;
}

.nt-holder strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nt-status {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 8px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}

.nt-status.盈利,
.nt-status.高利 {
  background: #fff7ed;
  color: #c2410c;
}

.nt-status.被套,
.nt-status.深套 {
  background: #ecfdf5;
  color: #047857;
}

.nt-price-pair {
  display: grid;
  gap: 2px;
}

.nt-change-overview {
  display: grid;
  gap: 2px;
  min-width: 180px;
}

.nt-change-overview strong {
  font-size: 13px;
}

.nt-change-overview em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.nt-detail-row > td {
  padding: 0;
  background: #fbfdfe;
}

.nt-institution-panel {
  margin: 12px 12px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.nt-institution-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 12px;
}

.nt-institution-panel header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.nt-institution-table-wrap {
  overflow-x: auto;
}

.nt-institution-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 12px;
}

.nt-institution-table th,
.nt-institution-table td {
  border-bottom: 1px solid #edf2f7;
  padding: 9px 10px;
  text-align: left;
  vertical-align: middle;
}

.nt-institution-table th {
  background: #f8fafc;
  color: var(--muted);
  font-weight: 900;
}

.nt-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
  gap: 12px;
  padding: 12px;
}

.nt-kline,
.nt-history-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.nt-history-panel {
  display: grid;
  align-content: start;
  overflow: hidden;
}

.nt-history-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 12px;
}

.nt-history-panel header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.nt-history-panel ol {
  display: grid;
  max-height: 320px;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.nt-history-panel li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #edf2f7;
  padding: 10px 12px;
}

.nt-history-panel li span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.nt-history-panel li strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nt-history-panel li em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.nt-cost-line {
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-dasharray: 7 5;
}

.nt-chart-svg { min-height: 260px; }

.admin-panel { grid-area: admin; }
.guide-panel { grid-area: guide; }

@media (min-width: 1121px) {
  .news-panel,
  .eastmoney-news-panel {
    min-height: 0;
  }

  .watch-panel {
    align-self: stretch;
    height: 100%;
    max-height: 780px;
    overflow: auto;
  }
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.section-title h2 {
  margin-bottom: 2px;
  font-size: 17px;
}

.section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.stock-search-panel {
  align-self: start;
}

.stock-search-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.stock-search-head h2 {
  margin-bottom: 2px;
  font-size: 17px;
}

.stock-search-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.stock-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
}

.stock-search-form input {
  min-width: 0;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  font: inherit;
}

.stock-search-form button {
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.stock-search-results {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.stock-search-results button {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  background: #fff;
  text-align: left;
}

.stock-search-results button:hover {
  border-color: var(--accent);
  background: #f0fdfa;
}

.stock-search-results strong,
.stock-search-results span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dsa-empty {
  display: grid;
  gap: 6px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #f8fafc;
}

.dsa-empty strong {
  font-size: 16px;
}

.dsa-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.dsa-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.dsa-form button,
.dsa-history header button {
  min-height: 40px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.dsa-form button:hover:not(:disabled) {
  background: #115e59;
}

.dsa-form input {
  border-color: var(--line);
  background: #f8fafc;
}

.dsa-search-field {
  position: relative;
  min-width: 0;
}

.dsa-search-field input {
  width: 100%;
}

.dsa-search-results {
  position: absolute;
  z-index: 12;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.dsa-search-results.compact {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.dsa-search-results button {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  min-height: 42px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
  color: #0f172a;
  text-align: left;
}

.dsa-search-results button:hover {
  border-color: var(--accent);
  background: #f0fdfa;
}

.dsa-search-results strong,
.dsa-search-results span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dsa-search-results strong {
  font-size: 15px;
}

.dsa-search-results span {
  color: var(--muted);
  font-size: 12px;
}

.dsa-search-note {
  position: absolute;
  z-index: 12;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  margin: 0;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 9px 10px;
  background: #fffbeb;
  color: #92400e;
  font-size: 13px;
}

.dsa-form button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.dsa-quota {
  margin: -6px 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.dsa-quota.unlimited {
  color: var(--accent);
}

.dsa-quota.empty {
  color: #be123c;
}

.dsa-notify {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.dsa-notify input {
  width: 16px;
  min-height: 16px;
}

.dsa-batch-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.dsa-batch-form button {
  min-height: 40px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
}

.dsa-batch-form button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.dsa-batch-form label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.dsa-batch-form input {
  width: 16px;
  min-height: 16px;
}

.dsa-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.dsa-history {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.dsa-history header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.dsa-history header span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dsa-history header span i {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 4px solid #ccfbf1;
  box-shadow: inset 0 0 0 2px var(--accent);
}

.dsa-history header button {
  min-height: 32px;
  padding: 0 10px;
  background: #fff;
  color: var(--accent);
}

.dsa-history-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dsa-history-actions label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.dsa-history-actions input {
  width: 14px;
  min-height: 14px;
}

.dsa-history-actions button.danger {
  border-color: #fed7aa;
  color: var(--warn);
}

.dsa-history-actions button:disabled,
.dsa-history-actions button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.dsa-history-list {
  display: grid;
  gap: 8px;
  max-height: 560px;
  overflow: auto;
  padding-right: 2px;
}

.dsa-history-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.dsa-history-row > input {
  width: 16px;
  min-height: 16px;
}

.dsa-history-spacer {
  width: 16px;
  height: 16px;
}

.dsa-history-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 11px 11px 18px;
  background: #fff;
  text-align: left;
  box-shadow: 0 6px 16px rgba(21, 32, 41, 0.04);
  width: 100%;
}

.dsa-history-card::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 999px;
  background: #d97706;
}

.dsa-history-row.active .dsa-history-card,
.dsa-history-card:hover {
  border-color: var(--accent);
  background: #f0fdfa;
}

.dsa-history-row.pending .dsa-history-card {
  border-color: var(--line);
  background: #fff;
}

.dsa-history-row.pending.active .dsa-history-card,
.dsa-history-row.pending .dsa-history-card:hover {
  border-color: var(--accent);
  background: #f0fdfa;
}

.dsa-history-card.positive::before,
.dsa-history-card:has(.dsa-status-chip.positive)::before {
  background: var(--up);
}

.dsa-history-card.neutral::before,
.dsa-history-card:has(.dsa-status-chip.neutral)::before {
  background: #d97706;
}

.dsa-history-card.negative::before,
.dsa-history-card:has(.dsa-status-chip.negative)::before {
  background: var(--down);
}

.dsa-history-list span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.dsa-history-list strong,
.dsa-history-list em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dsa-history-list strong {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dsa-inline-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid #ccfbf1;
  border-top-color: var(--accent);
  border-radius: 999px;
  flex: 0 0 auto;
  animation: dsa-spin 0.8s linear infinite;
}

@keyframes dsa-spin {
  to {
    transform: rotate(360deg);
  }
}

.dsa-history-list em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.dsa-history-list b,
.dsa-history-score {
  color: var(--accent);
  font-size: 16px;
}

.dsa-history-score.positive {
  color: var(--up);
}

.dsa-history-score.neutral {
  color: #a16207;
}

.dsa-history-score.negative {
  color: var(--down);
}

.dsa-history-list i,
.dsa-status-chip {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.dsa-status-chip {
  justify-self: start;
  max-width: 72px;
  overflow: hidden;
  border-radius: 999px;
  padding: 1px 6px;
  line-height: 1.25;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dsa-status-chip.positive {
  border: 1px solid #fde2d0;
  background: #fff7ed;
  color: #9a3412;
}

.dsa-status-chip.neutral {
  border: 1px solid #fde2d0;
  background: #fff7ed;
  color: #9a3412;
}

.dsa-status-chip.negative {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: var(--down);
}

.dsa-report-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.dsa-report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 14px;
  align-items: start;
}

.dsa-report-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.dsa-report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.dsa-report-card h3 {
  margin-bottom: 3px;
  font-size: 22px;
  color: #0f172a;
}

.dsa-report-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.dsa-report-head p span {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 8px;
  background: #f0fdfa;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.dsa-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
}

.dsa-action-pill,
.dsa-trend-pill {
  max-width: 120px;
  overflow: hidden;
  border: 1px solid #fde2d0;
  border-radius: 999px;
  padding: 3px 8px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dsa-action-pill.positive {
  border-color: #fde2d0;
  background: #fff7ed;
  color: #9a3412;
}

.dsa-action-pill.negative {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: var(--down);
}

.dsa-action-pill.neutral,
.dsa-trend-pill {
  border-color: #fde2d0;
  background: #fff7ed;
  color: #9a3412;
}

.dsa-score-card {
  --score-main: #a16207;
  --score-soft: #fffbeb;
  --score-track: #fde68a;
  --score-shadow: rgba(154, 52, 18, 0.12);
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 280px;
  border: 1px solid var(--score-soft);
  border-radius: 8px;
  padding: 24px 12px;
  background: linear-gradient(180deg, var(--score-soft) 0%, #ffffff 62%);
}

.dsa-score-card.very-positive {
  --score-main: var(--up);
  --score-soft: #fff7ed;
  --score-track: #fed7aa;
  --score-shadow: rgba(194, 65, 12, 0.14);
}

.dsa-score-card.positive {
  --score-main: #b45309;
  --score-soft: #fffbeb;
  --score-track: #fde68a;
  --score-shadow: rgba(180, 83, 9, 0.14);
}

.dsa-score-card.neutral {
  --score-main: #a16207;
  --score-soft: #fffbeb;
  --score-track: #fde68a;
  --score-shadow: rgba(161, 98, 7, 0.14);
}

.dsa-score-card.negative {
  --score-main: #0f766e;
  --score-soft: #f0fdfa;
  --score-track: #99f6e4;
  --score-shadow: rgba(15, 118, 110, 0.14);
}

.dsa-score-card.very-negative {
  --score-main: var(--down);
  --score-soft: #f0fdf4;
  --score-track: #bbf7d0;
  --score-shadow: rgba(4, 120, 87, 0.14);
}

.dsa-score-card.pending {
  --score-main: var(--accent);
  --score-soft: #f0fdfa;
  --score-track: #99f6e4;
  --score-shadow: rgba(15, 118, 110, 0.14);
}

.dsa-score-card > span {
  color: var(--score-main);
  font-size: 13px;
  font-weight: 900;
}

.dsa-score-ring {
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, #fff 0 58%, transparent 59%),
    conic-gradient(var(--score-main) calc(var(--score) * 1%), var(--score-track) 0);
  box-shadow: 0 16px 30px var(--score-shadow);
}

.dsa-score-ring strong {
  font-size: 34px;
  line-height: 1;
  color: #111827;
}

.dsa-score-card b {
  color: var(--score-main);
  font-size: 15px;
  font-weight: 900;
}

.dsa-score-card p {
  color: #64748b;
  font-size: 13px;
  text-align: center;
}

.dsa-summary-box {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 14px;
  background: #f8fafc;
}

.dsa-summary-box h4 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 14px;
}

.dsa-summary-box p {
  color: #334155;
}

.dsa-progress-track {
  height: 8px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.dsa-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #14b8a6);
}

.dsa-kpis,
.dsa-strategy > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.dsa-kpis span,
.dsa-strategy span {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.dsa-kpis span {
  background: #f8fafc;
}

.dsa-strategy span.buy {
  border-color: #f3d4bd;
  background: #fffdfb;
}

.dsa-strategy span.add {
  border-color: #c5e7de;
  background: #fbfefd;
}

.dsa-strategy span.risk {
  border-color: #cfe8d9;
  background: #fbfefc;
}

.dsa-strategy span.target {
  border-color: #eadb9b;
  background: #fffefa;
}

.dsa-kpis i,
.dsa-strategy i {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.dsa-kpis strong,
.dsa-strategy strong {
  display: block;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.dsa-kpis strong.positive {
  color: var(--up);
}

.dsa-kpis strong.negative {
  color: var(--down);
}

.dsa-kpis strong.neutral {
  color: #a16207;
}

.dsa-board-section h4,
.dsa-strategy h4,
.dsa-news-section h4 {
  margin: 0 0 8px;
  font-size: 15px;
}

.dsa-news-list {
  gap: 8px;
}

.dsa-news-list li {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

.dsa-news-section {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.dsa-news-section header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.dsa-news-section header p,
.dsa-news-switch {
  display: flex;
  gap: 6px;
  margin: 0;
}

.dsa-news-switch button {
  border-radius: 999px;
  padding: 3px 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.dsa-news-switch button.active {
  border-color: #fde2d0;
  background: #fff7ed;
  color: #9a3412;
}

.dsa-news-switch button:hover {
  border-color: #fde2d0;
  color: #9a3412;
}

.dsa-news-note {
  margin: 0 0 8px;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fffbeb;
  color: #a16207;
  font-size: 12px;
}

.dsa-news-list li > span {
  width: auto;
  min-width: 34px;
  border-radius: 999px;
  padding: 2px 7px;
  border: 1px solid #fde2d0;
  background: #fff7ed;
  color: #9a3412;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
  white-space: nowrap;
}

.dsa-news-list li.announcement > span {
  border-color: #fde2d0;
  background: #fff7ed;
  color: #9a3412;
}

.stock-search-results strong {
  color: var(--accent);
  font-size: 14px;
}

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

.compact-empty {
  margin-top: 10px;
  padding: 10px;
}

.loading {
  height: 24px;
  white-space: nowrap;
  border-radius: 999px;
  padding: 4px 8px;
  background: #e0f2fe;
  color: #075985;
  font-size: 12px;
}

.warning,
.banner,
.error {
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff7ed;
  color: var(--warn);
  font-size: 13px;
}

.etf-lookup-warning {
  display: grid;
  gap: 3px;
  border: 1px solid #fed7aa;
}

.etf-lookup-warning strong {
  color: #9a3412;
  font-size: 14px;
  font-weight: 900;
}

.etf-lookup-warning span {
  color: #9a3412;
  font-size: 13px;
  font-weight: 750;
}

.etf-lookup-warning.is-hint {
  border-color: #dbeafe;
  background: #eff6ff;
}

.etf-lookup-warning.is-hint strong,
.etf-lookup-warning.is-hint span {
  color: #1e3a8a;
}

.banner {
  max-width: 1500px;
  margin: 0 auto 14px;
}

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

.quote-card {
  min-height: 108px;
  display: grid;
  align-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfdfe;
}

.quote-card span,
.watch-main span,
.hot-list em,
.post-list p {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.quote-card h3 {
  margin: 3px 0 6px;
  font-size: 14px;
}

.quote-card strong {
  font-size: 21px;
  line-height: 1;
}

.quote-card p {
  margin: 6px 0 0;
  font-size: 12px;
}

.quote-grid-empty {
  display: block;
}

.quote-grid-empty .empty {
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
}

.quote-card.up strong,
.quote-card.up p,
.up-text {
  color: var(--up);
}

.quote-card.down strong,
.quote-card.down p,
.down-text {
  color: var(--down);
}

.market-breadth {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.market-breadth header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.market-breadth h3 {
  margin: 0 0 2px;
  font-size: 17px;
}

.market-breadth header p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.breadth-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 10px;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.breadth-summary strong {
  color: var(--ink);
  font-size: 18px;
}

.breadth-summary b {
  font-size: 16px;
}

.breadth-bars {
  min-height: 138px;
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  align-items: end;
  gap: 5px;
  margin-top: 4px;
}

.breadth-bar {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 5px;
}

.breadth-bar strong {
  height: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.breadth-bar i {
  width: min(100%, 28px);
  min-height: 6px;
  display: block;
  border-radius: 2px 2px 0 0;
  background: #9ca3af;
}

.breadth-bar.up i {
  background: linear-gradient(180deg, #ef4444, #fecaca);
}

.breadth-bar.down i {
  background: linear-gradient(180deg, #22c55e, #bbf7d0);
}

.breadth-bar.up strong,
.breadth-bar.up span {
  color: var(--up);
}

.breadth-bar.down strong,
.breadth-bar.down span {
  color: var(--down);
}

.breadth-bar span {
  max-width: 42px;
  min-height: 28px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.15;
  text-align: center;
}

.breadth-ratio {
  height: 10px;
  display: grid;
  grid-template-columns: minmax(4%, var(--up-ratio)) 1fr;
  gap: 3px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--down);
}

.breadth-ratio span {
  border-radius: inherit;
  background: var(--up);
}

.market-breadth footer {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 16px;
}

.watch-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  align-items: stretch;
  margin-top: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.watch-form input {
  min-width: 0;
  height: 42px;
}

.watch-form button {
  grid-column: 1 / -1;
  min-width: 0;
  white-space: nowrap;
}

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

.watch-image-form {
  margin: 0;
  padding: 0;
}

.watch-action-button {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 0 14px;
  background: #fff;
  color: var(--accent);
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

.watch-action-button:hover {
  background: #f0fdfa;
}

.watch-action-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.watch-list {
  display: grid;
  gap: 8px;
}

.watch-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.watch-summary div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fbfdfe;
}

.watch-summary span,
.watch-summary b {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watch-summary strong {
  display: block;
  overflow: hidden;
  margin: 3px 0 1px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watch-summary strong.up-text,
.watch-summary b.up-text {
  color: var(--up);
}

.watch-summary strong.down-text,
.watch-summary b.down-text {
  color: var(--down);
}

.watch-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px 58px;
  gap: 8px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
}

.watch-item.active {
  border-color: var(--accent);
  background: #f0fdfa;
}

.watch-main {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.watch-name-line {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.watch-name-line strong {
  overflow: hidden;
  color: var(--accent);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-metrics {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.compact-metrics span {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  min-width: 0;
}

.compact-metrics i {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.25;
  white-space: nowrap;
}

.compact-metrics i.up-text {
  color: var(--up);
}

.compact-metrics i.down-text {
  color: var(--down);
}

.watch-name-line em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watch-name-line em,
.watch-quote small {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.watch-quote {
  display: grid;
  justify-items: end;
  gap: 2px;
  min-width: 0;
}

.watch-quote strong {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
}

.watch-quote b {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
}

.watch-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  width: 58px;
}

.watch-actions button {
  min-width: 0;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 6px;
  background: #fff;
  font-size: 12px;
  white-space: nowrap;
}

.watch-actions button:disabled {
  display: none;
}

.watch-item .hot-tags {
  flex-wrap: wrap;
  overflow: visible;
}

.watch-item .hot-tags i {
  max-width: none;
}

.holding-form {
  grid-column: 1 / -1;
}

.holding-form {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.holding-form.open {
  display: grid;
}

.holding-form label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
}

.holding-form input {
  min-height: 34px;
  padding: 0 9px;
}

.holding-form button {
  min-height: 34px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 0 12px;
  background: #fff;
  color: var(--accent);
  font-weight: 800;
}

.news-list,
.hot-list,
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.hot-list {
  gap: 5px;
}

.sector-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-list li,
.hot-list li,
.post-list li {
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.hot-list li {
  padding-bottom: 5px;
}

.news-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 8px;
}

.news-list span,
.hot-list > li > span {
  color: var(--accent-2);
  font-weight: 800;
}

.news-list a,
.post-list a,
.link-button,
.post-button {
  line-height: 1.45;
}

.link-button small,
.post-button small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.link-button,
.post-button,
.hot-button {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.link-button:hover,
.post-button:hover,
.hot-button:hover {
  color: var(--accent);
}

.post-button {
  display: grid;
  gap: 6px;
}

.post-button span {
  font-size: 15px;
  font-weight: 750;
}

.post-button small {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  line-height: 1.5;
}

.hot-list li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 82px;
  gap: 6px;
  align-items: start;
}

.sector-list {
  display: grid;
  gap: 7px;
}

.mainline-monitor-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.mainline-monitor-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.mainline-monitor-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.12;
}

.mainline-monitor-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.mainline-monitor-head button {
  min-height: 34px;
  border: 1px solid #0f766e;
  border-radius: 999px;
  background: #0f766e;
  color: #fff;
  padding: 0 13px;
  font-weight: 900;
  white-space: nowrap;
}

.mainline-monitor-head button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.mainline-monitor-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.mainline-monitor-actions .ghost-button {
  border-color: #cbd5e1;
  background: #fff;
  color: #475569;
}

.mainline-monitor-rule-note {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  border: 1px solid #dbe5ea;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  padding: 9px 10px;
  font-size: 12px;
  font-weight: 800;
}

.mainline-monitor-rule-note span {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dbe5ea;
  border-radius: 999px;
  background: #fff;
  padding: 4px 9px;
  color: #475569;
  line-height: 1.35;
}

.mainline-monitor-rule-note .stage-note {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.mainline-monitor-rule-note .score-note {
  border-color: #ddd6fe;
  background: #f5f3ff;
  color: #6d28d9;
}

.mainline-monitor-rule-note .period-note {
  border-color: #99f6e4;
  background: #f0fdfa;
  color: #0f766e;
}

.mainline-monitor-rule-note .etf-note-chip {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

.mainline-monitor-rule-note .combo-note {
  flex: 1 1 100%;
  justify-content: flex-start;
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1e40af;
  white-space: normal;
}

.mainline-alerts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mainline-alerts span,
.mainline-score-row em {
  border-radius: 999px;
  padding: 3px 9px;
  background: #eef6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.mainline-alerts.quiet span {
  background: #f8fafc;
  color: var(--muted);
}

.mainline-monitor-rule-note .signal-new,
.mainline-alerts .signal-new,
.mainline-score-row em.signal-new,
.mainline-monitor-row em.signal-new {
  border-color: #fda4af;
  background: #fff1f2;
  color: #be123c;
}

.mainline-monitor-rule-note .signal-accelerate,
.mainline-alerts .signal-accelerate,
.mainline-score-row em.signal-accelerate,
.mainline-monitor-row em.signal-accelerate {
  border-color: #fdba74;
  background: #fff7ed;
  color: #c2410c;
}

.mainline-monitor-rule-note .signal-upgrade,
.mainline-alerts .signal-upgrade,
.mainline-score-row em.signal-upgrade,
.mainline-monitor-row em.signal-upgrade {
  border-color: #c4b5fd;
  background: #f5f3ff;
  color: #6d28d9;
}

.mainline-monitor-rule-note .signal-cool,
.mainline-alerts .signal-cool,
.mainline-score-row em.signal-cool,
.mainline-monitor-row em.signal-cool {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}

.mainline-monitor-rule-note .signal-fade,
.mainline-alerts .signal-fade,
.mainline-score-row em.signal-fade,
.mainline-monitor-row em.signal-fade {
  border-color: #86efac;
  background: #dcfce7;
  color: #166534;
}

.mainline-monitor-rule-note .signal-repair,
.mainline-alerts .signal-repair,
.mainline-score-row em.signal-repair,
.mainline-monitor-row em.signal-repair {
  border-color: #67e8f9;
  background: #ecfeff;
  color: #0e7490;
}

.mainline-monitor-list {
  overflow-x: auto;
  border: 1px solid #dbe5ea;
  border-radius: 8px;
  background: #fff;
}

.mainline-monitor-row {
  display: grid;
  grid-template-columns: 34px minmax(250px, 1.7fr) 62px 54px repeat(3, 58px) 72px 52px 118px 66px 76px;
  gap: 7px;
  align-items: center;
  min-width: 980px;
  min-height: 42px;
  border-top: 1px solid #e5edf2;
  padding: 6px 9px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.mainline-monitor-row:first-child {
  border-top: 0;
}

.mainline-monitor-row-head {
  min-height: 34px;
  background: #f8fafc;
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
}

.mainline-monitor-family-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #dbe5ea;
  background: #f1f8f7;
  color: #0f766e;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 950;
}

.mainline-monitor-family-row strong {
  color: #0f766e;
  font-size: 13px;
}

.mainline-monitor-family-row span {
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
}

.mainline-monitor-row.established {
  border-left: 4px solid #dc2626;
}

.mainline-monitor-row.developing {
  border-left: 4px solid #f59e0b;
}

.mainline-monitor-row.watching {
  border-left: 4px solid #2563eb;
}

.mainline-monitor-row.fading {
  border-left: 4px solid #059669;
}

.mainline-monitor-rank {
  color: #64748b;
}

.mainline-monitor-name {
  display: grid;
  min-width: 0;
}

.mainline-monitor-name strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mainline-monitor-name small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mainline-branch-count {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  border: 1px solid #d7e6ef;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  padding: 2px 7px;
  white-space: nowrap;
}

.mainline-branch-count b {
  color: #0f766e;
  font-size: 15px;
  font-weight: 950;
}

.mainline-branch-count i {
  color: var(--ink);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.mainline-branch-count small {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
}

.mainline-monitor-score {
  color: #0f766e;
  font-size: 15px;
  font-weight: 950;
}

.mainline-monitor-row .mainline-stage {
  justify-self: start;
  padding: 3px 8px;
  font-size: 12px;
}

.mainline-monitor-row em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef6ff;
  color: #1d4ed8;
  padding: 2px 7px;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.mainline-monitor-row button {
  min-height: 26px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #24516a;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.mainline-monitor-row:not(.mainline-monitor-row-head):hover {
  background: #fbfdff;
}

.mainline-monitor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 10px;
}

.mainline-monitor-card {
  display: grid;
  gap: 9px;
  border: 1px solid #dbe5ea;
  border-left: 5px solid #94a3b8;
  border-radius: 8px;
  background: #fff;
  padding: 11px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.mainline-monitor-card.established {
  border-left-color: #dc2626;
}

.mainline-monitor-card.developing {
  border-left-color: #f59e0b;
}

.mainline-monitor-card.watching {
  border-left-color: #2563eb;
}

.mainline-monitor-card.fading {
  border-left-color: #059669;
}

.mainline-monitor-card > header,
.mainline-score-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.mainline-monitor-card > header strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.15;
}

.mainline-monitor-card > header small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.mainline-stage {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 4px 10px;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.mainline-stage.established {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.mainline-stage.developing {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

.mainline-stage.watching {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.mainline-stage.cooling {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}

.mainline-stage.fading {
  border-color: #86efac;
  background: #dcfce7;
  color: #166534;
}

.mainline-score-row b {
  color: var(--ink);
  font-size: 26px;
  font-weight: 950;
  line-height: 1;
}

.mainline-score-row button {
  margin-left: auto;
  min-height: 28px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #24516a;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.mainline-factor-bars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.mainline-factor-bars span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.mainline-factor-bars small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.mainline-factor-bars i {
  overflow: hidden;
  height: 6px;
  border-radius: 999px;
  background: #edf2f7;
}

.mainline-factor-bars u {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #0f766e);
}

.mainline-factor-bars b {
  color: var(--ink);
  font-size: 12px;
  line-height: 1;
}

.mainline-monitor-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.mainline-monitor-metrics span {
  min-width: 0;
  border-radius: 7px;
  background: #f8fafc;
  padding: 6px 7px;
}

.mainline-monitor-metrics small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.mainline-monitor-metrics b {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mainline-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.mainline-evidence span {
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fbfdfe;
  color: #475569;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 720px) {
  .mainline-monitor-head,
  .mainline-monitor-card > header,
  .mainline-score-row {
    align-items: flex-start;
  }

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

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

.mainline-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mainline-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding: 8px 0 9px;
}

.mainline-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: -2px 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.mainline-list-toolbar button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
  background: #fbfdfe;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

@media (min-width: 1121px) {
  .heat-row .hot-list {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .heat-row .hot-list li {
    min-width: 0;
    padding-bottom: 6px;
  }
}

.mainline-rank {
  color: #2563eb;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
}

.mainline-content {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.mainline-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.mainline-top strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mainline-top b {
  font-size: 16px;
  line-height: 1.1;
  white-space: nowrap;
}

.mainline-top button {
  min-height: 25px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0 9px;
  background: #fff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.mainline-lead {
  width: max-content;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid #fde2d0;
  border-radius: 999px;
  padding: 2px 8px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mainline-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 10px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.2;
}

.mainline-foot span {
  min-width: 0;
}

.sector-list li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) minmax(182px, auto);
  gap: 8px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.sector-list > li > span {
  color: var(--accent-2);
  font-weight: 800;
}

.sector-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.sector-feature {
  display: grid;
  gap: 12px;
}

.sector-feature-tabs,
.sector-toolbar,
.sector-replay {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.sector-feature-tabs button,
.sector-toolbar button,
.sector-replay button,
.sector-flow-picker button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
  color: var(--ink);
  padding: 6px 10px;
  font-weight: 750;
}

.sector-feature-tabs button.active {
  border-color: rgba(15, 118, 110, 0.35);
  background: rgba(15, 118, 110, 0.1);
  color: var(--accent);
}

.sector-toolbar {
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.sector-toolbar label,
.sector-replay label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sector-toolbar select {
  min-width: 136px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fbfdfe;
  color: var(--ink);
}

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

.sector-overview-card {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 236px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
  color: var(--ink);
  padding: 12px;
  text-align: left;
  box-shadow: none;
}

.sector-overview-card:hover {
  border-color: rgba(15, 118, 110, 0.35);
  background: #f8fcfb;
}

.sector-overview-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.sector-overview-card header strong {
  color: var(--ink);
  font-size: 17px;
  letter-spacing: 0;
}

.sector-overview-card header em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.overview-rank-list {
  display: grid;
  gap: 7px;
}

.overview-rank-list span {
  display: grid;
  grid-template-columns: 28px minmax(76px, 0.55fr) minmax(80px, 1fr) 64px;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.overview-rank-list b {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.overview-rank-list .up b { background: rgba(194, 65, 12, 0.88); }
.overview-rank-list .down b { background: rgba(4, 120, 87, 0.88); }

.overview-rank-list i {
  overflow: hidden;
  color: var(--ink);
  font-style: normal;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-rank-list em {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef2;
}

.overview-rank-list u {
  display: block;
  height: 100%;
  border-radius: inherit;
  text-decoration: none;
}

.overview-rank-list .up u { background: rgba(194, 65, 12, 0.72); }
.overview-rank-list .down u { background: rgba(4, 120, 87, 0.72); }

.overview-rank-list strong {
  justify-self: end;
  font-size: 13px;
  font-weight: 800;
}

.overview-rank-list hr {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
}

.overview-flow-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.overview-flow-chart rect {
  fill: #ffffff;
  stroke: var(--line);
}

.overview-flow-chart line {
  stroke: #dbe4ef;
  stroke-dasharray: 3 4;
}

.overview-flow-chart polyline {
  fill: none;
  stroke-width: 1.7;
  opacity: 0.74;
}

.overview-flow-chart text {
  fill: #64748b;
  font-size: 12px;
}

.overview-flow-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
  font-size: 13px;
}

.overview-flow-list span {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) 82px;
  align-items: center;
  gap: 10px;
}

.overview-flow-list i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.overview-flow-list b {
  overflow: hidden;
  color: var(--ink);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-flow-list strong {
  justify-self: end;
  color: var(--up);
}

.overview-flow-list strong.down {
  color: var(--down);
}

.overview-flow-list strong.flat {
  color: var(--muted);
}

.card-loading {
  color: var(--muted);
  font-weight: 750;
}

.sector-flow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 206px;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfdfe;
}

.sector-flow-chart-panel {
  min-width: 0;
}

.sector-flow-title {
  display: grid;
  justify-items: center;
  gap: 2px;
  margin-bottom: 8px;
}

.sector-flow-title strong {
  font-size: 15px;
}

.sector-flow-title span {
  color: var(--muted);
  font-size: 13px;
}

.sector-flow-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.sector-flow-line {
  fill: none;
  stroke-width: 1.5;
  opacity: 0.86;
}

.sector-flow-label {
  fill: var(--muted);
  font-size: 12px;
}

.sector-flow-hover-line {
  stroke: #94a3b8;
  stroke-dasharray: 4 4;
  stroke-width: 1;
  opacity: 0.8;
}

.sector-flow-hover-point {
  stroke: #fff;
  stroke-width: 1.6;
}

.sector-flow-tooltip {
  filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.18));
  pointer-events: none;
}

.sector-flow-tooltip rect {
  fill: rgba(255, 255, 255, 0.94);
  stroke: var(--line);
  stroke-width: 1;
}

.sector-flow-tooltip-time {
  fill: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.sector-flow-tooltip-name {
  fill: var(--ink);
  font-size: 12px;
  font-weight: 650;
}

.sector-flow-tooltip-value {
  fill: var(--ink);
  font-size: 12px;
  font-weight: 850;
  text-anchor: end;
}

.sector-flow-tooltip-more {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.sector-flow-picker {
  display: grid;
  align-self: start;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-left: 1px solid var(--line);
}

.sector-flow-picker-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.sector-flow-picker button {
  min-height: 34px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
}

.sector-flow-picker button:hover {
  background: #f3f7f9;
  color: var(--teal);
}

.sector-flow-checks {
  display: grid;
  align-content: start;
  gap: 5px;
  min-height: 0;
  height: 100%;
  overflow: auto;
  padding: 10px 8px;
}

.sector-flow-checks label {
  display: grid;
  grid-template-columns: 18px 10px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 32px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
  padding: 0 6px;
}

.sector-flow-checks label.active {
  background: #f5f8fb;
}

.sector-flow-checks input {
  width: 15px;
  height: 15px;
  margin: 0;
}

.sector-flow-checks i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.sector-flow-checks span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sector-flow-picker-meta {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  padding: 0 10px;
}

.sector-replay {
  min-height: 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.sector-replay input {
  width: 140px;
}

.sector-ranking-scroll {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
}

.sector-ranking-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  font-size: 13px;
}

.sector-ranking-table th,
.sector-ranking-table td {
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
  text-align: right;
  white-space: nowrap;
}

.sector-ranking-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7fafb;
  color: var(--muted);
  font-weight: 750;
}

.sector-ranking-table th:first-child,
.sector-ranking-table td:first-child,
.sector-ranking-table th:nth-child(2),
.sector-ranking-table td:nth-child(2) {
  text-align: left;
}

.sector-ranking-table th:last-child,
.sector-ranking-table td:last-child {
  text-align: center;
}

.sector-ranking-table th button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.sector-name-button {
  display: grid;
  justify-items: start;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.sector-name-button:hover strong {
  color: var(--primary);
}

.sector-ranking-table td strong {
  display: block;
  color: var(--ink);
}

.sector-ranking-table td small {
  color: var(--muted);
}

.sector-heat.up-text {
  background: rgba(218, 92, 55, var(--heat, 0));
  color: #b93b11;
  font-weight: 800;
}

.sector-heat.down-text {
  background: rgba(28, 137, 99, var(--heat, 0));
  color: #047857;
  font-weight: 800;
}

.sector-heat.flat {
  color: var(--muted);
  font-weight: 750;
}

.sector-history-missing,
.sector-history-note {
  color: var(--muted);
  font-weight: 750;
}

.sector-history-note {
  display: inline-block;
  max-width: 112px;
  white-space: normal;
  line-height: 1.25;
  font-size: 12px;
}

.sector-sparkline {
  width: 112px;
  height: 36px;
  overflow: visible;
}

.sector-sparkline .spark-guide {
  stroke: rgba(100, 116, 139, 0.18);
  stroke-width: 1;
}

.sector-sparkline .spark-line {
  fill: none;
  stroke: #94a3b8;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.sector-sparkline circle {
  fill: #94a3b8;
  stroke: #fff;
  stroke-width: 1.2;
}

.sector-sparkline.up-text .spark-line {
  stroke: #c2410c;
  fill: none;
}

.sector-sparkline.up-text circle {
  fill: #c2410c;
  stroke: #c2410c;
}

.sector-sparkline.down-text .spark-line {
  stroke: #047857;
  fill: none;
}

.sector-sparkline.down-text circle {
  fill: #047857;
  stroke: #047857;
}

.sector-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sector-main em,
.sector-meta small {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.sector-leader {
  display: inline-block;
  width: max-content;
  max-width: 190px;
  overflow: hidden;
  border: 1px solid #fde2d0;
  border-radius: 999px;
  padding: 1px 7px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sector-meta {
  display: grid;
  grid-template-columns: minmax(70px, auto) auto;
  gap: 8px;
  align-items: center;
  justify-content: end;
  white-space: nowrap;
}

.sector-stat {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.sector-stat strong {
  font-size: 18px;
}

.sector-meta button {
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 3px 8px;
  background: #fff;
  color: var(--accent);
  font-size: 11px;
  line-height: 1.15;
  font-weight: 900;
}

.sector-detail-panel {
  width: min(760px, 100%);
}

.sector-detail-panel.enhanced {
  width: min(1040px, 100%);
}

.sector-detail-panel.enhanced > header {
  align-items: flex-start;
  gap: 14px;
}

.sector-stock-rule-note {
  display: flex;
  flex: 1 1 520px;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 280px;
  margin-left: auto;
}

.sector-stock-rule-note span {
  border: 1px solid #dbe5ea;
  border-radius: 999px;
  background: #fff;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.35;
  white-space: nowrap;
}

.sector-stock-rule-note .score {
  border-color: #c4b5fd;
  background: #f5f3ff;
  color: #6d28d9;
}

.sector-stock-rule-note .etf {
  border-color: #fdba74;
  background: #fff7ed;
  color: #c2410c;
}

.sector-stock-rule-note .tag {
  border-color: #5eead4;
  background: #f0fdfa;
  color: #0f766e;
}

.sector-stock-rule-note .sort {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

.sector-stock-rule-note .risk {
  border-color: #facc15;
  background: #fef9c3;
  color: #a16207;
}

.sector-stock-content {
  padding: 16px;
  max-height: min(72vh, 680px);
  overflow: auto;
}

.sector-stock-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sector-stock-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 86px;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}

.sector-stock-list li.enhanced {
  grid-template-columns: 34px minmax(0, 1fr) 118px;
  align-items: start;
  padding: 8px 0;
}

.sector-stock-list > li > span:first-child {
  color: var(--accent-2);
  font-weight: 900;
}

.sector-stock-list button {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.sector-stock-list button:hover {
  color: var(--accent);
}

.sector-stock-list button strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sector-stock-list em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.sector-stock-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.sector-stock-sort-box {
  display: grid;
  justify-items: end;
  gap: 4px;
  max-width: min(100%, 620px);
}

.sector-stock-sort-box label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.sector-stock-sort-box select {
  min-width: 138px;
  border: 1px solid #dbe5ea;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 7px 28px 7px 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.sector-stock-sort-box p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  text-align: right;
}

.sector-stock-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
  font-style: normal;
}

.sector-stock-tags small {
  border: 1px solid #dbe5ea;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.2;
}

.sector-stock-tags .etf {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #475569;
}

.sector-stock-tags .etf.hold {
  border-color: #94a3b8;
  background: #e2e8f0;
  color: #334155;
}

.sector-stock-tags .etf.new {
  border-color: #60a5fa;
  background: #dbeafe;
  color: #1d4ed8;
}

.sector-stock-tags .etf.strong {
  border-color: #fb923c;
  background: #ffedd5;
  color: #c2410c;
}

.sector-stock-tags .etf.large {
  border-color: #fb7185;
  background: #ffe4e6;
  color: #be123c;
}

.sector-stock-tags .reason.flow {
  border-color: #4ade80;
  background: #dcfce7;
  color: #047857;
}

.sector-stock-tags .reason.amount {
  border-color: #818cf8;
  background: #e0e7ff;
  color: #4338ca;
}

.sector-stock-tags .reason.trend {
  border-color: #2dd4bf;
  background: #ccfbf1;
  color: #0f766e;
}

.sector-stock-tags .reason.etf {
  border-color: #38bdf8;
  background: #e0f2fe;
  color: #0369a1;
}

.sector-stock-tags .reason.caution {
  border-color: #facc15;
  background: #fef9c3;
  color: #a16207;
}

.sector-stock-list > li > span:last-child {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.sector-stock-list > li > span:last-child em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.sector-stock-list > li > span:last-child .sector-stock-score,
.sector-stock-list > li > span:last-child .sector-stock-side-meta {
  border: 1px solid #dbe5ea;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.sector-stock-list > li > span:last-child .sector-stock-score.medium {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

.sector-stock-list > li > span:last-child .sector-stock-score.strong {
  border-color: #fecaca;
  background: #fff1f2;
  color: #be123c;
}

.sector-stock-list > li > span:last-child .sector-stock-side-meta {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.hot-list a,
.hot-button {
  display: grid;
  gap: 5px;
}

.hot-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.hot-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hot-quote {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 3px;
  min-width: 0;
}

.hot-quote small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
}

.hot-quote strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.15;
}

.hot-quote b {
  font-size: 13px;
  line-height: 1.15;
}

.hot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.hot-tags i {
  max-width: 92px;
  overflow: hidden;
  border: 1px solid #fde2d0;
  border-radius: 999px;
  padding: 1px 5px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 11px;
  font-style: normal;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.stock-chips button {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: #fff;
}

.stock-chips button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.stock-kline {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.stock-kline header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.stock-kline header div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.stock-kline strong {
  color: var(--accent);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
}

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

.chart-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.chart-tabs button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.chart-tabs button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.chart-readout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.chart-readout span {
  display: flex;
  min-width: 0;
  gap: 5px;
  align-items: baseline;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.chart-readout i {
  flex: 0 0 auto;
  font-style: normal;
}

.chart-readout b {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-chart-svg {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.chart-bg {
  fill: #fbfdfe;
}

.chart-grid {
  stroke: #dbe3ea;
  stroke-width: 1;
}

.chart-crosshair {
  stroke: #647281;
  stroke-dasharray: 4 4;
  stroke-width: 1;
  opacity: 0.65;
}

.chart-axis,
.chart-x-label {
  fill: #647281;
  font-size: 11px;
}

.chart-x-label {
  text-anchor: middle;
}

.chart-line {
  fill: none;
  stroke: var(--accent-2);
  stroke-width: 2;
}

.chart-average {
  fill: none;
  stroke: #f59e0b;
  stroke-width: 1.5;
}

.chart-ma {
  fill: none;
  stroke-width: 1.35;
}

.chart-ma.ma5 {
  stroke: #94a3b8;
}

.chart-legend.ma5 {
  fill: #94a3b8;
}

.chart-ma.ma10 {
  stroke: #f59e0b;
}

.chart-legend.ma10 {
  fill: #f59e0b;
}

.chart-ma.ma20 {
  stroke: #0f7f63;
}

.chart-legend.ma20 {
  fill: #0f7f63;
}

.chart-legend {
  font-size: 11px;
  font-weight: 800;
}

.chart-candle-wick.up,
.chart-candle.up,
.chart-volume.up {
  stroke: var(--up);
  fill: var(--up);
}

.chart-candle-wick.down,
.chart-candle.down,
.chart-volume.down {
  stroke: var(--down);
  fill: var(--down);
}

.chart-candle.up {
  fill: rgba(195, 59, 16, 0.08);
}

.chart-empty {
  display: grid;
  min-height: 220px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
  color: var(--muted);
  font-weight: 700;
}

.stock-funds {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.stock-funds header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.stock-funds h3 {
  margin-bottom: 2px;
  font-size: 16px;
}

.stock-funds p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.fund-flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 8px;
}

.fund-flow-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fbfdfe;
}

.fund-flow-grid span,
.fund-flow-grid small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.fund-flow-grid strong {
  display: block;
  margin: 4px 0 2px;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-columns,
.post-stack {
  display: grid;
  gap: 14px;
}

.post-stack {
  grid-template-columns: 1fr;
}

.post-column h3 {
  margin-bottom: 10px;
  font-size: 15px;
}

.post-list li {
  display: grid;
  gap: 4px;
}

.tushare-status-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fffd;
}

.tushare-status-card.warning {
  background: #fff7ed;
  border-color: #fed7aa;
}

.tushare-status-card div {
  display: flex;
  gap: 8px;
  align-items: baseline;
  min-width: 0;
}

.tushare-status-card strong {
  color: var(--ink);
  font-size: 13px;
  white-space: nowrap;
}

.tushare-status-card span,
.tushare-status-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.tushare-status-card p {
  grid-column: 1 / -1;
  color: var(--danger);
}

.admin-create-form {
  display: grid;
  grid-template-columns: minmax(130px, 0.85fr) minmax(120px, 0.75fr) minmax(150px, 0.9fr) 132px 96px 96px;
  gap: 7px;
  align-items: end;
  margin-bottom: 8px;
}

.admin-create-form label,
.account-expiry-form label {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.admin-create-form input {
  min-height: 34px;
  padding: 7px 9px;
  border-radius: 6px;
  font-size: 14px;
}

.admin-create-form button,
.reset-password-form button,
.password-form button,
.account-expiry-form button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 0 11px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
}

.admin-users-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 34px;
  margin: 0 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 11px;
  background: #f8fafc;
  color: var(--ink);
  font-weight: 900;
}

.admin-users-toggle em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.admin-user-list {
  display: grid;
  gap: 8px;
}

.admin-user-card {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(440px, 520px) minmax(250px, 330px);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fbfdfe;
}

.admin-user-card.expired {
  border-color: #f59e0b;
  background: #fffbeb;
}

.admin-user-card.admin {
  grid-template-columns: minmax(260px, 1fr) minmax(250px, 330px);
}

.system-guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.system-guide section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdfe;
}

.system-guide h3 {
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 15px;
}

.system-guide p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.report-settings-panel {
  max-width: 720px;
}

.report-settings-content {
  display: grid;
  gap: 14px;
}

.report-settings-form {
  display: grid;
  gap: 12px;
}

.report-settings-form section {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdfe;
}

.report-settings-form h3,
.report-last-status h3 {
  margin: 0;
  color: var(--accent);
  font-size: 15px;
}

.switch-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.switch-line input {
  width: 18px;
  height: 18px;
}

.report-settings-form input[type="email"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 16px;
}

.report-settings-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.report-last-status {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.admin-user-card strong {
  font-size: 16px;
  line-height: 1.2;
}

.admin-user-main {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
  min-width: 0;
}

.admin-user-meta {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.expiry-badge {
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 3px 8px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.expiry-badge.expired {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #b91c1c;
}

.quota-badge {
  border: 1px solid #99f6e4;
  border-radius: 999px;
  padding: 3px 8px;
  background: #f0fdfa;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.quota-badge.muted {
  border-color: var(--line);
  background: #f8fafc;
  color: var(--muted);
}

.reset-password-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 6px;
  min-width: 0;
}

.account-expiry-form {
  display: grid;
  grid-template-columns: minmax(126px, 1fr) 78px 74px 66px;
  gap: 6px;
  align-items: end;
  min-width: 0;
}

.account-expiry-form input,
.reset-password-form input {
  min-width: 0;
  min-height: 36px;
  padding: 7px 9px;
  border-radius: 6px;
  font-size: 14px;
}

.account-expiry-form button,
.reset-password-form button {
  min-height: 36px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 14px;
}

.account-expiry-form input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  accent-color: var(--accent);
}

.password-panel {
  width: min(460px, 100%);
}

.password-form {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.password-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

.password-form input {
  width: 100%;
}

.import-panel {
  width: min(860px, 100%);
  max-height: min(86vh, 780px);
}

.import-confirm {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 0;
  overflow: hidden;
}

.import-list {
  overflow: auto;
  padding: 16px;
  display: grid;
  gap: 8px;
}

.import-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(90px, 130px) minmax(90px, 130px);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.import-row.disabled {
  opacity: 0.62;
}

.import-row.changed {
  border-color: #fbbf24;
  background: #fffbeb;
}

.import-row > input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
}

.import-row span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.import-row strong,
.import-row em,
.import-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.import-row em,
.import-row small {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.import-confirm footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}

.empty {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.48);
}

.stock-detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  max-width: 100vw;
  overflow-x: hidden;
  padding: 18px;
  background: rgba(15, 23, 42, 0.48);
}

.article-detail-backdrop {
  z-index: 60;
}

.stock-detail-panel {
  width: min(1040px, 100%);
  max-width: calc(100vw - 36px);
  max-height: min(90vh, 920px);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.stock-detail-panel > header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.stock-detail-panel > header > div,
.detail-panel header > div {
  min-width: 0;
}

.stock-detail-panel h2 {
  margin-bottom: 4px;
  font-size: 22px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.stock-detail-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}

.stock-detail-title span {
  min-width: 0;
}

.stock-detail-title b {
  font-size: 24px;
  line-height: 1;
}

.stock-detail-title em {
  font-size: 16px;
  font-style: normal;
  font-weight: 900;
}

.stock-detail-panel header p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.stock-detail-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.stock-detail-summary span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 0 10px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
}

.stock-detail-summary span.muted {
  border-color: var(--line);
  background: #f8fafc;
  color: var(--muted);
}

.stock-detail-quote {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.stock-metric {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fbfdfe;
}

.stock-metric small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-metric strong {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-metric.primary strong {
  font-size: 19px;
}

.stock-metric strong.up-text {
  color: var(--up);
}

.stock-metric strong.down-text {
  color: var(--down);
}

.stock-detail-content {
  min-height: 0;
  overflow: auto;
  padding: 18px 20px 22px;
  overscroll-behavior: contain;
}

.stock-detail-posts h3 {
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 20px;
  font-weight: 900;
}

.stock-detail-posts > p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.stock-detail-announcements {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.stock-detail-announcements header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.stock-detail-announcements h3 {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 18px;
  font-weight: 900;
}

.stock-detail-announcements p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.stock-detail-info-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.stock-detail-info-switch button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.stock-detail-info-switch button.active {
  border-color: #fde2d0;
  background: #fff7ed;
  color: #9a3412;
}

.stock-detail-info-switch button:hover {
  border-color: #fde2d0;
  color: #9a3412;
}

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

.announcement-list button {
  width: 100%;
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfdfe;
  text-align: left;
}

.announcement-list button:hover {
  border-color: var(--accent);
  background: #f0fdfa;
}

.announcement-list strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.announcement-list span {
  color: var(--muted);
  font-size: 12px;
}

.detail-panel {
  width: min(760px, 100%);
  max-width: calc(100vw - 36px);
  max-height: min(78vh, 760px);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.install-panel {
  width: min(820px, 100%);
}

.account-info-panel {
  width: min(620px, 100%);
}

.detail-panel header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.detail-panel h2 {
  margin-bottom: 0;
  font-size: 20px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.detail-content {
  min-width: 0;
  overflow: auto;
  padding: 18px;
  line-height: 1.75;
  white-space: normal;
  overflow-wrap: anywhere;
}

.install-guide {
  display: grid;
  gap: 14px;
}

.account-info-content {
  display: grid;
  gap: 14px;
}

.account-info-content dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.account-info-content dl div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfdfe;
}

.account-info-content dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.account-info-content dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.account-info-notes {
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 12px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.7;
}

.account-info-notes p {
  margin: 0;
}

.account-info-notes p + p {
  margin-top: 6px;
}

.primary-action {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.install-current {
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 14px;
  background: #eff6ff;
}

.install-guide h3 {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 16px;
}

.install-guide ol {
  margin: 0;
  padding-left: 22px;
}

.install-guide li {
  margin: 4px 0;
  color: var(--ink);
  font-size: 14px;
}

.install-all {
  display: grid;
  gap: 8px;
}

.install-all details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfdfe;
}

.install-all summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
}

.detail-content p {
  margin: 0 0 14px;
  font-size: 15px;
  text-align: justify;
}

.detail-content p:last-child {
  margin-bottom: 0;
}

.detail-image {
  margin: 0 0 16px;
}

.detail-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.detail-image figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.detail-content .detail-meta {
  color: var(--muted);
  font-size: 13px;
  text-align: left;
}

.detail-announcement-paragraph {
  color: var(--ink);
  line-height: 1.9;
  text-align: left !important;
}

.detail-announcement-section {
  margin: 20px 0 10px !important;
  color: var(--ink);
  font-size: 16px !important;
  font-weight: 900;
  line-height: 1.55;
  text-align: left !important;
}

.detail-announcement-important {
  margin: 0 0 14px !important;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 10px 12px;
  background: #f0fdfa;
  color: var(--accent);
  font-weight: 900;
  line-height: 1.65;
  text-align: left !important;
}

.detail-announcement-table {
  margin: 0 0 14px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fafc;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre;
}

.detail-reply-heading {
  margin: 22px 0 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}

.detail-reply {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
}

.detail-reply header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.detail-reply strong {
  color: var(--accent);
}

.detail-reply time {
  color: var(--muted);
  font-size: 12px;
}

.detail-reply p {
  margin-bottom: 0;
}

.detail-reply-images {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.detail-reply-images img {
  display: block;
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.muted-line {
  color: var(--muted);
  font-size: 13px;
}

.plain-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.compact-button {
  min-height: 42px;
  white-space: nowrap;
}

.screen-entry-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: rgba(20, 184, 166, 0.45);
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(20, 184, 166, 0.06));
  color: var(--accent);
  text-decoration: none;
}

.auth-switch {
  width: 100%;
  margin-top: 12px;
}

.mobile-tabs {
  display: none;
}

@media (max-width: 1120px) {
  .hot-panel,
  .mainline-panel {
    height: auto;
    overflow: visible;
  }

  .heat-row {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "market market"
      "stocksearch stocksearch"
      "news eastnews"
      "heat heat"
      "watch watch"
      "sectorfeature sectorfeature"
      "mainlinemonitor mainlinemonitor"
      "etfholdings etfholdings"
      "admin admin"
      "guide guide";
  }

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

@media (max-width: 760px) {
  .tushare-status-card {
    grid-template-columns: 1fr;
  }

  .tushare-status-card div {
    justify-content: space-between;
  }

  .watch-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .watch-summary div {
    padding: 8px 7px;
  }

  .watch-summary strong {
    font-size: 15px;
  }

  .watch-summary span,
  .watch-summary b {
    font-size: 11px;
  }

  .app-shell {
    padding: 12px;
    padding-bottom: 76px;
  }

  .topbar {
    align-items: flex-start;
  }

  .top-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .topbar h1 {
    font-size: 24px;
  }

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

  .account-info-content dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .stock-metric {
    padding: 8px;
  }

  .stock-metric.primary {
    grid-column: span 1;
  }

  .mobile-tabs {
    position: sticky;
    top: 0;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
    gap: 4px;
    max-width: 1500px;
    margin: 0 auto 12px;
    padding: 8px;
    background: rgba(244, 247, 248, 0.94);
    backdrop-filter: blur(8px);
  }

  .mobile-tabs button {
    min-height: 36px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
  }

  .mobile-tabs button.active {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
  }

  .app-update-banner {
    align-items: stretch;
    display: grid;
  }

  .view-switcher {
    order: -1;
    max-width: 100%;
  }

  .view-switcher select {
    min-width: 104px;
    max-width: 150px;
  }

  .dashboard-grid {
    display: block;
  }

  .mobile-section {
    display: none;
  }

  .mobile-section.mobile-visible {
    display: block;
  }

  .mobile-section.mobile-visible + .mobile-section.mobile-visible {
    margin-top: 12px;
  }

  .panel {
    padding: 14px;
  }

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

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

  .quote-card {
    min-height: 116px;
    padding: 10px;
  }

  .quote-card h3 {
    font-size: 15px;
    line-height: 1.2;
  }

  .quote-card strong {
    font-size: clamp(19px, 6vw, 25px);
  }

  .quote-card p {
    font-size: 12px;
    line-height: 1.25;
  }

  .watch-form,
  .holding-form {
    grid-template-columns: 1fr;
  }

  .stock-search-form,
  .stock-search-results {
    grid-template-columns: 1fr;
  }

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

  .fund-flow-grid article {
    padding: 8px;
  }

  .fund-flow-grid span,
  .fund-flow-grid small {
    font-size: 11px;
  }

  .fund-flow-grid strong {
    margin: 3px 0 0;
    font-size: clamp(16px, 5.2vw, 20px);
  }

  .chart-readout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 8px;
    padding: 7px 8px;
  }

  .chart-readout span {
    font-size: 11px;
  }

  .chart-readout b {
    font-size: 12px;
  }

  .admin-create-form,
  .admin-user-card,
  .admin-user-card.admin,
  .reset-password-form,
  .account-expiry-form {
    grid-template-columns: 1fr;
  }

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

  .watch-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    width: auto;
  }

  .watch-actions [data-toggle-holding],
  .watch-actions [data-delete] {
    grid-column: auto;
  }

  .import-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .import-row input[name="costPrice"],
  .import-row input[name="position"] {
    grid-column: 2;
  }

  .hot-list li {
    grid-template-columns: 24px minmax(0, 1fr) 88px;
    gap: 8px;
  }

  .hot-list b {
    grid-column: auto;
  }

  .hot-quote {
    min-width: 0;
  }

  .hot-tags i {
    max-width: 138px;
  }

  .stock-detail-backdrop,
  .detail-backdrop {
    align-items: end;
    padding: 8px;
  }

  .stock-detail-panel,
  .detail-panel {
    width: 100%;
    max-width: calc(100vw - 16px);
    max-height: 92vh;
  }

  .stock-detail-panel > header,
  .detail-panel header {
    padding: 14px;
  }

  .sector-detail-panel.enhanced > header {
    flex-wrap: wrap;
  }

  .sector-stock-rule-note {
    order: 2;
    flex-basis: 100%;
    justify-content: flex-start;
    min-width: 0;
    margin-left: 0;
  }

  .stock-detail-content,
  .detail-content {
    padding: 14px;
  }

  body {
    background:
      radial-gradient(circle at 16% 0%, rgba(15, 118, 110, 0.10), transparent 30%),
      linear-gradient(180deg, #eef7f5 0%, #f6f8fb 34%, #f4f7f8 100%);
  }

  .app-shell {
    padding: 12px max(12px, env(safe-area-inset-left));
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    margin-bottom: 7px;
    padding: 2px 2px 0;
  }

  .topbar .eyebrow {
    margin-bottom: 2px;
    color: rgba(15, 118, 110, 0.88);
    font-size: 10px;
    font-weight: 900;
  }

  .topbar h1 {
    max-width: none;
    font-size: 22px;
    line-height: 1.06;
    letter-spacing: 0;
  }

  .top-actions {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    align-items: center;
    justify-content: stretch;
  }

  .top-actions .compact-button,
  .top-actions .text-button,
  .top-actions .icon-button {
    min-width: 0;
    min-height: 32px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(21, 32, 41, 0.06);
  }

  .top-actions .compact-button {
    padding: 0 4px;
    font-size: 12px;
  }

  .top-actions .text-button {
    padding: 0 4px;
    font-size: 12px;
  }

  .top-actions .icon-button {
    width: auto;
    height: 32px;
    font-size: 17px;
  }

  .screen-entry-button {
    display: none;
  }

  .view-switcher {
    grid-column: 1 / -1;
    min-height: 36px;
    border-radius: 14px;
    padding: 0 10px;
    box-shadow: 0 8px 22px rgba(21, 32, 41, 0.07);
  }

  .view-switcher span {
    font-size: 12px;
  }

  .view-switcher select {
    max-width: none;
    min-height: 30px;
    font-size: 14px;
  }

  .mobile-tabs {
    top: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    overflow: visible;
    margin: 0 0 12px;
    padding: 8px;
    background: rgba(242, 248, 247, 0.88);
  }

  .mobile-tabs button {
    min-width: 0;
    min-height: 38px;
    border: 1px solid rgba(219, 227, 232, 0.88);
    border-radius: 14px;
    padding: 0 6px;
    background: rgba(255, 255, 255, 0.86);
    color: #334155;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 6px 18px rgba(21, 32, 41, 0.05);
    white-space: nowrap;
  }

  .mobile-tabs button.active {
    border-color: transparent;
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.22);
  }

  .panel {
    border-color: rgba(219, 227, 232, 0.78);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 14px 34px rgba(21, 32, 41, 0.08);
  }

  .section-title {
    margin-bottom: 12px;
  }

  .section-title h2 {
    font-size: 22px;
    line-height: 1.1;
  }

  .section-title p {
    font-size: 13px;
  }

  .stock-search-panel {
    padding: 14px;
  }

  .stock-search-head {
    margin-bottom: 12px;
  }

  .stock-search-head h2 {
    font-size: 22px;
  }

  .stock-search-form {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 8px;
  }

  .stock-search-form input {
    height: 48px;
    border-radius: 14px;
    background: #f8fafc;
    font-size: 16px;
  }

  .stock-search-form button {
    border-radius: 14px;
    font-size: 18px;
  }

  .stock-search-results {
    gap: 8px;
  }

  .stock-search-results button,
  .announcement-list button {
    border-radius: 14px;
    padding: 11px 12px;
    background: #fff;
  }

  .quote-grid {
    gap: 10px;
  }

  .quote-card {
    min-height: 112px;
    border-color: rgba(219, 227, 232, 0.72);
    border-radius: 16px;
    padding: 12px;
    background: linear-gradient(180deg, #fff 0%, #f9fbfc 100%);
    box-shadow: 0 8px 22px rgba(21, 32, 41, 0.05);
  }

  .quote-card span {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .market-breadth {
    margin-top: 14px;
    border-top-color: rgba(219, 227, 232, 0.78);
    padding-top: 14px;
  }

  .market-breadth header {
    align-items: flex-start;
  }

  .breadth-summary {
    gap: 2px 8px;
  }

  .news-list,
  .post-list,
  .hot-list,
  .mainline-list,
  .sector-list {
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
  }

  .news-list li,
  .post-list li,
  .hot-list li,
  .mainline-list li,
  .sector-list li {
    border-bottom-color: rgba(219, 227, 232, 0.78);
  }

  .news-list button,
  .post-list button,
  .hot-button,
  .mainline-list button,
  .sector-list button {
    -webkit-tap-highlight-color: transparent;
  }

  .hot-list li {
    grid-template-columns: 28px minmax(0, 1fr) 86px;
    padding: 12px 2px;
  }

  .sector-list li {
    padding: 12px 2px;
  }

  .watch-actions {
    gap: 8px;
  }

  .watch-actions button,
  .watch-actions .icon-button {
    border-radius: 14px;
  }

  .watch-item {
    grid-template-columns: minmax(0, 1fr) 78px;
    border-radius: 18px;
    padding: 14px;
    background: linear-gradient(180deg, #f8fffd 0%, #effbf8 100%);
    box-shadow: 0 10px 26px rgba(15, 118, 110, 0.08);
  }

  .watch-item.active {
    box-shadow: 0 12px 28px rgba(15, 118, 110, 0.14);
  }

  .watch-name-line strong {
    font-size: 22px;
  }

  .hot-tags {
    gap: 5px;
  }

  .hot-tags i {
    max-width: 150px;
    border-radius: 999px;
    padding: 3px 9px;
    background: #fff7ed;
    font-size: 12px;
  }

  .hot-panel,
  .watch-panel {
    padding: 12px;
  }

  .hot-panel .section-title,
  .watch-panel .section-title {
    margin-bottom: 8px;
  }

  .hot-panel .section-title h2,
  .watch-panel .section-title h2 {
    font-size: 18px;
  }

  .hot-panel .section-title p,
  .watch-panel .section-title p {
    font-size: 12px;
  }

  .hot-list {
    border-radius: 10px;
  }

  .hot-list li {
    grid-template-columns: 24px minmax(0, 1fr) 78px;
    gap: 7px;
    padding: 8px 2px;
  }

  .hot-button {
    gap: 3px;
  }

  .hot-main {
    gap: 6px;
  }

  .hot-main strong,
  .sector-main strong {
    font-size: 14px;
  }

  .hot-quote {
    gap: 1px;
  }

  .hot-quote strong {
    font-size: 14px;
  }

  .hot-quote b {
    font-size: 12px;
  }

  .hot-tags {
    gap: 3px;
  }

  .hot-tags i {
    max-width: 112px;
    padding: 1px 6px;
    font-size: 11px;
  }

  .sector-meta {
    gap: 6px;
  }

  .sector-stat strong {
    font-size: 15px;
  }

  .sector-meta button {
    min-height: 28px;
    padding: 0 8px;
    font-size: 12px;
  }

  .watch-action-row {
    gap: 6px;
    margin-bottom: 8px;
  }

  .watch-action-button {
    min-height: 34px;
    border-radius: 8px;
    font-size: 13px;
  }

  .watch-form {
    gap: 6px;
    margin-top: 6px;
    margin-bottom: 8px;
  }

  .watch-form input {
    height: 36px;
  }

  .watch-summary {
    gap: 5px;
    margin-bottom: 8px;
  }

  .watch-summary div {
    padding: 6px 7px;
  }

  .watch-summary strong {
    margin: 2px 0 0;
    font-size: 14px;
  }

  .watch-list {
    gap: 6px;
  }

  .watch-item {
    grid-template-columns: minmax(0, 1fr) 68px;
    gap: 6px;
    border-radius: 10px;
    padding: 9px 10px;
    background: #fff;
    box-shadow: none;
  }

  .watch-item.active {
    background: #f0fdfa;
    box-shadow: none;
  }

  .watch-name-line strong {
    font-size: 17px;
  }

  .watch-name-line em,
  .watch-quote small,
  .compact-metrics i {
    font-size: 11px;
  }

  .watch-quote strong {
    font-size: 16px;
  }

  .watch-quote b {
    font-size: 12px;
  }

  .watch-actions {
    gap: 6px;
  }

  .watch-actions button,
  .watch-actions .icon-button {
    height: 26px;
    border-radius: 8px;
    font-size: 12px;
  }

  .chart-tabs {
    gap: 8px;
  }

  .chart-tabs button {
    min-height: 38px;
    border-radius: 999px;
    padding: 0 16px;
    font-size: 14px;
  }

  .stock-chart-svg,
  .chart-readout,
  .fund-flow-grid article {
    border-radius: 14px;
  }

  .stock-detail-backdrop,
  .detail-backdrop {
    padding: 0;
    background: rgba(15, 23, 42, 0.38);
  }

  .stock-detail-panel,
  .detail-panel {
    max-width: 100vw;
    max-height: 92vh;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -18px 48px rgba(15, 23, 42, 0.26);
  }

  .stock-detail-panel > header,
  .detail-panel header {
    padding: 16px;
  }

  .stock-detail-panel h2,
  .detail-panel h2 {
    font-size: 22px;
  }

  .stock-detail-content,
  .detail-content {
    padding: 16px;
  }

  .stock-detail-announcements header {
    gap: 8px;
    margin-bottom: 8px;
  }

  .stock-detail-info-switch {
    gap: 4px;
  }

  .stock-detail-info-switch button {
    padding: 2px 7px;
    font-size: 11px;
  }

  .icon-button,
  .plain-button,
  .text-button,
  input,
  select,
  textarea {
    border-radius: 14px;
  }

  input,
  select,
  textarea,
  button {
    font-size: max(16px, 1em);
  }
}

@media (max-width: 760px) {
  .nt-detail-grid {
    grid-template-columns: 1fr;
  }

  .nt-toolbar,
  .nt-search-form,
  .nt-toolbar label,
  .nt-toolbar select {
    width: 100%;
  }

  .nt-table {
    min-width: 980px;
  }

  .dsa-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 10px;
    padding: 8px;
    box-shadow: none;
  }

  .dsa-form button {
    min-height: 36px;
  }

  .dsa-quota {
    margin: -4px 0 10px;
  }

  .dsa-notify {
    min-height: 36px;
  }

  .dsa-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .dsa-history {
    padding: 10px;
  }

  .dsa-history-list {
    max-height: 220px;
  }

  .dsa-report-card {
    padding: 12px;
    box-shadow: none;
  }

  .dsa-report-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .dsa-report-main {
    display: contents;
    gap: 10px;
  }

  .dsa-report-head {
    order: 1;
    gap: 8px;
    padding-bottom: 8px;
  }

  .dsa-report-card h3 {
    margin-bottom: 1px;
    font-size: 18px;
    line-height: 1.18;
  }

  .dsa-report-card p {
    line-height: 1.5;
  }

  .dsa-report-head p {
    font-size: 12px;
  }

  .dsa-report-head p span {
    padding: 1px 6px;
    font-size: 11px;
  }

  .dsa-head-actions {
    gap: 4px;
  }

  .dsa-action-pill,
  .dsa-trend-pill {
    padding: 2px 7px;
    font-size: 11px;
  }

  .dsa-summary-box {
    order: 3;
    padding: 10px 11px;
  }

  .dsa-summary-box h4,
  .dsa-board-section h4,
  .dsa-strategy h4,
  .dsa-news-section h4 {
    margin-bottom: 5px;
    font-size: 13px;
  }

  .dsa-summary-box p {
    font-size: 13px;
    line-height: 1.5;
  }

  .dsa-score-card {
    order: 2;
    min-height: 0;
    grid-template-columns: auto auto 1fr;
    justify-items: start;
    align-items: center;
    gap: 6px 10px;
    padding: 10px 12px;
  }

  .dsa-score-card > span {
    grid-column: 1 / -1;
    font-size: 12px;
  }

  .dsa-score-ring {
    width: 58px;
    height: 58px;
    box-shadow: none;
  }

  .dsa-score-ring strong {
    font-size: 20px;
  }

  .dsa-score-card b {
    font-size: 14px;
  }

  .dsa-score-card p {
    font-size: 12px;
    text-align: left;
  }

  .dsa-kpis {
    order: 4;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .dsa-board-section {
    order: 5;
  }

  .dsa-strategy {
    order: 6;
  }

  .dsa-news-section {
    order: 7;
  }

  .dsa-kpis span {
    padding: 9px 7px;
  }

  .dsa-kpis i {
    font-size: 11px;
  }

  .dsa-kpis strong {
    font-size: 14px;
    line-height: 1.3;
  }

  .dsa-strategy > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .dsa-strategy span {
    padding: 8px 10px;
  }

  .dsa-strategy i {
    display: inline;
    margin: 0 8px 0 0;
    font-size: 11px;
    white-space: nowrap;
  }

  .dsa-strategy strong {
    display: inline;
    font-size: 13px;
    line-height: 1.35;
  }

  .dsa-news-section {
    padding-top: 9px;
  }

  .dsa-news-section header {
    margin-bottom: 6px;
  }

  .dsa-news-list {
    gap: 5px;
  }

  .dsa-news-list li {
    padding-bottom: 6px;
  }
}

@media (max-width: 420px) {
  .dsa-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .sector-overview-grid {
    grid-template-columns: 1fr;
  }

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

  .mainline-list li {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .mainline-top {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .mainline-top button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .sector-overview-card {
    min-height: 0;
    padding: 12px;
  }

  .sector-overview-card header {
    align-items: flex-start;
  }

  .sector-overview-card header strong {
    font-size: 17px;
  }

  .sector-overview-card header em {
    font-size: 12px;
  }

  .overview-rank-list span {
    grid-template-columns: 28px minmax(72px, 0.8fr) minmax(90px, 1fr) 64px;
    gap: 8px;
    font-size: 13px;
  }

  .overview-flow-list {
    grid-template-columns: 1fr;
    font-size: 13px;
  }

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

  .sector-flow-picker {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 10px;
  }

  .sector-flow-picker-actions,
  .sector-flow-checks {
    padding-left: 0;
  }

  .sector-flow-picker-actions {
    border-bottom: 1px solid var(--line);
  }

  .sector-flow-checks {
    height: auto;
    max-height: 300px;
    padding: 10px 0;
  }

  .sector-flow-svg {
    min-height: 240px;
  }

  .sector-ranking-table {
    min-width: 980px;
  }
}
.sector-refresh-status {
  margin: 8px 0 10px;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #475569;
  background: #f8fafc;
  font-size: 14px;
  line-height: 1.35;
}

.sector-refresh-status.updating {
  color: #0f766e;
  border-color: #99f6e4;
  background: #f0fdfa;
}

.sector-refresh-status.failed {
  color: #b42318;
  border-color: #fed7aa;
  background: #fff7ed;
}

.sector-refresh-status.partial {
  color: #92400e;
  border-color: #fde68a;
  background: #fffbeb;
}
