:root {
  --bg: #FBF8F3;
  --bg-soft: #F2ECE1;
  --surface: #FFFFFF;
  --ink: #141E2B;
  --ink-soft: #3D4B5E;
  --ink-muted: #607085;
  --border: #E5DCCD;
  --border-strong: #CFC4B2;

  --dodger: #005A9C;
  --dodger-dark: #003F6E;
  --dodger-soft: #E9F3FC;
  --navy: #0B2545;
  --red: #D93034;
  --red-soft: #FDECEC;
  --gold-soft: #FDF4E1;
  --green: #1E6E46;
  --green-soft: #E7F6EE;

  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 3px 12px rgba(11, 37, 69, 0.06);
  --shadow-md: 0 12px 30px rgba(11, 37, 69, 0.11);
  --shadow-lg: 0 22px 54px rgba(11, 37, 69, 0.20);

  --font-display: 'Shippori Mincho', 'Hiragino Mincho ProN', Georgia, serif;
  --font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', sans-serif;

  --sidebar-w: 248px;
  --showcase-w: 356px;
  --tabbar-h: 78px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 18px; /* Generous reading-glasses-friendly base size */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}

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

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

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

.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1.5px solid var(--border);
  padding: 24px 16px 20px;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 20;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 4px 20px;
  border-bottom: 1.5px dashed var(--border-strong);
  margin-bottom: 18px;
}

.brand-icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  object-fit: cover;
  border: 2px solid var(--dodger-soft);
}

.brand-kicker {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--red);
}

.brand-text h1 {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--navy);
  line-height: 1.25;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  border: none;
  background: transparent;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-soft);
  text-align: left;
  transition: background 0.16s ease, color 0.16s ease;
}

.nav-btn:hover {
  background: var(--bg-soft);
  color: var(--navy);
}

.nav-btn.active {
  background: var(--dodger);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 90, 156, 0.24);
}

.nav-ico {
  font-size: 22px;
  width: 28px;
  text-align: center;
}

.nav-label {
  flex: 1;
}

.nav-badge {
  font-size: 14px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  color: var(--ink-soft);
}

.nav-btn.active .nav-badge {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.nav-badge.accent {
  background: var(--dodger-soft);
  color: var(--dodger);
}

.nav-badge.danger {
  background: var(--red-soft);
  color: var(--red);
}

.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1.5px dashed var(--border-strong);
}

.utility-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

.utility-btn:hover {
  border-color: var(--dodger);
  background: var(--dodger-soft);
}

.mini-decoy-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--dodger);
}

.mobile-header,
.mobile-tabbar {
  display: none;
}

/* ==================== WORKSPACE + LARGE STICKY CHEF OHTANI ==================== */
.workspace-grid {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--showcase-w);
  gap: 28px;
  padding: 26px 28px 72px;
  max-width: 1400px;
  width: 100%;
  align-items: start;
}

.main-content {
  order: 1;
  min-width: 0;
}

.ohtani-showcase {
  order: 2;
  position: sticky;
  top: 24px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F9FD 65%, #FDF8EE 100%);
  border: 2px solid #D3E4F4;
  border-radius: 26px;
  padding: 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ohtani-portrait-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  background: #F4EFE6;
  aspect-ratio: 4 / 4.4;
  box-shadow: 0 10px 26px rgba(0, 90, 156, 0.16);
}

.ohtani-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.ohtani-hero-img.pop {
  animation: portraitPop 0.36s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes portraitPop {
  0% { transform: scale(0.96); opacity: 0.85; }
  60% { transform: scale(1.02); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.ohtani-img-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  pointer-events: none;
}

.ohtani-badge-17 {
  background: rgba(217, 48, 52, 0.94);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

.tap-hint-pill {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(11, 37, 69, 0.14);
}

.ohtani-dialog-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ohtani-speech-bubble {
  position: relative;
  background: #FFFFFF;
  border: 1.5px solid #D3E3F2;
  border-radius: 18px;
  padding: 16px 18px;
}

.ohtani-speech-bubble::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 30px;
  width: 14px;
  height: 14px;
  background: #FFFFFF;
  border-left: 1.5px solid #D3E3F2;
  border-top: 1.5px solid #D3E3F2;
  transform: rotate(45deg);
}

.ohtani-speech {
  margin: 0;
  font-size: 18.5px;
  line-height: 1.65;
  color: var(--navy);
  font-weight: 700;
}

.ohtani-stage-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pill-action {
  border: none;
  min-height: 50px;
  padding: 11px 10px;
  border-radius: 14px;
  font-size: 15.5px;
  font-weight: 800;
  text-align: center;
}

.pill-action.primary {
  background: var(--dodger);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 90, 156, 0.24);
}

.pill-action.primary:hover {
  background: var(--dodger-dark);
}

.pill-action.soft {
  background: var(--gold-soft);
  color: #7A4B04;
  border: 1.5px solid #EBD09B;
}

.avoid-active-pill {
  width: 100%;
  border: 1.5px solid #F2BABA;
  font-size: 15px;
  font-weight: 700;
  color: var(--red);
  background: var(--red-soft);
  padding: 10px 14px;
  border-radius: 14px;
  text-align: center;
}

/* ==================== SIMPLE LARGE HEADINGS & PANELS ==================== */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--navy);
  line-height: 1.3;
}

.section-sub {
  margin: 6px 0 0;
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.panel {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}

.text-input,
.select-input {
  width: 100%;
  min-height: 54px;
  border: 2px solid var(--border-strong);
  background: #fff;
  color: var(--ink);
  border-radius: 15px;
  padding: 12px 16px;
  font-size: 18px;
  outline: none;
}

.text-input:focus,
.select-input:focus {
  border-color: var(--dodger);
  box-shadow: 0 0 0 3px rgba(0, 90, 156, 0.14);
}

.input-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.input-row .text-input {
  flex: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  border: none;
  padding: 12px 20px;
  border-radius: 15px;
  font-size: 17.5px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 0.14s ease, background 0.16s ease;
}

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

.btn.primary {
  background: var(--dodger);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 90, 156, 0.22);
}

.btn.primary:hover {
  background: var(--dodger-dark);
}

.btn.red {
  background: var(--red);
  color: #fff;
}

.btn.secondary {
  background: var(--dodger-soft);
  color: var(--dodger);
}

.btn.outline {
  background: var(--surface);
  color: var(--navy);
  border: 2px solid var(--border-strong);
}

.btn.outline:hover {
  border-color: var(--dodger);
  color: var(--dodger);
}

.btn.ghost {
  background: transparent;
  color: var(--ink-soft);
}

.btn.sm {
  min-height: 46px;
  padding: 10px 15px;
  font-size: 16px;
  border-radius: 13px;
}

.btn.full {
  width: 100%;
}

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

/* ==================== LARGE FRIENDLY CHIPS ==================== */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 46px;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 16.5px;
  font-weight: 700;
}

.chip:hover {
  border-color: var(--dodger);
  color: var(--dodger);
}

.chip.active {
  background: var(--dodger);
  border-color: var(--dodger);
  color: #fff;
}

.chip.pantry-has {
  background: var(--green-soft);
  border-color: #9AD7B5;
  color: var(--green);
}

.chip.avoid-active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* ==================== AIRY, UNCLUTTERED RECIPE CARDS ==================== */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}

.recipe-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.recipe-banner {
  padding: 16px 18px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
}

.recipe-emoji {
  font-size: 40px;
  line-height: 1;
}

.banner-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill-glass {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

.fav-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.94);
  display: grid;
  place-items: center;
  font-size: 20px;
}

.recipe-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

.recipe-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.4;
  color: var(--navy);
}

.pantry-match-bar-wrap {
  background: var(--bg);
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.pantry-match-label {
  display: flex;
  justify-content: space-between;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.match-track {
  height: 9px;
  border-radius: 99px;
  background: #E2D9CB;
  overflow: hidden;
}

.match-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--dodger), var(--green));
}

.missing-preview {
  margin-top: 7px;
  font-size: 15px;
  color: var(--ink-soft);
}

.card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.card-actions .btn {
  flex: 1;
}

/* ==================== SIMPLE WEEKLY MENU ==================== */
.week-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.day-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.day-name {
  font-size: 19px;
  font-weight: 800;
  color: var(--dodger);
}

.day-meal-row {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.day-meal-badge {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 32px;
  flex-shrink: 0;
  color: #fff;
}

.day-meal-info {
  flex: 1;
  min-width: 0;
}

.day-meal-title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--navy);
  line-height: 1.35;
}

.day-meal-meta {
  font-size: 15.5px;
  color: var(--ink-soft);
  font-weight: 600;
}

.day-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ==================== SIMPLE LARGE SHOPPING LIST ==================== */
.shopping-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
}

.toggle-label input[type="checkbox"] {
  width: 24px;
  height: 24px;
  accent-color: var(--dodger);
}

.aisle-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.aisle-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--dodger);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shop-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 4px;
  border-top: 1px solid var(--bg-soft);
}

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

.shop-checkbox {
  width: 28px;
  height: 28px;
  accent-color: var(--dodger);
  cursor: pointer;
  flex-shrink: 0;
}

.shop-item-main {
  flex: 1;
  min-width: 0;
}

.shop-item-name {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
}

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

.in-pantry-pill {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--green);
  background: var(--green-soft);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  margin-left: 8px;
}

.shop-remove-btn {
  border: none;
  background: var(--bg);
  color: var(--ink-soft);
  font-size: 18px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

/* ==================== AVOID VIEW ==================== */
.avoid-status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background: #FFF6F6;
  border: 1.5px solid #F4C8C9;
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 18px;
  font-size: 17px;
}

/* ==================== EMPTY STATES ==================== */
.empty-state {
  text-align: center;
  padding: 40px 24px;
  background: var(--surface);
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}

.empty-state-emoji {
  font-size: 48px;
  margin-bottom: 10px;
}

.empty-state h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--navy);
}

.empty-state p {
  margin: 0 auto 18px;
  max-width: 440px;
  font-size: 17px;
  color: var(--ink-soft);
}

/* ==================== DECOY POPUP ==================== */
.decoy-popup {
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: 375px;
  max-width: calc(100vw - 24px);
  background: #FFFFFF;
  border: 2.5px solid var(--dodger);
  border-radius: 24px;
  padding: 16px;
  box-shadow: var(--shadow-lg);
  z-index: 60;
  transform: translateY(140%) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}

.decoy-popup.visible {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.decoy-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: var(--bg);
  color: var(--ink-soft);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 800;
}

.decoy-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.decoy-img {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  object-fit: cover;
  border: 2px solid var(--dodger-soft);
  flex-shrink: 0;
}

.decoy-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.decoy-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--navy);
}

.decoy-bark {
  font-size: 13px;
  font-weight: 800;
  color: var(--dodger);
  background: var(--dodger-soft);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
}

.decoy-line {
  margin: 0 0 12px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink);
}

.decoy-action-btn {
  border: none;
  background: var(--dodger);
  color: #fff;
  font-size: 15.5px;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
}

/* ==================== LARGE-PRINT RECIPE & COOKING MODAL ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 37, 69, 0.58);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-sheet {
  background: var(--surface);
  border-radius: 26px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.recipe-modal {
  max-width: 860px;
}

.settings-modal {
  max-width: 600px;
  padding: 26px;
}

.modal-hero {
  padding: 22px 24px;
  color: #fff;
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--navy);
  font-size: 20px;
  font-weight: 800;
}

.modal-hero-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 52px;
}

.modal-hero-emoji {
  font-size: 48px;
}

.modal-hero h2 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.35;
}

.modal-hero p {
  margin: 0;
  font-size: 16px;
  opacity: 0.96;
}

.modal-body {
  padding: 22px 24px 28px;
}

.ohtani-delivery-box {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(120deg, var(--dodger-soft) 0%, #FDF8EE 100%);
  border: 2px solid #CDE2F5;
  border-radius: 22px;
  padding: 18px;
  margin-bottom: 20px;
}

.ohtani-delivery-img {
  width: 158px;
  height: 176px;
  border-radius: 18px;
  object-fit: cover;
  object-position: center top;
  border: 3px solid #fff;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.ohtani-delivery-quote {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.65;
}

.ohtani-tip-line {
  margin: 0;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.85);
  padding: 10px 14px;
  border-radius: 12px;
}

.recipe-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.recipe-columns {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}

.recipe-col h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--navy);
}

.ing-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ing-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 13px;
  background: var(--bg);
  font-size: 17.5px;
}

.ing-list li.has-it {
  background: var(--green-soft);
}

.step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-list li {
  display: flex;
  gap: 14px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--dodger);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Guided Cooking Mode — Extra-Large Print & Big Ohtani */
.cook-mode-split {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 22px;
  align-items: stretch;
}

.cook-ohtani-col {
  background: linear-gradient(180deg, var(--dodger-soft) 0%, #FDF8EE 100%);
  border: 2px solid #CDE2F5;
  border-radius: 22px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cook-ohtani-img {
  width: 100%;
  aspect-ratio: 3 / 3.5;
  border-radius: 16px;
  object-fit: cover;
  object-position: center top;
  border: 3px solid #fff;
}

.cook-ohtani-cheer {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 700;
  color: var(--navy);
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
}

.cook-mode-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cook-progress {
  height: 10px;
  border-radius: 99px;
  background: #E2D9CB;
  overflow: hidden;
  margin-bottom: 18px;
}

.cook-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--dodger), var(--red));
}

.cook-step-text {
  font-size: 23px;
  line-height: 1.75;
  color: var(--navy);
  font-weight: 700;
  margin: 14px 0 26px;
}

.cook-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* Settings Modal */
.settings-group {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1.5px solid var(--bg-soft);
}

.settings-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.settings-group label {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.install-box {
  background: var(--dodger-soft);
  border: 1.5px solid #CBE1F5;
  border-radius: 16px;
  padding: 16px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--navy);
}

details.advanced-settings {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 12px 16px;
}

details.advanced-settings summary {
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink-soft);
}

/* ==================== FLOATING HEARTS & TOASTS ==================== */
.floating-heart {
  position: fixed;
  font-size: 26px;
  pointer-events: none;
  z-index: 200;
  animation: floatUp 1.15s ease-out forwards;
}

@keyframes floatUp {
  0% { transform: translateY(0) scale(0.7); opacity: 1; }
  100% { transform: translateY(-95px) scale(1.25); opacity: 0; }
}

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 250;
  pointer-events: none;
}

.toast {
  background: var(--navy);
  color: #fff;
  padding: 14px 20px;
  border-radius: 16px;
  font-size: 16.5px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

/* ==================== TABLET & MOBILE RESPONSIVE ==================== */
@media (max-width: 1120px) {
  .workspace-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 18px 20px 68px;
  }

  .ohtani-showcase {
    order: 1;
    position: static;
    display: grid;
    grid-template-columns: 190px 1fr;
    align-items: center;
    gap: 18px;
  }

  .main-content {
    order: 2;
  }

  .ohtani-portrait-card {
    width: 190px;
    aspect-ratio: 3 / 3.5;
  }

  .ohtani-speech-bubble::before {
    display: none;
  }
}

@media (max-width: 820px) {
  .sidebar {
    display: none;
  }

  .app-shell {
    flex-direction: column;
  }

  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(12px + env(safe-area-inset-top)) 14px 12px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1.5px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 30;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .mobile-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
  }

  .mobile-brand-title {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    color: var(--navy);
  }

  .mobile-header-actions {
    display: flex;
    gap: 8px;
  }

  .icon-pill-btn {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    border: 1.5px solid var(--border);
    background: var(--bg);
    font-size: 20px;
    display: grid;
    place-items: center;
  }

  .workspace-grid {
    margin-left: 0;
    padding: 14px 14px calc(var(--tabbar-h) + 32px + env(safe-area-inset-bottom));
  }

  .ohtani-showcase {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .ohtani-portrait-card {
    width: 100%;
    aspect-ratio: 16 / 13;
    max-height: 280px;
  }

  .ohtani-hero-img {
    object-position: center 16%;
  }

  .section-head h2 {
    font-size: 26px;
  }

  .recipe-grid {
    grid-template-columns: 1fr;
  }

  .ohtani-delivery-box {
    flex-direction: column;
    text-align: center;
  }

  .ohtani-delivery-img {
    width: 180px;
    height: 195px;
  }

  .cook-mode-split {
    grid-template-columns: 1fr;
  }

  .cook-ohtani-img {
    aspect-ratio: 16 / 12;
    max-height: 240px;
    object-position: center 16%;
  }

  .cook-step-text {
    font-size: 21px;
  }

  .recipe-columns {
    grid-template-columns: 1fr;
  }

  .mobile-tabbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding: 6px 4px env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, 0.98);
    border-top: 1.5px solid var(--border);
    z-index: 40;
  }

  .tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 800;
    position: relative;
    border-radius: 12px;
  }

  .tab-btn.active {
    color: var(--dodger);
    background: var(--dodger-soft);
  }

  .tab-ico {
    font-size: 22px;
    line-height: 1;
  }

  .tab-dot {
    position: absolute;
    top: 4px;
    right: calc(50% - 24px);
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    border-radius: 99px;
    background: var(--dodger);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: grid;
    place-items: center;
  }

  .tab-dot.danger {
    background: var(--red);
  }

  .decoy-popup {
    left: 12px;
    right: 12px;
    width: auto;
    bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom));
  }

  .modal-backdrop {
    padding: 8px;
    align-items: flex-end;
  }

  .modal-sheet {
    border-radius: 24px 24px 18px 18px;
    max-height: 92vh;
  }
}
