/* ═══════════════════════════════════════════
   LARGE™ — Lazy Automated Report Generator
   Main Stylesheet
═══════════════════════════════════════════ */

:root {
  --blue-900: #1e3a8a;
  --blue-800: #1e40af;
  --blue-700: #1d4ed8;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;
  --red-600:  #dc2626;
  --red-100:  #fee2e2;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --yellow-400: #fbbf24;
  --green-600:  #16a34a;
  --white: #ffffff;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--slate-100);
  color: var(--slate-800);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hidden { display: none !important; }

/* ═══ SPLASH / DISCLAIMER ═══ */
.splash-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--slate-900) 0%, var(--blue-900) 100%);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.splash-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 780px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
  overflow: hidden;
}

.splash-header {
  background: linear-gradient(135deg, var(--slate-900) 0%, var(--blue-900) 100%);
  color: var(--white);
  padding: 28px 32px 24px;
  text-align: center;
  flex-shrink: 0;
}

.splash-logo {
  font-size: 1.1em;
  font-weight: 900;
  letter-spacing: 5px;
  color: var(--blue-100);
  margin-bottom: 8px;
  font-family: Arial, sans-serif;
}

.splash-title {
  font-size: 1.35em;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--white);
}

.splash-tagline {
  font-size: 0.88em;
  color: var(--slate-300);
  font-style: italic;
  margin: 0;
}

.splash-body {
  flex: 1;
  overflow-y: auto;
  padding: 28px 32px;
  scrollbar-width: thin;
  scrollbar-color: var(--slate-300) transparent;
}

.splash-body::-webkit-scrollbar { width: 5px; }
.splash-body::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 99px; }

.splash-legal-title {
  font-size: 1em;
  font-weight: 700;
  color: var(--blue-800);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--slate-200);
}

.splash-legal-text {
  font-size: 0.8em;
  color: var(--slate-600);
  line-height: 1.75;
}

.splash-legal-text p {
  margin-bottom: 12px;
}

.splash-legal-text strong {
  color: var(--slate-800);
  font-size: 0.95em;
  letter-spacing: 0.2px;
}

.splash-effective {
  font-size: 0.9em;
  color: var(--slate-400);
  border-top: 1px solid var(--slate-200);
  padding-top: 10px;
  margin-top: 16px !important;
}

.splash-effective a {
  color: var(--blue-800);
}

.splash-footer {
  padding: 20px 32px 24px;
  border-top: 1px solid var(--slate-200);
  background: var(--slate-50);
  flex-shrink: 0;
}

.splash-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.82em;
  color: var(--slate-600);
  line-height: 1.5;
  margin-bottom: 16px;
}

.splash-checkbox-wrap input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 2px;
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--blue-800);
}

.btn-splash-continue {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-700) 100%);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(30, 64, 175, 0.35);
  letter-spacing: 0.2px;
}

.btn-splash-continue:disabled {
  background: var(--slate-300);
  color: var(--slate-500);
  box-shadow: none;
  cursor: not-allowed;
}

.btn-splash-continue:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4);
}

/* ═══ LOADING OVERLAY ═══ */
#loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 56px;
  text-align: center;
  max-width: 520px;
  width: 90%;
  box-shadow: var(--shadow-lg);
}

.spinner {
  width: 52px;
  height: 52px;
  border: 5px solid var(--slate-200);
  border-top-color: var(--blue-800);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
  margin: 0 auto 24px;
}

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

.loading-msg {
  font-size: 1.1em;
  font-weight: 600;
  color: var(--blue-800);
  margin-bottom: 10px;
  min-height: 1.6em;
  transition: opacity 0.3s;
}

.loading-sub {
  color: var(--slate-500);
  font-size: 0.9em;
  line-height: 1.6;
  margin-bottom: 28px;
}

.loading-bar-wrap {
  background: var(--slate-200);
  border-radius: 99px;
  height: 6px;
  overflow: hidden;
}

.loading-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-800), var(--blue-700), var(--red-600));
  border-radius: 99px;
  width: 0%;
  animation: progress 25s ease-in-out forwards;
}

@keyframes progress {
  0%   { width: 0%; }
  20%  { width: 35%; }
  50%  { width: 62%; }
  80%  { width: 84%; }
  100% { width: 94%; }
}

/* ═══ HEADER ═══ */
.site-header {
  background: linear-gradient(135deg, var(--slate-900) 0%, var(--blue-900) 100%);
  color: var(--white);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.character-wrap {
  flex-shrink: 0;
}

.character-svg {
  width: 72px;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
  transition: transform 0.3s;
}

.character-svg:hover {
  transform: scale(1.05) rotate(-2deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-acronym {
  font-size: 2.2em;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--white);
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.brand-name {
  font-size: 0.78em;
  color: var(--blue-100);
  letter-spacing: 0.5px;
  font-weight: 500;
}

.brand-tagline {
  font-size: 0.7em;
  color: var(--slate-300);
  font-style: italic;
  margin-top: 2px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--blue-100);
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 0.75em;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ═══ MAIN LAYOUT ═══ */
.main-layout {
  flex: 1;
  display: flex;
  gap: 0;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 20px;
  align-items: flex-start;
}

/* ═══ FORM PANEL ═══ */
.form-panel {
  width: 400px;
  flex-shrink: 0;
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--slate-300) transparent;
}

.form-panel::-webkit-scrollbar { width: 5px; }
.form-panel::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 99px; }

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-200);
}

.form-title {
  font-size: 1.15em;
  font-weight: 700;
  color: var(--blue-800);
  margin-bottom: 6px;
}

.form-desc {
  font-size: 0.85em;
  color: var(--slate-500);
  margin-bottom: 24px;
  line-height: 1.5;
}

.field-group {
  margin-bottom: 24px;
}

.field-label {
  display: block;
  font-size: 0.88em;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 10px;
  letter-spacing: 0.2px;
}

.label-tag {
  background: var(--blue-50);
  color: var(--blue-800);
  font-size: 0.75em;
  padding: 2px 7px;
  border-radius: 99px;
  font-weight: 500;
  margin-left: 6px;
  vertical-align: middle;
}

.label-optional {
  color: var(--slate-500);
  font-weight: 400;
  font-size: 0.82em;
  margin-left: 5px;
}

.field-hint {
  font-size: 0.78em;
  color: var(--slate-500);
  margin-top: 7px;
  line-height: 1.5;
}

/* Radio grid */
.radio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.radio-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.radio-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-sm);
  background: var(--slate-50);
  transition: all 0.15s;
  position: relative;
  text-align: center;
}

.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-card:hover {
  border-color: var(--blue-800);
  background: var(--blue-50);
}

.radio-card:has(input:checked) {
  border-color: var(--blue-800);
  background: var(--blue-50);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
}

.radio-icon { font-size: 1.3em; }
.radio-text { font-size: 0.78em; font-weight: 600; color: var(--slate-700); }
.radio-hint { font-size: 0.68em; color: var(--slate-500); line-height: 1.3; }

/* Text inputs */
.text-input {
  width: 100%;
  padding: 10px 13px;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-size: 0.9em;
  color: var(--slate-800);
  background: var(--slate-50);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  font-family: inherit;
}

.text-input:focus {
  border-color: var(--blue-800);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.12);
}

/* Audacity selector */
.audacity-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.audacity-opt {
  cursor: pointer;
}

.audacity-opt input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.audacity-card {
  padding: 12px 8px;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-sm);
  background: var(--slate-50);
  text-align: center;
  transition: all 0.15s;
}

.audacity-opt:hover .audacity-card {
  border-color: var(--blue-800);
  background: var(--blue-50);
}

.audacity-opt:has(input:checked) .audacity-card {
  border-color: var(--blue-800);
  background: var(--blue-50);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
}

.audacity-opt[data-level="high"]:has(input:checked) .audacity-card {
  border-color: var(--red-600);
  background: var(--red-100);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.audacity-high {
  border-color: rgba(220, 38, 38, 0.3) !important;
}

.audacity-icon { font-size: 1.5em; margin-bottom: 4px; }
.audacity-name { font-size: 0.82em; font-weight: 700; color: var(--slate-800); }
.audacity-desc { font-size: 0.68em; color: var(--slate-500); line-height: 1.4; margin-top: 3px; }

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--slate-300);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  background: var(--slate-50);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--blue-800);
  background: var(--blue-50);
}

.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-icon { font-size: 1.8em; margin-bottom: 8px; }
.upload-text { font-size: 0.88em; color: var(--slate-600); }
.upload-hint { font-size: 0.75em; color: var(--slate-500); margin-top: 4px; }

.file-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.file-preview-item {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--slate-200);
}

.file-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-preview-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Generate button */
.btn-generate {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-700) 100%);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1em;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(30, 64, 175, 0.35);
  letter-spacing: 0.3px;
  margin-top: 8px;
}

.btn-generate:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4);
}

.btn-generate:active {
  transform: translateY(0);
}

.btn-generate:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-icon { font-size: 1.1em; }

/* ═══ PREVIEW PANEL ═══ */
.preview-panel {
  flex: 1;
  min-width: 0;
  margin-left: 24px;
}

.preview-toolbar {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

.toolbar-left {}
.toolbar-title {
  font-size: 0.95em;
  font-weight: 700;
  color: var(--blue-800);
  display: block;
}
.toolbar-sub {
  font-size: 0.75em;
  color: var(--slate-500);
}

.toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-export {
  padding: 8px 14px;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-size: 0.82em;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
  background: var(--white);
  color: var(--slate-700);
}

.btn-export:hover {
  border-color: var(--blue-800);
  color: var(--blue-800);
  background: var(--blue-50);
}

.btn-export span {
  font-size: 1.1em;
}

.btn-html { }
.btn-pdf  { }
.btn-word { font-style: italic; }

.btn-regenerate {
  padding: 8px 14px;
  background: var(--slate-800);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.82em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-regenerate:hover {
  background: var(--blue-800);
}

.btn-clear {
  padding: 8px 14px;
  background: var(--white);
  color: var(--red-600);
  border: 2px solid var(--red-600);
  border-radius: var(--radius-sm);
  font-size: 0.82em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-clear:hover {
  background: var(--red-600);
  color: var(--white);
}

/* Report frame */
.report-frame {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  box-shadow: var(--shadow-sm);
  scrollbar-width: thin;
  scrollbar-color: var(--slate-300) transparent;
}

.report-frame::-webkit-scrollbar { width: 8px; }
.report-frame::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 99px; }

/* Report content styles (mirrors the export CSS in app.py) */
.report-content {
  padding: 48px 52px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.97em;
  color: #1e293b;
  line-height: 1.8;
  max-width: 860px;
  margin: 0 auto;
}

.report-content .cover-page {
  text-align: center;
  padding: 60px 32px 48px;
  border-bottom: 3px solid #1e40af;
  margin-bottom: 48px;
}

.report-content .cover-logo {
  font-family: Arial, sans-serif;
  font-size: 1.1em;
  font-weight: 900;
  color: #1e40af;
  letter-spacing: 4px;
  margin-bottom: 24px;
}

.report-content .cover-page h1 {
  font-size: 2.1em;
  color: #1e293b;
  margin: 0 0 14px;
  line-height: 1.3;
  border: none;
  padding: 0;
}

.report-content .cover-subtitle {
  font-size: 1.1em;
  color: #64748b;
  font-style: italic;
  margin-bottom: 40px;
}

.report-content .cover-meta {
  display: inline-block;
  text-align: left;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px 28px;
  margin: 0 auto 24px;
  min-width: 360px;
}

.report-content .cover-meta-item {
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.92em;
}

.report-content .cover-meta-item:last-child { border-bottom: none; }

.report-content .cover-meta-item span {
  font-weight: bold;
  color: #1e40af;
  margin-right: 8px;
}

.report-content .cover-disclaimer {
  font-size: 0.75em;
  color: #94a3b8;
  font-style: italic;
  margin-top: 16px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.report-content h2 {
  color: #1e40af;
  font-size: 1.45em;
  border-bottom: 2px solid #1e40af;
  padding-bottom: 8px;
  margin-top: 42px;
  margin-bottom: 16px;
}

.report-content h3 {
  color: #334155;
  font-size: 1.1em;
  margin-top: 26px;
  margin-bottom: 10px;
}

.report-content p { margin-bottom: 14px; }

.report-content .data-table {
  border-collapse: collapse;
  width: 100%;
  margin: 22px 0;
  font-size: 0.88em;
  font-family: Arial, sans-serif;
}

.report-content .data-table th {
  background: #1e40af;
  color: white;
  padding: 11px 13px;
  text-align: left;
  font-weight: 600;
}

.report-content .data-table td {
  border: 1px solid #e2e8f0;
  padding: 9px 13px;
}

.report-content .data-table tr:nth-child(even) td { background: #f8fafc; }
.report-content .data-table tr:hover td { background: #eff6ff; transition: background 0.1s; }

.report-content .exec-quote {
  border-left: 5px solid #dc2626;
  margin: 26px 0;
  padding: 14px 22px;
  background: #fff5f5;
  color: #7f1d1d;
  font-style: italic;
  font-size: 1.03em;
  border-radius: 0 6px 6px 0;
}

.report-content .callout {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 18px 22px;
  margin: 22px 0;
}

.report-content .callout-title {
  font-weight: bold;
  color: #1e40af;
  margin-bottom: 8px;
  font-family: Arial, sans-serif;
  font-size: 0.9em;
}

.report-content .metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.report-content .metric-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px 12px;
  text-align: center;
  font-family: Arial, sans-serif;
}

.report-content .metric-value {
  font-size: 1.9em;
  font-weight: 900;
  color: #1e40af;
  line-height: 1.1;
}

.report-content .metric-label {
  color: #64748b;
  font-size: 0.78em;
  margin-top: 5px;
}

.report-content .metric-change {
  font-size: 0.74em;
  margin-top: 5px;
  font-weight: 600;
}

.report-content .metric-change.positive { color: #16a34a; }
.report-content .metric-change.negative { color: #dc2626; }

.report-content .footnote {
  font-size: 0.75em;
  color: #94a3b8;
  border-top: 1px solid #f1f5f9;
  padding-top: 8px;
  font-style: italic;
  margin-top: 20px;
}

.report-content .page-break {
  border-top: 1px dashed #e2e8f0;
  margin: 40px 0;
}

.report-content .toc {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 22px 28px;
  margin-bottom: 36px;
}

.report-content .toc h2 {
  margin-top: 0;
  font-size: 1.2em;
}

/* ═══ EMPTY STATE ═══ */
.empty-state-panel {
  flex: 1;
  min-width: 0;
  margin-left: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.empty-state {
  text-align: center;
  padding: 48px 32px;
  background: var(--white);
  border: 2px dashed var(--slate-300);
  border-radius: var(--radius-lg);
  width: 100%;
}

.empty-state-icon {
  font-size: 3.5em;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state-title {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--slate-600);
  margin-bottom: 12px;
}

.empty-state-sub {
  color: var(--slate-500);
  font-size: 0.92em;
  line-height: 1.7;
}

/* ═══ FOOTER ═══ */
.site-footer {
  background: var(--slate-900);
  color: var(--slate-500);
  text-align: center;
  padding: 16px 20px;
  font-size: 0.78em;
  margin-top: auto;
}

/* ═══ ERROR STATE ═══ */
.error-box {
  background: var(--red-100);
  border: 1px solid #fca5a5;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  color: #991b1b;
  font-size: 0.92em;
  line-height: 1.6;
}

.error-box strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05em;
}

/* ═══ BUDGET ERROR ═══ */
.error-budget {
  text-align: center;
  padding: 48px 32px;
  border-color: #fca5a5;
}

.error-budget-icon {
  font-size: 3em;
  margin-bottom: 16px;
}

.error-budget strong {
  display: block;
  font-size: 1.2em;
  margin-bottom: 14px;
  color: #991b1b;
}

.error-budget p {
  font-size: 1em;
  color: #7f1d1d;
  line-height: 1.7;
  margin: 0;
}

.error-budget a {
  color: var(--blue-800);
  font-weight: 600;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  .main-layout {
    flex-direction: column;
    padding: 16px;
  }

  .form-panel {
    width: 100%;
    position: static;
    max-height: none;
    overflow-y: visible;
  }

  .empty-state-panel {
    margin-left: 0;
    margin-top: 20px;
    min-height: 200px;
  }

  .preview-panel {
    margin-left: 0;
    margin-top: 20px;
  }

  .report-frame {
    max-height: 70vh;
  }

  .report-content {
    padding: 28px 24px;
  }

  .header-inner {
    padding: 10px 16px;
  }

  .brand-acronym { font-size: 1.8em; }
  .character-svg { width: 55px; }
  .brand-name { display: none; }

  .radio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .audacity-selector { grid-template-columns: 1fr; }
  .toolbar-actions { gap: 6px; }
  .btn-export { padding: 6px 10px; font-size: 0.78em; }
}
