:root {
  --bg: #12141a;
  --bg-deep: #0c0e12;
  --surface: #1a1d26;
  --surface-2: #222632;
  --line: #2c3140;
  --line-strong: #3a4154;
  --text: #f2f0ea;
  --text-dim: #a8a69e;
  --muted: #7a7880;
  --accent: #e8a23a;
  --accent-soft: rgba(232, 162, 58, 0.14);
  --accent-ink: #1a1408;
  --success: #6ecf9a;
  --warn: #e8a23a;
  --danger: #e07a72;
  --chord-a: #5b8def;
  --chord-b: #c084fc;
  --chord-c: #34d399;
  --chord-d: #fbbf24;
  --chord-e: #f472b6;
  --chord-f: #60a5fa;
  --bass: #7ec8e8;
  --playhead: #ff5c5c;
  --radius: 10px;
  --radius-sm: 6px;
  --font: "Manrope", ui-sans-serif, sans-serif;
  --display: "Syne", "Manrope", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

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

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Atmospheric backdrop — CSS only, no blur filters for perf */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 8% -5%, rgba(232, 162, 58, 0.09), transparent 55%),
    radial-gradient(700px 480px at 92% 8%, rgba(94, 120, 180, 0.08), transparent 50%),
    linear-gradient(180deg, #151820 0%, var(--bg-deep) 42%, #0a0b0f 100%);
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.app {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 4rem;
}

/* —— Header —— */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  animation: rise 0.55s var(--ease) both;
}

.brand {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
  padding: 2px 0;
}

.brand-bar {
  width: 4px;
  border-radius: 2px;
  background: var(--accent);
  transform-origin: bottom;
}

.brand-bar:nth-child(1) { height: 42%; animation: barPulse 2.4s var(--ease) infinite; }
.brand-bar:nth-child(2) { height: 100%; animation: barPulse 2.4s var(--ease) 0.2s infinite; }
.brand-bar:nth-child(3) { height: 68%; animation: barPulse 2.4s var(--ease) 0.4s infinite; }

.brand-text { display: flex; flex-direction: column; gap: 0.1rem; }
.brand-name {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.brand-sub {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.top-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.export-group {
  display: flex;
  gap: 0.3rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

/* —— Buttons —— */
.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.9rem;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 560;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
  box-shadow: var(--shadow-soft);
}

.btn:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: #2a3040;
}

.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.38; cursor: not-allowed; }

.btn-ghost {
  background: transparent;
  box-shadow: none;
}

.btn-primary {
  background: var(--accent);
  border-color: transparent;
  color: var(--accent-ink);
  font-weight: 700;
}

.btn-primary:hover:not(:disabled) {
  background: #f0b45a;
  border-color: transparent;
}

.chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  padding: 0.28rem 0.6rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.chip:hover { border-color: var(--line-strong); color: var(--text); }
.chip.active {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

/* —— Workspaces —— */
.workspace {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-soft);
  animation: rise 0.6s var(--ease) both;
}

.upload-workspace { animation-delay: 0.05s; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.section-head.compact { margin-bottom: 0.65rem; }

.section-head h2,
.section-head h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-head h3 { font-size: 0.92rem; }
.hint { color: var(--muted); font-size: 0.78rem; }

/* —— Dropzone —— */
.dropzone {
  position: relative;
  border: 1px dashed var(--line-strong);
  border-radius: calc(var(--radius) - 2px);
  padding: 2.6rem 1.25rem 2.3rem;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%),
    var(--bg);
  outline: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.dropzone::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 180px at 50% 100%, var(--accent-soft), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  pointer-events: none;
}

.dropzone:hover,
.dropzone:focus-visible,
.dropzone.dragover {
  border-color: var(--accent);
}

.dropzone:hover::before,
.dropzone:focus-visible::before,
.dropzone.dragover::before {
  opacity: 1;
}

.dropzone-visual { margin-bottom: 1.1rem; }

.waveform {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
  height: 42px;
}

.waveform span {
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.55;
  animation: wave 1.4s ease-in-out infinite;
}

.waveform span:nth-child(1)  { height: 18%; animation-delay: 0.00s; }
.waveform span:nth-child(2)  { height: 42%; animation-delay: 0.05s; }
.waveform span:nth-child(3)  { height: 68%; animation-delay: 0.10s; }
.waveform span:nth-child(4)  { height: 100%; animation-delay: 0.15s; }
.waveform span:nth-child(5)  { height: 72%; animation-delay: 0.20s; }
.waveform span:nth-child(6)  { height: 48%; animation-delay: 0.25s; }
.waveform span:nth-child(7)  { height: 88%; animation-delay: 0.30s; }
.waveform span:nth-child(8)  { height: 56%; animation-delay: 0.35s; }
.waveform span:nth-child(9)  { height: 34%; animation-delay: 0.40s; }
.waveform span:nth-child(10) { height: 76%; animation-delay: 0.45s; }
.waveform span:nth-child(11) { height: 92%; animation-delay: 0.50s; }
.waveform span:nth-child(12) { height: 44%; animation-delay: 0.55s; }
.waveform span:nth-child(13) { height: 62%; animation-delay: 0.60s; }
.waveform span:nth-child(14) { height: 28%; animation-delay: 0.65s; }
.waveform span:nth-child(15) { height: 50%; animation-delay: 0.70s; }

.dropzone-copy { position: relative; z-index: 1; }
.drop-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.drop-sub {
  margin: 0.4rem 0 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* —— Options —— */
.analyze-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.35rem;
  margin-top: 1.1rem;
  color: var(--text-dim);
  font-size: 0.88rem;
  align-items: center;
}

.opt {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  user-select: none;
}

.opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.opt-box {
  width: 16px;
  height: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--bg);
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s;
}

.opt input:checked + .opt-box {
  background: var(--accent);
  border-color: var(--accent);
}

.opt input:checked + .opt-box::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid var(--accent-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.opt input:focus-visible + .opt-box {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.opt-select {
  gap: 0.4rem;
}

.opt-label { color: var(--muted); }

.opt-select select {
  appearance: none;
  -webkit-appearance: none;
  width: auto;
  max-width: max-content;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23a8a69e' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
  background-size: 10px 6px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.35rem 1.7rem 0.35rem 0.55rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.opt-select select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* —— Progress —— */
.progress-wrap { margin-top: 1.35rem; }

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.45rem;
}

.progress-label {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-family: var(--mono);
}

.progress-pct {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
}

.progress-bar {
  height: 4px;
  background: var(--bg);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transform-origin: left;
  transition: width 0.3s var(--ease);
  will-change: width;
}

.stage-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0.9rem 0 0;
}

.stage-list li {
  font-size: 0.74rem;
  font-weight: 560;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.28rem 0.65rem;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.stage-list li.active {
  color: var(--accent);
  border-color: rgba(232, 162, 58, 0.45);
  background: var(--accent-soft);
}

.stage-list li.done {
  color: var(--text);
  background: rgba(110, 207, 154, 0.1);
  border-color: transparent;
}

.error-banner {
  margin-top: 1rem;
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius-sm);
  background: rgba(224, 122, 114, 0.1);
  border: 1px solid rgba(224, 122, 114, 0.35);
  color: #f0b8b4;
  font-size: 0.9rem;
}

/* —— Results —— */
.results {
  animation: rise 0.5s var(--ease) both;
}

.results-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.results-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  word-break: break-word;
}

.spelling-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.spelling-toggle input {
  margin: 0;
  accent-color: var(--accent);
}

.status-line {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.4;
}

.status-line .status-done {
  color: var(--success);
  font-weight: 650;
  margin-right: 0.35rem;
}

.status-line .status-note {
  color: var(--muted);
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.text-field {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow-soft);
  margin-bottom: 0.65rem;
  min-width: 0;
}

.text-field .label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.text-field .label {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.text-field .plain {
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  user-select: text;
  -webkit-user-select: text;
  padding: 0.45rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
}

.timestamped-chords {
  margin-bottom: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.timestamped-chords > summary {
  cursor: pointer;
  padding: 0.75rem 1rem;
  font-size: 0.78rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  user-select: none;
}

.timestamped-chords > summary::-webkit-details-marker {
  display: none;
}

.timestamped-chords > summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--text-dim);
}

.timestamped-chords[open] > summary::after {
  content: "−";
}

.timestamped-list {
  margin: 0;
  padding: 0 1rem 0.85rem;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-dim);
  max-height: 14rem;
  overflow-y: auto;
  user-select: text;
  -webkit-user-select: text;
}

.timestamped-list li {
  padding: 0.15rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.timestamped-list .tc-chord {
  color: var(--text);
  margin-left: 0.65rem;
}

.metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem 1rem;
  box-shadow: var(--shadow-soft);
  min-width: 0;
  overflow: hidden;
}

.metric .label {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric .label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}

.metric .value {
  margin-top: 0.35rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.metric .sub {
  margin-top: 0.25rem;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-family: var(--mono);
  overflow-wrap: anywhere;
  word-break: break-all;
  max-width: 100%;
}

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

.metric.wide .value {
  font-size: 1.15rem;
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Long mono strings (bass contour) — wrap inside the card */
.metric .contour-text {
  margin-top: 0.45rem;
  color: var(--text-dim);
  font-size: 0.72rem;
  font-family: var(--mono);
  line-height: 1.45;
  word-break: break-all;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  max-height: 4.5em;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
}

.btn-copy {
  flex: 0 0 auto;
  appearance: none;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease), background 0.15s var(--ease);
}

.btn-copy:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.btn-copy.is-copied {
  color: var(--success);
  border-color: rgba(110, 207, 154, 0.45);
}

/* —— Player —— */
.player-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.main-transport {
  flex: 1 1 280px;
  min-width: 0;
}

.main-transport audio,
.stem-row audio {
  width: 100%;
  height: 36px;
  border-radius: var(--radius-sm);
}

.synth-controls {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  flex-wrap: wrap;
}

.slider-label {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 560;
}

.slider-label input[type="range"] {
  width: 110px;
  accent-color: var(--accent);
}

.stem-mixer { margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.stem-rows { display: grid; gap: 0.55rem; }

.stem-row {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem 0.7rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.stem-name {
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.stem-actions {
  display: flex;
  gap: 0.35rem;
}

/* —— Timeline —— */
.timeline-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-deep);
  -webkit-overflow-scrolling: touch;
  contain: content;
}

#timeline {
  display: block;
  cursor: crosshair;
}

/* —— Warnings —— */
.warnings-workspace ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--warn);
}

.warnings-workspace li {
  margin: 0.3rem 0;
  cursor: pointer;
  transition: color 0.15s;
}

.warnings-workspace li:hover { color: #f0c06a; }

.warnings-workspace.empty ul {
  color: var(--muted);
  list-style: none;
  padding-left: 0;
}

.warnings-workspace.empty li { cursor: default; }
.warnings-workspace.empty li:hover { color: var(--muted); }

/* —— Toast —— */
.toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 50;
  padding: 0.7rem 1.1rem;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 560;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  animation: toastIn 0.35s var(--ease) both;
  max-width: min(90vw, 420px);
  text-align: center;
}

/* —— Utilities —— */
.hidden { display: none !important; }

/* —— Motion —— */
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes barPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.85; }
  50% { transform: scaleY(0.72); opacity: 1; }
}

@keyframes wave {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1); }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .app { padding: 1rem 0.9rem 3rem; }

  .brand-name { font-size: 1.35rem; }
  .brand-sub { display: none; }

  .dropzone { padding: 2rem 1rem; }
  .drop-title { font-size: 1.15rem; }

  .stem-row {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .stem-actions { justify-content: flex-start; }

  .export-group { width: 100%; }
  .export-group .btn { flex: 1; }
}

@media (max-width: 480px) {
  .summary-strip { grid-template-columns: 1fr; }
  .top-actions { width: 100%; }
  .btn { flex: 1 1 auto; text-align: center; }
  .analyze-options { gap: 0.75rem; }
}
