/* ===================================================
   SecureReport PWA — Mobile-First CSS Design System
   Optimized for one-handed field usage
   =================================================== */

/* ── 1. Design Tokens ──────────────────────────────────────────────────────── */
:root {
  /* Colors */
  --clr-bg:         #0f172a;
  --clr-surface:    #1e293b;
  --clr-surface2:   #273449;
  --clr-border:     #334155;
  --clr-text:       #f1f5f9;
  --clr-text-muted: #94a3b8;
  --clr-text-dim:   #475569;

  --clr-primary:    #6366f1;
  --clr-primary-h:  #818cf8;
  --clr-primary-d:  #4f46e5;
  --clr-danger:     #ef4444;
  --clr-danger-d:   #dc2626;
  --clr-warning:    #f59e0b;
  --clr-success:    #22c55e;
  --clr-info:       #38bdf8;

  /* Severity */
  --sev-low:      #22c55e;
  --sev-medium:   #f59e0b;
  --sev-high:     #f97316;
  --sev-critical: #ef4444;

  /* Spacing */
  --sp-xs: 4px;  --sp-sm: 8px;  --sp-md: 16px;
  --sp-lg: 24px; --sp-xl: 32px; --sp-2xl: 48px;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --fs-xs: 11px; --fs-sm: 13px; --fs-base: 15px;
  --fs-lg: 17px; --fs-xl: 20px; --fs-2xl: 26px; --fs-3xl: 32px;

  /* Radius */
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 24px; --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,.5);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.6);
  --shadow-glow: 0 0 24px rgba(99,102,241,.35);

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

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.5;
  background: var(--clr-bg);
  color: var(--clr-text);
  min-height: 100dvh;
  overflow-x: hidden;
  /* iOS safe area */
  padding-bottom: env(safe-area-inset-bottom);
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }
a { color: var(--clr-primary); text-decoration: none; }

/* ── 3. Screens ────────────────────────────────────────────────────────────── */
#app { position: relative; min-height: 100dvh; }

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: var(--clr-bg);
  transition: opacity var(--transition), transform var(--transition);
}

.screen.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(20px);
}
.screen.active {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
  z-index: 1;
}

/* ── 4. Login Screen ───────────────────────────────────────────────────────── */
.login-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--sp-2xl) var(--sp-lg) var(--sp-xl);
  background: linear-gradient(180deg, #1a1f3a 0%, var(--clr-bg) 100%);
}

.logo-ring {
  width: 88px; height: 88px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 2px solid var(--clr-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-glow);
  animation: float 3s ease-in-out infinite;
  margin-bottom: var(--sp-lg);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.app-title {
  font-size: var(--fs-3xl);
  font-weight: 800;
  background: linear-gradient(135deg, #a5b4fc, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.app-subtitle {
  color: var(--clr-text-muted);
  font-size: var(--fs-sm);
  margin-top: var(--sp-xs);
  letter-spacing: 0.5px;
}

.login-card {
  margin: 0 var(--sp-md) auto;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 5. Cards ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-xl);
  padding: var(--sp-xl);
  box-shadow: var(--shadow-md);
}

/* ── 6. Form Groups ────────────────────────────────────────────────────────── */
.form-group {
  margin-bottom: var(--sp-lg);
}

.form-group label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-sm);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.form-group .required { color: var(--clr-danger); }

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  font-size: var(--fs-base);
  pointer-events: none;
  z-index: 1;
}

input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
  width: 100%;
  background: var(--clr-surface2);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--r-md);
  color: var(--clr-text);
  font-size: var(--fs-base);
  padding: 14px 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.input-wrapper input {
  padding-left: 44px;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,.2);
}

input::placeholder, textarea::placeholder {
  color: var(--clr-text-dim);
}

textarea { resize: vertical; min-height: 120px; }

select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

select option { background: var(--clr-surface); }

.toggle-pw {
  position: absolute; right: 14px;
  background: none; border: none;
  color: var(--clr-text-muted);
  font-size: var(--fs-base);
  cursor: pointer;
  padding: 4px;
}

.char-count {
  display: block;
  text-align: right;
  font-size: var(--fs-xs);
  color: var(--clr-text-dim);
  margin-top: 4px;
}

.help-text {
  font-size: var(--fs-xs);
  color: var(--clr-text-dim);
  margin-top: 4px;
}

.btn-link { background: none; border: none; color: var(--clr-primary); cursor: pointer; }
.btn-link.small { font-size: var(--fs-xs); margin-top: 4px; }

/* ── 7. Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: 14px 24px;
  border-radius: var(--r-md);
  font-size: var(--fs-base);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  transition: opacity var(--transition);
}
.btn:active::after { opacity: 0.1; }

.btn-primary {
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-d));
  color: white;
  box-shadow: 0 4px 14px rgba(99,102,241,.4);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(99,102,241,.5); }

.btn-danger {
  background: linear-gradient(135deg, var(--clr-danger), var(--clr-danger-d));
  color: white;
  box-shadow: 0 4px 14px rgba(239,68,68,.4);
}
.btn-danger:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(239,68,68,.5); }

.btn-ghost {
  background: transparent;
  color: var(--clr-text-muted);
  border: 1.5px solid var(--clr-border);
}
.btn-ghost:hover { border-color: var(--clr-primary); color: var(--clr-primary); }

.btn-full { width: 100%; }
.btn-xl { padding: 18px 28px; font-size: var(--fs-lg); border-radius: var(--r-lg); }
.btn-sm { padding: 8px 16px; font-size: var(--fs-sm); border-radius: var(--r-sm); }

.btn + .btn { margin-top: var(--sp-sm); }

/* Pulse effect for primary CTA */
.pulse-ring {
  animation: pulse-ring 2.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 4px 14px rgba(239,68,68,.4); }
  50% { box-shadow: 0 4px 14px rgba(239,68,68,.4), 0 0 0 8px rgba(239,68,68,.1); }
}

/* Spinner */
.btn-spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 8. Top Bar ────────────────────────────────────────────────────────────── */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(var(--sp-md), env(safe-area-inset-top)) var(--sp-md) var(--sp-md);
  background: linear-gradient(180deg, var(--clr-surface) 0%, transparent 100%);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.user-pill {
  display: flex; align-items: center; gap: var(--sp-sm);
}

.avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-d));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-sm); font-weight: 700; color: white;
}

.top-bar-actions {
  display: flex; align-items: center; gap: var(--sp-md);
}

.connection-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--clr-success);
  box-shadow: 0 0 6px var(--clr-success);
  transition: all var(--transition);
}
.connection-dot.offline { background: var(--clr-danger); box-shadow: 0 0 6px var(--clr-danger); }

.icon-btn {
  width: 40px; height: 40px;
  background: var(--clr-surface2);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--clr-text-muted);
  transition: all var(--transition);
  border: 1px solid var(--clr-border);
}
.icon-btn:hover { color: var(--clr-text); background: var(--clr-border); }

/* ── 9. Dashboard Content ──────────────────────────────────────────────────── */
.dashboard-content {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-md) var(--sp-md) 80px;
}

.welcome-strip { margin-bottom: var(--sp-lg); }

.welcome-strip h2 {
  font-size: var(--fs-xl);
  font-weight: 700;
}

.date-display {
  color: var(--clr-text-muted);
  font-size: var(--fs-sm);
  margin-top: 2px;
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-sm);
  margin-bottom: var(--sp-lg);
}

.stat-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--sp-md);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: var(--fs-2xl);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  display: block;
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-accent {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.pending-accent    { background: var(--sev-medium); }
.inprogress-accent { background: var(--clr-primary); }
.resolved-accent   { background: var(--clr-success); }

/* ── 10. Section ───────────────────────────────────────────────────────────── */
.section { margin-top: var(--sp-xl); }

.section-title {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: var(--sp-md);
}

/* ── 11. Incident Cards ────────────────────────────────────────────────────── */
.incidents-list { display: flex; flex-direction: column; gap: var(--sp-sm); }

.incident-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--sp-md);
  display: flex;
  gap: var(--sp-md);
  align-items: flex-start;
  transition: all var(--transition);
  cursor: pointer;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.incident-card:hover { border-color: var(--clr-primary); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.incident-sev-bar {
  width: 4px;
  border-radius: 2px;
  align-self: stretch;
  min-height: 40px;
  flex-shrink: 0;
}

.incident-body { flex: 1; min-width: 0; }

.incident-title {
  font-weight: 600;
  font-size: var(--fs-base);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.incident-meta {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
}

.incident-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  flex-shrink: 0;
}

.status-pending    { background: rgba(245,158,11,.15); color: var(--sev-medium); }
.status-in_progress{ background: rgba(99,102,241,.15); color: var(--clr-primary-h); }
.status-resolved   { background: rgba(34,197,94,.15);  color: var(--clr-success); }
.status-closed     { background: rgba(71,85,105,.2);   color: var(--clr-text-muted); }

/* Skeleton */
.skeleton-card {
  height: 90px;
  background: linear-gradient(90deg, var(--clr-surface) 25%, var(--clr-surface2) 50%, var(--clr-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--r-lg);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── 12. Severity Grid ─────────────────────────────────────────────────────── */
.severity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-sm);
}

.severity-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  border-radius: var(--r-md);
  border: 2px solid var(--clr-border);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.severity-chip input[type="radio"] { display: none; }

.severity-chip:has(input:checked),
.severity-chip.selected {
  border-width: 2px;
}

.severity-low:has(input:checked)      { border-color: var(--sev-low); background: rgba(34,197,94,.15); color: var(--sev-low); }
.severity-medium:has(input:checked)   { border-color: var(--sev-medium); background: rgba(245,158,11,.15); color: var(--sev-medium); }
.severity-high:has(input:checked)     { border-color: var(--sev-high); background: rgba(249,115,22,.15); color: var(--sev-high); }
.severity-critical:has(input:checked) { border-color: var(--sev-critical); background: rgba(239,68,68,.15); color: var(--sev-critical); }

/* ── 13. Photo Zone ────────────────────────────────────────────────────────── */
.photo-zone {
  position: relative;
  border: 2px dashed var(--clr-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--transition);
  min-height: 160px;
}
.photo-zone:hover { border-color: var(--clr-primary); }

#photo-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: var(--sp-xl);
  color: var(--clr-text-muted);
  text-align: center;
}

.photo-preview {
  position: relative;
}
.photo-preview img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
}

.remove-photo {
  position: absolute;
  top: 8px; right: 8px;
  width: 32px; height: 32px;
  background: rgba(0,0,0,.6);
  border-radius: 50%;
  color: white;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
}

.compress-badge {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(34,197,94,.9);
  color: white;
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

/* ── 14. Toggle Switch ─────────────────────────────────────────────────────── */
.toggle-label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: var(--sp-md);
  cursor: pointer;
  font-size: var(--fs-base) !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--clr-text) !important;
}

.toggle-label input[type="checkbox"] { display: none; }

.toggle-switch {
  width: 48px; height: 26px;
  background: var(--clr-border);
  border-radius: var(--r-pill);
  position: relative;
  transition: background var(--transition);
  flex-shrink: 0;
}
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform var(--transition);
  box-shadow: var(--shadow-sm);
}
.toggle-label input:checked ~ .toggle-switch { background: var(--clr-primary); }
.toggle-label input:checked ~ .toggle-switch::after { transform: translateX(22px); }

/* ── 15. Alerts  ───────────────────────────────────────────────────────────── */
.alert {
  padding: var(--sp-md);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-md);
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}
.alert-error   { background: rgba(239,68,68,.15); border: 1px solid rgba(239,68,68,.3); color: #fca5a5; }
.alert-success { background: rgba(34,197,94,.15); border: 1px solid rgba(34,197,94,.3); color: #86efac; }

/* ── 16. Bottom Navigation ──────────────────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding: var(--sp-sm) var(--sp-md) max(var(--sp-md), env(safe-area-inset-bottom));
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  display: flex; justify-content: space-around;
  z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  padding: 8px 24px;
  border-radius: var(--r-md);
  color: var(--clr-text-muted);
  font-size: 10px;
  font-weight: 500;
  transition: all var(--transition);
}
.nav-item.active { color: var(--clr-primary); }
.nav-item:hover  { color: var(--clr-text); }

/* ── 17. Screen Headers ────────────────────────────────────────────────────── */
.screen-header {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: max(var(--sp-md), env(safe-area-inset-top)) var(--sp-md) var(--sp-md);
  background: var(--clr-surface);
  border-bottom: 1px solid var(--clr-border);
  position: sticky; top: 0; z-index: 10;
}

.screen-header h2 {
  flex: 1;
  font-size: var(--fs-xl);
  font-weight: 700;
}

.back-btn {
  color: var(--clr-text-muted);
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  transition: all var(--transition);
}
.back-btn:hover { color: var(--clr-text); background: var(--clr-surface2); }

.screen-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-md) var(--sp-md) 100px;
}

.offline-indicator {
  display: flex; align-items: center; gap: 6px;
  font-size: var(--fs-xs);
  color: var(--sev-medium);
  font-weight: 600;
}
.offline-indicator .dot {
  width: 8px; height: 8px;
  background: var(--sev-medium);
  border-radius: 50%;
  animation: blink 1.2s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ── 18. Offline Banner ────────────────────────────────────────────────────── */
.offline-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: linear-gradient(90deg, #92400e, #b45309);
  color: #fef3c7;
  padding: max(var(--sp-sm), env(safe-area-inset-top)) var(--sp-md) var(--sp-sm);
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: var(--fs-sm);
  font-weight: 500;
  animation: slideDown 0.3s ease;
}
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }

.queue-badge {
  background: rgba(0,0,0,.3);
  border-radius: var(--r-pill);
  padding: 2px 8px;
  font-size: var(--fs-xs);
  font-weight: 700;
}

/* ── 19. Install Banner ────────────────────────────────────────────────────── */
.install-banner {
  position: fixed;
  bottom: calc(70px + env(safe-area-inset-bottom));
  left: var(--sp-md); right: var(--sp-md);
  background: var(--clr-surface);
  border: 1px solid var(--clr-primary);
  border-radius: var(--r-xl);
  padding: var(--sp-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  box-shadow: var(--shadow-glow);
  z-index: 60;
  animation: slideUp 0.3s ease;
}

.install-content { font-size: var(--fs-sm); color: var(--clr-text-muted); }
.install-actions { display: flex; gap: var(--sp-sm); flex-shrink: 0; }

/* ── 20. Filter Pill ───────────────────────────────────────────────────────── */
.filter-pill {
  padding: 6px 12px;
  background: var(--clr-surface2);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--clr-border);
  color: var(--clr-text-muted);
}

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

.submit-note {
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
  margin-top: var(--sp-sm);
}

/* ── 22. Scrollbar ─────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--clr-border); border-radius: 2px; }

/* ── 23. Responsive ────────────────────────────────────────────────────────── */
@media (min-width: 480px) {
  #app { max-width: 430px; margin: 0 auto; }
  body { background: #070d1a; } /* darker surround on tablet+ */
}
