/* Bliplove — shared dashboard styles. Soft, warm, simple. */

/* ── Skip navigation ────────────────────────────────────────────────────────
   Hidden off-screen until focused; appears at top-left on Tab. */
.skip-link {
  position: absolute;
  top: -100%;
  left: 8px;
  background: var(--ink);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  z-index: 10000;
}
.skip-link:focus { top: 0; outline: 3px solid var(--accent); outline-offset: 2px; }

/* ── Visually hidden (screen-reader accessible but not visible) ─────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Design tokens ──────────────────────────────────────────────────────── */
:root {
  /* Brand */
  --accent:       #C4753A;   /* terracotta — icons, decorative borders */
  --accent-btn:   #A05A28;   /* button/link color — 5.22:1 on white, full WCAG AA */
  --accent-hover: #8B4A22;   /* button hover */
  --accent-light: #F5DCC8;   /* light tint — hover states, selected bg */

  /* Page chrome */
  --bg:   #FDF4EE;   /* warm peach */
  --card: #ffffff;
  --ink:  #1a1a1a;   /* primary text */
  --muted:#6b6b6b;   /* secondary text — 5.32:1 on white, passes AA */
  --line: #ece3da;   /* borders / dividers */
  --radius: 16px;

  /* Status — success */
  --success-bg:     #EDF3EB;
  --success-text:   #1D4B18;   /* 7.1:1 on --success-bg */
  --success-border: #B8D4B2;

  /* Status — pending / scheduled */
  --pending-bg:     #FDF0DC;
  --pending-text:   #6B3C0A;   /* 5.8:1 on --pending-bg */
  --pending-border: #F5D99E;

  /* Status — warning / action needed */
  --warning-bg:     #FDF0E8;
  --warning-text:   #6B2D0A;   /* 6.1:1 on --warning-bg */
  --warning-border: #F5C89E;

  /* Status — error / failed */
  --error-bg:     #FCEAEA;
  --error-text:   #6B1414;   /* 7.4:1 on --error-bg */
  --error-border: #F5B8B8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

a { color: var(--accent-btn); }   /* #A05A28 — 5.22:1 on white, WCAG AA */

/* ── Site navigation ────────────────────────────────────────────────────── */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.site-nav .nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

.site-nav nav { display: flex; align-items: center; gap: 20px; }
.site-nav nav a { text-decoration: none; color: var(--ink); font-weight: 500; }
.site-nav nav a:hover { color: var(--accent); }
.site-nav nav a.nav-active { color: #A05A28; font-weight: 600; }
.site-nav nav a.nav-cta-btn { background: #A05A28; color: #fff !important; padding: 7px 16px; border-radius: 999px; font-size: 14px; }
.site-nav nav a.nav-cta-btn:hover { background: #8B4A22; }

.inline-form { display: inline; margin: 0; }
.link-button {
  background: none;
  border: none;
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
}
.link-button:hover { color: var(--accent); }

/* ── Page layout ────────────────────────────────────────────────────────── */
main { max-width: 880px; margin: 0 auto; padding: 40px 24px 80px; }

.centered-card {
  max-width: 440px;
  margin: 64px auto;
  background: var(--card);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

h1 { margin-top: 0; }

.muted { color: var(--muted); font-size: 14px; }

/* ── Status messages ────────────────────────────────────────────────────── */
.form-error {
  background: var(--error-bg);
  color: var(--error-text);
  border: 1px solid var(--error-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
}

.flash-notice, .flash {
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid var(--success-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  margin-bottom: 16px;
}

.reminder-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--warning-text);
}
.reminder-banner button {
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--warning-text);
  padding: 0 4px;
  flex-shrink: 0;
}
.reminder-banner button:hover { color: var(--ink); }

/* ── Phone mockup (SMS preview) ─────────────────────────────────────────── */
.phone-mockup {
  max-width: 300px;
  margin: 28px auto;
  background: #eef0f2;
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 28px 16px;
}

.message-bubble {
  background: #e9e9eb;
  border-radius: 18px;
  padding: 10px;
  max-width: 240px;
}

.message-bubble img {
  display: block;
  width: 100%;
  border-radius: 13px;
  margin-bottom: 8px;
}

.message-bubble p {
  margin: 0;
  padding: 2px 4px 4px;
  font-size: 14px;
  line-height: 1.45;
  color: #1c1c1e;
  font-family: -apple-system, Helvetica, Arial, sans-serif;
}

/* ── Forms ──────────────────────────────────────────────────────────────── */
.stacked-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  margin: 24px 0;
}

.stacked-form label { font-weight: 600; font-size: 14px; }

input, select, textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 100%;
  background: var(--card);
  color: var(--ink);
  accent-color: var(--accent);
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
button, .button {
  font: inherit;
  font-weight: 600;
  background: var(--accent-btn);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

button:hover, .button:hover { background: var(--accent-hover); }

button:focus-visible, .button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

button.secondary, .button.secondary {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
}
button.secondary:hover, .button.secondary:hover { background: var(--accent-light); }

/* ── Cards ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.card h2 { margin-top: 0; }

/* ── Grid ───────────────────────────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ── Tables ─────────────────────────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: 14px; }
th { color: var(--muted); font-weight: 600; text-transform: uppercase; font-size: 12px; letter-spacing: 0.04em; }

/* ── Badges ─────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent-btn);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
}

/* Status badge variants */
.badge-sent {
  background: var(--success-bg);
  color: var(--success-text);
}
.badge-scheduled, .badge-pending {
  background: var(--pending-bg);
  color: var(--pending-text);
}
.badge-failed, .badge-error {
  background: var(--error-bg);
  color: var(--error-text);
}
.badge-warning {
  background: var(--warning-bg);
  color: var(--warning-text);
}

/* ── Theme picker ───────────────────────────────────────────────────────── */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.theme-option {
  border: 3px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  transition: box-shadow 0.12s;
}
.theme-option:hover { box-shadow: 0 0 0 2px var(--line); }
.theme-option.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
/* Keyboard focus indicator for theme swatches (radio inside is .visually-hidden) */
.theme-option:focus-within { box-shadow: 0 0 0 3px var(--accent); outline: none; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 32px;
}

/* ── Empty states ───────────────────────────────────────────────────────── */
.empty-state {
  color: var(--muted);
  text-align: center;
  padding: 32px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* ── Send history row ───────────────────────────────────────────────────── */
.send-row { cursor: pointer; }
.send-row:hover td { background: var(--accent-light); }
.send-row:focus-within td { background: var(--accent-light); outline: none; }
.send-row a.row-link {
  text-decoration: none;
  color: inherit;
  font-weight: 700;
}
.send-row a.row-link:focus { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ── Live email preview (dashboard inline div) ──────────────────────────── */
.email-preview-outer {
  position: relative;
  width: 100%;
  overflow: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f7f7f7;
  height: calc(100vh - 220px);
  min-height: 280px;
}
/* Shadow DOM host — email renders inside this div via attachShadow */
.email-preview-inner {
  width: 100%;
  min-height: 100px;
  transition: opacity 0.2s ease;
}
.email-preview-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  color: var(--muted);
  font-size: 14px;
}
.email-preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

/* ── Theme generator modal ──────────────────────────────────────────────── */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal-backdrop.open { display: flex; }
.modal-box {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px;
  width: min(520px, calc(100vw - 40px));
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
}
.modal-box h3 { margin: 0 0 6px; font-size: 20px; }
.modal-close {
  float: right;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  padding: 0;
  color: var(--muted);
  cursor: pointer;
  min-height: unset;
}
.modal-close:hover { color: var(--ink); background: none; }

.theme-gen-preview-header {
  border-radius: 10px 10px 0 0;
  padding: 20px 16px 14px;
  text-align: center;
  margin-top: 16px;
}
.theme-gen-preview-badge {
  height: 8px;
  border-radius: 0 0 4px 4px;
  margin-bottom: 16px;
}

/* Generate ✨ button — warm terracotta gradient, no purple */
.btn-generate {
  background: linear-gradient(135deg, var(--accent-btn), #E08040);
  color: #fff;
  border: none;
}
.btn-generate:hover { background: linear-gradient(135deg, var(--accent-hover), #C86830); }

/* ── Theme swatch (compact variant for upload form) ─────────────────────── */
.theme-grid-compact { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }

/* ── Settings theme preview panel ───────────────────────────────────────── */
.theme-large-preview {
  display: none;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid var(--line);
}
.theme-large-preview.visible { display: block; }
.theme-large-header {
  padding: 24px 20px 18px;
  text-align: center;
}
.theme-large-badge-bar { height: 10px; }
.theme-large-body { padding: 16px 20px; background: var(--card); font-size: 13px; }

/* ── Responsive layout ──────────────────────────────────────────────────── */

/* Prevent any element from causing horizontal scroll */
html, body { overflow-x: hidden; }

/* All tappable buttons: 44 px minimum height */
button, .button { min-height: 44px; }
/* Exceptions: close button handles its own sizing */
.modal-close { min-height: unset; }

/* Recent photos: CSS grid so we control columns per breakpoint */
.recent-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
}
.recent-photos-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/* Scrollable wrapper for wide tables (send history) */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── Hamburger toggle — hidden on desktop ────────────────────────────────── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--ink);
  border-radius: 8px;
  min-height: unset;
}
.nav-toggle:hover { background: var(--accent-light); color: var(--ink); }

/* ── Mobile tab bar (Edit / Preview toggle on dashboard) ─────────────────── */
.mobile-tabs {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE  ≤ 767 px
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {

  /* ── Nav: collapse to hamburger ── */
  .site-nav { padding: 12px 16px; flex-wrap: wrap; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }

  .site-nav nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 8px;
    padding-top: 4px;
    border-top: 1px solid var(--line);
  }
  .site-nav nav.open { display: flex; }

  .site-nav nav a,
  .site-nav .inline-form .link-button {
    display: block;
    width: 100%;
    padding: 13px 4px;
    font-size: 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    min-height: 44px;
    box-sizing: border-box;
  }
  .site-nav nav a:last-of-type { border-bottom: none; }
  .site-nav .inline-form { display: block; width: 100%; margin: 0; }

  /* ── Layout ── */
  main { padding: 20px 16px 60px; }
  .card { padding: 20px 16px; }
  .centered-card { margin: 24px auto; padding: 28px 20px; }

  /* ── Grid: single column ── */
  .grid-2 { grid-template-columns: 1fr; }

  /* ── Inputs: 16 px stops iOS auto-zoom ── */
  input, select, textarea { font-size: 16px; }

  /* ── Full-width primary action buttons inside forms ── */
  .stacked-form button,
  .today-send-actions form button,
  #photo-upload-form > button { width: 100%; }

  /* ── Theme grids: 2 columns ── */
  .theme-grid,
  .theme-grid-compact { grid-template-columns: repeat(2, 1fr); }

  /* ── Email preview: shorter on mobile ── */
  .email-preview-outer { height: 260px; }

  /* ── Recent photos: 3 across ── */
  .recent-photos-grid { grid-template-columns: repeat(3, 1fr); }

  /* ── Send history table ── */
  .sends-table { font-size: 13px; }
  .sends-table th,
  .sends-table td { padding: 8px 6px; white-space: nowrap; }

  /* ── Empty state: readable at any width ── */
  .empty-state { padding: 24px 12px; word-break: normal; overflow-wrap: break-word; }

  /* ── Reminder banner: allow wrapping ── */
  .reminder-banner { flex-wrap: wrap; }

  /* ── Mobile tab bar ── */
  .mobile-tabs {
    display: flex;
    gap: 4px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px;
    margin-bottom: 16px;
    align-self: flex-start;
  }
  .mobile-tab {
    background: none;
    border: none;
    border-radius: 999px;
    padding: 6px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    min-height: 40px;
    font-family: inherit;
  }
  .mobile-tab.active { background: var(--accent-btn); color: #fff; }
  .mobile-tab:hover:not(.active) { background: var(--accent-light); color: var(--ink); }

  /* Dashboard panel toggle */
  .panel-hidden { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   TABLET  768 px – 1023 px
   ═══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 1023px) {
  main { padding: 32px 20px 72px; }
  .card { padding: 24px 20px; }
  .grid-2 { gap: 16px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   DARK MODE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (prefers-color-scheme: dark) {
  :root {
    --accent:       #C4753A;   /* terracotta icons / decorative */
    --accent-btn:   #D4854A;   /* on dark bg: white on #D4854A = 3.6:1 (large text AA) */
    --accent-hover: #E09560;
    --accent-light: #3D2210;

    --bg:   #1a1a1a;
    --card: #252525;
    --ink:  #F0EBE5;           /* warm near-white */
    --muted:#9A9080;           /* 4.6:1 on --card, passes AA */
    --line: #3A322C;

    /* Status dark tints */
    --success-bg:     #1A2B18;
    --success-text:   #90C880;   /* 5.0:1 on #1A2B18 */
    --success-border: #2D4A2A;

    --pending-bg:     #2B2010;
    --pending-text:   #E8B85A;   /* 6.2:1 on #2B2010 */
    --pending-border: #4A3518;

    --warning-bg:     #2B1A10;
    --warning-text:   #E88A5A;   /* 5.8:1 on #2B1A10 */
    --warning-border: #4A2C18;

    --error-bg:     #2B1414;
    --error-text:   #E87A7A;   /* 6.0:1 on #2B1414 */
    --error-border: #4A2020;
  }

  body { background: var(--bg); color: var(--ink); }

  /* Navigation */
  .site-nav { background: var(--card); border-color: var(--line); }

  /* Cards */
  .card { background: var(--card); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
  .centered-card { background: var(--card); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

  /* Forms */
  input, select, textarea {
    background: #2E2720;
    color: var(--ink);
    border-color: var(--line);
  }

  /* Secondary buttons */
  button.secondary, .button.secondary {
    background: var(--card);
    color: var(--ink);
    border-color: var(--line);
  }
  button.secondary:hover, .button.secondary:hover { background: var(--accent-light); }

  /* Modal */
  .modal-box { background: var(--card); }

  /* Theme settings preview */
  .theme-large-body { background: var(--card); color: var(--ink); }
  .theme-large-preview { border-color: var(--line); }

  /* Email preview shell */
  .email-preview-outer { background: #2A2420; border-color: var(--line); }

  /* Phone mockup */
  .phone-mockup { background: #2A2A2A; border-color: var(--line); }
  .message-bubble { background: #3A3A3A; }
  .message-bubble p { color: var(--ink); }

  /* Mobile tab bar */
  .mobile-tabs { background: var(--card); border-color: var(--line); }

  /* Links — #E09060 gives 5.3:1 on dark card (#252525), 7.5:1 on dark bg (#1a1a1a) */
  a { color: #E09060; }

  /* Skip link */
  .skip-link { background: var(--ink); color: var(--bg); }

  /* Tables */
  th, td { border-color: var(--line); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ONBOARDING — sectioned single-page flow
   ═══════════════════════════════════════════════════════════════════════════ */
.onboarding-section:not(:last-child) {
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
  margin-bottom: 28px;
}
.onboarding-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-btn);
  margin: 0 0 4px;
}
.onboarding-section h2 { margin: 0 0 6px; font-size: 20px; }
.onboarding-section > p.muted { margin: 0 0 16px; }

.field-hint {
  font-size: 12.5px;
  color: var(--accent-btn);
  margin: -6px 0 4px;
}

/* Born / expecting segmented toggle */
.segmented {
  display: inline-flex;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  margin-bottom: 16px;
  gap: 2px;
}
.seg-btn {
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.seg-btn.active { background: var(--accent-light); color: var(--accent-btn); }
.seg-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Sending on/off toggles (master + per-recipient) */
.sending-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.sending-row p { margin: 0; }
.sending-row .muted { font-size: 13px; }

.tip-box {
  font-size: 13.5px;
  background: var(--accent-light);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
  color: var(--ink);
}
.tip-box strong { color: var(--accent-btn); }

/* Accessible toggle switch: real checkbox + CSS-only visual track, so it
   works correctly with zero JS (progressive enhancement) — JS only adds the
   dimming side-effects (master pausing the per-recipient rows). */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
  cursor: pointer;
}
.toggle-switch.small { width: 34px; height: 20px; }
.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--line);
  border-radius: 999px;
  transition: background 0.18s ease;
}
.toggle-track::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.25);
  transition: transform 0.18s ease;
}
.toggle-switch.small .toggle-track::after { width: 14px; height: 14px; }
.toggle-input:checked ~ .toggle-track { background: var(--accent-btn); }
.toggle-input:checked ~ .toggle-track::after { transform: translateX(18px); }
.toggle-switch.small .toggle-input:checked ~ .toggle-track::after { transform: translateX(14px); }
.toggle-input:focus-visible ~ .toggle-track { outline: 2px solid var(--accent); outline-offset: 2px; }
.toggle-input:disabled ~ .toggle-track { opacity: 0.5; }
.toggle-input:disabled { cursor: not-allowed; }

/* Recipient rows added during onboarding */
.recipient-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr 0.85fr auto auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  transition: opacity 0.15s ease;
}
.recipient-row input, .recipient-row select { margin: 0; }
.recipient-row-remove {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}
.recipient-row-remove:hover { color: var(--error-text); }

@media (prefers-reduced-motion: reduce) {
  .toggle-switch::after, .tour-hole, .tour-tip { transition: none !important; }
}

@media (max-width: 640px) {
  .recipient-row { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD — first-visit spotlight tour
   ═══════════════════════════════════════════════════════════════════════════ */
.tour-stage { position: relative; }
.tour-hole {
  position: absolute;
  border-radius: 10px;
  box-shadow: 0 0 0 9999px rgba(26,18,10,0.6);
  transition: top 0.35s ease, left 0.35s ease, width 0.35s ease, height 0.35s ease;
  pointer-events: none;
  z-index: 60;
}
.tour-tip {
  position: absolute;
  z-index: 61;
  max-width: 260px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: top 0.35s ease, left 0.35s ease;
}
.tour-tip p { margin: 0 0 10px; }
.tour-tip-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tour-step-count { font-size: 11px; opacity: 0.7; }
.tour-btn {
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  background: var(--accent-btn);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
}
.tour-skip {
  font: inherit;
  font-size: 12px;
  background: none;
  border: none;
  color: inherit;
  opacity: 0.75;
  text-decoration: underline;
  padding: 0;
  cursor: pointer;
}

@media (prefers-color-scheme: dark) {
  .tour-hole { box-shadow: 0 0 0 9999px rgba(0,0,0,0.7); }
  .tour-tip { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
}
