:root {
  --bg: #f1eee8;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(255, 248, 241, 0.9);
  --line: rgba(30, 36, 42, 0.08);
  --text: #15181c;
  --muted: #69727b;
  --accent: #3f6f70;
  --accent-soft: rgba(63, 111, 112, 0.1);
  --important: #b14e2a;
  --important-soft: rgba(177, 78, 42, 0.12);
  --shadow: 0 16px 38px rgba(23, 29, 36, 0.06);
  --font-sans: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", sans-serif;
  --font-serif: "Source Han Serif SC", "Songti SC", "STSong", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(197, 221, 221, 0.28), transparent 28%),
    radial-gradient(circle at top right, rgba(236, 223, 208, 0.3), transparent 30%),
    linear-gradient(180deg, #f6f4ef 0%, var(--bg) 100%);
  font-family: var(--font-sans);
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

.page-shell {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

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

.newsradar-nav a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(14px);
}

.page-actions {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.config-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  backdrop-filter: blur(14px);
}

.config-trigger strong {
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(30, 36, 42, 0.07);
  color: var(--muted);
  font-size: 12px;
}

.config-trigger[data-status="configured"] strong {
  background: rgba(67, 125, 87, 0.12);
  color: #2f6f46;
}

.config-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: start end;
  padding: 24px 24px 24px 24px;
  background: rgba(23, 18, 12, 0.18);
  backdrop-filter: blur(6px);
}

.config-overlay[hidden] {
  display: none;
}

.config-modal {
  width: min(420px, calc(100vw - 24px));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255, 250, 244, 0.96);
  box-shadow: 0 28px 70px rgba(54, 36, 15, 0.18);
}

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

.config-modal-eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.config-modal h2 {
  margin: 8px 0 0;
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1;
}

.config-close {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
}

.config-modal-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.config-divider {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.config-section-head {
  margin-top: 18px;
}

.config-section-head h3 {
  margin: 8px 0 0;
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1;
}

.config-field {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.config-field span {
  font-size: 13px;
  color: var(--muted);
}

.config-field input,
.config-field textarea,
.config-field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font: inherit;
}

.config-field textarea {
  resize: vertical;
}

.config-meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 12px;
}

.config-meta strong {
  color: var(--text);
}

.config-message {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.config-message[data-tone="pending"] {
  color: var(--accent);
}

.config-message[data-tone="success"] {
  color: #2f6f46;
}

.config-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.config-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
  font: inherit;
}

.config-button-primary {
  background: #22170e;
  color: #fffdf8;
}

.config-button-secondary {
  background: transparent;
  color: var(--text);
}

.config-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.page-header,
.live-panel,
.summary-item,
.summary-board,
.summary-card,
.feed-panel,
.feed-card,
.empty-state {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.top-strip {
  display: grid;
  grid-template-columns: minmax(196px, 0.95fr) minmax(168px, 0.82fr) minmax(0, 2.7fr);
  gap: 8px;
  align-items: stretch;
}

.page-header {
  border-radius: 16px;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(250, 247, 242, 0.94));
}

.eyebrow {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-header h1,
.summary-board-head h2,
.feed-head h2 {
  margin: 8px 0 0;
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.page-header h1 {
  font-size: clamp(19px, 1.95vw, 26px);
  line-height: 0.98;
  white-space: nowrap;
}

.live-panel {
  display: grid;
  align-content: center;
  gap: 1px;
  border-radius: 16px;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(247, 245, 241, 0.94));
}

.live-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.live-panel strong {
  font-size: 15px;
}

.live-panel span:last-child {
  color: var(--muted);
  font-size: 11px;
}

.stats-strip {
  display: grid;
  grid-template-columns: minmax(148px, 1.35fr) repeat(5, minmax(64px, 1fr));
  gap: 6px;
}

.summary-item {
  display: grid;
  gap: 3px;
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.summary-item-sync {
  min-height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(247, 244, 238, 0.9));
}

.summary-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.summary-value {
  display: block;
  font-size: 16px;
  line-height: 1.05;
  font-weight: 800;
  font-variant-numeric: tabular-nums lining-nums;
}

.summary-value-sync {
  font-size: 12px;
  line-height: 1.25;
}

.asset-board {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(248, 246, 242, 0.94));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

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

.asset-board-head-side {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.asset-board-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.asset-board-toggle:hover {
  background: rgba(255, 255, 255, 0.9);
}

.asset-board-body {
  margin-top: 2px;
}

.asset-board-eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.asset-board-head h2 {
  margin: 8px 0 0;
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1;
}

.asset-board-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.asset-board-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 12px;
}

.asset-board-error {
  margin: 12px 0 0;
  color: var(--important);
  font-size: 13px;
}

.asset-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 14px;
}

.asset-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(138px, 42%);
  gap: 12px;
  align-items: start;
  border-radius: 22px;
  border: 1px solid rgba(63, 44, 21, 0.08);
  padding: 18px;
  background: linear-gradient(135deg, rgba(255, 250, 244, 0.96), rgba(255, 255, 255, 0.98));
  overflow: hidden;
}

.asset-card[data-tone="up"] {
  background: linear-gradient(135deg, rgba(229, 248, 241, 0.96), rgba(255, 255, 255, 0.98));
}

.asset-card[data-tone="down"] {
  background: linear-gradient(135deg, rgba(255, 246, 241, 0.96), rgba(255, 255, 255, 0.98));
}

.asset-card-copy {
  display: grid;
  gap: 6px;
  align-content: start;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.asset-card-label {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}

.asset-card-value {
  display: block;
  font-size: clamp(21px, 1.85vw, 25px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  font-variant-numeric: tabular-nums lining-nums;
  word-break: break-word;
}

.asset-card-change {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.asset-card-change[data-tone="up"] {
  color: #2f8e73;
}

.asset-card-change[data-tone="down"] {
  color: #d8643c;
}

.asset-card-visual {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.asset-chart-shell {
  display: grid;
  place-items: center;
  min-height: 94px;
  border: 1px solid rgba(63, 44, 21, 0.08);
  border-radius: 18px;
  padding: 8px 10px 6px;
  background: rgba(255, 255, 255, 0.84);
  overflow: hidden;
  min-width: 0;
}

.asset-sparkline {
  width: 100%;
  height: 74px;
  color: #5f5449;
}

.asset-sparkline[data-tone="up"] {
  color: #2f9f83;
}

.asset-sparkline[data-tone="down"] {
  color: #e06a41;
}

.asset-sparkline-guide {
  stroke: rgba(63, 44, 21, 0.12);
  stroke-width: 1.25;
  stroke-dasharray: 4 5;
}

.asset-sparkline-line {
  stroke: currentColor;
  stroke-width: 3.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.asset-sparkline-marker-fill {
  fill: rgba(255, 255, 255, 0.94);
  stroke: currentColor;
  stroke-width: 2;
}

.asset-sparkline-marker-core {
  fill: currentColor;
}

.asset-chart-empty {
  color: var(--muted);
  font-size: 12px;
}

.asset-card-scale {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.summary-board {
  margin-top: 16px;
  border-radius: 20px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(248, 246, 242, 0.94));
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

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

.summary-board-head-side {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.summary-board-eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.summary-board-head h2 {
  font-size: 26px;
  line-height: 1;
}

.summary-board-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.summary-board-refresh {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.summary-board-refresh:disabled {
  cursor: wait;
  opacity: 0.65;
}

.summary-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.summary-card {
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(250, 247, 242, 0.96));
  min-width: 0;
  max-width: 100%;
}

.summary-card[data-status="running"] {
  box-shadow: 0 18px 50px rgba(167, 83, 31, 0.12);
}

.summary-card[data-status="error"] {
  box-shadow: 0 18px 50px rgba(184, 58, 27, 0.12);
}

.summary-card-head {
  display: grid;
  gap: 8px;
}

.summary-card-window {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.summary-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.summary-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1;
  min-width: 0;
  writing-mode: horizontal-tb;
}

.summary-status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(63, 44, 21, 0.08);
  color: var(--muted);
}

.summary-status-badge[data-status="running"] {
  background: var(--accent-soft);
  color: var(--accent);
}

.summary-status-badge[data-status="ready"] {
  background: rgba(67, 125, 87, 0.12);
  color: #2f6f46;
}

.summary-status-badge[data-status="error"] {
  background: var(--important-soft);
  color: var(--important);
}

.summary-refresh {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  background: #fffaf6;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  justify-self: end;
}

.summary-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  justify-self: end;
}

.summary-refresh:disabled {
  cursor: wait;
  opacity: 0.65;
}

.summary-card-body {
  margin-top: 2px;
  min-width: 0;
  max-width: 100%;
}

.summary-card-meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 12px;
}

.summary-card-meta strong {
  color: var(--text);
  font-weight: 700;
}

.summary-conflict-board {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(30, 36, 42, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(247, 245, 241, 0.84), rgba(255, 255, 255, 0.72));
  min-width: 0;
  max-width: 100%;
}

.summary-conflict-head h4 {
  margin: 0;
  font-size: 13px;
}

.summary-conflict-text {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.summary-conflict-board ul {
  margin: 8px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.summary-sentiment-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(63, 44, 21, 0.1);
  border-radius: 999px;
  background: rgba(63, 44, 21, 0.06);
}

.summary-sentiment-label {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.summary-sentiment-pill strong {
  font-size: 18px;
  line-height: 1;
}

.summary-sentiment-pill[data-tone="risk-on"] {
  background: rgba(67, 125, 87, 0.12);
  border-color: rgba(67, 125, 87, 0.18);
}

.summary-sentiment-pill[data-tone="risk-off"] {
  background: rgba(184, 58, 27, 0.1);
  border-color: rgba(184, 58, 27, 0.18);
}

.summary-sentiment-pill strong[data-tone="risk-on"] {
  color: #2f6f46;
}

.summary-sentiment-pill strong[data-tone="risk-off"] {
  color: var(--important);
}

.summary-signal-board {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(30, 36, 42, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.52);
  min-width: 0;
  max-width: 100%;
}

.summary-signal-board-head h4 {
  margin: 0;
  font-size: 13px;
}

.summary-signal-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.summary-signal-card {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(30, 36, 42, 0.08);
  background: rgba(255, 255, 255, 0.66);
  min-width: 0;
  max-width: 100%;
}

.summary-signal-card[data-summary-signal="bullish"] {
  background: rgba(237, 248, 239, 0.78);
  border-color: rgba(67, 125, 87, 0.14);
}

.summary-signal-card[data-summary-signal="bearish"] {
  background: rgba(255, 244, 240, 0.78);
  border-color: rgba(184, 58, 27, 0.14);
}

.summary-signal-card h5 {
  margin: 0;
  font-size: 13px;
}

.summary-signal-text {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.summary-signal-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.summary-overview {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.summary-error {
  margin: 10px 0 0;
  color: var(--important);
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

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

.summary-module {
  border: 1px solid rgba(30, 36, 42, 0.08);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.62);
  min-width: 0;
  max-width: 100%;
}

.summary-module h4 {
  margin: 0;
  font-size: 13px;
}

.summary-module-text {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.summary-module ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.summary-module ul:not(:empty) {
  margin-top: 8px;
}

.summary-list-empty {
  list-style: none;
  margin-left: -18px;
  color: var(--muted);
}

.feed-panel {
  margin-top: 16px;
  border-radius: 20px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(248, 246, 242, 0.94));
}

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

.feed-head h2 {
  font-size: 26px;
  line-height: 1;
}

.feed-head-side {
  text-align: right;
}

.visible-count {
  display: block;
  font-size: 22px;
  line-height: 1;
}

.feed-summary {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.empty-state {
  margin-top: 12px;
  border-radius: 14px;
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
}

.feed-list {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.feed-card {
  border-radius: 16px;
  padding: 16px 17px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(250, 248, 244, 0.95));
}

.feed-card-important {
  background: linear-gradient(180deg, var(--panel-strong), rgba(255, 243, 238, 0.96));
}

.feed-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.feed-time {
  color: var(--muted);
  font-size: 13px;
}

.feed-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.badge-important {
  background: var(--important-soft);
  color: var(--important);
}

.feed-title {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.feed-actions {
  margin-top: 14px;
}

.feed-actions a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 1040px) {
  .top-strip {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .page-shell {
    max-width: 100vw;
    padding: 14px 10px 32px;
  }

  .page-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .config-overlay {
    place-items: center;
    padding: 16px 12px;
  }

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

  .page-header,
  .live-panel,
  .stats-strip,
  .asset-board,
  .summary-board,
  .feed-panel {
    min-width: 0;
    width: 100%;
  }

  .summary-modules-grid {
    grid-template-columns: 1fr;
    min-width: 0;
  }

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

  .asset-card {
    grid-template-columns: 1fr;
    min-width: 0;
    padding: 14px;
    border-radius: 18px;
  }

  .asset-chart-shell {
    min-height: 78px;
    border-radius: 14px;
  }

  .asset-sparkline {
    height: 60px;
  }

  .asset-board-head-side {
    justify-items: start;
  }

  .asset-board-note,
  .asset-board-meta {
    text-align: left;
    justify-content: flex-start;
  }

  .summary-signal-grid {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .page-header,
  .live-panel,
  .asset-board-head,
  .summary-board-head,
  .feed-head,
  .feed-meta {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

  .summary-board-head-side {
    width: 100%;
    justify-items: start;
  }

  .summary-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  .summary-title-row > * {
    min-width: 0;
  }

  .summary-card h3 {
    flex: 1 1 100%;
    font-size: 21px;
    line-height: 1.25;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .summary-sentiment-pill {
    flex: 1 1 180px;
  }

  .summary-status-badge {
    flex: 0 0 auto;
  }

  .summary-refresh {
    flex: 0 0 auto;
    justify-self: auto;
  }

  .summary-toggle {
    flex: 0 0 auto;
    justify-self: auto;
  }

  .summary-card-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .summary-board-note,
  .feed-head-side {
    text-align: left;
  }

  .feed-badges {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .page-actions {
    margin-bottom: 12px;
  }

  .config-trigger {
    width: 100%;
    justify-content: space-between;
  }

  .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .page-header,
  .live-panel,
  .summary-item,
  .asset-board,
  .summary-board,
  .summary-card,
  .feed-panel,
  .feed-card,
  .empty-state {
    border-radius: 16px;
  }

  .summary-item {
    min-width: 0;
    padding: 10px;
  }

  .summary-item-sync {
    grid-column: 1 / -1;
  }

  .asset-board {
    padding: 14px;
  }

  .asset-board-head,
  .summary-board-head,
  .feed-head {
    gap: 10px;
  }

  .asset-board-head h2,
  .summary-board-head h2 {
    font-size: 22px;
  }

  .asset-card-value {
    font-size: 20px;
  }

  .summary-board {
    padding: 14px;
  }

  .summary-card {
    padding: 14px;
  }

  .summary-card-body,
  .summary-conflict-board,
  .summary-signal-board,
  .summary-module {
    width: 100%;
  }

  .summary-card h3 {
    font-size: 20px;
  }

  .summary-sentiment-pill {
    width: 100%;
    justify-content: space-between;
  }

  .summary-status-badge {
    width: calc(50% - 4px);
    justify-content: center;
  }

  .summary-refresh,
  .summary-toggle {
    width: calc(50% - 4px);
    justify-content: center;
    padding: 6px 10px;
  }

  .feed-card {
    padding: 14px;
  }
}

@media (max-width: 380px) {
  .page-shell {
    padding-left: 8px;
    padding-right: 8px;
  }

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

  .summary-sentiment-pill,
  .summary-refresh,
  .summary-status-badge,
  .summary-toggle {
    width: 100%;
    justify-content: space-between;
  }
}
