/* ============================================================
   Daily Planner — main.css
   Mobile-first, single-user PWA
   ============================================================ */

/* === CUSTOM PROPERTIES === */
:root {
  /* Surfaces */
  --bg:          #f8fafc;
  --surface:     #ffffff;
  --surface-2:   #f1f5f9;
  --border:      #e2e8f0;
  --border-2:    #cbd5e1;

  /* Brand */
  --accent:        #4f46e5;
  --accent-hover:  #4338ca;
  --accent-light:  #ede9fe;

  /* Semantic colors */
  --red:         #ef4444;
  --red-light:   #fee2e2;
  --green:       #22c55e;
  --green-light: #dcfce7;
  --orange:      #f59e0b;
  --orange-light:#fef3c7;
  --blue:        #3b82f6;
  --blue-light:  #dbeafe;
  --teal:        #14b8a6;
  --teal-light:  #ccfbf1;

  /* Text */
  --text-1: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;

  /* Timeline */
  --hour-h:        64px;
  --tl-label-w:    44px;

  /* Layout */
  --header-h:      52px;
  --nav-h:         56px;
  --quickadd-h:    56px;
  --safe-top:      env(safe-area-inset-top, 0px);
  --safe-bottom:   env(safe-area-inset-bottom, 0px);

  /* Misc */
  --r:    10px;
  --r-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow:    0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -2px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.10), 0 4px 6px -4px rgba(0,0,0,.08);
  --ease: 150ms ease;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #0f172a;
    --surface:     #1e293b;
    --surface-2:   #334155;
    --border:      #334155;
    --border-2:    #475569;
    --text-1: #f1f5f9;
    --text-2: #94a3b8;
    --text-3: #64748b;
    --accent-light:  #312e81;
    --red-light:     #450a0a;
    --green-light:   #052e16;
    --orange-light:  #431407;
    --blue-light:    #172554;
    --teal-light:    #042f2e;
  }
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-1);
  background: var(--bg);
  height: 100dvh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
::-webkit-scrollbar { width: 0; }

/* === VIEWS === */
.view {
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
  background: var(--bg);
  z-index: 1;
}
.view.active { display: flex; }

/* ============================================================
   AUTH
   ============================================================ */
#view-auth {
  align-items: center;
  justify-content: center;
  padding: calc(var(--safe-top) + 24px) 24px 24px;
}

.auth-card {
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 32px 24px 24px;
  box-shadow: var(--shadow);
}

.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}
.auth-logo .logo-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-light);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: var(--accent);
}
.auth-logo .logo-icon svg { width: 28px; height: 28px; }
.auth-logo h1 { font-size: 22px; font-weight: 700; }
.auth-logo p  { font-size: 14px; color: var(--text-2); margin-top: 4px; }

/* ============================================================
   FORM FIELDS
   ============================================================ */
.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 6px;
}
.field label.inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-1);
  cursor: pointer;
}
.field input[type=text],
.field input[type=email],
.field input[type=password],
.field input[type=date],
.field input[type=time],
.field input[type=number],
.field textarea,
.field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--text-1);
  font-size: 15px;
  appearance: none;
  transition: border-color var(--ease);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 72px; }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; margin-bottom: 0; }
.field-hint { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--r);
  font-size: 15px;
  font-weight: 500;
  transition: background var(--ease), opacity var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary.full { width: 100%; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  font-size: 15px;
  font-weight: 500;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 18px;
  flex-shrink: 0;
  transition: background var(--ease), color var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn-icon:hover { background: var(--surface-2); color: var(--text-1); }
.btn-icon.accent { color: var(--accent); }

.btn-chip {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 100px;
  border: 1px solid;
  transition: opacity var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn-chip:active { opacity: .7; }
.btn-chip.chip-today    { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.btn-chip.chip-tomorrow { border-color: var(--blue);   color: var(--blue);   background: var(--blue-light); }
.btn-chip.chip-drop     { border-color: var(--border-2); color: var(--text-2); }

/* ============================================================
   FEEDBACK
   ============================================================ */
.error-msg {
  font-size: 13px;
  color: var(--red);
  background: var(--red-light);
  padding: 8px 12px;
  border-radius: var(--r);
  margin-bottom: 12px;
}

/* ============================================================
   MAIN APP SHELL
   ============================================================ */
#view-app {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  padding-top: var(--safe-top);
}

.tab-content {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.tab-content.active { display: flex; }

/* ── Tab Header ── */
.tab-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 16px;
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.tab-header h1 { font-size: 20px; font-weight: 700; flex: 1; }
.tab-header .header-date { font-size: 13px; color: var(--text-2); }

/* ── Scrollable area ── */
.scroll-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* ── Section headers ── */
.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-2);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border-radius: 9px;
}
.badge.danger { background: var(--red); }
.badge.warning { background: var(--orange); }

/* ============================================================
   BOTTOM NAVIGATION
   ============================================================ */
#bottom-nav {
  display: flex;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-bottom: var(--safe-bottom);
  flex-shrink: 0;
}

.nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 4px;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 500;
  transition: color var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.nav-tab svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
}
.nav-tab.active { color: var(--accent); }

/* ============================================================
   QUICK-ADD BAR
   ============================================================ */
#quick-add-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

#quick-add-input {
  flex: 1;
  padding: 9px 14px;
  border: 1px solid var(--border-2);
  border-radius: 100px;
  background: var(--surface-2);
  font-size: 14px;
  color: var(--text-1);
  transition: border-color var(--ease);
}
#quick-add-input:focus { outline: none; border-color: var(--accent); }
#quick-add-input::placeholder { color: var(--text-3); }

#btn-quick-submit {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--ease);
}
#btn-quick-submit:hover { background: var(--accent-hover); }

/* ============================================================
   TODAY TAB — CARRY-OVER
   ============================================================ */
#carryover-section {
  background: var(--orange-light);
}
#carryover-section .section-header {
  background: var(--orange-light);
  color: var(--orange);
}

.carryover-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.carryover-title {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.carryover-actions { display: flex; gap: 6px; }

/* ============================================================
   TIMELINE
   ============================================================ */
#timeline-outer {
  flex: 1;
  overflow-y: auto;
  position: relative;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

#timeline-wrapper {
  position: relative;
  /* height set by JS: 24 * HOUR_HEIGHT */
}

/* Hour row labels + dividers */
.tl-hour {
  position: absolute;
  left: 0;
  right: 0;
  height: var(--hour-h);
  display: flex;
  align-items: flex-start;
  pointer-events: none;
}
.tl-hour-label {
  width: var(--tl-label-w);
  padding: 2px 8px 0 0;
  font-size: 11px;
  color: var(--text-3);
  text-align: right;
  flex-shrink: 0;
}
.tl-hour-line {
  flex: 1;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.tl-half-line {
  position: absolute;
  left: var(--tl-label-w);
  right: 0;
  border-top: 1px dashed var(--border);
  opacity: .5;
  pointer-events: none;
}

/* Blocks container */
#timeline-blocks {
  position: absolute;
  left: var(--tl-label-w);
  right: 4px;
  top: 0;
}

/* Generic block */
.tl-block {
  position: absolute;
  left: 0;
  right: 0;
  border-radius: 6px;
  padding: 4px 8px;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  touch-action: none;
  transition: box-shadow var(--ease), opacity var(--ease);
}
.tl-block:active { box-shadow: var(--shadow); }
.tl-block.dragging { box-shadow: var(--shadow-lg); opacity: .92; z-index: 50; }

/* Event block */
.tl-event {
  background: var(--blue);
  color: #fff;
  margin-right: 0;
}
.tl-event .tl-title { color: #fff; }
.tl-event .tl-meta  { color: rgba(255,255,255,.75); }

/* Task block */
.tl-task {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow-sm);
  margin-left: 4px;
}
.tl-task.done  { opacity: .45; border-left-color: var(--green); }
.tl-task.overdue-block { border-left-color: var(--red); }

.tl-title {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-1);
}
.tl-meta {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 1px;
}
.tl-check {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-2);
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: background var(--ease), border-color var(--ease);
  z-index: 2;
}
.tl-check.checked { background: var(--green); border-color: var(--green); color: #fff; }

/* Now line */
#tl-now-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
  z-index: 10;
  pointer-events: none;
}
#tl-now-line::before {
  content: '';
  position: absolute;
  left: var(--tl-label-w);
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
}

/* Drag ghost */
#tl-drag-ghost {
  position: absolute;
  left: var(--tl-label-w);
  right: 4px;
  border-radius: 6px;
  background: var(--accent-light);
  border: 2px dashed var(--accent);
  pointer-events: none;
  z-index: 40;
  display: none;
}

/* ============================================================
   TASK CARDS (Tasks tab + lists)
   ============================================================ */
.task-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.task-card:active { background: var(--surface-2); }

.task-check {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-2);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: background var(--ease), border-color var(--ease);
}
.task-check.checked { background: var(--green); border-color: var(--green); color: #fff; }

.task-body { flex: 1; min-width: 0; }
.task-title {
  font-size: 15px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-card.done .task-title { text-decoration: line-through; color: var(--text-3); }

.task-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.task-due { font-size: 12px; color: var(--text-3); }
.task-due.overdue { color: var(--red); font-weight: 500; }
.task-due.today   { color: var(--accent); font-weight: 500; }
.task-tag {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text-2);
}
.task-star { font-size: 13px; }
.task-dur  { font-size: 12px; color: var(--text-3); }

/* ============================================================
   HABITS TAB
   ============================================================ */
.habit-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  -webkit-tap-highlight-color: transparent;
}

.habit-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
  transition: background var(--ease), border-color var(--ease);
}
.habit-btn.completed { background: var(--teal); border-color: var(--teal); color: #fff; }
.habit-btn.skipped   { background: var(--surface-2); border-color: var(--border); color: var(--text-3); }

.habit-body { flex: 1; min-width: 0; }
.habit-name { font-size: 15px; font-weight: 500; }
.habit-sub  {
  display: flex;
  gap: 8px;
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-3);
}
.habit-streak { color: var(--orange); font-weight: 500; }

/* ============================================================
   GOALS TAB
   ============================================================ */
.goal-card {
  margin: 8px 16px;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.goal-card.completed .goal-name { text-decoration: line-through; color: var(--text-3); }

.goal-name { font-size: 16px; font-weight: 600; }
.goal-date { font-size: 12px; color: var(--text-3); margin-top: 2px; }

.goal-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--surface-2);
  margin-top: 12px;
  overflow: hidden;
}
.goal-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
  transition: width .5s ease;
}

.goal-metric {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-2);
  margin-top: 6px;
}

/* ============================================================
   MODAL (bottom sheet)
   ============================================================ */
#modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 99;
  backdrop-filter: blur(2px);
}

.modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  z-index: 100;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.32,.72,0,1);
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: var(--safe-bottom);
}
.modal.open { transform: translateY(0); }

.modal-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--border-2);
  margin: 10px auto 0;
  flex-shrink: 0;
}
.modal-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-header h2 { flex: 1; font-size: 17px; font-weight: 600; }
.modal-body { flex: 1; overflow-y: auto; padding: 16px; }
.modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.modal-actions .btn-primary { flex: 1; }

/* ============================================================
   SETTINGS DRAWER
   ============================================================ */
#settings-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 149;
}

#settings-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 100vw);
  background: var(--surface);
  z-index: 150;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.32,.72,0,1);
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
}
#settings-drawer.open { transform: translateX(0); }

.drawer-header {
  display: flex;
  align-items: center;
  padding: 12px 8px 12px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.drawer-header h2 { flex: 1; font-size: 18px; font-weight: 600; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px; }

.settings-group { margin-bottom: 24px; }
.settings-group-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-2);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.settings-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.settings-row:last-child { border-bottom: none; }
.settings-label { flex: 1; }
.settings-label span { display: block; font-size: 15px; }
.settings-label small { display: block; font-size: 12px; color: var(--text-2); }

.toggle {
  width: 44px;
  height: 26px;
  border-radius: 13px;
  background: var(--border-2);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--ease);
}
.toggle.on { background: var(--accent); }
.toggle::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: transform var(--ease);
}
.toggle.on::after { transform: translateX(18px); }

/* ============================================================
   MORNING REVIEW
   ============================================================ */
#view-morning-review {
  padding: 0;
  overflow-y: auto;
}

.morning-scroll {
  padding: calc(var(--safe-top) + 24px) 20px calc(var(--safe-bottom) + 80px);
}

.morning-greeting { font-size: 28px; font-weight: 700; }
.morning-date { font-size: 15px; color: var(--text-2); margin-top: 4px; }

.morning-section { margin-top: 28px; }
.morning-section h2 { font-size: 17px; font-weight: 600; margin-bottom: 12px; }

.llm-notes {
  font-size: 14px;
  color: var(--text-2);
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  padding: 12px 14px;
  border-radius: 0 var(--r) var(--r) 0;
  line-height: 1.65;
  margin-bottom: 16px;
}

.plan-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.plan-item:last-child { border-bottom: none; }
.plan-time { font-size: 12px; color: var(--text-2); width: 50px; flex-shrink: 0; }
.plan-title { flex: 1; font-size: 14px; }
.plan-type {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 500;
}
.plan-type.event { background: var(--blue-light); color: var(--blue); }
.plan-type.task  { background: var(--accent-light); color: var(--accent); }

.morning-footer {
  position: fixed;
  bottom: calc(var(--safe-bottom) + 0px);
  left: 0;
  right: 0;
  padding: 12px 20px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

/* ============================================================
   ONBOARDING
   ============================================================ */
#view-onboarding {
  overflow-y: auto;
}
.onboarding-scroll {
  padding: calc(var(--safe-top) + 24px) 24px calc(var(--safe-bottom) + 24px);
}
.ob-progress { display: flex; gap: 6px; margin-bottom: 32px; }
.ob-dot {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--border-2);
  transition: background var(--ease);
}
.ob-dot.done { background: var(--accent); }
.ob-step { display: none; }
.ob-step.active { display: block; }
.ob-step h1 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.ob-step p  { font-size: 15px; color: var(--text-2); margin-bottom: 28px; line-height: 1.6; }
.ob-actions { display: flex; gap: 12px; margin-top: 24px; }
.ob-actions .btn-primary { flex: 1; }

/* ============================================================
   TOAST
   ============================================================ */
#toast-area {
  position: fixed;
  bottom: calc(var(--nav-h) + var(--quickadd-h) + var(--safe-bottom) + 8px);
  left: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 500;
  pointer-events: none;
}
.toast {
  padding: 11px 14px;
  background: var(--text-1);
  color: var(--bg);
  border-radius: var(--r);
  font-size: 14px;
  box-shadow: var(--shadow);
  animation: toast-in .2s ease;
}
.toast.success { background: var(--green); }
.toast.error   { background: var(--red); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  color: var(--text-3);
  text-align: center;
}
.empty-state svg { width: 48px; height: 48px; margin-bottom: 12px; opacity: .4; }
.empty-state p { font-size: 14px; }

/* ============================================================
   SKELETON LOADER
   ============================================================ */
.skeleton {
  border-radius: var(--r);
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; clip: rect(0,0,0,0); overflow: hidden; }
.divider { height: 8px; background: var(--bg); }
.text-danger { color: var(--red); }
.text-success { color: var(--green); }
.text-muted { color: var(--text-3); }
