/* ═══════════════════════════════════════════════════════════
   Meta Ads Dashboard — Operator Theme
   Dark, data-dense, no clutter
   ═══════════════════════════════════════════════════════════ */

/* No external font imports — using system fonts for privacy + speed */

:root {
  /* Surface */
  --bg-base: #0a0b0f;
  --bg-surface: #12141a;
  --bg-elevated: #1a1d26;
  --bg-hover: #1f2330;
  --bg-active: #252938;
  --border: #2a2e3a;
  --border-light: #1e2130;

  /* Text */
  --text-primary: #e8eaed;
  --text-secondary: #8b92a5;
  --text-muted: #565d73;
  --text-inverse: #0a0b0f;

  /* Accent */
  --accent: #4f8ff7;
  --accent-dim: #2d4f8a;
  --accent-bg: rgba(79, 143, 247, 0.08);

  /* Status */
  --green: #34d399;
  --green-dim: #1a3a2a;
  --yellow: #fbbf24;
  --yellow-dim: #3a3420;
  --red: #f87171;
  --red-dim: #3a1a1a;
  --orange: #fb923c;

  /* Metrics */
  --up: #34d399;
  --down: #f87171;
  --flat: #8b92a5;

  /* Layout */
  --sidebar-w: 220px;
  --header-h: 56px;
  --radius: 8px;
  --radius-sm: 5px;
  --radius-lg: 12px;

  /* Fonts — system stack, no external requests */
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono', monospace;
}

/* ─── RESET ────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 14px; }
body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── LAYOUT ───────────────────────────────────────────── */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-logo .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.sidebar-nav {
  padding: 12px 10px;
  flex: 1;
}

.nav-section {
  margin-bottom: 6px;
}
.nav-section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 10px 12px 4px;
  font-weight: 600;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 450;
  cursor: pointer;
  transition: all 0.15s;
}
.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  text-decoration: none;
}
.nav-item.active {
  background: var(--accent-bg);
  color: var(--accent);
  font-weight: 550;
}
.nav-item svg {
  width: 18px;
  height: 18px;
  opacity: 0.7;
  flex-shrink: 0;
}
.nav-item.active svg { opacity: 1; }

.nav-badge {
  margin-left: auto;
  background: var(--red);
  color: var(--text-inverse);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* Main content */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
}

/* Header */
.page-header {
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: var(--bg-surface);
  position: sticky;
  top: 0;
  z-index: 50;
}
.page-title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.page-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.account-switcher {
  width: 190px;
  padding: 6px 28px 6px 10px;
  font-size: 0.78rem;
}
.account-chip {
  display: inline-flex;
  align-items: center;
  max-width: 210px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Page body */
.page-body {
  padding: 24px 28px;
}

/* ─── KPI CARDS ────────────────────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.kpi-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}
.kpi-value {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.kpi-delta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-top: 5px;
  font-weight: 500;
}
.kpi-delta.up { color: var(--up); }
.kpi-delta.down { color: var(--down); }
.kpi-delta.flat { color: var(--flat); }

/* ─── TABLES ───────────────────────────────────────────── */
.table-container {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}
.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.table-title {
  font-weight: 600;
  font-size: 0.95rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}
thead th {
  text-align: left;
  padding: 10px 14px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  position: sticky;
  top: 0;
  background: var(--bg-surface);
}
thead th.right { text-align: right; }

tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: background 0.1s;
}
tbody tr:hover { background: var(--bg-hover); }
tbody tr:last-child { border-bottom: none; }

tbody td {
  padding: 11px 14px;
  font-size: 0.85rem;
  white-space: nowrap;
}
tbody td.right {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
tbody td.name-cell {
  font-weight: 500;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
}
tbody td.name-cell a {
  color: var(--text-primary);
}
tbody td.name-cell a:hover {
  color: var(--accent);
}

/* ─── STATUS BADGES ────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-active  { background: var(--green-dim); color: var(--green); }
.badge-paused  { background: var(--yellow-dim); color: var(--yellow); }
.badge-error   { background: var(--red-dim); color: var(--red); }
.badge-critical { background: var(--red-dim); color: var(--red); }
.badge-warning { background: var(--yellow-dim); color: var(--yellow); }
.badge-high    { background: rgba(251,146,60,0.12); color: var(--orange); }
.badge-medium  { background: var(--yellow-dim); color: var(--yellow); }
.badge-low     { background: rgba(79,143,247,0.1); color: var(--accent); }

/* ─── BUTTONS ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--text-muted);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: #3d7de0;
  border-color: #3d7de0;
}
.btn-danger {
  color: var(--red);
}
.btn-danger:hover {
  background: var(--red-dim);
  border-color: var(--red);
}
.btn-sm {
  padding: 4px 10px;
  font-size: 0.72rem;
}
.btn-group {
  display: flex;
  gap: 6px;
}

/* ─── DATE RANGE SELECTOR ──────────────────────────────── */
.date-selector {
  display: flex;
  gap: 4px;
  background: var(--bg-base);
  border-radius: var(--radius-sm);
  padding: 3px;
  border: 1px solid var(--border);
}
.date-btn {
  padding: 5px 12px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.15s;
}
.date-btn:hover { color: var(--text-primary); }
.date-btn.active {
  background: var(--bg-elevated);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* ─── AI RECOMMENDATION CARDS ──────────────────────────── */
.reco-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.reco-card:hover { border-color: var(--text-muted); }
.reco-card.urgency-critical { border-left: 3px solid var(--red); }
.reco-card.urgency-high { border-left: 3px solid var(--orange); }
.reco-card.urgency-medium { border-left: 3px solid var(--yellow); }
.reco-card.urgency-low { border-left: 3px solid var(--accent); }

.reco-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.reco-entity {
  font-weight: 600;
  font-size: 0.9rem;
}
.reco-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.reco-confidence {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.reco-body {
  margin-bottom: 12px;
}
.reco-issue {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.reco-action {
  font-size: 0.85rem;
  line-height: 1.55;
}
.reco-impact {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-style: italic;
}

.reco-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}
.reco-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ─── ALERT BANNER ─────────────────────────────────────── */
.alert-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  font-size: 0.85rem;
  font-weight: 500;
}
.alert-banner.alert-critical {
  background: var(--red-dim);
  border: 1px solid rgba(248,113,113,0.2);
  color: var(--red);
}
.alert-banner.alert-warning {
  background: var(--yellow-dim);
  border: 1px solid rgba(251,191,36,0.2);
  color: var(--yellow);
}
.alert-banner.alert-info {
  background: var(--accent-bg);
  border: 1px solid rgba(79,143,247,0.2);
  color: var(--accent);
}

.meta-cooldown-banner {
  position: fixed;
  left: calc(var(--sidebar-w) + 18px);
  right: 18px;
  bottom: 18px;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  background: var(--yellow-dim);
  border: 1px solid rgba(251,191,36,0.35);
  border-radius: var(--radius);
  color: var(--yellow);
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
  font-size: 0.82rem;
}
.meta-cooldown-banner strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── LOADING / EMPTY STATES ───────────────────────────── */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.loading::before {
  content: '';
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin-right: 10px;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: 0.3;
}
.empty-state-text {
  font-size: 0.9rem;
}

/* ─── SPARKLINE (mini trend) ───────────────────────────── */
.sparkline {
  display: inline-block;
  vertical-align: middle;
}

/* ─── LOG TABLE ────────────────────────────────────────── */
.log-source {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--bg-elevated);
}

/* ─── TOAST NOTIFICATIONS ──────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 500;
  animation: slideUp 0.3s ease-out;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.toast-success { background: var(--green-dim); color: var(--green); border: 1px solid rgba(52,211,153,0.2); }
.toast-error { background: var(--red-dim); color: var(--red); border: 1px solid rgba(248,113,113,0.2); }
.toast-info { background: var(--accent-bg); color: var(--accent); border: 1px solid rgba(79,143,247,0.2); }

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

/* ─── LOGIN SCREEN ─────────────────────────────────────── */
.login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg-base);
}
.login-card {
  width: 100%;
  max-width: 380px;
  padding: 40px 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin: 20px;
}
.login-logo {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.login-subtitle {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 24px;
}

/* ─── MOBILE BOTTOM NAV ───────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  z-index: 100;
  padding: 6px 0;
  padding-bottom: max(6px, env(safe-area-inset-bottom));
}
.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 4px;
  font-size: 0.62rem;
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  transition: color 0.15s;
}
.mobile-nav-item.active { color: var(--accent); }
.mobile-nav-item svg { opacity: 0.6; }
.mobile-nav-item.active svg { opacity: 1; }

.mobile-more-menu {
  position: fixed;
  bottom: 64px;
  right: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 0;
  z-index: 150;
  flex-direction: column;
  min-width: 160px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.mobile-more-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
}
.mobile-more-menu a:hover { background: var(--bg-hover); color: var(--text-primary); }

/* ─── ADMIN GRID ───────────────────────────────────────── */
.admin-grid {
  grid-template-columns: 1fr 1fr;
}

/* ─── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; padding-bottom: 80px; }
  .mobile-nav { display: flex; }
  .kpi-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .page-body { padding: 16px; }
  .page-header { padding: 0 16px; }
  .admin-grid { grid-template-columns: 1fr !important; }
  .grid-two { grid-template-columns: 1fr !important; }
  .meta-cooldown-banner { left: 12px; right: 12px; bottom: 76px; }

  /* Drawer full-width on mobile */
  .drawer { width: 100%; max-width: 100%; right: -100%; }
  .drawer.open { right: 0; }
}

@media (max-width: 640px) {
  html { font-size: 15px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .kpi-card { padding: 12px 14px; }
  .kpi-value { font-size: 1.2rem; }
  .page-title { font-size: 1rem; }
  .table-container { border-radius: var(--radius); }
  .reco-card { padding: 14px 16px; }

  /* Tables: bump row height so rows are actually tappable */
  table { font-size: 0.82rem; }
  thead th { padding: 10px 10px; }
  tbody td { padding: 12px 10px; }

  /* Buttons — meet 44px minimum tap target */
  .btn { min-height: 40px; padding: 10px 14px; font-size: 0.85rem; }
  .btn-sm { min-height: 36px; padding: 8px 12px; font-size: 0.78rem; }
  .btn-group { gap: 6px; flex-wrap: wrap; }

  /* Drawer takes the whole screen under 640px */
  .drawer { width: 100vw; max-width: 100vw; border-left: none; }
  .drawer-header { padding: 14px 16px; position: sticky; top: 0; background: var(--bg-surface); z-index: 2; }
  .drawer-body { padding: 16px; }
  .drawer-footer { padding: 12px 16px; }
  .form-row { grid-template-columns: 1fr; }

  /* Sticky bulk-action bar so it's reachable while scrolling a table */
  #bulk-bar {
    position: sticky;
    bottom: 72px;
    z-index: 50;
    margin: 0 0 12px 0;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.4);
  }

  /* Date selector horizontal scroll with edge-fade */
  .date-selector { overflow-x: auto; white-space: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .date-selector::-webkit-scrollbar { display: none; }
  .date-btn { min-height: 36px; min-width: 44px; }

  /* Mobile nav */
  .mobile-nav-item { font-size: 0.62rem; padding: 6px 2px; }

  /* Inputs — iOS zoom-on-focus threshold is 16px */
  .form-input, .form-textarea, .form-select { font-size: 16px; padding: 12px; }

  /* Meta pulse + KPI: label wrap on two lines without overflow */
  .kpi-label { font-size: 0.7rem; }

  /* Account switcher in header */
  .account-switcher, .form-select.account-switcher { max-width: 55vw; font-size: 0.82rem; }

  /* Creative library cards: 1 per row */
  [style*="minmax(320px"] { grid-template-columns: 1fr !important; }

  /* Intelligence grid-two: stack */
  .grid-two { grid-template-columns: 1fr !important; gap: 12px !important; }
}

/* ─── SCROLLBAR ────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ─── UTILITY ──────────────────────────────────────────── */
.mono { font-family: var(--font-mono); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-yellow { color: var(--yellow); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-right { text-align: right; }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 16px; }
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 16px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: 6px; }
.hidden { display: none !important; }

/* ─── SLIDE DRAWER (right panel) ───────────────────────── */
.drawer-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  opacity: 0;
  transition: opacity 0.25s;
  cursor: pointer;
}
.drawer-overlay.open { opacity: 1; }

.drawer {
  position: fixed;
  top: 0;
  right: -520px;
  width: 500px;
  max-width: 90vw;
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border);
  z-index: 210;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.drawer.open { right: 0; }

.drawer-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.drawer-title {
  font-weight: 600;
  font-size: 1rem;
}
.drawer-close {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  padding: 5px 10px;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: var(--font-body);
}
.drawer-close:hover { background: var(--bg-hover); color: var(--text-primary); }

.drawer-body {
  padding: 22px;
  overflow-y: auto;
  flex: 1;
}

.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  transition: border-color 0.15s;
  color-scheme: dark;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent);
}
.form-textarea { resize: vertical; min-height: 80px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.drawer-footer {
  padding: 16px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.drawer-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 0 22px 16px;
}
