/* ============================================================
   Invoice Scanner — styles
   Aesthetic: paper-cream background, deep navy ink, warm amber
   ============================================================ */

:root {
  --bg-paper: #faf6ee;
  --bg-paper-2: #f5ecd9;
  --bg-paper-3: #ebe0c5;
  --ink: #1a1f2e;
  --ink-2: #2d3548;
  --muted: #6b6657;
  --line: #ece3cd;
  --line-2: #c9b88a;
  --amber: #f59e0b;
  --amber-deep: #d97706;
  --amber-bg: #fef3c7;
  --amber-bg-2: #fde68a;
  --amber-text: #92400e;
  --gold: #fcd34d;
  --green: #16a34a;
  --red: #dc2626;
  --red-bg: #fef2f2;
  --red-border: #fecaca;
  --shadow-soft: 0 2px 8px rgba(154, 134, 78, 0.06);
  --shadow-md: 0 4px 14px rgba(26, 31, 46, 0.15);
  --shadow-lg: 0 8px 24px rgba(26, 31, 46, 0.25);
  --shadow-xl: 0 8px 30px rgba(26, 31, 46, 0.3);
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0;
  font-family: 'Heebo', system-ui, sans-serif;
  background: radial-gradient(ellipse at top, #fff8e9 0%, var(--bg-paper-2) 50%, var(--bg-paper-3) 100%);
  color: var(--ink);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: multiply;
  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='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

input, button, textarea, select { font-family: inherit; font-size: inherit; }
input:focus { outline: none; }
button { cursor: pointer; border: none; }
.hidden { display: none !important; }

/* ─── Login ───────────────────────────────────────────────── */
.login-screen {
  min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; padding-top: max(24px, var(--safe-top));
  position: relative; z-index: 1;
}
.login-card {
  width: 100%; max-width: 380px;
  background: linear-gradient(180deg, #fff 0%, #fffbf2 100%);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  box-shadow: 0 20px 60px rgba(26, 31, 46, 0.12);
  border: 1px solid var(--line);
}
.login-brand { text-align: center; margin-bottom: 28px; }
.brand-icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  box-shadow: 0 8px 24px rgba(26, 31, 46, 0.25);
}
.brand-icon svg { width: 28px; height: 28px; }
.login-brand h1 {
  font-family: 'Rubik', sans-serif;
  font-size: 26px; font-weight: 700;
  color: var(--ink); margin: 0; letter-spacing: -0.02em;
}
.login-brand p { color: var(--muted); font-size: 13px; margin: 4px 0 0; }

.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-form label { display: block; }
.login-form label span {
  display: block;
  font-size: 11px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.login-form input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-paper);
  font-size: 15px; font-weight: 500;
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}
.login-form input:focus { border-color: var(--amber); background: #fff; }

.btn-primary {
  margin-top: 8px;
  padding: 15px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  color: white; font-weight: 600; font-size: 15px;
  box-shadow: 0 6px 20px rgba(26, 31, 46, 0.3);
  transition: transform 0.1s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.6; }
.btn-loader {
  display: inline-block; animation: spin 0.8s linear infinite;
  font-size: 18px; color: var(--gold);
}
@keyframes spin { to { transform: rotate(360deg); } }

.error-text {
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  color: #991b1b;
  font-size: 13px; padding: 10px 12px; border-radius: 10px;
  margin: 0;
}

/* ─── App layout ──────────────────────────────────────────── */
#app { position: relative; z-index: 1; padding-bottom: 130px; }

.app-header {
  padding: max(20px, var(--safe-top)) 20px 0;
}
.header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-icon-small {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  box-shadow: 0 4px 14px rgba(26, 31, 46, 0.25);
}
.brand-icon-small svg { width: 20px; height: 20px; }
.brand h1 {
  font-family: 'Rubik', sans-serif;
  font-size: 22px; font-weight: 700;
  margin: 0; line-height: 1; letter-spacing: -0.02em;
}
.brand p { color: var(--muted); font-size: 12px; margin: 4px 0 0; }
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(26, 31, 46, 0.06);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: transform 0.1s;
}
.icon-btn:active { transform: scale(0.95); }
.icon-btn svg { width: 18px; height: 18px; }

.tabs {
  display: flex; gap: 4px;
  padding: 4px;
  background: rgba(26, 31, 46, 0.06);
  border-radius: 14px;
  margin-bottom: 4px;
}
.tab {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  background: transparent;
  font-weight: 600; font-size: 14px;
  color: var(--muted);
  transition: all 0.2s;
}
.tab.active {
  background: white;
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.tab-panel { display: none; padding: 16px 20px 20px; }
.tab-panel.active { display: block; }

/* ─── Empty state / upload zone ───────────────────────────── */
.upload-card {
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff 0%, #fffbf2 100%);
  border: 1px dashed var(--line-2);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(154, 134, 78, 0.08);
}
.upload-card::before {
  content: '';
  position: absolute; top: -40px; left: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(244, 195, 74, 0.3) 0%, transparent 70%);
  filter: blur(40px);
}
.upload-icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--amber-bg) 0%, var(--amber-bg-2) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--amber-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 6px 20px rgba(245, 158, 11, 0.2);
  position: relative;
}
.upload-icon svg { width: 28px; height: 28px; }
.upload-card h2 {
  font-family: 'Rubik', sans-serif;
  font-size: 22px; font-weight: 700;
  margin: 0 0 6px;
  color: var(--ink);
  position: relative;
}
.upload-card p {
  color: var(--muted); font-size: 14px;
  margin: 0 auto 22px;
  max-width: 280px;
  line-height: 1.5;
  position: relative;
}
.upload-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; position: relative; }
.btn-camera, .btn-upload {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px; border-radius: 16px;
  font-weight: 600; font-size: 14px;
  transition: transform 0.1s;
}
.btn-camera {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(26, 31, 46, 0.25);
}
.btn-camera svg { color: var(--gold); width: 22px; height: 22px; }
.btn-upload {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-upload svg { width: 22px; height: 22px; }
.btn-camera:active, .btn-upload:active { transform: scale(0.97); }

/* ─── Page thumbnails ─────────────────────────────────────── */
.pages-section { display: flex; flex-direction: column; gap: 14px; }
.pages-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4px;
}
.pages-count { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.badge {
  padding: 3px 10px; border-radius: 99px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--amber-bg); color: var(--amber-text);
}
.add-page-btn {
  display: flex; align-items: center; gap: 4px;
  background: transparent;
  font-size: 13px; font-weight: 600;
  color: var(--amber-text);
}
.add-page-btn svg { width: 14px; height: 14px; }

.pages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.page-thumb {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 16px; overflow: hidden;
  background: white;
  box-shadow: var(--shadow-md);
}
.page-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-num {
  position: absolute; top: 6px; right: 6px;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(26, 31, 46, 0.85);
  backdrop-filter: blur(6px);
  color: white; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.page-remove {
  position: absolute; top: 6px; left: 6px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--red); color: white;
  display: flex; align-items: center; justify-content: center;
}
.page-remove svg { width: 14px; height: 14px; }

.scan-btn {
  width: 100%;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  color: white; font-weight: 600; font-size: 15px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 6px 20px rgba(26, 31, 46, 0.3);
  transition: transform 0.1s;
}
.scan-btn:active { transform: scale(0.98); }
.scan-btn svg { width: 20px; height: 20px; color: var(--gold); }

/* ─── Invoice editor ──────────────────────────────────────── */
.invoice-meta {
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  padding: 16px;
  color: white;
  box-shadow: var(--shadow-lg);
  margin-bottom: 16px;
}
.invoice-meta-label {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 700; color: rgba(252, 211, 77, 0.8);
  margin-bottom: 4px;
}
.invoice-meta-input {
  background: transparent; border: none;
  color: white; font-weight: 600; width: 100%;
  font-family: 'Rubik', sans-serif;
}
.invoice-meta-input.title {
  font-size: 18px; letter-spacing: -0.01em;
}
.invoice-meta-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 12px;
}
.invoice-meta-grid .invoice-meta-label { color: rgba(252, 211, 77, 0.6); margin-bottom: 2px; }
.invoice-meta-grid .invoice-meta-input { font-size: 14px; }

/* Bulk markup */
.bulk-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-soft);
}
.bulk-card-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  margin-bottom: 8px;
}
.bulk-card-label svg { width: 14px; height: 14px; color: var(--amber-text); }
.bulk-row { display: flex; gap: 8px; }
.bulk-row input {
  flex: 1;
  padding: 11px 14px;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 500;
}
.bulk-row button {
  padding: 11px 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-deep) 100%);
  color: white; font-weight: 600;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
  transition: transform 0.1s;
}
.bulk-row button:active { transform: scale(0.95); }
.bulk-row button:disabled { opacity: 0.4; cursor: default; }

/* Products list */
.products-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4px; margin-bottom: 10px;
}
.products-header h3 { font-size: 13px; font-weight: 700; margin: 0; }
.products-header h3 span { opacity: 0.6; font-weight: 400; }
.products-header .meta-text { font-size: 12px; color: var(--muted); }

.products-list { display: flex; flex-direction: column; gap: 10px; }
.product-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.product-card.has-price {
  border-color: var(--amber-bg-2);
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.1);
}
.product-row1 { display: flex; gap: 10px; margin-bottom: 12px; }
.product-num {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--bg-paper);
  color: var(--amber-text);
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.product-fields { flex: 1; min-width: 0; }
.product-name {
  width: 100%;
  background: transparent;
  border: none;
  font-family: 'Rubik', sans-serif;
  font-weight: 600; font-size: 15px;
  color: var(--ink);
}
.product-model {
  width: 100%;
  background: transparent;
  border: none;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.product-remove {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--red-bg);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.1s;
}
.product-remove:active { transform: scale(0.9); }
.product-remove svg { width: 14px; height: 14px; }

.product-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.product-grid label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--muted);
  display: block; margin-bottom: 4px;
}
.product-grid label.price-label { color: var(--amber-text); }
.product-grid .input-wrap { position: relative; }
.product-grid input {
  width: 100%;
  padding: 9px 12px;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 600; font-size: 14px;
  color: var(--ink);
}
.product-grid input.qty { text-align: center; }
.product-grid input.has-currency { padding-left: 26px; }
.product-grid .currency-symbol {
  position: absolute; left: 9px; top: 50%; transform: translateY(-50%);
  font-size: 12px; font-weight: 700;
  color: var(--muted); pointer-events: none;
}
.product-grid input.customer-price {
  background: #fffbf2;
  border-color: var(--amber-bg-2);
  color: var(--amber-text);
  font-weight: 700;
}
.product-grid input.customer-price.filled {
  background: linear-gradient(135deg, var(--amber-bg) 0%, var(--amber-bg-2) 100%);
  border-color: var(--amber);
}
.product-grid .currency-symbol.amber { color: var(--amber-text); }

.product-markup {
  margin-top: 12px; padding-top: 10px;
  border-top: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px;
}
.product-markup .label { color: var(--muted); }
.product-markup .value { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.product-markup .value.positive { color: var(--green); }
.product-markup .value.negative { color: var(--red); }
.product-markup svg { width: 14px; height: 14px; }

.add-product-btn {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius);
  background: transparent;
  border: 1px dashed var(--line-2);
  color: var(--amber-text);
  font-weight: 600; font-size: 14px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 10px;
  transition: transform 0.1s;
}
.add-product-btn:active { transform: scale(0.98); }
.add-product-btn svg { width: 16px; height: 16px; }

/* ─── Bottom summary bar ──────────────────────────────────── */
.summary-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding: 12px 20px calc(20px + var(--safe-bottom));
  background: linear-gradient(180deg, transparent 0%, rgba(245, 236, 217, 0.95) 30%, var(--bg-paper-3) 100%);
  z-index: 10;
}
.summary-card {
  display: flex; align-items: center; gap: 10px;
  padding: 12px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  box-shadow: var(--shadow-xl);
}
.summary-stats { flex: 1; display: flex; align-items: center; justify-content: space-around; }
.summary-stat { text-align: center; }
.summary-stat .label {
  font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(252, 211, 77, 0.6); font-weight: 700;
}
.summary-stat .value {
  font-size: 14px; font-weight: 700;
  color: white; font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.summary-stat .value.positive { color: var(--gold); }
.summary-stat .value.negative { color: #fca5a5; }
.summary-divider { width: 1px; height: 32px; background: rgba(252, 211, 77, 0.2); }

.summary-actions { display: flex; gap: 6px; }
.btn-summary {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; gap: 4px;
  transition: transform 0.1s;
}
.btn-summary:active { transform: scale(0.95); }
.btn-summary svg { width: 14px; height: 14px; }
.btn-summary.secondary {
  background: rgba(252, 211, 77, 0.15);
  color: var(--gold);
}
.btn-summary.primary {
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-deep) 100%);
  color: white;
}

/* ─── Search & history ────────────────────────────────────── */
.search-bar {
  position: relative;
  margin-bottom: 12px;
}
.search-bar svg {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--muted);
}
.search-bar input {
  width: 100%;
  padding: 13px 44px 13px 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 14px;
  box-shadow: var(--shadow-soft);
}

.filter-pills { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 4px; }
.filter-pills::-webkit-scrollbar { display: none; }
.pill {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
  font-size: 12px; font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: all 0.15s;
}
.pill.active { background: var(--ink); color: var(--gold); border-color: var(--ink); }

.history-list { display: flex; flex-direction: column; gap: 10px; }
.history-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.1s;
}
.history-card:active { transform: scale(0.99); }
.history-card-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 8px;
}
.history-supplier {
  font-family: 'Rubik', sans-serif;
  font-weight: 700; font-size: 15px;
  color: var(--ink);
}
.history-invoice-num { font-size: 11px; color: var(--muted); margin-top: 2px; }
.history-status {
  font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 99px;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.status-draft    { background: #f3f4f6; color: #374151; }
.status-ready    { background: var(--amber-bg); color: var(--amber-text); }
.status-imported { background: #dcfce7; color: #166534; }
.status-archived { background: #f3f4f6; color: #6b7280; }

.history-card-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--muted);
}
.history-meta { display: flex; gap: 12px; }
.history-meta span { display: flex; align-items: center; gap: 4px; }
.history-totals { font-weight: 700; color: var(--ink); }
.history-totals .green { color: var(--green); }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.empty-state svg { width: 40px; height: 40px; margin-bottom: 12px; opacity: 0.4; }
.empty-state p { font-size: 14px; margin: 0; }

/* ─── Loading overlay ─────────────────────────────────────── */
.loading-overlay {
  position: fixed; inset: 0;
  background: rgba(26, 31, 46, 0.5);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  padding: 20px;
}
.loader-card {
  background: white;
  padding: 28px 36px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 320px;
}
.loader-spinner {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--amber);
  margin: 0 auto 14px;
  animation: spin 0.8s linear infinite;
}
.loader-card p { margin: 0; font-size: 14px; font-weight: 500; color: var(--ink); }

/* ─── Toast ───────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: calc(140px + var(--safe-bottom));
  left: 50%; transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow-xl);
  z-index: 200;
  animation: toastSlideIn 0.25s ease;
}
.toast.success { background: var(--green); }
.toast.error { background: var(--red); }
@keyframes toastSlideIn {
  from { transform: translate(-50%, 20px); opacity: 0; }
  to   { transform: translate(-50%, 0); opacity: 1; }
}

/* ─── Misc ────────────────────────────────────────────────── */
.alert-error {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  color: #991b1b;
  font-size: 13px;
  display: flex; gap: 8px; align-items: flex-start;
}
.alert-error svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; color: var(--red); }
