:root {
  --bg-cream: #FFFBF5;
  --bg-soft: #FFF5EB;
  --card-bg: #FFFFFF;
  --text-main: #4A372F;
  --text-sub: #8A746A;
  --text-muted: #B09B91;
  --accent-primary: #FF8A65;
  --accent-primary-dark: #F06E47;
  --accent-primary-soft: #FFE8DF;
  --accent-secondary: #FFB74D;
  --accent-green: #5BB98C;
  --accent-green-soft: #E6F6EE;
  --accent-blue: #64B5F6;
  --accent-blue-soft: #E8F4FD;
  --accent-danger: #E57373;
  --accent-danger-soft: #FDEAEA;
  --accent-warn: #F59E0B;
  --accent-warn-soft: #FEF3C7;
  --border-warm: #F2E4D9;
  --shadow-card: 0 4px 14px rgba(120, 72, 46, 0.07);
  --shadow-float: 0 8px 26px rgba(90, 52, 34, 0.16);
  --radius-card: 18px;
  --radius-pill: 999px;
  --nav-height: 68px;
  --header-height: 60px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-cream);
  color: var(--text-main);
  font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Yu Gothic', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

.hidden {
  display: none !important;
}

/* Shell Layout */
.app-shell {
  max-width: 560px;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg-cream);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 40px rgba(130, 88, 60, 0.06);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: calc(var(--header-height) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 14px 0;
  background: rgba(255, 251, 245, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1.5px solid var(--border-warm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(255, 138, 101, 0.25);
}

.brand-titles {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-subtitle {
  font-size: 11px;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sync Status Pill */
.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  border: 1.5px solid var(--border-warm);
  background: #FFFFFF;
  color: var(--text-sub);
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.15s ease, background 0.2s ease;
}

.sync-pill:active {
  transform: scale(0.96);
}

.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.sync-pill.sync-synced {
  background: var(--accent-green-soft);
  border-color: #B8E6CF;
  color: #2E7D5B;
}
.sync-pill.sync-synced .sync-dot { background: var(--accent-green); }

.sync-pill.sync-pending {
  background: var(--accent-warn-soft);
  border-color: #FCD34D;
  color: #92400E;
}
.sync-pill.sync-pending .sync-dot { background: var(--accent-warn); }

.sync-pill.sync-syncing {
  background: var(--accent-blue-soft);
  border-color: #BAE6FD;
  color: #1565C0;
}
.sync-pill.sync-syncing .sync-dot {
  background: var(--accent-blue);
  animation: pulseDot 1s infinite ease-in-out;
}

.sync-pill.sync-offline {
  background: #F3F4F6;
  border-color: #D1D5DB;
  color: #4B5563;
}

.sync-pill.sync-error,
.sync-pill.sync-conflict {
  background: var(--accent-danger-soft);
  border-color: #FCA5A5;
  color: #B91C1C;
}
.sync-pill.sync-error .sync-dot,
.sync-pill.sync-conflict .sync-dot { background: var(--accent-danger); }

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

/* Main Content */
.app-main {
  flex: 1;
  padding: 14px 14px calc(var(--nav-height) + 28px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 560px;
  height: calc(var(--nav-height) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1.5px solid var(--border-warm);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 40;
  box-shadow: 0 -4px 16px rgba(120, 72, 46, 0.06);
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-sub);
  font-size: 11px;
  font-weight: 700;
  position: relative;
  transition: color 0.15s ease;
}

.nav-btn .nav-icon {
  font-size: 21px;
  line-height: 1.1;
  transition: transform 0.18s ease;
}

.nav-btn.active {
  color: var(--accent-primary-dark);
}

.nav-btn.active .nav-icon {
  transform: translateY(-2px) scale(1.08);
}

.nav-btn.active::before {
  content: '';
  position: absolute;
  top: 4px;
  width: 44px;
  height: 30px;
  background: var(--accent-primary-soft);
  border-radius: var(--radius-pill);
  z-index: -1;
}

.nav-badge {
  position: absolute;
  top: 5px;
  right: calc(50% - 24px);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--accent-primary-dark);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Common Cards & Containers */
.card {
  background: var(--card-bg);
  border: 1.5px solid var(--border-warm);
  border-radius: var(--radius-card);
  padding: 14px;
  box-shadow: var(--shadow-card);
}

.card-soft {
  background: var(--bg-soft);
  border: 1.5px dashed #E9CEBC;
  border-radius: var(--radius-card);
  padding: 14px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.section-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.12s ease, background 0.15s ease, opacity 0.15s ease;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-sm {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 11px;
  font-size: 12.5px;
}

.btn-xs {
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 9px;
  font-size: 11.5px;
}

.btn-primary {
  background: linear-gradient(135deg, #FF8A65, #FF7043);
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(255, 112, 67, 0.28);
}

.btn-secondary {
  background: var(--accent-primary-soft);
  color: var(--accent-primary-dark);
  border: 1.5px solid #FFCCB8;
}

.btn-ai {
  background: linear-gradient(135deg, #FF9E80, #F48FB1);
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(244, 143, 177, 0.3);
}

.btn-green {
  background: var(--accent-green);
  color: #FFFFFF;
}

.btn-outline {
  background: #FFFFFF;
  border: 1.5px solid var(--border-warm);
  color: var(--text-main);
}

.btn-danger-soft {
  background: var(--accent-danger-soft);
  color: #C62828;
  border: 1px solid #FFCDD2;
}

.btn-block {
  width: 100%;
}

/* Inputs & Form Controls */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.field-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.field-hint {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--text-sub);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px solid var(--border-warm);
  background: #FFFFFF;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(255, 138, 101, 0.16);
}

.textarea {
  min-height: 80px;
  resize: vertical;
}

/* Badges & Tags */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.3;
}

.genre-pill {
  background: #FFF0E6;
  color: #C25E2E;
  border: 1px solid #FFD8BF;
}

.season-spring { background: #FFEBF2; color: #C2185B; border: 1px solid #F8BBD0; }
.season-summer { background: #E3F6FD; color: #0277BD; border: 1px solid #B3E5FC; }
.season-autumn { background: #FFF2E0; color: #D84315; border: 1px solid #FFCC80; }
.season-winter { background: #EEF2FF; color: #3949AB; border: 1px solid #C5CAE9; }
.season-all    { background: #E8F7EE; color: #2E7D32; border: 1px solid #C8E6C9; }

.badge-new {
  background: #FF5252;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.badge-changed {
  background: var(--accent-warn-soft);
  color: #92400E;
  border: 1px solid #FCD34D;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.badge-warn-more {
  background: #FEE2E2;
  color: #B91C1C;
  border: 1px solid #FCA5A5;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.badge-manual {
  background: #EDE9FE;
  color: #5B21B6;
  border: 1px solid #DDD6FE;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

/* Filter Chips */
.chip-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.chip-scroll::-webkit-scrollbar { display: none; }

.filter-chip {
  flex-shrink: 0;
  min-height: 34px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: #FFFFFF;
  border: 1.5px solid var(--border-warm);
  color: var(--text-sub);
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.filter-chip.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(255, 138, 101, 0.25);
}

/* Selectable Form Chips */
.select-chip {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-warm);
  background: #FFFFFF;
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.select-chip.selected {
  background: var(--accent-primary-soft);
  border-color: var(--accent-primary);
  color: var(--accent-primary-dark);
}

/* Dish View */
.dish-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dish-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.dish-name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.dish-ingredients-preview {
  font-size: 12.5px;
  color: var(--text-sub);
  line-height: 1.45;
}

.dish-nutrition-mini {
  font-size: 11.5px;
  color: #3E7B5E;
  background: var(--accent-green-soft);
  padding: 3px 9px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
}

/* Ingredient Editor Rows */
.ing-row {
  background: var(--bg-cream);
  border: 1.5px solid var(--border-warm);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.ing-row-top {
  display: grid;
  grid-template-columns: 1fr 34px;
  gap: 6px;
  align-items: center;
}

.ing-row-mid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 6px;
}

.ing-row-bot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ing-row .input,
.ing-row .select {
  min-height: 38px;
  padding: 6px 9px;
  font-size: 13px;
}

/* Plan View */
.plan-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-week-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #FFFFFF;
  border: 1.5px solid var(--border-warm);
  border-radius: 14px;
  padding: 6px 10px;
}

.plan-day-card {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-day-card.is-today {
  border-color: var(--accent-primary);
  box-shadow: 0 4px 16px rgba(255, 138, 101, 0.16);
}

.plan-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.plan-date-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 700;
}

.date-sun { color: #E53935; }
.date-sat { color: #1E88E5; }

.today-badge {
  background: var(--accent-primary);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.icon-btn {
  min-width: 36px;
  min-height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  border: 1px solid var(--border-warm);
  font-size: 15px;
}

.icon-btn.locked {
  background: #FFF3CD;
  border-color: #FCD34D;
}

.plan-dish-box {
  background: var(--bg-cream);
  border: 1px solid var(--border-warm);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.plan-dish-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.plan-dish-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.plan-reason {
  font-size: 11.5px;
  color: var(--text-sub);
}

.plan-warning-bar {
  font-size: 11.5px;
  color: #B45309;
  background: var(--accent-warn-soft);
  padding: 4px 9px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Shopping View */
.reagg-banner {
  background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
  border: 2px solid #FFB74D;
  border-radius: var(--radius-card);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-card);
}

.reagg-banner-title {
  font-weight: 700;
  font-size: 14px;
  color: #9A3412;
  display: flex;
  align-items: center;
  gap: 6px;
}

.shopping-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-track {
  width: 100%;
  height: 10px;
  background: #F5E6DC;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #66BB6A, #43A047);
  border-radius: var(--radius-pill);
  transition: width 0.25s ease;
}

.manual-add-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.manual-add-row {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 6px;
}

.manual-add-row2 {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}

.shop-category-card {
  padding: 10px 12px;
}

.shop-category-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shop-item {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #F7EDE6;
}

.shop-item:first-of-type {
  border-top: none;
}

.shop-item-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 2px;
}

.shop-check-btn {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 2px solid #D9C3B6;
  background: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  color: #FFFFFF;
  transition: all 0.14s ease;
}

.shop-item.checked .shop-check-btn {
  background: var(--accent-green);
  border-color: var(--accent-green);
  transform: scale(1.04);
}

.shop-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

.shop-item-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.shop-item-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  word-break: break-word;
}

.shop-item.checked .shop-item-name {
  text-decoration: line-through;
  color: var(--text-muted);
}

.shop-item-qty {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-primary-dark);
  white-space: nowrap;
  flex-shrink: 0;
}

.shop-item.checked .shop-item-qty {
  color: var(--text-muted);
}

.shop-item-subrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-sub);
}

.shop-item-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.shop-detail-drawer {
  background: var(--bg-cream);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text-sub);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Obsolete Section */
.obsolete-card {
  background: #FFF9F9;
  border: 1.5px dashed #F5B7B1;
  border-radius: var(--radius-card);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.obsolete-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid #F9E3E1;
}

.obsolete-item-row:first-of-type {
  border-top: none;
}

.pill-purchased {
  background: var(--accent-green-soft);
  color: #2E7D5B;
  border: 1px solid #B8E6CF;
}

.pill-unpurchased {
  background: #F3F4F6;
  color: #6B7280;
  border: 1px solid #E5E7EB;
}

/* Bottom Sheet Modal */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(58, 38, 28, 0.48);
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.18s ease;
}

.sheet-panel {
  width: 100%;
  max-width: 560px;
  max-height: 90dvh;
  background: var(--bg-cream);
  border-radius: 24px 24px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-float);
  animation: slideUp 0.22s ease;
}

.sheet-header {
  padding: 14px 16px 10px;
  background: #FFFFFF;
  border-bottom: 1.5px solid var(--border-warm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sheet-title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
}

.sheet-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-soft);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sheet-body {
  padding: 14px 16px;
  overflow-y: auto;
  flex: 1;
}

.sheet-footer {
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  background: #FFFFFF;
  border-top: 1.5px solid var(--border-warm);
  display: flex;
  gap: 8px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(28px); opacity: 0.7; }
  to { transform: translateY(0); opacity: 1; }
}

/* Progress Overlay */
.progress-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(58, 38, 28, 0.56);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.progress-card {
  width: 100%;
  max-width: 380px;
  background: #FFFFFF;
  border-radius: 22px;
  padding: 22px 20px;
  box-shadow: var(--shadow-float);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

/* Toast */
#toast-root {
  position: fixed;
  bottom: calc(var(--nav-height) + 14px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 520px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: #4A372F;
  color: #FFFFFF;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: var(--shadow-float);
  animation: slideUp 0.18s ease;
  pointer-events: auto;
}

.toast-success { background: #2E7D5B; }
.toast-warn    { background: #B45309; }
.toast-error   { background: #C62828; }

/* Accordion / Details */
.accordion {
  border: 1.5px solid var(--border-warm);
  border-radius: 14px;
  background: #FFFFFF;
  overflow: hidden;
}

.accordion summary {
  padding: 11px 14px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-soft);
}

.accordion-body {
  padding: 12px 14px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #F6EAE0;
}

.toggle-row:last-child {
  border-bottom: none;
}

.switch-input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

.empty-state {
  text-align: center;
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.empty-emoji {
  font-size: 42px;
}
