:root {
  color-scheme: dark;
  --bg: #111312;
  --panel: #1b1f1d;
  --panel-2: #232824;
  --line: #343b36;
  --ink: #f4f6f0;
  --muted: #aeb8af;
  --gold: #d8a235;
  --gold-2: #f1d17a;
  --green: #22c55e;
  --red: #ef4444;
  --gray: #6b7280;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

.page {
  width: min(1320px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 46px 0 28px;
}

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

.dual-market-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.market-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel);
}

.market-card.gold {
  border-color: rgba(216, 162, 53, 0.58);
}

.market-card.silver {
  border-color: rgba(209, 213, 219, 0.42);
}

.market-card h2 {
  margin-bottom: 12px;
}

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

.market-price {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: #131714;
}

.market-price span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.market-price strong {
  font-size: 24px;
}

.market-card p {
  margin-top: 12px;
  line-height: 1.6;
}

.kpi-card {
  min-height: 118px;
}

.kpi-card span,
.silver-strip span,
.gold-strip span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.kpi-card strong,
.silver-strip strong,
.gold-strip strong {
  display: block;
  color: #f4f6f0;
  font-size: 27px;
  line-height: 1.18;
}

.kpi-card small,
.gold-strip small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.kpi-card.good strong {
  color: #86efac;
}

.kpi-card.bad strong {
  color: #fca5a5;
}

.silver-strip,
.gold-strip {
  display: grid;
  gap: 8px;
  align-items: center;
}

.silver-strip {
  grid-column: span 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-color: rgba(209, 213, 219, 0.34);
}

.silver-strip p {
  grid-column: 1 / -1;
  margin-top: 0;
  color: #e7ece8;
}

.gold-strip {
  grid-column: span 2;
  border-color: rgba(216, 162, 53, 0.42);
}

.gold-strip strong {
  color: var(--gold-2);
  font-size: 22px;
}

.intel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.95fr);
  gap: 14px;
  margin-bottom: 14px;
  align-items: start;
}

.radar-status,
.tech-alert-status {
  margin: 12px 0;
  color: #e7ece8;
  line-height: 1.55;
}

.macro-brief {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.macro-brief h2 {
  margin-bottom: 10px;
}

.macro-brief-status {
  display: grid;
  gap: 10px;
}

.macro-metric {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px;
  background: #151916;
}

.macro-metric.good {
  border-color: rgba(34, 197, 94, 0.48);
}

.macro-metric.bad {
  border-color: rgba(239, 68, 68, 0.48);
}

.macro-metric span {
  display: block;
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 950;
  margin-bottom: 6px;
}

.macro-metric p {
  color: #f4f6f0;
  line-height: 1.6;
}

.macro-metric small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.radar-list,
.tech-alert-list {
  display: grid;
  gap: 10px;
}

.radar-item,
.tech-alert,
.scenario-item {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: #151916;
}

.radar-item strong,
.scenario-item strong {
  display: block;
  line-height: 1.5;
}

.radar-item p,
.scenario-item p {
  margin-top: 6px;
  line-height: 1.6;
  color: #e7ece8;
}

.radar-item small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.radar-tag {
  display: inline-flex;
  margin-bottom: 8px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 950;
}

.radar-item.bullish {
  border-color: rgba(239, 68, 68, 0.45);
}

.radar-item.bullish .radar-tag {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
}

.radar-item.bearish {
  border-color: rgba(34, 197, 94, 0.45);
}

.radar-item.bearish .radar-tag {
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
}

.radar-item.neutral .radar-tag {
  background: rgba(156, 163, 175, 0.16);
  color: #d1d5db;
}

.skeleton-line {
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #222822, #303830, #222822);
  background-size: 180% 100%;
  animation: skeleton 1.2s infinite linear;
}

.skeleton-line.short {
  width: 64%;
}

@keyframes skeleton {
  from { background-position: 180% 0; }
  to { background-position: -180% 0; }
}

.tech-alert {
  color: #f4f6f0;
  line-height: 1.55;
}

.tech-alert.bullish,
.tech-alert.trend {
  border-color: rgba(216, 162, 53, 0.46);
}

.weekend-scenario {
  margin-top: 12px;
  color: var(--muted);
}

.weekend-scenario summary {
  cursor: pointer;
  color: var(--gold-2);
  font-weight: 900;
}

.scenario-item {
  margin-top: 10px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 30px;
  line-height: 1.2;
}

h2 {
  font-size: 20px;
}

p,
small,
.muted {
  color: var(--muted);
}

button {
  border: 0;
  border-radius: 7px;
  min-height: 40px;
  padding: 0 16px;
  background: var(--gold);
  color: #171717;
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  background: var(--gold-2);
}

input {
  min-width: 0;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
  background: #111512;
  color: #fff;
  font-size: 14px;
}

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

.summary-card,
.manual-card,
.panel,
.chat-panel,
.event-section,
.action-card,
.plain-card,
.decision-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.summary-card {
  padding: 20px;
  margin-bottom: 14px;
  border-color: rgba(216, 162, 53, 0.55);
  box-shadow: 0 0 0 1px rgba(216, 162, 53, 0.12);
}

.summary-title {
  color: var(--gold-2);
  font-size: 21px;
  font-weight: 950;
  margin-bottom: 10px;
}

.summary-line {
  font-size: 18px;
  line-height: 1.72;
}

.manual-card {
  display: grid;
  grid-template-columns: minmax(170px, 0.85fr) repeat(3, minmax(145px, 1fr)) 116px;
  gap: 12px;
  align-items: end;
  padding: 14px;
  margin-bottom: 14px;
}

.manual-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

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

.action-card {
  padding: 18px;
}

.action-card.good {
  border-color: rgba(34, 197, 94, 0.55);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(27, 31, 29, 0.96));
}

.action-card.bad {
  border-color: rgba(239, 68, 68, 0.55);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(27, 31, 29, 0.96));
}

.action-card.neutral {
  border-color: rgba(156, 163, 175, 0.4);
}

.action-kicker {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.action-text {
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.42;
  font-weight: 950;
}

.action-detail {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.plain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.decision-panel {
  border: 1px solid rgba(216, 162, 53, 0.45);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(216, 162, 53, 0.1), var(--panel));
  padding: 18px;
  margin-bottom: 14px;
}

.decision-panel.good {
  border-color: rgba(34, 197, 94, 0.48);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.22), rgba(24, 29, 25, 0.98));
}

.decision-panel.bad {
  border-color: rgba(239, 68, 68, 0.48);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(24, 29, 25, 0.98));
}

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

.decision-kicker {
  color: var(--gold-2);
  font-size: 14px;
  font-weight: 950;
  margin-bottom: 7px;
}

.decision-head h2 {
  font-size: 28px;
  line-height: 1.25;
}

.decision-action {
  min-width: 168px;
  border-radius: 7px;
  padding: 10px 12px;
  text-align: center;
  font-size: 18px;
  font-weight: 950;
  background: #121613;
  border: 1px solid var(--line);
}

.decision-action.good {
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.45);
}

.decision-action.bad {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.45);
}

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

.decision-summary-grid div {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: #131714;
}

.decision-summary-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.decision-summary-grid b {
  display: block;
  color: #f4f6f0;
  font-size: 19px;
  line-height: 1.35;
}

.decision-summary-grid b.good {
  color: #86efac;
}

.decision-summary-grid b.bad {
  color: #fca5a5;
}

.decision-summary-grid b.neutral {
  color: #d1d5db;
}

.price-zone-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #121613;
  margin-bottom: 14px;
}

.price-zone-table th,
.price-zone-table td {
  padding: 11px 10px;
}

.price-zone-table td:first-child {
  color: var(--gold-2);
  font-weight: 900;
}

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

.driver-strip span {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  background: #151916;
  color: #e7ece8;
  line-height: 1.5;
}

.boss-summary {
  border-radius: 7px;
  padding: 13px 14px;
  background: rgba(216, 162, 53, 0.12);
  color: #f4f6f0;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.65;
}

.plain-card {
  padding: 16px;
}

.plain-kicker {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.plain-title {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 900;
}

.plain-body {
  margin-top: 8px;
  color: #d7ded8;
  line-height: 1.62;
}

.good .plain-title,
.up {
  color: var(--green);
}

.bad .plain-title,
.down {
  color: var(--red);
}

.neutral .plain-title,
.side {
  color: #d1d5db;
}

.event-section,
.panel,
.chat-panel {
  padding: 16px;
  margin-bottom: 14px;
}

.summary-strip {
  margin: 12px 0;
  padding: 12px;
  border-radius: 7px;
  background: var(--panel-2);
  color: #e7ece8;
  line-height: 1.65;
}

.event-list,
.news-list {
  display: grid;
  gap: 10px;
}

.event-item,
.news-item {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: #151916;
}

.event-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 72px 72px 88px;
  gap: 12px;
  align-items: center;
}

.event-item time {
  color: var(--gold-2);
  font-weight: 900;
}

.event-item small,
.news-meta {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.news-rank {
  margin-bottom: 7px;
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 900;
}

.news-title {
  margin-top: 6px;
  color: #f4f6f0;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.55;
}

.impact {
  justify-self: end;
  border-radius: 999px;
  padding: 5px 9px;
  background: #2b312d;
  color: #d1d5db;
  font-size: 12px;
}

.impact.high {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
}

.event-status,
.direction {
  justify-self: end;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.event-status {
  background: #2b312d;
  color: #d1d5db;
}

.event-status.done {
  background: rgba(216, 162, 53, 0.17);
  color: var(--gold-2);
}

.direction.good {
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
}

.direction.bad {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
}

.direction.neutral {
  background: rgba(156, 163, 175, 0.16);
  color: #d1d5db;
}

.news-holdings {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.95fr);
  gap: 14px;
  align-items: start;
}

.bottom-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 14px;
}

.bottom-workspace .chat-panel,
.bottom-workspace .panel {
  margin-bottom: 0;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.compact-head {
  align-items: start;
}

.compact-head p {
  margin-top: 5px;
  line-height: 1.55;
}

.site-form {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 10px;
  margin: 12px 0;
}

.site-result {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 7px;
  background: #121613;
  color: #e7ece8;
  line-height: 1.6;
}

.boss-line {
  margin: 12px 0;
  color: var(--gold-2);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 900;
}

.boss-line span,
.boss-line em,
.boss-line small {
  display: block;
}

.boss-line strong {
  display: block;
  margin-top: 6px;
  font-size: 26px;
  line-height: 1.22;
}

.boss-line em {
  margin-top: 7px;
  color: #f4f6f0;
  font-style: normal;
  font-size: 15px;
}

.boss-line small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.holding-mobile-cards {
  display: none;
}

.holding-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: #121613;
}

.holding-card div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #f4f6f0;
}

.holding-card span {
  color: var(--gold-2);
  font-weight: 900;
}

.holding-card p {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.45;
}

.holding-card strong {
  display: block;
  margin-top: 7px;
  font-size: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: right;
  white-space: nowrap;
}

th:first-child,
td:first-child {
  text-align: left;
}

th {
  color: var(--muted);
  font-weight: 800;
}

.holding-editor {
  margin-top: 12px;
  color: var(--muted);
}

.cognition-box {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.cognition-box h3 {
  margin: 0 0 10px;
  color: var(--gold-2);
  font-size: 17px;
}

.cognition-list {
  display: grid;
  gap: 9px;
}

.cognition-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #121613;
}

.cognition-item span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(216, 162, 53, 0.16);
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 900;
}

.cognition-item p {
  color: #f4f6f0;
  line-height: 1.58;
}

.cognition-item.featured {
  border-color: rgba(216, 162, 53, 0.32);
}

.cognition-more {
  color: var(--muted);
}

.cognition-more summary {
  cursor: pointer;
  color: var(--gold-2);
  font-weight: 900;
  margin: 4px 0 8px;
}

.silver-trend-panel {
  min-width: 0;
}

.trend-summary {
  margin: 12px 0;
  line-height: 1.65;
  color: #e7ece8;
}

.trend-chart {
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #121613;
  overflow: hidden;
  touch-action: pan-y;
}

.trend-chart.empty {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.trend-chart svg {
  display: block;
  width: 100%;
  height: 250px;
}

.chart-bg {
  fill: #121613;
}

.grid-line {
  stroke: #2e352f;
  stroke-width: 1;
}

.axis-label {
  fill: #aeb8af;
  font-size: 12px;
}

.price-line {
  fill: none;
  stroke: #cfd5dd;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.price-dot {
  fill: #f4f6f0;
  stroke: #111312;
  stroke-width: 2;
  cursor: pointer;
}

.price-dot.active {
  fill: var(--gold-2);
  stroke: var(--gold);
}

.trend-tip {
  min-height: 44px;
  margin-top: 10px;
  color: #f4f6f0;
  line-height: 1.55;
}

.trend-tip span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.holding-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.messages {
  min-height: 190px;
  max-height: 420px;
  overflow-y: auto;
  margin: 12px 0;
  display: grid;
  gap: 10px;
}

.msg {
  max-width: 88%;
  padding: 12px;
  border-radius: 8px;
  white-space: pre-wrap;
  line-height: 1.6;
}

.msg.user {
  justify-self: end;
  background: var(--gold);
  color: #111;
  font-weight: 700;
}

.msg.bot {
  justify-self: start;
  background: #222822;
  color: #fff;
  border: 1px solid var(--line);
}

.msg.bot.ai {
  border-color: rgba(216, 162, 53, 0.42);
}

.msg.bot.thinking {
  color: var(--muted);
  position: relative;
}

.msg.bot.thinking::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 6px;
  margin-left: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), transparent);
  animation: skeleton 1s infinite linear;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr 86px;
  gap: 10px;
}

footer {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .hero,
  .dual-market-grid,
  .intel-grid,
  .market-price-grid,
  .manual-card,
  .action-grid,
  .plain-grid,
  .decision-head,
  .decision-summary-grid,
  .driver-strip,
  .news-holdings,
  .bottom-workspace,
  .event-item,
  .site-form {
    grid-template-columns: 1fr;
  }

  .silver-strip,
  .gold-strip {
    grid-column: auto;
  }

  .silver-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    display: grid;
  }

  .decision-head {
    display: grid;
  }

  .decision-action {
    width: 100%;
  }

  .impact,
  .event-status,
  .direction {
    justify-self: start;
  }

  h1 {
    font-size: 25px;
  }

  .action-text {
    font-size: 20px;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(100%, calc(100vw - 18px));
    padding: 16px 0 22px;
  }

  .hero {
    gap: 12px;
    margin-bottom: 12px;
  }

  h1 {
    font-size: 22px;
  }

  h2 {
    font-size: 18px;
  }

  button {
    width: 100%;
    min-height: 44px;
  }

  input {
    min-height: 44px;
    font-size: 16px;
  }

  .market-card,
  .summary-card,
  .manual-card,
  .decision-panel,
  .panel,
  .chat-panel,
  .event-section {
    padding: 12px;
    border-radius: 7px;
  }

  .market-price strong {
    font-size: 21px;
  }

  .summary-title {
    font-size: 18px;
  }

  .summary-line {
    font-size: 15px;
    line-height: 1.7;
  }

  .decision-head h2 {
    font-size: 22px;
  }

  .decision-summary-grid b {
    font-size: 17px;
  }

  .boss-summary {
    font-size: 15px;
  }

  .driver-strip span,
  .macro-metric,
  .radar-item,
  .news-item,
  .event-item,
  .tech-alert,
  .scenario-item,
  .cognition-item {
    padding: 10px;
  }

  .event-item {
    gap: 8px;
  }

  .price-zone-table,
  table {
    min-width: 640px;
  }

  .messages {
    max-height: 340px;
  }

  .msg {
    max-width: 94%;
  }

  .news-holdings {
    gap: 10px;
  }

  .news-list {
    gap: 8px;
  }

  .news-item {
    padding: 11px;
  }

  .news-rank {
    font-size: 12px;
  }

  .news-title {
    font-size: 15px;
  }

  .summary-strip {
    padding: 10px;
    font-size: 14px;
  }

  .holding-mobile-cards {
    display: grid;
    gap: 8px;
  }

  .table-wrap table {
    display: none;
  }

  .boss-line {
    font-size: 15px;
  }

  .boss-line strong {
    font-size: 24px;
  }

  .cognition-item:not(.featured) {
    margin-top: 8px;
  }

  .chat-panel p {
    line-height: 1.55;
    font-size: 14px;
  }

  .messages {
    min-height: 160px;
  }

  .msg {
    padding: 11px;
    font-size: 14px;
  }

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

  footer {
    font-size: 12px;
  }
}

/* Option C: mobile-first clear-card interface */
.hero,
.market-card,
.summary-card,
.manual-card,
.decision-panel,
.panel,
.chat-panel,
.event-section {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.hero {
  padding: 18px;
  border: 1px solid rgba(216, 162, 53, 0.18);
  border-radius: 10px;
  background: #171b18;
}

.hero button,
.manual-card button,
.chat-form button,
.site-form button,
#refreshRadarBtn,
#loadSilverTrendBtn {
  border-radius: 9px;
}

.market-card,
.summary-card,
.decision-panel,
.panel,
.chat-panel,
.event-section {
  border-radius: 10px;
}

.decision-panel {
  padding: 20px;
  background: #181d19;
  border-color: rgba(241, 209, 122, 0.38);
}

.decision-kicker,
.summary-title,
.market-card h2,
.panel h2 {
  letter-spacing: 0;
}

.decision-head h2 {
  max-width: 780px;
}

.decision-action {
  background: rgba(216, 162, 53, 0.12);
  border-color: rgba(241, 209, 122, 0.28);
  color: var(--gold-2);
}

.summary-line.compact {
  font-size: 16px;
}

.summary-line.compact small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.manual-card {
  background: #151916;
}

.manual-card > div strong {
  color: var(--gold-2);
}

.news-holdings .panel:nth-child(2) {
  border-color: rgba(241, 209, 122, 0.28);
}

@media (min-width: 981px) {
  .page {
    width: min(1180px, calc(100vw - 36px));
  }

  .decision-panel {
    margin-top: 2px;
  }
}

@media (max-width: 640px) {
  body {
    background: #101310;
  }

  .hero {
    padding: 14px;
  }

  .hero button {
    margin-top: 2px;
  }

  .dual-market-grid,
  .intel-grid,
  .news-holdings,
  .bottom-workspace {
    gap: 10px;
  }

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

  .kpi-card {
    min-height: 104px;
  }

  .kpi-card strong,
  .silver-strip strong {
    font-size: 22px;
  }

  .silver-strip,
  .gold-strip {
    grid-column: span 2;
  }

  .gold-strip strong {
    font-size: 19px;
  }

  .market-card p {
    font-size: 14px;
  }

  .decision-panel {
    padding: 14px;
  }

  .decision-kicker {
    font-size: 13px;
  }

  .decision-head h2 {
    font-size: 21px;
  }

  .decision-action {
    font-size: 17px;
  }

  .decision-summary-grid {
    gap: 8px;
  }

  .decision-summary-grid div {
    padding: 10px;
  }

  .driver-strip {
    gap: 8px;
  }

  .summary-card {
    border-color: rgba(241, 209, 122, 0.35);
  }

  .summary-line.compact {
    font-size: 15px;
  }

  .manual-card {
    gap: 10px;
  }

  .panel-head {
    display: grid;
  }

  .panel-head button {
    margin-top: 8px;
  }

  .cognition-box {
    margin-top: 12px;
  }
}
