/* ============================================================
   こんだて番長 - メインスタイルシート
   テーマ: オレンジ基調・モバイルファースト (max-width 480px)
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --font-head: 'Kaisei Decol', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --font-body: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  --primary:       #FF6600;
  --primary-dark:  #CC5200;
  --primary-light: #FF8533;
  --primary-pale:  #FFF0E5;
  --bg:            #FBF7F4;
  --card:          #FFFFFF;
  --text:          #333333;
  --text-sub:      #888888;
  --text-disabled: #CCCCCC;
  --border:        #EBEBEB;
  --success:       #4CAF50;
  --success-pale:  #E8F5E9;
  --warning:       #FF9800;
  --error:         #F44336;
  --info:          #2196F3;
  --info-pale:     #E3F2FD;
  --nav-h:         60px;
  --header-h:      56px;
  --radius-lg:     16px;
  --radius:        12px;
  --radius-sm:     8px;
  --shadow:        0 2px 8px rgba(0,0,0,0.08);
  --shadow-card:   0 2px 10px rgba(0,0,0,0.06);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }
input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }

/* --- App Layout --- */
.main-content {
  padding-top: var(--header-h);
  padding-bottom: calc(var(--nav-h) + 8px);
  min-height: 100vh;
}
.page-content { padding: 14px 16px; }

/* ============================================================
   Header
   ============================================================ */
.app-header {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 480px;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 16px;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.header-logo {
  flex: 1; font-family: var(--font-head); font-size: 22px; font-weight: 700;
  color: var(--primary); line-height: 1;
  display: flex; align-items: center; gap: 8px;
}
.header-logo small { font-family: var(--font-body); font-size: 11px; font-weight: 400; color: var(--text-sub); display: block; }
.header-logo-mark { width: 36px; height: 36px; flex-shrink: 0; }
.header-logo-text { display: flex; flex-direction: column; gap: 2px; }
.header-actions { display: flex; gap: 4px; }
.header-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--text); text-decoration: none;
  transition: background .15s;
}
.header-btn:active { background: var(--bg); }
.header-back {
  display: flex; align-items: center; gap: 2px;
  font-size: 15px; color: var(--primary); padding: 8px 8px 8px 0;
}
.header-center {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: 16px; font-weight: 700;
}
.header-nav-btn {
  display: flex; align-items: center;
  font-size: 14px; font-weight: 700; color: var(--primary);
  padding: 8px 6px; min-width: 60px; white-space: nowrap;
  transition: background .15s; border-radius: 8px;
}
.header-nav-btn:active { background: var(--bg); }
.header-nav-btn.right { justify-content: flex-end; }

/* ============================================================
   Bottom Navigation
   ============================================================ */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  height: var(--nav-h);
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex; z-index: 100;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  color: var(--text-sub); font-size: 10px;
  transition: color .15s;
}
.nav-item.active { color: var(--primary); }
.nav-icon { font-size: 22px; line-height: 1; }
.nav-label { font-size: 10px; font-weight: 500; }

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 12px;
}
.card-header {
  padding: 14px 16px 8px;
  display: flex; align-items: center; justify-content: space-between;
}
.card-title { font-size: 13px; font-weight: 700; color: var(--text-sub); letter-spacing: .04em; }
.card-body { padding: 0 16px 16px; }
.card-link { font-size: 13px; color: var(--primary); font-weight: 600; }

/* Today Card */
.today-card {
  background: linear-gradient(135deg, var(--primary) 0%, #FF8A47 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(255,102,0,.3);
}
.today-label { font-size: 11px; opacity: .85; font-weight: 600; letter-spacing: .06em; margin-bottom: 2px; }
.today-date  { font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.today-shift-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,.2);
  border-radius: 20px; padding: 3px 10px;
  font-size: 12px; font-weight: 600; margin-bottom: 10px;
}
.today-main-name { font-size: 22px; font-weight: 800; line-height: 1.3; margin-bottom: 6px; }
.today-meta { display: flex; gap: 12px; font-size: 12px; opacity: .9; margin-bottom: 12px; }
.today-meta span { display: flex; align-items: center; gap: 3px; }
.today-sides {
  display: flex; gap: 6px; flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.25);
}
.side-chip {
  background: rgba(255,255,255,.2);
  border-radius: 20px; padding: 4px 10px;
  font-size: 12px; font-weight: 500;
}
.side-chip--empty {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.5);
  border: 1px dashed rgba(255,255,255,.3);
}
.today-empty { padding: 4px 0 8px; text-align: center; }
.today-empty p { font-size: 14px; opacity: .9; margin-bottom: 12px; }

/* ============================================================
   Week Bar
   ============================================================ */
.week-bar {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 4px; margin-bottom: 14px;
}
.week-day {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px; padding: 8px 2px;
  background: var(--card); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  cursor: pointer; transition: transform .1s;
}
.week-day:active { transform: scale(.95); }
.week-day.today { background: var(--primary-pale); border: 1.5px solid var(--primary); }
.week-day-name  { font-size: 10px; font-weight: 600; color: var(--text-sub); }
.week-day-date  { font-size: 14px; font-weight: 700; }
.week-day.today .week-day-date { color: var(--primary); }
.week-day-icon  { font-size: 14px; }
.week-day-min   { font-size: 8px; color: var(--text-sub); }

/* ============================================================
   Fridge Bar
   ============================================================ */
.fridge-bar {
  background: var(--card); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 14px;
  box-shadow: var(--shadow-card); cursor: pointer;
}
.fridge-bar-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.fridge-bar-label { font-size: 14px; font-weight: 600; }
.fridge-bar-count { font-size: 13px; color: var(--text-sub); }
.progress-bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-light)); border-radius: 3px; transition: width .5s; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 22px; border-radius: 24px;
  font-size: 14px; font-weight: 700;
  cursor: pointer; transition: opacity .15s, transform .1s;
}
.btn:active { transform: scale(.97); opacity: .9; }
.btn-primary  { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(255,102,0,.25); }
.btn-secondary { background: var(--border); color: var(--text); }
.btn-outline  { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-ghost    { background: rgba(255,255,255,.25); color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.btn-full  { width: 100%; }
.btn-sm    { padding: 7px 16px; font-size: 13px; }
.btn-xs    { padding: 5px 12px; font-size: 12px; }
.btn-icon  { padding: 8px; border-radius: 50%; }

/* ============================================================
   Tabs
   ============================================================ */
.tab-bar {
  display: flex; background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky; top: var(--header-h); z-index: 50;
}
.tab-item {
  flex: 1; text-align: center;
  padding: 12px 4px;
  font-size: 13px; font-weight: 600; color: var(--text-sub);
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  transition: color .15s, border-color .15s;
}
.tab-item.active { color: var(--primary); border-bottom-color: var(--primary); }

/* tab-btn (recipes.html タブ) */
.tab-btn {
  flex: 1; text-align: center;
  padding: 11px 4px;
  font-size: 12px; font-weight: 600; color: var(--text-sub);
  background: none; border: none;
  border-bottom: 2.5px solid transparent;
  cursor: pointer; white-space: nowrap;
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

/* フィルターチップ */
.filter-chip {
  font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--bg); color: var(--text-sub);
  cursor: pointer; transition: all .15s;
}
.filter-chip.active { background: var(--primary); border-color: var(--primary); color: white; }

/* レシピ一覧カード */
.recipe-group { margin-bottom: 4px; }
.recipe-group-label {
  font-size: 12px; font-weight: 700; color: var(--text-sub);
  padding: 10px 16px 4px;
  letter-spacing: 0.05em;
}
.recipe-list { background: var(--card); }
.recipe-card-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background .1s;
}
.recipe-card-row:last-child { border-bottom: none; }
.recipe-card-row:active { background: var(--bg); }
.recipe-card-emoji { font-size: 28px; flex-shrink: 0; }
.recipe-card-body { flex: 1; min-width: 0; }
.recipe-card-name { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.recipe-card-meta {
  display: flex; flex-wrap: wrap; gap: 6px;
  font-size: 11px; color: var(--text-sub);
  margin-bottom: 4px;
}
.recipe-card-actions { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.icon-btn {
  background: none; border: none; font-size: 18px;
  cursor: pointer; padding: 2px; line-height: 1;
}

/* 在庫バッジ */
.avail-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 6px;
}
.avail-badge--ok { background: #E8F5E9; color: #2E7D32; }
.avail-badge--ng { background: #FFF3E0; color: #E65100; }

/* ============================================================
   Accordion (Fridge Categories)
   ============================================================ */
.accordion { margin-bottom: 8px; }
.accordion-item {
  background: var(--card); border-radius: var(--radius);
  margin-bottom: 8px; overflow: hidden;
  box-shadow: var(--shadow-card);
}
.accordion-header {
  display: flex; align-items: center;
  padding: 14px 16px;
  cursor: pointer; user-select: none;
}
.accordion-header:active { background: var(--bg); }
.accordion-cat-icon { font-size: 18px; margin-right: 10px; }
.accordion-title { flex: 1; font-size: 15px; font-weight: 700; }
.accordion-count { font-size: 12px; font-weight: 700; color: var(--text-sub); margin-right: 8px; }
.accordion-count.has { color: var(--primary); }
.accordion-arrow { font-size: 13px; color: var(--text-sub); transition: transform .2s; }
.accordion-item.open .accordion-arrow { transform: rotate(180deg); }
.accordion-body { display: none; border-top: 1px solid var(--border); }
.accordion-item.open .accordion-body { display: block; }

/* Ingredient Row */
.ingredient-row {
  display: flex; align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background .1s;
}
.ingredient-row:last-child { border-bottom: none; }
.ingredient-row:active { background: var(--bg); }
.ingredient-name { flex: 1; font-size: 14px; }
.ingredient-name.has { font-weight: 600; color: var(--text); }
.ingredient-name.none { color: var(--text-disabled); }

/* 保存場所バッジ */
.loc-badge {
  font-size: 11px; font-weight: 600;
  color: var(--text-sub);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 7px;
  margin-right: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.loc-badge--custom {
  color: var(--primary);
  border-color: var(--primary-light, #ffb380);
  background: var(--primary-pale, #fff3eb);
}

/* 保存場所選択シート */
.loc-sheet { position: fixed; inset: 0; z-index: 500; }
.loc-sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.loc-sheet-panel {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  padding: 20px 16px 32px;
}
.loc-sheet-title {
  font-size: 14px; font-weight: 700;
  color: var(--text-sub);
  text-align: center;
  margin-bottom: 16px;
}
.loc-sheet-btn {
  display: block; width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 15px; font-weight: 600;
  color: var(--text);
  text-align: left;
  margin-bottom: 8px;
  cursor: pointer;
}
.loc-sheet-btn.selected { border-color: var(--primary); color: var(--primary); }
.loc-sheet-reset { color: var(--text-sub); font-weight: 500; font-size: 13px; }

/* Toggle Switch */
.toggle { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--border); border-radius: 12px;
  cursor: pointer; transition: background .2s;
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; left: 3px; top: 3px;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle input:checked + .toggle-slider { background: var(--primary); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ============================================================
   Search Bar
   ============================================================ */
.search-wrap { padding: 10px 16px; }
.search-bar {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 24px; padding: 9px 14px;
}
.search-icon { font-size: 15px; color: var(--text-sub); }
.search-input { flex: 1; border: none; background: transparent; font-size: 14px; outline: none; color: var(--text); }
.search-input::placeholder { color: var(--text-disabled); }

/* ============================================================
   Calendar (Shift)
   ============================================================ */
.calendar-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; background: var(--card);
  border-bottom: 1px solid var(--border);
}
.calendar-month { font-size: 18px; font-weight: 800; }
.cal-nav-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; cursor: pointer; transition: background .15s;
}
.cal-nav-btn:active { background: var(--bg); }
.cal-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr);
  background: var(--card); padding: 0 12px 6px;
}
.cal-weekday {
  text-align: center; font-size: 11px; font-weight: 700;
  color: var(--text-sub); padding: 4px 0;
}
.cal-weekday.sun { color: #E74C3C; }
.cal-weekday.sat { color: #3498DB; }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 3px; padding: 4px 12px 12px;
  background: var(--card);
}
.cal-day {
  display: flex; flex-direction: column; align-items: center;
  padding: 4px 2px; border-radius: var(--radius-sm);
  cursor: pointer; gap: 1px; min-height: 52px;
  transition: background .1s;
}
.cal-day:not(.empty):active { background: var(--primary-pale); }
.cal-day.empty { cursor: default; }
.cal-day.today .day-num-wrap { background: var(--primary); border-radius: 50%; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; }
.cal-day.today .day-num { color: #fff; }
.day-num { font-size: 14px; font-weight: 600; }
.day-num.sun { color: #E74C3C; }
.day-num.sat { color: #3498DB; }
.day-dot { font-size: 12px; line-height: 1; }
.day-min { font-size: 8px; color: var(--text-sub); line-height: 1; }

/* 献立カレンダー（meal表示） */
.cal-grid--meal { gap: 2px; }
.cal-day--meal { min-height: 58px; padding: 3px 1px; }
.day-num-wrap { display: flex; align-items: center; gap: 3px; }
.day-dot-sm { font-size: 9px; line-height: 1; }
.cal-meal-label {
  font-size: 9px; line-height: 1.3;
  color: var(--text-sub); font-weight: 600;
  text-align: center; max-width: 100%;
  word-break: break-all;
}
.cal-meal--outing { color: #C7A000; }

/* シフト編集トグルボタン */
.shift-edit-toggle {
  display: block; width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  font-size: 14px; font-weight: 700;
  color: var(--text-sub);
  text-align: center; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.shift-edit-toggle:active { border-color: var(--primary); color: var(--primary); }

/* Bulk Buttons */
.bulk-btns {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 12px 16px; background: var(--card);
  border-top: 1px solid var(--border);
}
.bulk-btn {
  background: var(--primary-pale); color: var(--primary);
  border-radius: 20px; padding: 6px 12px;
  font-size: 12px; font-weight: 700;
  cursor: pointer; transition: background .15s, color .15s;
}
.bulk-btn:active { background: var(--primary); color: #fff; }

/* ============================================================
   Modal (Bottom Sheet)
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 200;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--card);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%; max-width: 480px;
  padding: 16px 20px 48px;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.32,.72,0,1);
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-handle { width: 36px; height: 4px; background: var(--border); border-radius: 2px; margin: 0 auto 16px; }
.modal-title { font-size: 18px; font-weight: 800; margin-bottom: 18px; text-align: center; }

/* Radio Options */
.radio-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.radio-option {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; background: var(--bg);
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .15s, background .15s;
}
.radio-option.selected { background: var(--primary-pale); border-color: var(--primary); }
.radio-option-icon { font-size: 22px; }
.radio-option-label { font-size: 15px; font-weight: 700; flex: 1; }
.radio-option-desc  { font-size: 12px; color: var(--text-sub); }

/* Stepper */
.stepper {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: var(--bg); border-radius: var(--radius-sm);
}
.stepper-label { flex: 1; font-size: 14px; font-weight: 600; }
.stepper-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--card); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: var(--primary);
  cursor: pointer;
}
.stepper-btn:active { background: var(--primary-pale); }
.stepper-value { font-size: 18px; font-weight: 800; min-width: 50px; text-align: center; }

/* ============================================================
   Onboarding
   ============================================================ */
.onboarding-wrap { min-height: 100vh; display: flex; flex-direction: column; background: var(--card); }
.ob-header { padding: 32px 20px 16px; text-align: center; background: linear-gradient(180deg, var(--primary-pale) 0%, #fff 100%); }
.ob-logo { font-size: 32px; font-weight: 900; color: var(--primary); margin-bottom: 4px; }
.ob-tagline { font-size: 13px; color: var(--text-sub); }
.ob-progress { display: flex; justify-content: center; gap: 8px; padding: 16px; }
.ob-prog-step { width: 36px; height: 6px; border-radius: 3px; background: var(--border); transition: background .3s; }
.ob-prog-step.done   { background: var(--primary-light); }
.ob-prog-step.active { background: var(--primary); }
.ob-content { flex: 1; padding: 20px; overflow-y: auto; }
.ob-step-title { font-size: 22px; font-weight: 900; margin-bottom: 4px; }
.ob-step-desc  { font-size: 14px; color: var(--text-sub); line-height: 1.6; margin-bottom: 12px; }
.ob-merit {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--success-pale); color: var(--success);
  border-radius: 20px; padding: 6px 12px;
  font-size: 12px; font-weight: 700; margin-bottom: 18px;
}
.ob-footer { padding: 16px 20px 48px; display: flex; flex-direction: column; gap: 8px; }
.skip-link { text-align: center; font-size: 14px; color: var(--text-sub); cursor: pointer; padding: 8px; }

/* Form within Onboarding */
.form-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); border-radius: var(--radius-sm);
  padding: 13px 14px; margin-bottom: 8px;
}
.form-row-label { flex: 1; font-size: 15px; font-weight: 600; }
.num-input-wrap { display: flex; align-items: center; gap: 10px; }
.num-btn {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--border); background: var(--card);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: var(--primary);
  cursor: pointer;
}
.num-val { font-size: 18px; font-weight: 800; min-width: 26px; text-align: center; }

/* Appliance Grid */
.appliance-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.appliance-item {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 12px; background: var(--bg);
  border-radius: var(--radius-sm); cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .15s, background .15s;
}
.appliance-item.selected { background: var(--primary-pale); border-color: var(--primary); }
.appliance-item-icon { font-size: 22px; }
.appliance-item-name { font-size: 13px; font-weight: 600; flex: 1; }
.appliance-check { font-size: 16px; color: var(--primary); opacity: 0; }
.appliance-item.selected .appliance-check { opacity: 1; }

/* ============================================================
   Shopping List
   ============================================================ */
.shopping-zone { margin-bottom: 16px; }
.shopping-zone-title {
  font-size: 12px; font-weight: 800; color: var(--text-sub);
  letter-spacing: .06em; text-transform: uppercase;
  padding: 0 4px; margin-bottom: 6px;
}
.shopping-list { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.shopping-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background .1s;
}
.shopping-row:last-child { border-bottom: none; }
.shopping-row:active { background: var(--bg); }
.check-circle {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 12px; color: #fff;
  transition: background .15s, border-color .15s;
}
.shopping-row.checked .check-circle { background: var(--success); border-color: var(--success); }
.shopping-row-text { flex: 1; }
.shopping-ing-name { font-size: 14px; font-weight: 600; }
.shopping-row.checked .shopping-ing-name { text-decoration: line-through; color: var(--text-sub); font-weight: 400; }
.shopping-ing-sub { font-size: 12px; color: var(--text-sub); margin-top: 1px; }
.shopping-count { font-size: 11px; font-weight: 700; background: var(--primary-pale); color: var(--primary); border-radius: 10px; padding: 2px 8px; }

/* ============================================================
   Settings
   ============================================================ */
.settings-group { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); margin-bottom: 16px; }
.settings-group-label { font-size: 11px; font-weight: 800; color: var(--text-sub); letter-spacing: .06em; text-transform: uppercase; padding: 12px 16px 4px; }
.settings-row {
  display: flex; align-items: center;
  padding: 14px 16px; border-top: 1px solid var(--border);
  cursor: pointer; transition: background .1s;
}
.settings-row:active { background: var(--bg); }
.settings-row-icon { font-size: 18px; margin-right: 12px; }
.settings-row-label { flex: 1; font-size: 15px; font-weight: 500; }
.settings-row-value { font-size: 13px; color: var(--text-sub); margin-right: 6px; }
.settings-arrow { font-size: 12px; color: var(--text-disabled); }

/* ============================================================
   Recipe Card / Day Detail
   ============================================================ */
.recipe-card {
  background: var(--card); border-radius: var(--radius);
  padding: 14px 16px; display: flex; align-items: center; gap: 12px;
  cursor: pointer; transition: transform .1s;
  box-shadow: var(--shadow-card); margin-bottom: 8px;
}
.recipe-card:active { transform: scale(.98); }
.recipe-emoji { font-size: 36px; }
.recipe-info { flex: 1; }
.recipe-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.recipe-meta { display: flex; gap: 8px; font-size: 12px; color: var(--text-sub); }
.recipe-meta span { display: flex; align-items: center; gap: 3px; }
.recipe-swap-btn {
  font-size: 20px; color: var(--text-sub);
  padding: 4px; border-radius: 50%;
}

.day-detail-section { margin-bottom: 14px; }
.day-detail-label { font-size: 12px; font-weight: 800; color: var(--text-sub); letter-spacing: .06em; margin-bottom: 6px; text-transform: uppercase; }
.prep-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: #F3E5F5; color: #6A1B9A;
  border-radius: 20px; padding: 3px 10px;
  font-size: 12px; font-weight: 700; margin-left: 8px;
}
.locked-overlay {
  opacity: .7; pointer-events: none;
}

/* Swap Options */
.swap-option {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: var(--bg);
  border-radius: var(--radius-sm); margin-bottom: 6px;
  cursor: pointer; border: 2px solid transparent;
  transition: border-color .15s;
}
.swap-option:active { border-color: var(--primary); }
.swap-option-info { flex: 1; }
.swap-option-name { font-size: 15px; font-weight: 700; }
.swap-option-meta { font-size: 12px; color: var(--text-sub); display: flex; gap: 8px; margin-top: 2px; }
.swap-status-ok   { font-size: 12px; color: var(--success); font-weight: 700; }
.swap-status-warn { font-size: 12px; color: var(--warning); font-weight: 700; }

/* ============================================================
   Badges & Chips
   ============================================================ */
.badge { display: inline-flex; align-items: center; border-radius: 20px; padding: 3px 9px; font-size: 11px; font-weight: 700; }
.tag-chip { display: inline-flex; align-items: center; background: var(--bg); border-radius: 20px; padding: 3px 10px; font-size: 12px; font-weight: 600; color: var(--text-sub); border: 1px solid var(--border); }
.badge-work    { background: var(--info-pale); color: #1565C0; }
.badge-dayoff  { background: var(--success-pale); color: #2E7D32; }
.badge-outing  { background: #FFF8E1; color: #E65100; }
.badge-cooking { background: var(--primary-pale); color: var(--primary); }
.badge-prep    { background: #F3E5F5; color: #6A1B9A; }

/* ============================================================
   Empty State
   ============================================================ */
.empty-state { text-align: center; padding: 48px 24px; }
.empty-icon  { font-size: 52px; margin-bottom: 12px; }
.empty-title { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.empty-desc  { font-size: 14px; color: var(--text-sub); line-height: 1.7; margin-bottom: 20px; }

/* ============================================================
   Utilities
   ============================================================ */
.hidden { display: none !important; }
.mt-4  { margin-top: 4px; }  .mt-8  { margin-top: 8px; }  .mt-12 { margin-top: 12px; }  .mt-16 { margin-top: 16px; }
.mb-4  { margin-bottom: 4px; } .mb-8  { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-sub { color: var(--text-sub); }
.text-sm  { font-size: 13px; }
.text-xs  { font-size: 11px; }
.font-bold { font-weight: 700; }
.flex { display: flex; } .flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.w-full { width: 100%; }

/* Divider */
.divider { height: 1px; background: var(--border); margin: 12px 0; }

/* Section title */
.section-title { font-family: var(--font-head); font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
