/* =====================================================================
   Sidelane Beta Testing — Tester Form Styles
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Reset & Tokens ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  color-scheme: light;
  --primary:        #087F99;
  --primary-light:  #087F99;
  --primary-glow:   rgba(8, 127, 153, 0.10);
  --accent:         #078A68;
  --accent-glow:    rgba(7, 138, 104, 0.10);

  --bg:             #F5F8FA;
  --bg-card:        #FFFFFF;
  --bg-card-hover:  #F0F7F9;
  --bg-input:       #FFFFFF;
  --border:         #D7E0E5;
  --border-focus:   rgba(8, 127, 153, 0.65);

  --text-primary:   #17232B;
  --text-secondary: #52636D;
  --text-muted:     #74858E;

  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  18px;
  --radius-xl:  24px;

  --shadow-card: 0 4px 24px rgba(23,35,43,0.08);
  --shadow-glow: 0 0 30px rgba(8,127,153,0.10);

  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

/* ── Hero Header ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #F7FBFC 0%, #E6F4F7 50%, #F7FBFC 100%);
  border-bottom: 1px solid var(--border);
  padding: 36px 24px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero.hero-minimal {
  padding: 14px 24px;
  background: var(--bg-card);
}
.hero-welcome {
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% -20%, rgba(11,143,172,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.hero-logo-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 20px rgba(11,143,172,0.4);
}
.hero-logo-text {
  font-size: 22px; font-weight: 800;
  background: linear-gradient(90deg, var(--text-primary) 60%, var(--primary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero h1 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  position: relative;
}
.hero h1 span { color: var(--primary-light); }
.hero p {
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  font-size: 0.95rem;
}
.tester-badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px;
  background: rgba(11,143,172,0.12);
  border: 1px solid rgba(11,143,172,0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.85rem;
  color: var(--primary-light);
}

/* ── Top Chrome (sticky, 4 stacked rows) ─────────────────────────────── */
.top-chrome {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

/* Row 0: Welcome */
.chrome-welcome {
  padding: 6px 16px 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
}
.chrome-welcome-name { color: var(--primary-light); font-weight: 600; }

/* Row 1: Buttons */
.chrome-buttons {
  display: flex;
  gap: 8px;
  padding: 8px 16px 6px;
}
.btn-save-top {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(11,143,172,0.5);
  border-radius: var(--radius-sm);
  color: var(--primary-light);
  font-family: inherit; font-size: 0.9rem; font-weight: 600;
  padding: 10px 0; cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.btn-save-top:hover { background: var(--primary-glow); border-color: var(--primary-light); }
.btn-submit-top {
  flex: 1;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: none; border-radius: var(--radius-sm);
  color: #fff; font-weight: 600; font-size: 0.9rem;
  padding: 10px 0; cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  box-shadow: 0 2px 12px rgba(11,143,172,0.3);
}
.btn-submit-top:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(11,143,172,0.45); }

/* Row 2: Progress */
.chrome-progress {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 16px 8px;
}
.progress-wrap {
  flex: 1;
  background: var(--bg-card);
  border-radius: 100px;
  height: 5px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 100px;
  transition: width 0.5s ease;
}
.progress-label { font-size: 0.75rem; color: var(--text-secondary); white-space: nowrap; }

/* ── Row 3: Tabs ───────────────────────────────────────────────── */
.tabs {
  display: flex;
  border-top: 1px solid var(--border);
}
.tab-btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 8px;
  border: none; background: none;
  color: var(--text-secondary);
  font-family: inherit; font-size: 0.82rem; font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active {
  color: var(--primary-light);
  border-bottom-color: var(--primary-light);
}
.tab-btn .tab-emoji { font-size: 1rem; }
.tab-btn .tab-count {
  background: var(--primary-glow);
  border: 1px solid rgba(11,143,172,0.3);
  color: var(--primary-light);
  border-radius: 100px;
  font-size: 0.72rem; font-weight: 700;
  padding: 2px 7px;
  display: none;
}
.tab-btn .tab-count.visible { display: inline; }

/* ── Main content ─────────────────────────────────────────────────── */
.main { max-width: 860px; margin: 0 auto; padding: 28px 20px 40px; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Section Cards (Tab 1) ───────────────────────────────────────── */
.section-intro {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 24px;
  padding: 14px 18px;
  background: var(--primary-glow);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
}

.section-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.section-card:hover { border-color: rgba(11,143,172,0.2); }
.section-card.filled { border-color: rgba(6,214,160,0.2); }

.section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  gap: 12px;
}
.section-header-left { display: flex; align-items: center; gap: 14px; flex: 1; }
.section-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--primary-glow);
  border: 1px solid rgba(11,143,172,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.section-title { font-weight: 600; font-size: 0.98rem; }
.section-subtitle { font-size: 0.8rem; color: var(--text-secondary); margin-top: 2px; }
.section-status { display: flex; align-items: center; gap: 8px; }
.status-pill {
  font-size: 0.72rem; font-weight: 600; padding: 3px 10px;
  border-radius: 100px;
  background: rgba(72,79,88,0.4);
  color: var(--text-muted);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.status-pill.done {
  background: rgba(6,214,160,0.1);
  color: var(--accent);
  border-color: rgba(6,214,160,0.25);
}
.chevron {
  color: var(--text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.section-card.open .chevron { transform: rotate(180deg); }

.section-body {
  display: none;
  padding: 0 20px 20px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.section-card.open .section-body { display: block; }

/* ── Questions ───────────────────────────────────────────────────── */
.question { margin-bottom: 24px; }
.question:last-child { margin-bottom: 0; }
.q-label {
  font-size: 0.88rem; font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: block;
}

/* Star Rating */
.star-rating {
  display: flex; gap: 6px;
  flex-wrap: wrap;
}
.star-btn {
  background: none; border: none; cursor: pointer;
  font-size: 1.6rem; padding: 2px;
  filter: grayscale(1) opacity(0.35);
  transition: all 0.15s ease;
  line-height: 1;
}
.star-btn:hover,
.star-btn.active { filter: none; transform: scale(1.15); }
.star-labels {
  display: flex; justify-content: space-between;
  margin-top: 4px;
}
.star-labels span { font-size: 0.7rem; color: var(--text-muted); }

/* Pill Options */
.pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-btn {
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--bg-input);
  color: var(--text-secondary);
  font-family: inherit; font-size: 0.85rem; font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.pill-btn:hover { border-color: var(--primary); color: var(--text-primary); }
.pill-btn.active {
  background: var(--primary-glow);
  border-color: var(--primary);
  color: var(--primary-light);
}

/* Textarea */
.q-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit; font-size: 0.88rem;
  padding: 12px 14px;
  resize: vertical; min-height: 90px;
  transition: border-color var(--transition), box-shadow var(--transition);
  line-height: 1.6;
}
.q-textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.q-textarea::placeholder { color: var(--text-muted); }

/* Text input */
.q-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit; font-size: 0.88rem;
  padding: 10px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.q-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.q-input::placeholder { color: var(--text-muted); }

/* Select */
.q-select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit; font-size: 0.88rem;
  padding: 10px 14px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238B949E' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.q-select:focus { outline: none; border-color: var(--border-focus); }

/* NPS Slider */
.nps-wrap { display: flex; flex-direction: column; gap: 10px; }
.nps-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px;
  background: linear-gradient(90deg, #EF4444 0%, #F59E0B 50%, var(--accent) 100%);
  border-radius: 100px; cursor: pointer;
}
.nps-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.nps-labels { display: flex; justify-content: space-between; }
.nps-labels span { font-size: 0.72rem; color: var(--text-muted); }
.nps-value {
  text-align: center;
  font-size: 2rem; font-weight: 800;
  color: var(--primary-light);
}

/* ── Bug Reports Tab ─────────────────────────────────────────────── */
.bug-intro {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.btn-add-bug {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  background: var(--bg-card);
  border: 2px dashed rgba(11,143,172,0.3);
  border-radius: var(--radius-lg);
  color: var(--primary-light);
  font-family: inherit; font-size: 0.95rem; font-weight: 600;
  padding: 18px 24px;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 24px;
}
.btn-add-bug:hover {
  background: var(--primary-glow);
  border-color: var(--primary);
}
.btn-add-bug-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary-glow);
  border: 1px solid rgba(11,143,172,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; line-height: 1;
}

.bug-reports-list { display: flex; flex-direction: column; gap: 16px; }

.bug-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.bug-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  cursor: pointer; gap: 12px;
}
.bug-card-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.bug-type-icon { font-size: 1.3rem; flex-shrink: 0; }
.bug-title-preview {
  font-weight: 600; font-size: 0.9rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bug-title-empty { color: var(--text-muted); font-style: italic; }
.bug-card-badges { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.sev-badge {
  font-size: 0.72rem; font-weight: 700; padding: 3px 8px;
  border-radius: 100px;
}
.sev-blocker { background: rgba(220,38,38,0.10); color: #B91C1C; border: 1px solid rgba(220,38,38,0.25); }
.sev-major   { background: rgba(217,119,6,0.12); color: #9A5704; border: 1px solid rgba(217,119,6,0.28); }
.sev-minor   { background: rgba(75,85,99,0.10); color: #4B5563; border: 1px solid rgba(75,85,99,0.22); }
.sev-enhancement { background: rgba(6,214,160,0.1); color: var(--accent); border: 1px solid rgba(6,214,160,0.2); }

.btn-delete-bug {
  background: none; border: none;
  color: var(--text-muted); cursor: pointer; padding: 4px;
  border-radius: 6px; font-size: 1rem;
  transition: all var(--transition);
  flex-shrink: 0;
}
.btn-delete-bug:hover { color: #F87171; background: rgba(239,68,68,0.1); }

.bug-card-body {
  display: none;
  padding: 0 18px 18px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.bug-card.open .bug-card-body { display: block; }

.bug-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
@media (max-width: 580px) { .bug-form-grid { grid-template-columns: 1fr; } }

.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-label { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); }

/* Screenshot upload */
.screenshot-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.screenshot-upload-area:hover {
  border-color: rgba(11,143,172,0.4);
  background: var(--primary-glow);
}
.screenshot-upload-area input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-icon { font-size: 2rem; margin-bottom: 6px; }
.upload-text { font-size: 0.82rem; color: var(--text-secondary); }
.upload-text strong { color: var(--primary-light); }

.screenshot-previews {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px;
}
.screenshot-thumb {
  width: 80px; height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border);
  position: relative;
}
.screenshot-thumb-wrap {
  position: relative; display: inline-block;
}
.btn-remove-screenshot {
  position: absolute; top: -6px; right: -6px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #EF4444; border: none;
  color: #fff; font-size: 0.75rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* Upload progress */
.upload-progress-bar {
  height: 4px; background: var(--border);
  border-radius: 100px; margin-top: 8px; overflow: hidden; display: none;
}
.upload-progress-bar.active { display: block; }
.upload-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 100px;
  width: 0%;
  transition: width 0.3s ease;
}

/* ── Draft form ─────────────────────────────────────────────────── */
.draft-form {
  background: var(--bg-card);
  border: 1px solid rgba(11,143,172,0.3);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 20px;
  animation: slideDown 0.22s cubic-bezier(0.4,0,0.2,1);
}
@keyframes slideDown { from{opacity:0;transform:translateY(-10px)} to{opacity:1;transform:none} }
.draft-form-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.draft-form-title { font-size: 0.95rem; font-weight: 700; }
.draft-cancel-btn {
  background: none; border: none;
  color: var(--text-muted); font-size: 0.82rem; cursor: pointer;
  padding: 4px 8px; border-radius: 6px;
  transition: color var(--transition);
}
.draft-cancel-btn:hover { color: var(--danger); }

.draft-actions {
  display: flex; gap: 10px; justify-content: flex-end;
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--border);
}
.btn-draft-cancel {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: inherit; font-size: 0.88rem; font-weight: 600;
  padding: 9px 20px; cursor: pointer;
  transition: all var(--transition);
}
.btn-draft-cancel:hover { border-color: var(--danger); color: var(--danger); }
.btn-draft-report {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: none; border-radius: var(--radius-sm);
  color: #fff; font-family: inherit; font-size: 0.88rem; font-weight: 700;
  padding: 9px 26px; cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 2px 12px rgba(11,143,172,0.3);
}
.btn-draft-report:hover { transform: translateY(-1px); box-shadow: 0 4px 18px rgba(11,143,172,0.45); }
.btn-draft-report:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.draft-error {
  color: #F87171; font-size: 0.82rem;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius-sm); padding: 9px 13px;
  margin-top: 12px;
}

.req { color: #F87171; margin-left: 2px; }

/* Submitted report read-only card */
.report-detail-row {
  display: grid; grid-template-columns: 110px 1fr;
  gap: 8px; padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem; line-height: 1.6;
}
.report-detail-row:last-child { border-bottom: none; }
.rdl { color: var(--text-muted); font-weight: 600; font-size: 0.78rem; padding-top: 1px; }

.device-badge {
  display: inline-flex; align-items: center;
  font-size: 0.72rem; font-weight: 600;
  background: rgba(11,143,172,0.1);
  color: var(--primary-light);
  border: 1px solid rgba(11,143,172,0.2);
  border-radius: 100px; padding: 3px 9px;
}

.draft-success-notice {
  background: rgba(6,214,160,0.1);
  border: 1px solid rgba(6,214,160,0.3);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: 0.88rem; font-weight: 600;
  padding: 10px 16px; margin-bottom: 12px;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }

/* ── Tab 3 — Overall Feedback ────────────────────────────────────── */
.overall-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}
.overall-section-title {
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* bottom footer removed — actions are in the save bar */
.btn-save {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: inherit; font-size: 0.9rem; font-weight: 600;
  padding: 11px 24px; cursor: pointer;
  transition: all var(--transition);
}
.btn-save:hover { border-color: var(--primary); color: var(--primary-light); }
.btn-submit {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: none; border-radius: var(--radius-sm);
  color: #fff; font-family: inherit; font-size: 0.95rem; font-weight: 700;
  padding: 11px 32px; cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(11,143,172,0.4);
  display: flex; align-items: center; gap: 8px;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(11,143,172,0.55);
}
.btn-submit:disabled {
  opacity: 0.5; cursor: not-allowed; transform: none;
  box-shadow: none;
}

/* ── Thank You Screen ────────────────────────────────────────────── */
.thankyou-screen {
  display: none;
  text-align: center;
  padding: 80px 24px;
}
.thankyou-screen.visible { display: block; }
.thankyou-icon {
  font-size: 5rem; margin-bottom: 20px;
  animation: pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes pop { from{transform:scale(0) rotate(-20deg)} to{transform:scale(1) rotate(0)} }
.thankyou-screen h2 {
  font-size: 2rem; font-weight: 800; margin-bottom: 12px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.thankyou-screen p { color: var(--text-secondary); max-width: 420px; margin: 0 auto; }

/* ── Error / Loading screens ─────────────────────────────────────── */
.loading-screen, .error-screen {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 60vh; gap: 16px;
  color: var(--text-secondary);
}
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.error-icon { font-size: 3rem; }

/* ── Utility ─────────────────────────────────────────────────────── */
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.divider {
  height: 1px; background: var(--border);
  margin: 20px 0;
}
.readonly-overlay {
  pointer-events: none;
  opacity: 0.6;
  filter: grayscale(0.3);
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero { padding: 24px 16px 20px; }
  .tabs { gap: 0; }
  .tab-btn { padding: 12px 12px; font-size: 0.82rem; }
  .tab-btn .tab-text { display: none; }
  .main { padding: 20px 14px 120px; }
  .section-header { padding: 14px 16px; }
  .section-body { padding: 0 16px 16px; padding-top: 16px; }
}
