/* ============================================================
   Stock System Dashboard — Linear-Inspired Design System
   Based on DESIGN.md from getdesign.md/linear.app
   ============================================================ */

:root {
  /* ---- Background Surfaces (Linear Dark Mode) ---- */
  --bg: #08090a;
  --bg-panel: #0f1011;
  --bg-surface: #191a1b;
  --bg-elevated: #28282c;

  /* ---- Text ---- */
  --text-primary: #f7f8f8;
  --text-secondary: #d0d6e0;
  --text-tertiary: #8a8f98;
  --text-quaternary: #62666d;

  /* ---- Brand & Accent (Linear Indigo-Violet) ---- */
  --accent: #5e6ad2;
  --accent-bg: #5e6ad2;
  --accent-interactive: #7170ff;
  --accent-hover: #828fff;

  /* ---- Status Colors ---- */
  --green: #27a644;
  --green-secondary: #10b981;
  --red: #f85149;
  --orange: #d97706;

  /* ---- Border & Divider ---- */
  --border-primary: #23252a;
  --border-secondary: #34343a;
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-standard: rgba(255, 255, 255, 0.08);

  /* ---- Structural ---- */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;

  --shadow-subtle: rgba(0, 0, 0, 0.03) 0px 1.2px 0px 0px;
  --shadow-surface: rgba(255, 255, 255, 0.05) bg + border;
  --shadow-elevated: rgba(0, 0, 0, 0.4) 0px 2px 4px;
  --shadow-dialog: rgba(0, 0, 0, 0) 0px 8px 2px, rgba(0, 0, 0, 0.01) 0px 5px 2px, rgba(0, 0, 0, 0.04) 0px 3px 2px, rgba(0, 0, 0, 0.07) 0px 1px 1px, rgba(0, 0, 0, 0.08) 0px 0px 1px;

  --nav-h: 48px;
  --content-max-w: 1200px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-feature-settings: "cv01", "ss03";
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter Variable", "SF Pro Display", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   Top Navigation — Linear Dark Sticky Header
   ============================================================ */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 20px;
  background: rgba(15, 16, 17, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  background: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 6px 10px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
  color: var(--accent-interactive);
  background: rgba(94, 106, 210, 0.15);
}

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

/* ---- Refresh indicator ---- */
.refresh-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 49;
  height: 2px;
  background: transparent;
}

.refresh-bar.active {
  background: var(--accent);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

/* ============================================================
   Content & Layout
   ============================================================ */
.content {
  max-width: var(--content-max-w);
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.page-header {
  margin-bottom: 28px;
}

.page-title {
  margin: 0;
  font-size: 28px;
  font-weight: 510;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--text-primary);
}

.page-subtitle {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--text-tertiary);
  letter-spacing: -0.01em;
}

/* ============================================================
   Cards — Linear Style
   ============================================================ */
.card {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-standard);
  transition: background 0.2s, border-color 0.2s;
}

.card:hover {
  background: rgba(255, 255, 255, 0.03);
}

.card-wide { grid-column: 1 / -1; }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 590;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.card-label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 510;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-quaternary);
}

/* ============================================================
   Buttons — Linear Style
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.btn:active {
  transform: scale(0.98);
}

/* ---- Primary CTA ---- */
.btn-primary {
  background: var(--accent-bg);
  border-color: var(--accent-bg);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

/* ---- Small ---- */
.btn-sm {
  min-height: 26px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

/* ---- Disabled ---- */
.btn.disabled,
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================================
   Toggle Switch
   ============================================================ */
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 510;
  color: var(--text-tertiary);
  cursor: pointer;
}

.toggle input[type="checkbox"] {
  width: 32px;
  height: 18px;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 9px;
  background: var(--border-secondary);
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}

.toggle input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}

.toggle input[type="checkbox"]:checked {
  background: var(--green-secondary);
}

.toggle input[type="checkbox"]:checked::after {
  transform: translateX(14px);
}

/* ============================================================
   Badge / Pill / Chip — Linear Style
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 510;
  letter-spacing: 0.02em;
}

.badge.neutral {
  color: var(--text-tertiary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-primary);
}

.badge.green {
  color: var(--green-secondary);
  background: rgba(16, 185, 129, 0.15);
}

.badge.orange {
  color: var(--orange);
  background: rgba(217, 119, 6, 0.15);
}

.badge.red {
  color: var(--red);
  background: rgba(248, 81, 73, 0.15);
}

.badge.blue {
  color: var(--accent-interactive);
  background: rgba(113, 112, 255, 0.15);
}

.pick-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 510;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-primary);
  transition: background 0.15s, border-color 0.15s;
}

.pick-chip:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-secondary);
}

/* ============================================================
   Form Inputs — Linear Style
   ============================================================ */
.input-field {
  width: 100%;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-standard);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input-field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(94, 106, 210, 0.15);
}

.input-field::placeholder {
  color: var(--text-quaternary);
}

/* ---- Textarea ---- */
.textarea {
  min-height: 120px;
  padding: 12px;
  line-height: 1.6;
  resize: vertical;
}

/* ============================================================
   Grid & Layout Utilities
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

/* ============================================================
   Metric Blocks — Linear Style
   ============================================================ */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.metric-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
}

.metric-label {
  font-size: 11px;
  font-weight: 510;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-quaternary);
}

.metric-value {
  font-size: 22px;
  font-weight: 510;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text-primary);
}

/* ============================================================
   Stack List — Linear Style
   ============================================================ */
.stack-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.stack-item {
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  transition: background 0.15s, border-color 0.15s;
}

.stack-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-standard);
}

.stack-item strong {
  display: block;
  font-size: 14px;
  font-weight: 510;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.stack-item small {
  font-size: 12px;
  color: var(--text-quaternary);
}

.stack-item p {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================================
   Status Indicators — Linear Style
   ============================================================ */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.green { background: var(--green-secondary); }
.status-dot.orange { background: var(--orange); }
.status-dot.red { background: var(--red); }
.status-dot.gray { background: var(--text-quaternary); }

.status-dot.pulse {
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-status-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-title {
  font-size: 22px;
  font-weight: 510;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

/* ============================================================
   Summary Strip
   ============================================================ */
.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.summary-item {
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
}

.summary-label {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 510;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-quaternary);
}

.summary-value {
  font-size: 18px;
  font-weight: 510;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* ============================================================
   Price Strip
   ============================================================ */
.price-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
}

.price-strip-label {
  display: block;
  margin-bottom: 2px;
  font-size: 10px;
  font-weight: 510;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-quaternary);
}

.price-strip-value {
  display: block;
  font-size: 18px;
  font-weight: 510;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.price-strip-change {
  display: block;
  font-size: 12px;
  font-weight: 500;
}

.price-up .price-strip-change,
.price-up .price-strip-value { color: var(--red); }

.price-down .price-strip-change,
.price-down .price-strip-value { color: var(--green-secondary); }

.price-flat .price-strip-change,
.price-flat .price-strip-value { color: var(--text-primary); }

/* ============================================================
   Spinner — Linear Style
   ============================================================ */
.spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(94, 106, 210, 0.2);
  border-top-color: var(--accent-interactive);
  animation: spin 0.7s linear infinite;
}

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

/* ============================================================
   Toast — Linear Style
   ============================================================ */
.toast {
  position: fixed;
  top: calc(var(--nav-h) + 12px);
  right: 16px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-standard);
  box-shadow: var(--shadow-elevated);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  transform: translateX(calc(100% + 40px));
  opacity: 0;
  transition: transform 0.3s ease-out, opacity 0.3s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* ============================================================
   Progress Bar
   ============================================================ */
.scan-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-secondary);
  background: rgba(94, 106, 210, 0.08);
  border: 1px solid rgba(94, 106, 210, 0.2);
}

/* ============================================================
   Error Banner
   ============================================================ */
.error-banner {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--red);
  background: rgba(248, 81, 73, 0.1);
  border-left: 3px solid var(--red);
}

/* ============================================================
   Hero Meta Grid
   ============================================================ */
.hero-meta-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.hero-meta-card {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
}

.meta-label {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 510;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-quaternary);
}

.hero-meta-card strong {
  font-size: 14px;
  font-weight: 510;
  color: var(--text-primary);
}

/* ============================================================
   Details Toggle
   ============================================================ */
.detail-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 510;
  color: var(--accent-interactive);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  transition: opacity 0.15s;
}

.detail-toggle:hover {
  opacity: 0.8;
}

.detail-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease-out;
}

.detail-toggle.open svg {
  transform: rotate(90deg);
}

.detail-panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

/* ============================================================
   Scroll Animation
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUpIn 0.5s ease-out forwards;
}

@keyframes fadeUpIn {
  to { opacity: 1; transform: translateY(0); }
}

.fade-up:nth-child(1) { animation-delay: 0s; }
.fade-up:nth-child(2) { animation-delay: 0.06s; }
.fade-up:nth-child(3) { animation-delay: 0.12s; }
.fade-up:nth-child(4) { animation-delay: 0.18s; }

/* ============================================================
   Mobile Tab Bar
   ============================================================ */
.tab-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 56px;
  padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom, 0);
  background: rgba(8, 9, 10, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  align-items: center;
  justify-content: space-around;
}

.tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  background: none;
  border: none;
  color: var(--text-quaternary);
  font-size: 10px;
  font-weight: 510;
  cursor: pointer;
  transition: color 0.15s;
}

.tab-btn.active {
  color: var(--accent-interactive);
}

.tab-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   Manual Selection Styles (New)
   ============================================================ */
.manual-card {
  padding: 20px;
}

.manual-textarea-wrap {
  position: relative;
}

.manual-textarea {
  width: 100%;
  min-height: 140px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-standard);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.manual-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(94, 106, 210, 0.15);
}

.manual-textarea::placeholder {
  color: var(--text-quaternary);
}

.manual-textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.manual-meta {
  margin-top: 14px;
}

.manual-meta-label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 510;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.code-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
}

.code-tags-empty {
  font-size: 12px;
  color: var(--text-quaternary);
}

.code-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 510;
  color: var(--text-primary);
  background: rgba(94, 106, 210, 0.15);
  border: 1px solid rgba(94, 106, 210, 0.25);
}

.manual-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.manual-actions .btn {
  min-height: 38px;
  padding: 0 20px;
  font-size: 13px;
}

.manual-hint {
  font-size: 12px;
  color: var(--text-quaternary);
}

.results-section {
  margin-top: 24px;
}

.results-section-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 590;
  color: var(--text-primary);
}

.results-section-title--muted {
  color: var(--text-tertiary);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.result-card {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-standard);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.result-card:hover {
  transform: translateY(-1px);
}

.result-card--selected {
  border-color: rgba(94, 106, 210, 0.35);
  background: rgba(94, 106, 210, 0.05);
}

.result-card--rejected {
  opacity: 0.8;
}

.result-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.result-card-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.result-code {
  font-size: 16px;
  font-weight: 590;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.result-name {
  font-size: 13px;
  color: var(--text-secondary);
}

.result-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.result-card--rejected .result-metrics {
  grid-template-columns: repeat(2, 1fr);
}

.result-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
}

.result-metric-label {
  font-size: 10px;
  font-weight: 510;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-quaternary);
}

.result-metric-value {
  font-size: 14px;
  font-weight: 510;
  color: var(--text-primary);
}

.result-industry {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-quaternary);
}

.result-reason {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ============================================================
   Utility
   ============================================================ */
.hidden { display: none !important; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-actions .btn-secondary { display: none; }
  .topnav { padding: 0 14px; }
  .content { padding: 20px 14px 60px; }
  .tab-bar { display: flex; }
  .card-grid { grid-template-columns: 1fr; }
  .page-title { font-size: 22px; }
  .status-title { font-size: 18px; }
  .page-header { margin-bottom: 20px; }
  .metrics-row { grid-template-columns: 1fr; gap: 10px; }
  .summary-strip { grid-template-columns: repeat(2, 1fr); }
  .price-strip { grid-template-columns: repeat(2, 1fr); }
  .result-grid { grid-template-columns: 1fr; }
  .result-metrics { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .summary-strip { grid-template-columns: 1fr; }
  .indicator-grid { gap: 6px; }
}