/* ── Design tokens ─────────────────────────────────────── */
:root {
  --bg:        oklch(96.5% 0.008 65);
  --surface:   oklch(99.5% 0.004 65);
  --sidebar-bg:oklch(98.5% 0.007 65);
  --border:    oklch(91% 0.008 65);
  --text:      oklch(18% 0.015 65);
  --muted:     oklch(52% 0.012 65);
  --faint:     oklch(68% 0.01 65);

  --sage-fg:     oklch(34% 0.09 148);
  --sage-bg:     oklch(92% 0.045 148);
  --sage-dot:    oklch(68% 0.11 148);
  --rose-fg:     oklch(38% 0.09 8);
  --rose-bg:     oklch(93% 0.04 8);
  --rose-dot:    oklch(68% 0.11 8);
  --peach-fg:    oklch(36% 0.09 52);
  --peach-bg:    oklch(93% 0.04 52);
  --peach-dot:   oklch(70% 0.11 52);
  --lavender-fg: oklch(36% 0.08 285);
  --lavender-bg: oklch(93% 0.04 285);
  --lavender-dot:oklch(68% 0.10 285);
  --mint-fg:     oklch(34% 0.08 170);
  --mint-bg:     oklch(93% 0.04 170);
  --mint-dot:    oklch(68% 0.11 170);
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; }
body { background: var(--bg); font-family: 'DM Sans', sans-serif; color: var(--text); }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

/* scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: oklch(85% 0.01 65); border-radius: 2px; }

/* ── App shell ─────────────────────────────────────────── */
.app-shell {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  position: relative;
}

/* ── Sidebar ───────────────────────────────────────────── */
.sidebar {
  width: 208px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100%;
  flex-shrink: 0;
}
.sidebar-logo {
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 22px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  gap: 8px;
}
.logo-text {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--text);
  letter-spacing: -0.5px;
}
.sidebar-nav {
  padding: 10px;
  flex: 1;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  transition: background 0.12s;
}
.nav-item:hover { background: oklch(94% 0.01 65); }
.nav-item.active { background: oklch(92% 0.015 65); color: var(--text); font-weight: 500; }
.nav-item--disabled { opacity: 0.5; cursor: default; }
.nav-item--disabled:hover { background: transparent; }
.nav-icon { font-size: 12px; opacity: 0.7; }
.sidebar-user {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--sage-bg);
  color: var(--sage-fg);
  font-weight: 600; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 12px; font-weight: 500; color: var(--text); }
.user-meta { font-size: 10px; color: var(--faint); }
.user-menu-chevron {
  font-size: 14px;
  color: var(--faint);
  transform: rotate(90deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  line-height: 1;
}

/* ── Sidebar user block ────────────────────────────────── */
.sidebar-user {
  position: relative;
  cursor: pointer;
  transition: background 0.12s;
  border-radius: 0 0 0 0;
  user-select: none;
}
.sidebar-user:hover { background: oklch(95% 0.01 65); }
.sidebar-user--active { background: oklch(94% 0.012 65); }

/* ── User popup menu ───────────────────────────────────── */
.user-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 10px;
  right: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 -4px 24px oklch(18% 0.015 65 / 0.10), 0 8px 24px oklch(18% 0.015 65 / 0.08);
  z-index: 200;
  overflow: hidden;
  display: none;
  animation: menuUp 0.18s cubic-bezier(.22,.68,0,1.1) both;
}
.user-menu--open { display: block; }

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

.user-menu-header {
  padding: 12px 14px 10px;
}
.user-menu-name { font-size: 13px; font-weight: 600; color: var(--text); }
.user-menu-email { font-size: 11px; color: var(--faint); margin-top: 1px; }

.user-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 2px 0;
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 16px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.1s;
  text-decoration: none;
}
.user-menu-item:hover { background: var(--bg); }
.user-menu-item--danger { color: oklch(48% 0.12 8); }
.user-menu-item--danger:hover { background: oklch(97% 0.015 8); }

.user-menu-icon {
  font-size: 12px;
  color: var(--faint);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}
.user-menu-item--danger .user-menu-icon { color: oklch(60% 0.1 8); }

/* ── Flash ─────────────────────────────────────────────── */
.flash {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  z-index: 500;
  animation: fadeSlideIn 0.25s both;
}
.flash--notice { background: var(--sage-bg); color: var(--sage-fg); }
.flash--alert  { background: oklch(95% 0.025 8); color: oklch(40% 0.1 8); }

/* ── Toolbar ───────────────────────────────────────────── */
.toolbar {
  padding: 16px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.toolbar-title { font-weight: 600; font-size: 18px; letter-spacing: -0.3px; }
.toolbar-meta  { font-size: 11px; color: var(--faint); margin-top: 1px; }
.toolbar-spacer { flex: 1; }

/* ── Buttons ───────────────────────────────────────────── */
.btn-primary {
  height: 34px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--surface);
  background: var(--text);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.1px;
  transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.88; }
.btn-outline {
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.12s;
}
.btn-outline:hover { background: var(--bg); }
.btn-accent {
  height: 34px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--sage-fg);
  background: var(--sage-bg);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.btn-accent:hover { opacity: 0.88; }
.btn-accent-sm {
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--sage-fg);
  background: var(--sage-bg);
  border: none;
  border-radius: 7px;
  cursor: pointer;
}
.btn-lavender {
  height: 36px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--lavender-fg);
  background: var(--lavender-bg);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.btn-lavender:disabled { opacity: 0.5; cursor: default; }
.link-btn {
  background: none;
  border: none;
  color: var(--faint);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
}

/* ── Search ────────────────────────────────────────────── */
.search-form { display: flex; }
.search-wrap { position: relative; display: flex; align-items: center; }
.search-icon { position: absolute; left: 10px; font-size: 14px; color: var(--faint); pointer-events: none; }
.search-input {
  width: 200px;
  height: 34px;
  padding-left: 30px;
  padding-right: 12px;
  font-size: 13px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s;
}
.search-input:focus { border-color: var(--sage-dot); }

/* ── Layout toggle ─────────────────────────────────────── */
.layout-toggle { display: flex; gap: 4px; }
.layout-btn {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--muted);
  transition: background 0.12s;
}
.layout-btn.active { background: var(--text); color: var(--surface); border-color: var(--text); }
.layout-btn:hover:not(.active) { background: var(--bg); }

/* ── Filters ───────────────────────────────────────────── */
.filters-bar {
  padding: 10px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.filter-pill {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  user-select: none;
  color: var(--muted);
  background: var(--surface);
}
.filter-pill:hover { background: oklch(93% 0.01 65); }
.filter-pill.active { background: var(--text) !important; color: var(--surface) !important; border-color: var(--text); }

/* ── Recipe bank (scroll area) ─────────────────────────── */
.bank-screen, .week-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}
.recipes-scroll {
  flex: 1;
  padding: 24px 28px;
  overflow-y: auto;
}

/* ── Recipe grid ───────────────────────────────────────── */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.recipe-card {
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.18s, transform 0.18s;
  cursor: pointer;
  display: block;
  color: inherit;
}
.recipe-card:hover {
  box-shadow: 0 4px 24px oklch(18% 0.015 65 / 0.08);
  transform: translateY(-2px);
}
.recipe-card:hover .card-img-wrap .recipe-img { transform: scale(1.03); }
.card-img-wrap { overflow: hidden; }
.card-img-wrap .recipe-img { transition: transform 0.32s cubic-bezier(.22,.68,0,1); }
.recipe-img {
  position: relative;
  overflow: hidden;
}
.recipe-img-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 0.5px;
  opacity: 0.7;
  text-align: center;
  padding: 0 8px;
}
.card-body { padding: 12px 14px 14px; }
.card-name { font-weight: 600; font-size: 13px; color: var(--text); margin-bottom: 4px; line-height: 1.3; }
.card-footer { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 8px; }
.card-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.card-time { font-size: 11px; color: var(--faint); flex-shrink: 0; margin-left: 4px; }

/* ── Recipe list ───────────────────────────────────────── */
.recipe-list { display: flex; flex-direction: column; gap: 1px; }
.list-header {
  display: grid;
  grid-template-columns: 56px 1fr 160px 80px 32px;
  padding: 6px 14px;
  margin-bottom: 2px;
}
.list-header span {
  font-size: 10px;
  font-weight: 600;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.recipe-list-row {
  display: grid;
  grid-template-columns: 56px 1fr 160px 80px 32px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: box-shadow 0.15s;
  color: inherit;
}
.recipe-list-row:hover { box-shadow: 0 2px 10px oklch(18% 0.015 65 / 0.06); }
.list-thumb { display: flex; }
.list-name { font-size: 13px; font-weight: 500; color: var(--text); padding-left: 12px; }
.list-tags { display: flex; gap: 4px; }
.list-time { font-size: 12px; color: var(--faint); }
.list-arrow { font-size: 14px; color: var(--faint); text-align: right; }

/* ── Tag pills ─────────────────────────────────────────── */
.tag-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  line-height: 1.3;
}
.tag-pill--small { font-size: 10px; padding: 2px 7px; }

.tag-pill--quick, .tag-pill--peach    { color: var(--peach-fg); background: var(--peach-bg); }
.tag-pill--healthy, .tag-pill--sage   { color: var(--sage-fg);  background: var(--sage-bg);  }
.tag-pill--comfort, .tag-pill--rose   { color: var(--rose-fg);  background: var(--rose-bg);  }
.tag-pill--weeknight, .tag-pill--lavender { color: var(--lavender-fg); background: var(--lavender-bg); }
.tag-pill--vegetarian, .tag-pill--mint{ color: var(--mint-fg);  background: var(--mint-bg);  }
.tag-pill--new       { color: var(--rose-fg);  background: var(--rose-bg);  }

/* ── Empty state ───────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 80px 20px;
  text-align: center;
}
.empty-state-icon { font-size: 32px; color: var(--faint); }
.empty-state-text { font-size: 14px; color: var(--muted); }

/* ── Recipe detail ─────────────────────────────────────── */
.recipe-detail {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}
.detail-bar {
  padding: 12px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.detail-bar-spacer { flex: 1; }
.back-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.12s;
}
.back-btn:hover { background: var(--bg); }
.breadcrumb-sep { font-size: 12px; color: var(--faint); }
.detail-layout {
  flex: 1;
  display: flex;
  overflow: hidden;
}
.detail-left {
  width: 280px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  flex-shrink: 0;
  overflow-y: auto;
}
.detail-meta {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.detail-name {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 6px;
}
.detail-stats { display: flex; gap: 16px; margin-bottom: 10px; }
.stat-label { font-size: 10px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.stat-value { font-size: 13px; font-weight: 500; color: var(--text); }
.detail-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 14px; }

.source-credit {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 8px;
}
.source-credit--own { background: var(--sage-bg); }
.source-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--muted);
  flex-shrink: 0;
}
.source-icon--own {
  background: var(--sage-dot);
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 12px;
}
.source-label { font-size: 10px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 1px; }
.source-name { font-size: 12px; font-weight: 500; color: var(--sage-fg); }
.source-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 3px;
}
.source-link:hover { text-decoration: underline; }

/* ── Ingredients checklist ─────────────────────────────── */
.ingredients-section { padding: 16px 20px; flex: 1; }
.section-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--faint);
  margin-bottom: 10px;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.check-row:hover .check-box { border-color: var(--sage-dot) !important; }
.check-box {
  width: 14px; height: 14px;
  border: 1.5px solid var(--border);
  border-radius: 3px;
  flex-shrink: 0;
  transition: background 0.12s, border-color 0.12s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.check-mark { color: white; font-size: 9px; line-height: 1; display: none; }
.check-row.checked .check-box { background: var(--sage-dot) !important; border-color: var(--sage-dot) !important; }
.check-row.checked .check-mark { display: block; }
.check-row.checked .check-label { text-decoration: line-through; color: var(--faint) !important; }
.check-label { font-size: 12.5px; color: var(--text); transition: color 0.12s; }

/* ── Steps ─────────────────────────────────────────────── */
.detail-right {
  flex: 1;
  padding: 28px 36px;
  overflow-y: auto;
  background: var(--bg);
}
.steps-list { display: flex; flex-direction: column; gap: 10px; max-width: 620px; margin-bottom: 28px; }
.step-row {
  display: flex;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.step-row:hover { background: oklch(97.5% 0.006 65) !important; }
.step-row--active {
  background: var(--surface) !important;
  border-color: var(--border) !important;
  box-shadow: 0 2px 12px oklch(18% 0.015 65 / 0.05);
}
.step-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--border);
  color: var(--faint);
  font-weight: 700;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
  margin-top: 1px;
}
.step-row--active .step-num {
  background: var(--sage-bg) !important;
  color: var(--sage-fg) !important;
}
.step-content { flex: 1; }
.step-text { font-size: 14px; color: var(--text); line-height: 1.65; margin: 0; }
.step-actions { margin-top: 10px; display: flex; gap: 8px; }
.btn-next-step {
  font-size: 12px;
  font-weight: 500;
  color: var(--sage-fg);
  background: var(--sage-bg);
  border: none;
  border-radius: 6px;
  padding: 5px 12px;
  cursor: pointer;
}
.step-done { font-family: 'DM Serif Display', serif; font-style: italic; font-size: 13px; color: var(--faint); }

/* ── Notes ─────────────────────────────────────────────── */
.notes-section {
  max-width: 620px;
  margin-top: 28px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  padding-bottom: 40px;
}
.note-item {
  margin-bottom: 8px;
}
.note-view {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.12s;
}
.note-view:hover { border-color: var(--sage-dot); }
.note-text { font-size: 13px; color: var(--text); line-height: 1.65; margin: 0; }
.note-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.note-date { font-size: 11px; color: var(--faint); }
.note-actions { display: flex; gap: 8px; }
.note-btn {
  font-size: 11px;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
}
.note-btn--delete { color: oklch(55% 0.09 8); }
.note-btn--delete form, .note-btn--delete input[type=submit] {
  display: inline;
  background: none;
  border: none;
  color: oklch(55% 0.09 8);
  font-size: 11px;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.note-textarea {
  width: 100%;
  min-height: 72px;
  padding: 12px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text);
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  line-height: 1.6;
}
.note-edit-form {
  background: var(--surface);
  border: 1px solid var(--sage-dot);
  border-radius: 10px;
  overflow: hidden;
}
.note-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.note-composer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.15s;
}
.note-composer:focus-within { box-shadow: 0 0 0 2px var(--sage-bg); }
.note-composer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.note-hint { font-size: 11px; color: var(--faint); }
.note-save-btn {
  font-size: 12px;
  font-weight: 500;
  color: var(--sage-fg);
  background: var(--sage-bg);
  border: none;
  border-radius: 7px;
  padding: 5px 14px;
  cursor: pointer;
  transition: background 0.15s;
}

/* ── Week view ─────────────────────────────────────────── */
.week-nav { display: flex; gap: 4px; }
.week-nav-btn {
  width: 32px; height: 32px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  transition: background 0.12s;
}
.week-nav-btn--today {
  width: auto;
  padding: 0 12px;
  font-size: 12px;
}
.week-nav-btn--today.active { background: var(--text); color: var(--surface); border-color: var(--text); }
.week-nav-btn:hover:not(.active) { background: var(--bg); }
.week-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.week-col {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  position: relative;
  overflow: visible;
}
.week-col--today { background: oklch(98% 0.012 148); }
.week-col-header {
  padding: 12px 12px 10px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}
.week-col-header--today { background: oklch(96% 0.018 148); }
.week-day-label { display: flex; align-items: baseline; gap: 5px; }
.week-day-name { font-weight: 600; font-size: 12px; color: var(--text); }
.week-day-name--today { color: var(--sage-fg); }
.week-day-name--past { color: var(--faint); }
.today-badge {
  font-size: 9px; font-weight: 600;
  color: var(--sage-fg);
  background: var(--sage-bg);
  padding: 1px 5px;
  border-radius: 8px;
}
.week-date { font-size: 10px; color: var(--faint); margin-top: 1px; }
.week-recipes {
  flex: 1;
  overflow-y: auto;
  padding: 8px 8px 0;
}
.week-empty {
  padding: 16px 8px;
  text-align: center;
  font-size: 11px;
  color: var(--faint);
  font-style: italic;
  line-height: 1.5;
}
.week-recipe-card {
  margin-bottom: 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.15s, transform 0.15s;
}
.week-recipe-card:hover {
  box-shadow: 0 2px 12px oklch(18% 0.015 65 / 0.07);
  transform: translateY(-1px);
}
.week-col--past .week-recipe-card { opacity: 0.55; }
.week-recipe-img {
  height: 52px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.week-recipe-body { padding: 6px 8px 7px; cursor: pointer; }
.week-recipe-name {
  font-size: 11px; font-weight: 600; color: var(--text);
  line-height: 1.3; margin-bottom: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.week-recipe-time { font-size: 10px; color: var(--faint); }
.week-recipe-remove {
  position: absolute;
  top: 4px; right: 4px;
  width: 20px; height: 20px;
  border-radius: 5px;
  background: oklch(18% 0.015 65 / 0.55);
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  line-height: 1;
  font-family: 'DM Sans', sans-serif;
}
.week-recipe-card:hover .week-recipe-remove { display: flex; }
.week-add-wrap {
  padding: 8px;
  position: relative;
  flex-shrink: 0;
}
.week-add-btn {
  width: 100%;
  height: 30px;
  border-radius: 7px;
  border: 1.5px dashed var(--border);
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: var(--faint);
  transition: all 0.15s;
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Sans', sans-serif;
}
.week-add-btn:hover { border-color: var(--sage-dot); background: var(--sage-bg); color: var(--sage-fg); }

/* ── Day picker popup ──────────────────────────────────── */
.day-picker-popup {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px oklch(18% 0.015 65 / 0.14);
  z-index: 200;
  overflow: hidden;
  min-width: 200px;
}
.day-picker-header {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.day-picker-label {
  font-size: 11px; font-weight: 600; color: var(--faint);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px;
}
.day-picker-search {
  width: 100%;
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  outline: none;
}
.day-picker-list { max-height: 220px; overflow-y: auto; }
.day-picker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.day-picker-item:hover { background: var(--bg); }
.day-picker-recipe-info { flex: 1; min-width: 0; }
.day-picker-recipe-name {
  font-size: 12px; font-weight: 500; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.day-picker-recipe-time { font-size: 10px; color: var(--faint); }
.day-picker-add-btn {
  background: none;
  border: none;
  color: var(--faint);
  font-size: 14px;
  cursor: pointer;
  padding: 2px;
  font-family: inherit;
}

/* ── Drawer / Recipe form ───────────────────────────────── */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: oklch(18% 0.015 65 / 0.25);
  z-index: 99;
  backdrop-filter: blur(2px);
  display: flex;
  justify-content: flex-end;
}
.drawer {
  width: 560px;
  height: 100%;
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px oklch(18% 0.015 65 / 0.10);
  animation: drawerIn 0.3s cubic-bezier(.22,.68,0,1.05) both;
}
@keyframes drawerIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
.drawer-header {
  padding: 18px 24px;
  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: 16px; color: var(--text); }
.drawer-subtitle { font-size: 11px; color: var(--faint); margin-top: 1px; }
.drawer-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--muted);
}
.drawer-close:hover { background: oklch(93% 0.01 65); }
.drawer-body { flex: 1; overflow-y: auto; padding: 22px 24px; }

/* Method picker */
.method-prompt { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.method-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.method-card {
  padding: 20px 18px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.method-card:hover { box-shadow: 0 4px 20px oklch(18% 0.015 65 / 0.06); }
.method-card--lavender:hover { border-color: var(--lavender-dot); }
.method-card--sage:hover { border-color: var(--sage-dot); }
.method-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  margin-bottom: 12px;
}
.method-icon--lavender { background: var(--lavender-bg); color: var(--lavender-fg); }
.method-icon--sage { background: var(--sage-bg); color: var(--sage-fg); }
.method-title { font-weight: 600; font-size: 14px; color: var(--text); margin-bottom: 4px; }
.method-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* URL import */
.url-import-row { display: flex; gap: 8px; margin-bottom: 12px; }
.import-progress { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.import-bar {
  flex: 1; height: 4px;
  border-radius: 2px;
  background: var(--lavender-bg);
  overflow: hidden;
}
.import-bar-fill {
  height: 100%;
  background: var(--lavender-dot);
  border-radius: 2px;
  animation: progressBar 1.4s ease-in-out forwards;
}
@keyframes progressBar { from { width: 0% } to { width: 100% } }
.import-label { font-size: 12px; color: var(--faint); }
.import-success {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--sage-bg);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--sage-fg);
  margin-bottom: 16px;
}

/* Form elements */
.form-group { margin-bottom: 18px; }
.form-label {
  font-size: 11px; font-weight: 600; color: var(--faint);
  text-transform: uppercase; letter-spacing: 0.6px;
  display: block; margin-bottom: 6px;
}
.form-input {
  width: 100%; height: 36px;
  padding: 0 12px;
  font-size: 13px;
  color: var(--text);
  background: oklch(99.5% 0.004 65);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s;
}
.form-input:focus { border-color: var(--sage-dot); }
.form-textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text);
  background: oklch(99.5% 0.004 65);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  resize: none;
  transition: border-color 0.15s;
  line-height: 1.5;
  font-family: 'DM Sans', sans-serif;
}
.form-textarea:focus { border-color: var(--sage-dot); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }

/* Tags form */
.tag-options { display: flex; gap: 6px; flex-wrap: wrap; }
.tag-option {
  font-size: 12px; font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  border: 1.5px solid var(--border);
  color: var(--muted);
  transition: all 0.12s;
}
.tag-option input[type=checkbox] { display: none; }
.tag-option--active { border-color: transparent; }
.tag-option--quick     { color: var(--peach-fg); background: var(--peach-bg); border-color: var(--peach-dot); }
.tag-option--healthy   { color: var(--sage-fg);  background: var(--sage-bg);  border-color: var(--sage-dot); }
.tag-option--comfort   { color: var(--rose-fg);  background: var(--rose-bg);  border-color: var(--rose-dot); }
.tag-option--weeknight { color: var(--lavender-fg); background: var(--lavender-bg); border-color: var(--lavender-dot); }
.tag-option--vegetarian{ color: var(--mint-fg);  background: var(--mint-bg);  border-color: var(--mint-dot); }
/* Generic color classes for user-created tags */
.tag-option--sage      { color: var(--sage-fg);  background: var(--sage-bg);  border-color: var(--sage-dot); }
.tag-option--rose      { color: var(--rose-fg);  background: var(--rose-bg);  border-color: var(--rose-dot); }
.tag-option--peach     { color: var(--peach-fg); background: var(--peach-bg); border-color: var(--peach-dot); }
.tag-option--lavender  { color: var(--lavender-fg); background: var(--lavender-bg); border-color: var(--lavender-dot); }
.tag-option--mint      { color: var(--mint-fg);  background: var(--mint-bg);  border-color: var(--mint-dot); }

/* Dynamic tag toggle via :has() — keyed on data-color so user-created tags work */
.tag-option[data-color="peach"]:has(input:checked)    { color: var(--peach-fg); background: var(--peach-bg); border-color: transparent; }
.tag-option[data-color="sage"]:has(input:checked)     { color: var(--sage-fg);  background: var(--sage-bg);  border-color: transparent; }
.tag-option[data-color="rose"]:has(input:checked)     { color: var(--rose-fg);  background: var(--rose-bg);  border-color: transparent; }
.tag-option[data-color="lavender"]:has(input:checked) { color: var(--lavender-fg); background: var(--lavender-bg); border-color: transparent; }
.tag-option[data-color="mint"]:has(input:checked)     { color: var(--mint-fg);  background: var(--mint-bg);  border-color: transparent; }

/* Dynamic rows */
.dynamic-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.dynamic-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.dynamic-row--step { align-items: flex-start; }
.dyn-num {
  width: 20px; height: 20px;
  border-radius: 4px;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px;
  color: var(--faint);
}
.dyn-step-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600;
  color: var(--muted);
  margin-top: 6px;
}
.dyn-del {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: none;
  cursor: pointer;
  color: var(--faint);
  font-size: 14px;
  flex-shrink: 0;
  transition: opacity 0.12s;
  font-family: 'DM Sans', sans-serif;
}
.btn-add-item {
  font-size: 12px; font-weight: 500;
  border: none;
  border-radius: 7px;
  padding: 5px 12px;
  cursor: pointer;
}
.btn-add-item--sage  { color: var(--sage-fg);  background: var(--sage-bg);  }
.btn-add-item--peach { color: var(--peach-fg); background: var(--peach-bg); }

/* Photo placeholder */
.photo-placeholder {
  height: 150px;
  border-radius: 10px;
  border: 2px dashed oklch(80% 0.04 65);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.photo-plus { font-size: 22px; color: oklch(50% 0.04 65); }
.photo-label { font-size: 12px; font-weight: 500; color: oklch(50% 0.04 65); }

/* Drawer footer */
.drawer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
}
.drawer-footer-left {}
.drawer-footer-right { display: flex; gap: 8px; }
.delete-btn {
  background: none;
  border: none;
  color: oklch(55% 0.09 8);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  font-family: inherit;
}
.delete-btn form, .delete-btn input[type=submit] {
  display: inline;
  background: none;
  border: none;
  color: oklch(55% 0.09 8);
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
  text-decoration-style: dotted;
}

/* ── Week picker modal ─────────────────────────────────── */
.week-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}
.week-picker-backdrop {
  position: absolute;
  inset: 0;
  background: oklch(18% 0.015 65 / 0.2);
}
.week-picker-popup {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 8px 40px oklch(18% 0.015 65 / 0.18);
  min-width: 220px;
  z-index: 1;
}
.week-picker-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 12px;
}
.week-day-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: 8px;
  border: none;
  background: none;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.1s;
  margin-bottom: 2px;
}
.week-day-btn:hover { background: var(--bg); }

/* ── Animations ────────────────────────────────────────── */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Responsive tweaks ─────────────────────────────────── */
@media (max-width: 1200px) {
  .recipe-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .recipe-grid { grid-template-columns: repeat(2, 1fr); }
  .drawer { width: 100%; }
}

/* ── Mobile nav elements (hidden on desktop) ───────────── */
.mobile-header     { display: none; }
.mobile-nav        { display: none; }
.mobile-search-row { display: none; }

@media (max-width: 700px) {
  /* Hide desktop sidebar */
  .sidebar { display: none; }

  /* Stack layout vertically */
  .app-shell {
    flex-direction: column;
  }

  /* Mobile top header */
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    height: 54px;
    background: var(--sidebar-bg);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    position: relative;
    z-index: 100;
  }

  /* Mobile user avatar button */
  .mobile-user {
    position: relative;
    cursor: pointer;
  }
  .mobile-user .user-avatar {
    width: 32px; height: 32px;
    font-size: 12px;
  }

  /* Mobile user menu — drops down from top-right */
  .user-menu--mobile {
    top: calc(100% + 8px);
    bottom: auto;
    left: auto;
    right: 0;
    width: 220px;
    animation: menuDown 0.18s cubic-bezier(.22,.68,0,1.1) both;
  }

  @keyframes menuDown {
    from { opacity: 0; transform: translateY(-6px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1);    }
  }

  /* Main content: leave room for bottom nav */
  .main-content {
    padding-bottom: 62px;
  }

  /* Bottom tab bar */
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 62px;
    background: var(--sidebar-bg);
    border-top: 1px solid var(--border);
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--faint);
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.12s;
    text-decoration: none;
  }
  .mobile-nav-item.active    { color: var(--text); }
  .mobile-nav-item--disabled { opacity: 0.4; cursor: default; }

  .mobile-nav-icon  { font-size: 16px; line-height: 1; }
  .mobile-nav-label { font-size: 10px; letter-spacing: 0.01em; }

  /* Tighten recipe grid on mobile */
  .recipe-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 14px; }

  /* Settings / help page padding */
  .settings-page { padding: 20px 16px; }

  /* ── Toolbar: collapse to title + add button ── */
  .toolbar {
    padding: 12px 16px;
    flex-wrap: nowrap;
  }
  .toolbar-spacer { display: none; }
  .search-form    { display: none; }  /* moved to its own row */
  .layout-toggle  { display: none; }  /* grid only on mobile */

  /* Add Recipe button: keep full label, just tighten sizing */
  .toolbar .btn-primary {
    height: 36px;
    padding: 0 14px;
    font-size: 13px;
    border-radius: 10px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  /* Mobile search row — full width below toolbar */
  .mobile-search-row {
    display: flex;
    padding: 8px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    flex-shrink: 0;
  }
  .mobile-search-row .search-form { display: flex; flex: 1; }
  .mobile-search-row .search-wrap { flex: 1; }
  .mobile-search-row .search-input { width: 100%; }

  /* Filters: single scrollable row, no wrapping */
  .filters-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 10px 16px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filters-bar::-webkit-scrollbar { display: none; }
  .filter-pill { flex-shrink: 0; }

  /* ── Recipe detail page ── */
  .main-content:has(.recipe-detail) { overflow-y: auto; }
  .recipe-detail { height: auto; flex: none; overflow: visible; }
  .detail-bar {
    padding: 10px 14px;
    gap: 7px;
    flex-wrap: nowrap;
  }
  .breadcrumb-sep { display: none; }
  .detail-bar .btn-outline { padding: 5px 10px; font-size: 12px; }
  .detail-bar .btn-accent  { padding: 5px 12px; font-size: 12px; white-space: nowrap; }
  .detail-layout {
    flex-direction: column;
    overflow: visible;
    height: auto;
  }
  .detail-left {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    overflow-y: visible;
    height: auto;
  }
  .detail-right {
    padding: 20px 16px 32px;
    overflow-y: visible;
    height: auto;
  }
  .steps-list { max-width: 100%; }
  .step-row { padding: 12px 14px; }

  /* ── Week view: 2 days at a time ── */
  .week-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .week-grid::-webkit-scrollbar { display: none; }
  .week-col {
    min-width: 50%;
    width: 50%;
    flex-shrink: 0;
    scroll-snap-align: start;
  }
  .week-recipe-name { -webkit-line-clamp: 3; }
  .week-recipe-img  { height: 80px; }
}

/* ── User menu button_to reset ─────────────────────── */
.user-menu-item--btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13px;
  color: inherit;
}
.user-menu-item--btn form { display: contents; }

/* ── Auth pages ────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  overflow: auto;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 44px 44px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 2px 16px oklch(0% 0 0 / 5%);
}

.auth-logo { margin-bottom: 28px; }

.auth-title {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.2;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}

.auth-field { margin-bottom: 18px; }

.auth-field .form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.auth-field .form-input {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-field .form-input:focus {
  border-color: oklch(60% 0.08 65);
  box-shadow: 0 0 0 3px oklch(92% 0.03 65);
}
.auth-field .form-input::placeholder { color: var(--faint); }

.auth-hint {
  font-size: 11px;
  color: var(--faint);
  margin-left: 4px;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--muted);
}

.auth-btn {
  display: block;
  width: 100%;
  padding: 11px 18px;
  margin-top: 8px;
  background: var(--text);
  color: var(--surface);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s;
  text-align: center;
}
.auth-btn:hover { opacity: 0.85; }

.auth-links {
  margin-top: 22px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.auth-links a { color: var(--text); font-weight: 500; }
.auth-links a:hover { text-decoration: underline; }
.auth-links-sep { margin: 0 8px; color: var(--faint); }

#error_explanation {
  background: var(--rose-bg);
  border: 1px solid oklch(88% 0.05 8);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--rose-fg);
}
#error_explanation h2 { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
#error_explanation ul { padding-left: 16px; }
#error_explanation li { margin-bottom: 2px; }

/* auth page lives inside .main-content which clips — override */
.main-content:has(.auth-page) { overflow: auto; }
.auth-page { min-height: 100%; }

/* ── Photo upload ───────────────────────────────────── */
.photo-file-input {
  display: none;
}
.photo-placeholder {
  cursor: pointer;
  transition: opacity 0.15s;
}
.photo-placeholder:hover { opacity: 0.85; }
.photo-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
  border-radius: 8px;
}

.image-picker { margin-top: 12px; }
.image-picker-label {
  font-size: 13px;
  color: var(--text-muted, #666);
  margin-bottom: 8px;
}
.image-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
}
.image-picker-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  background: oklch(95% 0.01 65);
  padding: 0;
}
.image-picker-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.image-picker-thumb:hover { opacity: 0.85; }
.image-picker-thumb--selected {
  border-color: oklch(65% 0.15 290);
  box-shadow: 0 0 0 2px oklch(95% 0.05 290);
}
.image-picker-thumb--upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 2px dashed oklch(80% 0.02 65);
  background: oklch(98% 0.005 65);
  color: var(--text-muted, #666);
}
.image-picker-thumb--upload:hover {
  border-color: oklch(65% 0.15 290);
  color: oklch(55% 0.15 290);
  opacity: 1;
}
.image-picker-upload-icon {
  font-size: 22px;
  line-height: 1;
  font-weight: 300;
}
.image-picker-upload-label {
  font-size: 11px;
  font-weight: 500;
}

/* ── New tag input ──────────────────────────────────── */
.tag-new-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.tag-new-input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.tag-new-input:focus { border-color: oklch(60% 0.08 65); }
.tag-new-input::placeholder { color: var(--faint); }
.tag-add-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.1s, color 0.1s;
}
.tag-add-btn:hover { background: var(--text); color: var(--surface); border-color: var(--text); }
.tag-new-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tag-new-chip-remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: inherit;
  opacity: 0.6;
  padding: 0;
  line-height: 1;
}
.tag-new-chip-remove:hover { opacity: 1; }

/* ── Manage tags: filter pill ───────────────────────── */
.filter-pill--manage {
  border-style: dashed;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  margin-left: auto;
}
.filter-pill--manage:hover { background: var(--bg); color: var(--text); }

/* ── Modal ──────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: oklch(20% 0.02 65 / 40%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: modalFade 0.15s ease-out;
}
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--surface);
  border-radius: 16px;
  width: 100%;
  max-width: 540px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px oklch(0% 0 0 / 18%);
  animation: modalSlide 0.2s ease-out;
}
@keyframes modalSlide { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 22px 26px 16px;
  border-bottom: 1px solid var(--border);
}
.modal-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text);
  margin-bottom: 4px;
}
.modal-subtitle { font-size: 13px; color: var(--muted); }
.modal-close {
  width: 30px; height: 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.modal-close:hover { background: oklch(92% 0.01 65); }

.modal-body {
  padding: 16px 26px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 26px 22px;
  border-top: 1px solid var(--border);
}
.modal--narrow { max-width: 420px; }
.modal-warning-text {
  font-size: 15px;
  color: var(--text-secondary, #444);
  line-height: 1.5;
}
.btn-delete {
  background: none;
  border: none;
  color: oklch(50% 0.18 25);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
}
.btn-delete:hover { background: oklch(96% 0.02 25); }
.btn-danger {
  background: oklch(52% 0.2 25);
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.btn-danger:hover { background: oklch(46% 0.2 25); }
.btn-danger form, .btn-danger input[type="submit"] {
  all: unset;
  cursor: pointer;
}

/* ── Tag manage list ────────────────────────────────── */
.tag-manage-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}
.tag-manage-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--border);
}
.tag-manage-row:last-child { border-bottom: none; }

.tag-manage-pill {
  flex-shrink: 0;
  min-width: 72px;
  text-align: center;
}

/* Color swatches */
.tag-color-swatches {
  display: flex;
  gap: 6px;
  align-items: center;
  flex: 1;
}
.tag-swatch {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.1s;
  outline: none;
  position: relative;
}
.tag-swatch:hover { transform: scale(1.15); }
.tag-swatch.active {
  border-color: var(--text);
  box-shadow: 0 0 0 1.5px var(--surface) inset;
}
.tag-swatch--peach    { background: var(--peach-dot); }
.tag-swatch--sage     { background: var(--sage-dot); }
.tag-swatch--rose     { background: var(--rose-dot); }
.tag-swatch--lavender { background: var(--lavender-dot); }
.tag-swatch--mint     { background: var(--mint-dot); }

/* kept for any legacy usage */
.tag-manage-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--faint);
}
.tag-manage-dot--sage     { background: var(--sage-dot); }
.tag-manage-dot--rose     { background: var(--rose-dot); }
.tag-manage-dot--peach    { background: var(--peach-dot); }
.tag-manage-dot--lavender { background: var(--lavender-dot); }
.tag-manage-dot--mint     { background: var(--mint-dot); }

.tag-manage-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.tag-manage-input {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
}
.tag-manage-input:focus { border-color: oklch(60% 0.08 65); }

.btn-outline--small {
  padding: 5px 12px;
  font-size: 12px;
  border-radius: 6px;
}

.tag-manage-delete {
  width: 24px; height: 24px;
  border: none;
  background: none;
  color: oklch(55% 0.12 8);
  font-size: 15px;
  cursor: pointer;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tag-manage-delete:hover { background: oklch(95% 0.02 8); }

/* ── Add tag row ────────────────────────────────────── */
.add-tag-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.add-tag-row .tag-color-swatches { flex: none; }
.tag-manage-new-input {
  flex: 1;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  background: var(--bg);
}
.btn-add-tag {
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn-add-tag:not(:disabled):hover { background: var(--text); color: var(--surface); border-color: var(--text); }
.btn-add-tag:disabled { cursor: not-allowed; opacity: 0.6; }

/* ── Settings page ──────────────────────────────────── */
.settings-page {
  padding: 32px 40px;
  max-width: 760px;
}

.main-content:has(.settings-page) {
  overflow-y: auto;
}

.settings-header {
  margin-bottom: 32px;
}
.settings-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text);
  margin-bottom: 4px;
}
.settings-subtitle {
  font-size: 13px;
  color: var(--muted);
}

.settings-section {
  margin-bottom: 28px;
}
.settings-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.settings-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}
.settings-row-view {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.settings-row-edit { width: 100%; }
.settings-divider { height: 1px; background: var(--border); }

.settings-row-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}
.settings-field-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.settings-field-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.settings-field-value--password {
  letter-spacing: 2px;
  color: var(--faint);
}

.settings-edit-btn { height: 30px; font-size: 12px; flex-shrink: 0; }

.settings-inline-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}
.settings-inline-input {
  font-size: 14px;
  font-weight: 500;
  padding: 5px 0;
  border: none;
  border-bottom: 1.5px solid oklch(60% 0.08 65);
  outline: none;
  background: transparent;
  color: var(--text);
  width: 100%;
  font-family: inherit;
}
.settings-inline-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.settings-save-btn { height: 30px; font-size: 12px; }

/* Tags card */
.settings-card--tags { padding: 0; }
.settings-tags-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
}
.settings-tags-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.settings-tags-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 14px;
  max-width: 480px;
}
.settings-tags-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.settings-manage-btn {
  flex-shrink: 0;
  height: 34px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  border-color: var(--border);
}
.settings-manage-btn:hover { background: var(--bg); }

/* Preferences */
.settings-pref-row {
  cursor: pointer;
  transition: background 0.1s;
}
.settings-pref-row:hover { background: var(--bg); }
.settings-pref-label {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}
.settings-pref-value {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Settings password form ─────────────────────────── */
.settings-password-fields {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg);
}
.settings-pw-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.settings-pw-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}
.settings-pw-submit {
  height: 38px;
  padding: 0 20px;
  font-size: 14px;
}
.settings-pw-error {
  font-size: 12px;
  color: var(--rose-fg);
  flex: 1;
}

/* ── Week day picker ────────────────────────────────── */
.settings-day-options {
  display: flex;
  gap: 6px;
  padding: 14px 20px;
  flex-wrap: wrap;
  background: var(--bg);
}
.settings-day-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.12s;
}
.settings-day-btn:hover { border-color: var(--text); color: var(--text); }
.settings-day-btn--active {
  background: var(--text);
  color: var(--surface);
  border-color: var(--text);
}

/* ── Help & Feedback page ───────────────────────────── */
.help-faq-card { padding: 0; }

.help-faq-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  transition: background 0.1s;
  gap: 12px;
}
.help-faq-row:hover { background: var(--bg); }

.help-faq-question {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.help-faq-chevron {
  font-size: 16px;
  color: var(--muted);
  flex-shrink: 0;
  display: inline-block;
  transition: transform 0.2s;
}
.help-faq-chevron.open { transform: rotate(-180deg); }

.help-faq-answer {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  padding: 4px 20px 18px;
}

/* Feedback type cards */
.help-type-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.help-type-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.help-type-card:hover { border-color: var(--text); }

.help-type-icon {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 4px;
}
.help-type-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.help-type-desc {
  font-size: 12px;
  color: var(--muted);
}

/* Bug selected — rose */
.help-type-card--bug.active {
  background: oklch(96% 0.02 10);
  border-color: oklch(70% 0.12 10);
}
.help-type-card--bug.active .help-type-icon,
.help-type-card--bug.active .help-type-title,
.help-type-card--bug.active .help-type-desc { color: oklch(38% 0.12 10); }

/* Idea selected — sage green */
.help-type-card--idea.active {
  background: oklch(95% 0.03 145);
  border-color: oklch(60% 0.1 145);
}
.help-type-card--idea.active .help-type-icon,
.help-type-card--idea.active .help-type-title,
.help-type-card--idea.active .help-type-desc { color: oklch(35% 0.1 145); }

/* Message card */
.help-message-card { padding: 0; }

.help-textarea {
  width: 100%;
  min-height: 120px;
  padding: 16px 20px;
  border: none;
  outline: none;
  resize: none;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: transparent;
  line-height: 1.6;
  box-sizing: border-box;
}
.help-textarea::placeholder { color: var(--faint); }

.help-send-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}
.help-send-hint {
  font-size: 12px;
  color: var(--muted);
}
.help-send-btn {
  height: 34px;
  font-size: 13px;
  font-weight: 500;
  padding: 0 18px;
}

/* ── Playlists ──────────────────────────────────────────── */
.playlists-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.playlists-scroll {
  flex: 1;
  padding: 28px;
  overflow-y: auto;
}

/* Grid */
.playlist-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Card wrapper (positions the remove-from-playlist btn) */
.playlist-card-wrap { position: relative; }

.playlist-card {
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  display: block;
  color: inherit;
  transition: box-shadow 0.18s, transform 0.15s;
}
.playlist-card:hover {
  box-shadow: 0 4px 24px oklch(18% 0.015 65 / 0.1);
  transform: translateY(-2px);
}

/* 2×2 mosaic */
.playlist-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: 190px;
}
.playlist-mosaic-cell { overflow: hidden; }
.playlist-mosaic-empty { width: 100%; height: 100%; background: oklch(93% 0.008 65); }

.playlist-card-body { padding: 14px 16px 16px; }
.playlist-card-name {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.2px;
  margin-bottom: 4px;
}
.playlist-card-desc {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.playlist-card-count { font-size: 11px; color: var(--faint); }

/* New-playlist modal */
.playlist-modal-overlay {
  position: fixed;
  inset: 0;
  background: oklch(18% 0.015 65 / 0.45);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}
.playlist-modal {
  background: var(--surface);
  border-radius: 16px;
  padding: 28px;
  width: 440px;
  max-width: 92vw;
  box-shadow: 0 8px 40px oklch(18% 0.015 65 / 0.18);
  position: relative;
}
.playlist-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.playlist-modal-title { font-size: 17px; font-weight: 600; letter-spacing: -0.3px; }
.playlist-modal-close {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.playlist-modal-close:hover { background: var(--border); }

.playlist-form-field { margin-bottom: 16px; }
.playlist-form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.playlist-form-input,
.playlist-form-textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s;
}
.playlist-form-input:focus,
.playlist-form-textarea:focus { border-color: var(--sage-dot); }
.playlist-form-textarea { resize: vertical; min-height: 80px; line-height: 1.5; }

.playlist-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
}

/* Playlist show — detail header */
.playlist-detail-header {
  padding: 20px 28px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}
.playlist-detail-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin-bottom: 4px;
}
.playlist-detail-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
  line-height: 1.5;
}
.playlist-detail-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.playlist-detail-count { font-size: 12px; color: var(--faint); }

/* Add-recipes panel */
.add-recipes-panel {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 28px;
  flex-shrink: 0;
}
.add-recipes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.add-recipes-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.add-recipes-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 240px;
  overflow-y: auto;
}
.add-recipe-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.add-recipe-thumb {
  width: 40px;
  height: 32px;
  border-radius: 6px;
  flex-shrink: 0;
  overflow: hidden;
}
.add-recipe-name { flex: 1; font-size: 13px; font-weight: 500; }
.add-recipe-time { font-size: 11px; color: var(--faint); flex-shrink: 0; }

/* Remove-from-playlist button (overlays the recipe card) */
.playlist-recipe-wrap { position: relative; }
.playlist-remove-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: oklch(18% 0.015 65 / 0.55);
  color: white;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.12s;
}
.playlist-recipe-wrap:hover .playlist-remove-btn { display: flex; }
.playlist-remove-btn:hover { background: oklch(48% 0.12 8 / 0.85); }

/* Danger outline button variant */
.btn-outline--danger {
  color: oklch(48% 0.12 8);
  border-color: oklch(85% 0.04 8);
}
.btn-outline--danger:hover { background: oklch(97% 0.015 8); }
