/* =====================================================================
   TheCookingPlanner — static marketing pages
   Mirrors the app's "navy" theme (see src/index.css) and component
   classes (.card, .btn-*, .input, .label) so the pages look native.
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --bg-primary: #eef2f7;
  --bg-surface: #ffffff;
  --bg-surface-hover: #e0e7f2;
  --bg-sidebar: #e6ecf5;
  --bg-input: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: rgba(30, 41, 59, 0.62);
  --text-muted: rgba(30, 41, 59, 0.42);
  --text-inverse: #ffffff;
  --accent: #1e40af;
  --accent-hover: #1e3a8a;
  --accent-light: rgba(30, 64, 175, 0.1);
  --accent-tint: #dbe3f5;
  --accent-text: #1e3a8a;
  --accent-border: rgba(30, 64, 175, 0.2);
  --danger: #b91c1c;
  --danger-bg: rgba(185, 28, 28, 0.08);
  --warn: #b45309;
  --warn-bg: rgba(217, 119, 6, 0.14);
  --ok: #15803d;
  --ok-bg: rgba(21, 128, 61, 0.12);
  --border: #dbe3ef;
  --border-strong: #c3cfe0;
  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06);
  --font: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', 'Consolas', monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent-text); }
svg { display: block; }

/* ---------- App shell ---------- */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex; align-items: center; justify-content: center;
  height: 64px; border-bottom: 1px solid var(--border); font-size: 26px;
}
.sidebar nav { flex: 1; overflow-y: auto; padding: 12px 8px; display: flex; flex-direction: column; gap: 3px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px; min-height: 44px;
  color: var(--text-primary); font-size: 14px; font-weight: 500;
  text-decoration: none; transition: background 0.15s ease;
}
.nav-item svg { width: 20px; height: 20px; flex-shrink: 0; color: inherit; }
.nav-item:hover { background: var(--bg-surface-hover); }
.nav-item.active { background: var(--accent); color: var(--text-inverse); }
.sidebar .footer { padding: 14px 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-muted); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { padding: 14px 24px; }
.topbar .sitename { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.content { padding: 24px; display: flex; flex-direction: column; gap: 20px; width: 100%; max-width: 1180px; }

/* ---------- Typography ---------- */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
h1.page-title { font-size: 24px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
p.page-subtitle { font-size: 14px; color: var(--text-secondary); margin: 5px 0 0; max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius-sm); padding: 10px 16px;
  font-size: 14px; font-weight: 500; font-family: inherit;
  min-height: 44px; min-width: 44px; cursor: pointer;
  border: 1px solid transparent; transition: background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: var(--text-inverse); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--bg-surface-hover); color: var(--text-primary); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg-surface); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg-surface-hover); color: var(--text-primary); }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 13px; }

/* ---------- Inputs ---------- */
.input, .select, .textarea {
  font-family: inherit; color: var(--text-primary); background: var(--bg-input);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-size: 14px;
}
.input, .textarea { width: 100%; padding: 10px 12px; min-height: 44px; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: transparent; box-shadow: 0 0 0 2px var(--accent);
}
.textarea { resize: vertical; line-height: 1.5; }
.label {
  display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px;
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
}
.card-pad { padding: 20px; }

/* ---------- Stat cards ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-card { padding: 16px; display: flex; align-items: center; gap: 12px; min-width: 0; }
.stat-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-icon svg { width: 20px; height: 20px; }
.stat-icon.neutral { background: var(--accent-light); color: var(--accent-text); }
.stat-icon.warn { background: var(--warn-bg); color: var(--warn); }
.stat-icon.danger { background: var(--danger-bg); color: var(--danger); }
.stat-icon.ok { background: var(--ok-bg); color: var(--ok); }
.stat-value { font-size: 24px; font-weight: 700; line-height: 1.15; }
.stat-label { font-size: 12px; color: var(--text-secondary); }

/* ---------- Ad placeholder ---------- */
.ad-placeholder {
  border: 2px dashed var(--border-strong); border-radius: var(--radius-sm);
  background:
    repeating-linear-gradient(45deg, transparent, transparent 9px, rgba(30,41,59,0.025) 9px, rgba(30,41,59,0.025) 18px);
  color: var(--text-muted); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 13px; text-align: center;
}
.ad-placeholder .ad-dim { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.ad-728 { height: 90px; max-width: 728px; margin: 0 auto; width: 100%; }
.ad-300 { height: 250px; max-width: 300px; }
.ad-inline { padding: 18px; font-size: 13px; }

/* ---------- Toolbar / filters ---------- */
.toolbar { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.search-wrap { position: relative; }
.search-wrap .lead { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-muted); pointer-events: none; }
.search-wrap .input { padding-left: 38px; }
.toolbar-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.select-wrap { position: relative; display: inline-flex; }
.select-wrap .lead { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--text-muted); pointer-events: none; }
.select-wrap .chev { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--text-muted); pointer-events: none; }
.select {
  appearance: none; padding: 7px 32px 7px 30px; min-height: 36px; font-size: 13px;
  cursor: pointer; border-radius: var(--radius-sm);
}
.toggle {
  padding: 7px 12px; border-radius: 9px; font-size: 12px; font-weight: 600; font-family: inherit;
  border: 1px solid var(--border); background: var(--bg-surface); color: var(--text-secondary);
  cursor: pointer; min-height: 34px; transition: all 0.15s ease;
}
.toggle:hover { background: var(--bg-surface-hover); }
.toggle.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- Grouped list / item cards ---------- */
.category-header { display: flex; align-items: center; gap: 6px; padding: 2px 2px; }
.category-header .chev { width: 16px; height: 16px; color: var(--text-muted); }
.category-name { font-size: 15px; font-weight: 700; }
.category-count { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.item-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }

.item-card { padding: 16px; position: relative; }
.item-card.low { border-left: 3px solid var(--danger); }
.item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.item-name { font-size: 16px; font-weight: 700; line-height: 1.3; }
.item-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-text);
}
.tag.fresh { background: #dcfce7; color: #166534; }
.tag.low { background: var(--danger-bg); color: var(--danger); }
.item-meta { font-size: 12px; color: var(--text-secondary); margin-top: 9px; }
.item-barcode { font-family: var(--mono); font-size: 12px; color: var(--text-muted); margin-top: 4px; letter-spacing: 0.06em; }

.item-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 14px; }
.qty { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.qty .total { font-weight: 700; color: var(--text-primary); }
.qty.low { color: var(--danger); }
.qty.low .total { color: var(--danger); }

.stepper { display: flex; flex-direction: column; gap: 1px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.stepper button { width: 30px; height: 22px; display: flex; align-items: center; justify-content: center; background: var(--bg-surface); border: none; cursor: pointer; color: var(--text-secondary); }
.stepper button:hover { background: var(--bg-surface-hover); color: var(--text-primary); }
.stepper button svg { width: 13px; height: 13px; }
.stepper .divider { height: 1px; background: var(--border); }

.actions { display: flex; gap: 2px; }
.icon-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 9px; color: var(--text-secondary); cursor: pointer; background: transparent; border: none; }
.icon-btn:hover { background: var(--bg-surface-hover); color: var(--text-primary); }
.icon-btn.danger:hover { background: var(--danger-bg); color: var(--danger); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- Utility ---------- */
.empty { padding: 40px; text-align: center; color: var(--text-muted); font-size: 14px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.divider { height: 1px; background: var(--border); margin: 8px 0; }
.kbd { font-family: var(--mono); font-size: 12px; background: var(--bg-surface-hover); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; }

/* ---------- Shopping list additions ---------- */
.btn-danger { background: var(--danger); color: var(--text-inverse); }
.btn-danger:hover { background: #991b1b; }
.tabs { display: flex; gap: 4px; }
.tab {
  padding: 8px 14px; border-radius: 9px; font-size: 13px; font-weight: 600; font-family: inherit;
  color: var(--text-secondary); background: transparent; border: 1px solid transparent;
  cursor: pointer; min-height: 36px;
}
.tab:hover:not(.active) { background: var(--bg-surface-hover); }
.tab.active { background: var(--accent-tint); color: var(--accent-text); }
.check { display: inline-flex; align-items: center; cursor: pointer; }
.check input {
  appearance: none; width: 22px; height: 22px; margin: 0; position: relative;
  border: 2px solid var(--border-strong); border-radius: 6px; background: var(--bg-surface); cursor: pointer;
}
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after {
  content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.item-price { margin-top: 8px; display: flex; align-items: center; gap: 8px; }
.price { font-size: 14px; font-weight: 700; }
.price-sale { color: var(--ok); }
.price-was { font-size: 13px; font-weight: 600; color: var(--text-muted); text-decoration: line-through; }

/* ---------- Recipe Box ---------- */
.recipe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.recipe-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-top: 4px solid var(--border-strong); }
.recipe-card.dinner { border-top-color: #2563eb; }
.recipe-card.dessert { border-top-color: #ec4899; }
.recipe-card.breakfast { border-top-color: #f59e0b; }
.recipe-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.recipe-title { font-size: 15px; font-weight: 700; line-height: 1.3; }
.recipe-tags { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.recipe-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.recipe-meta { font-size: 12px; color: var(--text-secondary); }
.recipe-meta b { color: var(--text-primary); font-weight: 700; }
.on-hand { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.on-hand svg { width: 14px; height: 14px; flex-shrink: 0; }
.on-hand.ok { color: var(--ok); }
.on-hand.warn { color: var(--warn); }
.on-hand.danger { color: var(--danger); }
.recipe-foot { display: flex; align-items: center; gap: 4px; margin-top: auto; }
@media (max-width: 1000px) { .recipe-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .recipe-grid { grid-template-columns: 1fr; } }

@media (max-width: 900px) {
  .sidebar { width: 72px; }
  .brand { font-size: 24px; }
  .nav-item { justify-content: center; padding: 10px; }
  .nav-item span { display: none; }
  .sidebar .footer { display: none; }
}
@media (max-width: 620px) {
  .stats { grid-template-columns: 1fr; }
  .content { padding: 16px; }
}

/* ---------- Dinner Scheduler ---------- */
.stat-4 { grid-template-columns: repeat(4, 1fr); }
.meal-setup { padding: 16px; }
.meal-controls { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.meal-controls .field { display: flex; flex-direction: column; gap: 6px; }
.meal-controls .field.grow { flex: 1 1 220px; }
.meal-controls .input { min-height: 38px; padding: 7px 12px; }
.btn-block { width: 100%; }
.dish-card { border-left: 3px solid var(--border-strong); }
.dish-card.oven { border-left-color: #f59e0b; }
.dish-card.stovetop { border-left-color: #2563eb; }
.dish-body { flex: 1 1 auto; min-width: 0; }
.tag.oven { background: #fef3c7; color: #92400e; }
.tag.stovetop { background: #dbeafe; color: #1e40af; }
.timer-box { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.timer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.timer-head h3 { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.timer-desc { margin: 0; font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.quick-timers { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gantt { padding: 16px; }
.gantt-head { font-size: 15px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.gantt-body { display: grid; grid-template-columns: 160px 1fr; gap: 12px; }
.gantt-labels { display: flex; flex-direction: column; gap: 10px; }
.gantt-labels span { height: 22px; line-height: 22px; font-size: 12px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gantt-chart { position: relative; display: flex; flex-direction: column; gap: 10px; }
.gantt-track { position: relative; height: 22px; background: var(--bg-surface-hover); border-radius: 6px; }
.gantt-bar { position: absolute; top: 3px; bottom: 3px; border-radius: 5px; }
.gantt-bar.prep { background: #22c55e; }
.gantt-bar.oven { background: #f59e0b; }
.gantt-bar.stovetop { background: #2563eb; }
.gantt-bar.temp { background: #eab308; }
.gantt-now { position: absolute; top: -8px; bottom: -8px; width: 2px; background: var(--danger); border-radius: 2px; z-index: 2; }
.gantt-axis { display: flex; justify-content: space-between; margin-top: 10px; padding-left: 172px; font-family: var(--mono); font-size: 11px; color: var(--text-muted); }
.gantt-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; font-size: 12px; color: var(--text-secondary); }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-swatch { width: 12px; height: 12px; border-radius: 3px; }
.legend-swatch.prep { background: #22c55e; }
.legend-swatch.temp { background: #eab308; }
.legend-swatch.oven { background: #f59e0b; }
.legend-swatch.stovetop { background: #2563eb; }
@media (max-width: 900px) {
  .stat-4 { grid-template-columns: repeat(2, 1fr); }
  .gantt-body { grid-template-columns: 1fr; }
  .gantt-axis { padding-left: 0; }
  .gantt-labels { flex-direction: row; flex-wrap: wrap; gap: 8px 16px; }
}

/* ---------- Meal Calendar ---------- */
.ph-left { display: flex; align-items: center; gap: 12px; }
.ph-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-tint); color: var(--accent-text); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ph-icon svg { width: 22px; height: 22px; }
.ph-actions { display: flex; gap: 10px; }
.calendar { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.cal-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
.cal-head h2 { margin: 0; font-size: 17px; font-weight: 700; text-align: center; }
.cal-nav { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-surface); color: var(--text-secondary); cursor: pointer; }
.cal-nav:hover { background: var(--bg-surface-hover); color: var(--text-primary); }
.cal-nav svg { width: 18px; height: 18px; }
.cal-weekdays, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-weekdays span { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); padding: 2px 0; }
.cal-day { position: relative; min-height: 58px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-surface); padding: 6px 8px; font-size: 13px; text-align: left; cursor: pointer; color: var(--text-primary); }
.cal-day:hover { background: var(--bg-surface-hover); }
.cal-day.other { color: var(--text-muted); background: transparent; }
.cal-day .dn { font-size: 13px; font-weight: 600; }
.cal-day.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.today-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; }
.jump-today { align-self: center; font-size: 14px; font-weight: 600; color: var(--accent-text); text-decoration: none; }
.jump-today:hover { text-decoration: underline; }
.day-panel { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.day-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.day-panel-head h2 { margin: 0; font-size: 17px; font-weight: 700; }
.day-count { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.day-empty { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 22px 0; text-align: center; color: var(--text-muted); font-size: 14px; }
@media (max-width: 640px) {
  .cal-day { min-height: 40px; padding: 4px 5px; }
  .cal-weekdays span { font-size: 10px; }
}

/* ---------- Kitchen Timers ---------- */
.kt-tray { display:flex; align-items:center; gap:12px; padding:10px 16px; }
.kt-tray-pill { display:inline-flex; align-items:center; gap:8px; padding:5px 12px; border-radius:999px; background:var(--accent-tint); color:var(--accent-text); font-size:13px; font-weight:600; }
.kt-tray-pill svg { width:16px; height:16px; }
.kt-tray-pill .t { font-family:var(--mono); font-weight:700; }
.kt-tray-spacer { flex:1 1 auto; }
.kt-tray .icon-btn { width:32px; height:32px; }
.kt-card { padding:16px; display:flex; flex-direction:column; gap:14px; }
.kt-card-head { display:flex; align-items:center; gap:8px; font-size:15px; font-weight:700; }
.kt-card-head svg { width:18px; height:18px; }
.kt-row { display:flex; flex-wrap:wrap; gap:10px; align-items:flex-end; }
.kt-row .field { display:flex; flex-direction:column; gap:6px; }
.kt-row .field.grow { flex:1 1 240px; }
.kt-num { width:78px; }
.kt-timer { padding:16px; display:flex; flex-direction:column; gap:12px; }
.kt-timer-top { display:flex; align-items:center; gap:10px; }
.kt-timer-top .name { font-size:15px; font-weight:700; }
.kt-timer-time { margin-left:auto; font-family:var(--mono); font-size:22px; font-weight:700; letter-spacing:0.02em; }
.kt-bar { height:8px; border-radius:999px; background:var(--bg-surface-hover); overflow:hidden; }
.kt-bar > span { display:block; height:100%; width:100%; background:var(--accent); border-radius:999px; }
.kt-timer-foot { display:flex; align-items:center; gap:10px; }
.kt-elapsed { font-family:var(--mono); font-size:13px; color:var(--text-secondary); }
.kt-foot-spacer { flex:1 1 auto; }
.kt-done { display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:600; color:var(--text-secondary); background:transparent; border:none; cursor:pointer; padding:6px 8px; border-radius:8px; }
.kt-done svg { width:16px; height:16px; color:var(--ok); }
.kt-done:hover { background:var(--bg-surface-hover); color:var(--text-primary); }
.kt-cta { font-size:14px; color:var(--accent-text); text-decoration:none; font-weight:600; }
.kt-cta:hover { text-decoration:underline; }

/* ---------- App Settings ---------- */
.settings-card { padding: 0; overflow: hidden; }
.settings-section { display: flex; align-items: center; gap: 10px; padding: 14px 20px; font-size: 15px; font-weight: 700; }
.settings-section svg { width: 20px; height: 20px; color: var(--accent-text); }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; flex-wrap: wrap; }
.setting-row + .setting-row { border-top: 1px solid var(--border); }
.setting-info { min-width: 0; }
.setting-label { font-size: 14px; font-weight: 600; }
.setting-desc { font-size: 12.5px; color: var(--text-secondary); margin-top: 2px; line-height: 1.45; }
.setting-control { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.theme-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.theme-swatch { display: flex; flex-direction: column; align-items: center; gap: 5px; background: transparent; border: 2px solid transparent; border-radius: 10px; padding: 6px 4px; cursor: pointer; }
.theme-swatch .chip { width: 100%; aspect-ratio: 5 / 3; border-radius: 7px; border: 1px solid rgba(0,0,0,0.1); }
.theme-swatch .name { font-size: 11px; font-weight: 600; color: var(--text-secondary); }
.theme-swatch.selected { border-color: var(--accent); background: var(--accent-light); }
.theme-swatch.selected .name { color: var(--accent-text); }
.cooks-stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; background: var(--bg-surface); }
.cooks-stepper .lead { display: flex; align-items: center; padding: 0 10px; color: var(--text-secondary); }
.cooks-stepper .lead svg { width: 16px; height: 16px; }
.cooks-stepper .val { min-width: 42px; text-align: center; font-size: 15px; font-weight: 700; border-left: 1px solid var(--border); border-right: 1px solid var(--border); padding: 8px 0; }
.cooks-stepper .col { display: flex; flex-direction: column; }
.cooks-stepper button { width: 30px; height: 19px; display: flex; align-items: center; justify-content: center; background: transparent; border: none; cursor: pointer; color: var(--text-secondary); }
.cooks-stepper button:hover { background: var(--bg-surface-hover); color: var(--text-primary); }
.cooks-stepper button svg { width: 12px; height: 12px; }
.range { position: relative; width: 170px; height: 6px; border-radius: 999px; background: var(--bg-surface-hover); }
.range > span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--accent); }
.range .thumb { position: absolute; top: 50%; width: 16px; height: 16px; margin-top: -8px; transform: translateX(-50%); border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.range-pct { font-size: 13px; font-weight: 600; color: var(--text-secondary); min-width: 34px; }
@media (max-width: 720px) { .theme-grid { grid-template-columns: repeat(4, 1fr); } .setting-row { align-items: flex-start; } }
