/* Fruit Up Interactive Kitchen (Fruit Up University - Campus 03)
   120fps ProMotion Design System, Light + Dark Tokens, iOS WebKit & Android Parity, Print Counter Sheet. */

:root {
  --primary: #155e3a;
  --primary-hover: #0f472b;
  --primary-soft: rgba(21, 94, 58, 0.08);
  --accent: #19b660;
  --accent-dark: #0d8042;
  --action: #e5232d;
  --action-hover: #bf1720;
  --bg: #faf8f4;
  --surface: #ffffff;
  --surface-2: #edf5f0;
  --surface-sage: #edf5f0;
  --surface-muted: #f3efe8;
  --surface-dark: #0f2e1c;
  --ink: #07110b;
  --text: #141a16;
  --text-2: #46524b;
  --muted: #6e7b73;
  --border: #e4dfd5;
  --border-strong: #cfc8ba;
  --header-glass: rgba(250, 248, 244, 0.88);
  --shadow-card: 0 10px 28px rgba(7, 17, 11, 0.06);
  --shadow-float: 0 22px 54px rgba(7, 17, 11, 0.18);
  --warn-bg: #fff8ec;
  --warn-border: #e5b869;
  --warn-text: #6b440b;
  --danger-bg: #fdf2f2;
  --danger-border: rgba(229, 35, 45, 0.35);
  --mode-alkaline: #155e3a;
  --mode-plant: #0d8042;
  --mode-raw: #b8620b;
  --display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --spring: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;
}

html[data-theme="dark"],
[data-theme="dark"] {
  --primary: #1ec96c;
  --primary-hover: #19b660;
  --primary-soft: rgba(25, 182, 96, 0.16);
  --bg: #07110b;
  --surface: #0f2e1c;
  --surface-2: #133a24;
  --surface-sage: #133a24;
  --surface-muted: #0b2114;
  --text: #f5f2ea;
  --text-2: #b9c3ba;
  --muted: #8a968d;
  --border: #294134;
  --border-strong: #395c48;
  --header-glass: rgba(7, 17, 11, 0.88);
  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.36);
  --shadow-float: 0 24px 60px rgba(0, 0, 0, 0.62);
  --warn-bg: rgba(245, 166, 35, 0.14);
  --warn-border: rgba(245, 166, 35, 0.45);
  --warn-text: #ffd48a;
  --danger-bg: rgba(229, 35, 45, 0.16);
  --danger-border: rgba(229, 35, 45, 0.48);
  --mode-alkaline: #2ad87b;
  --mode-plant: #66e6a2;
  --mode-raw: #ffbc66;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

body.modal-open,
body.cook-mode-open {
  overflow: hidden;
}

/* Zero-overflow guard across every flex & grid container (375px-390px iPhone safety) */
.fuk-shell,
.fuk-shell > *,
.fuk-rail-wrap,
.fuk-rail-wrap > *,
.fuk-campus-inner > *,
.fuk-hero-grid > *,
.fuk-hero-card > *,
.fuk-hero-actions > *,
.fuk-tabs > *,
.fuk-workspace > *,
.fuk-kitchen-layout > *,
.fuk-stove-stage > *,
.fuk-cutting-board > *,
.fuk-builder-grid > *,
.fuk-meals-grid > *,
.fuk-filter-bar > *,
.fuk-mastery-grid > *,
.fuk-rules-grid > *,
.fuk-detail-grid > *,
.fuk-footer-grid > *,
#fuk-kitchen-root > *,
#fuk-builder-root > *,
#fuk-bible-root > *,
#fuk-map-root > *,
#fuk-mastery-root > *,
#fuk-rules-root > *,
#fuk-unlock-root > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

img,
svg,
canvas {
  max-width: 100%;
  display: block;
}

img,
svg {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: var(--body);
}

/* Mandatory iOS Safari No-Auto-Zoom Input Standard */
input,
select,
textarea {
  font-size: max(16px, 1rem);
  line-height: 1.4;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 180ms var(--spring), box-shadow 180ms var(--spring), background-color 180ms ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(25, 182, 96, 0.22);
}

@media (max-width: 768px) {
  input,
  select,
  textarea {
    font-size: max(16px, 1rem);
  }
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 2px;
}

.fuk-skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 300;
  background: var(--primary);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-weight: 700;
}

.fuk-skip-link:focus {
  left: 12px;
}

.fuk-shell {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ---------- Typography Helpers ---------- */
.fuk-eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

html[data-theme="dark"] .fuk-eyebrow {
  color: var(--accent);
}

.fuk-display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1.03;
}

.fuk-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.fuk-section-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.4vw, 2.65rem);
  line-height: 1.04;
  margin: 4px 0 6px;
  color: var(--text);
}

.fuk-section-head p {
  margin: 0;
  max-width: 66ch;
  color: var(--text-2);
  font-size: 0.98rem;
}

.fuk-muted {
  color: var(--muted);
}

/* ---------- 120fps Tactile Buttons & Badges ---------- */
.fuk-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  font-weight: 700;
  font-size: 0.94rem;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 180ms var(--spring),
              background-color 180ms ease,
              border-color 180ms ease,
              color 180ms ease,
              box-shadow 180ms var(--spring);
}

.fuk-btn:hover {
  transform: translateY(-1px);
}

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

.fuk-btn.is-sm {
  min-height: 36px;
  padding: 6px 13px;
  font-size: 0.84rem;
}

.fuk-btn.is-lg {
  min-height: 52px;
  padding: 13px 22px;
  font-size: 1rem;
}

.fuk-btn.is-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(21, 94, 58, 0.22);
}

.fuk-btn.is-primary:hover {
  background: var(--primary-hover);
}

html[data-theme="dark"] .fuk-btn.is-primary {
  background: var(--accent);
  color: #05180d;
}

html[data-theme="dark"] .fuk-btn.is-primary:hover {
  background: #28d376;
}

.fuk-btn.is-action {
  background: var(--action);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(229, 35, 45, 0.24);
}

.fuk-btn.is-action:hover {
  background: var(--action-hover);
}

.fuk-btn.is-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.fuk-btn.is-ghost:hover {
  border-color: var(--primary);
  background: var(--surface-sage);
}

.fuk-btn.is-full {
  width: 100%;
}

.fuk-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 180ms var(--spring), background-color 180ms ease, border-color 180ms ease;
}

.fuk-icon-btn:hover {
  border-color: var(--primary);
  background: var(--surface-sage);
}

.fuk-icon-btn:active {
  transform: scale(0.95);
}

.fuk-pill,
.fuk-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.25;
  white-space: nowrap;
}

.fuk-pill.is-green,
.fuk-mode-badge.is-alkaline {
  background: rgba(21, 94, 58, 0.13);
  color: #0e5a33;
  border: 1px solid rgba(21, 94, 58, 0.3);
}

html[data-theme="dark"] .fuk-pill.is-green,
html[data-theme="dark"] .fuk-mode-badge.is-alkaline {
  background: rgba(25, 182, 96, 0.2);
  color: #7bf0ad;
  border-color: rgba(25, 182, 96, 0.42);
}

.fuk-mode-badge.is-plant_based {
  background: rgba(25, 182, 96, 0.15);
  color: #0b6b37;
  border: 1px solid rgba(25, 182, 96, 0.35);
}

html[data-theme="dark"] .fuk-mode-badge.is-plant_based {
  background: rgba(102, 230, 162, 0.18);
  color: #9bf7c4;
}

.fuk-pill.is-amber,
.fuk-mode-badge.is-raw {
  background: rgba(217, 130, 15, 0.15);
  color: #8a4b00;
  border: 1px solid rgba(217, 130, 15, 0.38);
}

html[data-theme="dark"] .fuk-pill.is-amber,
html[data-theme="dark"] .fuk-mode-badge.is-raw {
  background: rgba(245, 166, 35, 0.2);
  color: #ffd089;
}

.fuk-pill.is-red {
  background: rgba(229, 35, 45, 0.12);
  color: #b41821;
  border: 1px solid rgba(229, 35, 45, 0.32);
}

html[data-theme="dark"] .fuk-pill.is-red {
  background: rgba(229, 35, 45, 0.22);
  color: #ff989e;
}

.fuk-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--surface-muted);
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

/* ---------- Campus Switcher Bar (#fuk-campus-bar) ---------- */
#fuk-campus-bar,
.fuk-campus-bar {
  position: sticky;
  top: 0;
  z-index: 95;
  background: var(--header-glass);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top, 0px);
}

.fuk-campus-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.fuk-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.fuk-brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  background: #ffffff;
  padding: 3px;
  border: 1px solid var(--border);
}

.fuk-brand-text {
  display: flex;
  flex-direction: column;
}

.fuk-brand-text strong {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.fuk-brand-text small {
  font-size: 0.72rem;
  color: var(--text-2);
  font-weight: 600;
}

.fuk-campus-links {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0;
}

.fuk-campus-links::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.fuk-campus-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 160ms var(--spring), background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.fuk-campus-pill:hover {
  border-color: var(--primary);
  color: var(--text);
  background: var(--surface-sage);
}

.fuk-campus-pill.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

html[data-theme="dark"] .fuk-campus-pill.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #05180d;
}

/* ---------- Compact Editorial Hero ---------- */
.fuk-hero {
  padding: 18px 0 14px;
}

.fuk-hero-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
  gap: 20px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.fuk-hero-card::after {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 68%, var(--action) 100%);
}

.fuk-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fuk-hero-eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.fuk-hero-copy h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 4.1vw, 3.25rem);
  line-height: 1;
  margin: 0;
  letter-spacing: 0.015em;
  color: var(--text);
}

.fuk-hero-lead {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--text-2);
  max-width: 62ch;
}

.fuk-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.fuk-hero-aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fuk-hero-lockup-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface-dark);
  color: #f5f2ea;
  border: 1px solid #245339;
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.fuk-hero-lockup-img {
  width: 66px;
  height: 66px;
  border-radius: 14px;
  object-fit: contain;
  background: #ffffff;
  padding: 4px;
  flex-shrink: 0;
}

.fuk-hero-lockup-box strong {
  display: block;
  font-size: 0.94rem;
  color: #ffffff;
  line-height: 1.25;
}

.fuk-hero-lockup-box span {
  display: block;
  font-size: 0.78rem;
  color: #cde2d4;
  line-height: 1.38;
  margin-top: 2px;
}

.fuk-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.fuk-stat-chip {
  background: var(--surface-sage);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  text-align: center;
}

.fuk-stat-chip strong {
  display: block;
  font-family: var(--display);
  font-size: 1.38rem;
  font-weight: 400;
  color: var(--primary);
  line-height: 1.1;
}

html[data-theme="dark"] .fuk-stat-chip strong {
  color: var(--accent);
}

.fuk-stat-chip span {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-2);
  margin-top: 2px;
}

/* ---------- Sticky 6-Tab Studio Workspace Switcher ---------- */
.fuk-tab-dock {
  position: sticky;
  top: var(--fuk-campus-h, 56px);
  z-index: 88;
  background: var(--header-glass);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 22px rgba(7, 17, 11, 0.05);
}

.fuk-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  overflow-x: auto;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  -webkit-overflow-scrolling: touch;
}

.fuk-tabs::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Apple-Clean Scrollbar Hiding Across All Horizontal Pill, Vessel, Tab & Filter Rails */
.fuk-tab-dock,
.fuk-tabs,
.fuk-campus-links,
.fuk-campus-pills,
.fuk-campus-actions,
.fuk-vessel-bar,
.fuk-vessel-tabs,
.fuk-pill-row,
.fuk-filter-bar,
.fuk-ke-pills-scroll,
.fuk-ke-vessels-row,
.fuk-cs-pills-scroll,
.fuk-cm-steps-rail,
.fuk-cm-timer-dock,
.fuk-store-chips,
.fuk-mastery-nav,
.fuk-spotlight-filters {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.fuk-tab-dock::-webkit-scrollbar,
.fuk-tabs::-webkit-scrollbar,
.fuk-campus-links::-webkit-scrollbar,
.fuk-campus-pills::-webkit-scrollbar,
.fuk-campus-actions::-webkit-scrollbar,
.fuk-vessel-bar::-webkit-scrollbar,
.fuk-vessel-tabs::-webkit-scrollbar,
.fuk-pill-row::-webkit-scrollbar,
.fuk-filter-bar::-webkit-scrollbar,
.fuk-ke-pills-scroll::-webkit-scrollbar,
.fuk-ke-vessels-row::-webkit-scrollbar,
.fuk-cs-pills-scroll::-webkit-scrollbar,
.fuk-cm-steps-rail::-webkit-scrollbar,
.fuk-cm-timer-dock::-webkit-scrollbar,
.fuk-store-chips::-webkit-scrollbar,
.fuk-mastery-nav::-webkit-scrollbar,
.fuk-spotlight-filters::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.fuk-tab-btn {
  appearance: none;
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms var(--spring),
              background-color 180ms var(--spring),
              border-color 180ms var(--spring),
              color 180ms var(--spring),
              box-shadow 180ms var(--spring);
}

.fuk-tab-btn:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  color: var(--text);
}

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

.fuk-tab-btn.is-active,
.fuk-tab-btn[aria-selected="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(21, 94, 58, 0.24);
}

html[data-theme="dark"] .fuk-tab-btn.is-active,
html[data-theme="dark"] .fuk-tab-btn[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #05180d;
}

.fuk-tab-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--surface-sage);
  color: var(--primary);
}

.fuk-tab-btn.is-active .fuk-tab-num,
.fuk-tab-btn[aria-selected="true"] .fuk-tab-num {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

html[data-theme="dark"] .fuk-tab-btn.is-active .fuk-tab-num,
html[data-theme="dark"] .fuk-tab-btn[aria-selected="true"] .fuk-tab-num {
  background: rgba(5, 24, 13, 0.2);
  color: #05180d;
}

/* ---------- Main Workspace Container ---------- */
#fuk-workspace,
.fuk-workspace {
  padding: 20px 0 42px;
}

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

.fuk-tab-panel {
  animation: fukTabIn 220ms var(--spring) both;
}

/* ---------- Shared Card & Bento Primitives ---------- */
.fuk-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 18px;
}

.fuk-card-soft {
  background: var(--surface-sage);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

/* ---------- Tab 01: Virtual Kitchen Stage, Cutting Board & Burner Dial ---------- */
.fuk-kitchen-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 18px;
  align-items: start;
}

.fuk-stove-stage {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fuk-canvas-wrap {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #1d2b23 0%, #0b140f 100%);
  border: 1.5px solid var(--border-strong);
  aspect-ratio: 16 / 10;
  min-height: 260px;
}

.fuk-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.fuk-vessel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fuk-burner-dial {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px;
}

.fuk-dial-step {
  appearance: none;
  min-height: 44px;
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  background: var(--surface);
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms var(--spring), background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.fuk-dial-step:active {
  transform: scale(0.96);
}

.fuk-dial-step.is-active {
  background: var(--action);
  color: #ffffff;
  border-color: var(--action-hover);
  box-shadow: 0 6px 14px rgba(229, 35, 45, 0.25);
}

.fuk-dial-step[data-heat="0"].is-active {
  background: var(--primary);
  border-color: var(--primary-hover);
  box-shadow: 0 6px 14px rgba(21, 94, 58, 0.22);
}

.fuk-oil-guard {
  background: var(--warn-bg);
  border: 1.5px solid var(--warn-border);
  color: var(--warn-text);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fuk-cutting-board {
  background: linear-gradient(180deg, var(--surface-muted) 0%, var(--surface) 100%);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fuk-prep-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: transform 160ms var(--spring), border-color 160ms ease, background-color 160ms ease;
}

.fuk-prep-card:hover {
  border-color: var(--primary);
}

.fuk-prep-card:active {
  transform: scale(0.98);
}

.fuk-prep-card.is-prepped {
  background: var(--surface-sage);
  border-color: var(--accent);
}

.fuk-utensil-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Tab 02: Build-Your-Plate Meal Builder ---------- */
.fuk-builder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.fuk-slot-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-card);
}

.fuk-flavor-compass {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

/* ---------- Tab 03: Recipe Bible & Filter Strip ---------- */
.fuk-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  margin-bottom: 18px;
}

.fuk-meals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

.fuk-meal-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 200ms var(--spring), border-color 180ms ease, box-shadow 200ms var(--spring);
}

.fuk-meal-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-float);
}

.fuk-serving-scaler {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface-sage);
  border: 1px solid var(--border);
}

/* ---------- Full-Screen Real Kitchen Cook Mode Overlay & Multi-Timer Dock ---------- */
.fuk-cook-overlay {
  position: fixed;
  inset: 0;
  z-index: 240;
  height: 100dvh;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.fuk-cook-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1.5px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}

.fuk-cook-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 18px;
}

.fuk-cook-step {
  max-width: 780px;
  margin: 0 auto;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.fuk-cook-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1.5px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}

.fuk-cook-controls .fuk-btn {
  min-height: 52px;
}

.fuk-timer-dock {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 260;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(360px, calc(100vw - 32px));
}

.fuk-timer-chip {
  background: var(--surface-dark);
  color: #f5f2ea;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: var(--shadow-float);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* ---------- v3: 30-Sauce All-Natural Blender Bar & Cook Mode Studio ---------- */
.fuk-sauce-bar-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  min-height: 40px;
  border-radius: var(--radius-pill);
  border: 1.5px solid #d99b16;
  background: linear-gradient(135deg, #fff9ea 0%, #f7edd4 100%);
  color: #5b3b00;
  font-weight: 800;
  font-size: 0.84rem;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(217, 155, 22, 0.15);
  transition: transform 160ms var(--spring), background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms var(--spring);
}

.fuk-sauce-bar-pill:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  box-shadow: 0 6px 16px rgba(21, 94, 58, 0.18);
}

.fuk-sauce-bar-pill:active {
  transform: scale(0.96);
}

.fuk-sauce-bar-pill.is-active {
  background: linear-gradient(135deg, var(--primary) 0%, #0d4529 100%);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(21, 94, 58, 0.28);
}

html[data-theme="dark"] .fuk-sauce-bar-pill {
  background: linear-gradient(135deg, rgba(224, 161, 6, 0.22) 0%, rgba(21, 94, 58, 0.28) 100%);
  border-color: rgba(245, 185, 56, 0.55);
  color: #ffe299;
}

html[data-theme="dark"] .fuk-sauce-bar-pill.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #05180d;
}

.fuk-sauce-bar-banner {
  background: linear-gradient(135deg, var(--surface-dark) 0%, #155e3a 100%);
  color: #faf8f4;
  border: 1.5px solid rgba(25, 182, 96, 0.45);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-card);
}

.fuk-sauce-bar-banner strong {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.24rem;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.fuk-sauce-bar-banner p {
  margin: 3px 0 0;
  font-size: 0.85rem;
  color: #d6ebe0;
  max-width: 68ch;
}

.fuk-cs-badge.is-sauce {
  background: rgba(224, 161, 6, 0.18);
  color: #7a4e00;
  border: 1px solid rgba(224, 161, 6, 0.42);
}

html[data-theme="dark"] .fuk-cs-badge.is-sauce {
  background: rgba(245, 185, 56, 0.2);
  color: #ffd980;
  border-color: rgba(245, 185, 56, 0.45);
}

.fuk-cs-btn.is-blender {
  background: linear-gradient(135deg, #134e30 0%, #19b660 100%);
  border-color: #155e3a;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(25, 182, 96, 0.22);
}

html[data-theme="dark"] .fuk-cs-btn.is-blender {
  background: linear-gradient(135deg, #19b660 0%, #2be07a 100%);
  border-color: #2be07a;
  color: #05180d;
}

.fuk-mb-sauce-filter {
  font-size: max(16px, 1rem);
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  width: 100%;
  min-width: 0;
}

/* Hands-Free Real Cook Mode v3 Full-Screen Counter Layout */
.fuk-cm-overlay {
  position: fixed;
  inset: 0;
  z-index: 960;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  overflow: hidden;
}

.fuk-cm-overlay[hidden] {
  display: none !important;
}

.fuk-cm-header {
  flex: 0 0 auto;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.fuk-cm-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 240px;
}

.fuk-cm-dish-thumb {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid var(--border);
}

.fuk-cm-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

html[data-theme="dark"] .fuk-cm-step-badge {
  background: var(--accent);
  color: #05180d;
}

.fuk-cm-head-title {
  font-weight: 800;
  font-size: clamp(0.95rem, 1.8vw, 1.12rem);
  line-height: 1.2;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fuk-cm-head-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fuk-cm-wake-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 0.71rem;
  font-weight: 700;
  white-space: nowrap;
}

.fuk-cm-wake-pill.is-awake {
  border-color: rgba(25, 182, 96, 0.48);
  color: var(--primary);
}

html[data-theme="dark"] .fuk-cm-wake-pill.is-awake {
  color: #7bf0ad;
}

.fuk-cm-wake-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  display: inline-block;
}

.fuk-cm-wake-pill.is-awake .fuk-cm-wake-dot {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(25, 182, 96, 0.22);
}

.fuk-cm-srv-scaler {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 6px;
  border-radius: var(--radius-pill);
  background: var(--surface-muted);
  border: 1.5px solid var(--border-strong);
}

.fuk-cm-srv-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 140ms var(--spring), background-color 140ms ease;
}

.fuk-cm-srv-btn:active {
  transform: scale(0.92);
}

.fuk-cm-srv-val {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0 4px;
  color: var(--text);
  white-space: nowrap;
}

.fuk-cm-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-strong);
  background: var(--surface-dark);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.84rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 150ms var(--spring), background-color 150ms ease;
}

.fuk-cm-close-btn:hover {
  background: var(--action);
  border-color: var(--action);
}

.fuk-cm-close-btn:active {
  transform: scale(0.95);
}

html[data-theme="dark"] .fuk-cm-close-btn {
  background: rgba(229, 35, 45, 0.22);
  border-color: rgba(229, 35, 45, 0.55);
  color: #ffd9dc;
}

.fuk-cm-steps-strip {
  flex: 0 0 auto;
  background: var(--surface);
  border-bottom: 1.5px solid var(--border);
  padding: 0 16px 8px;
}

.fuk-cm-progress-bar {
  height: 4px;
  width: 100%;
  background: var(--surface-muted);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.fuk-cm-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 260ms var(--spring);
}

.fuk-cm-steps-rail {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0;
}

.fuk-cm-step-seg {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--surface-muted);
  color: var(--text-2);
  font-size: 0.79rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 150ms var(--spring), background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.fuk-cm-step-seg:active {
  transform: scale(0.96);
}

.fuk-cm-step-seg.is-done {
  background: var(--surface-2);
  border-color: rgba(25, 182, 96, 0.45);
  color: var(--primary);
}

html[data-theme="dark"] .fuk-cm-step-seg.is-done {
  color: #7bf0ad;
}

.fuk-cm-step-seg.is-current {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(21, 94, 58, 0.24);
}

html[data-theme="dark"] .fuk-cm-step-seg.is-current {
  background: var(--accent);
  border-color: var(--accent);
  color: #05180d;
}

.fuk-cm-equip-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--surface-dark);
  color: #faf8f4;
  border: 1px solid rgba(25, 182, 96, 0.36);
}

.fuk-cm-equip-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.fuk-cm-equip-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}

.fuk-cm-step-ings-box {
  background: var(--surface-2);
  border: 1.5px solid rgba(25, 182, 96, 0.4);
  border-radius: 16px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fuk-cm-step-ings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.fuk-cm-step-ings-label {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
}

html[data-theme="dark"] .fuk-cm-step-ings-label {
  color: #7bf0ad;
}

.fuk-cm-step-ings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 8px;
}

.fuk-cm-onebyone-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  min-height: 58px;
  border-radius: 14px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  width: 100%;
  min-width: 0;
  box-shadow: 0 3px 10px rgba(7, 17, 11, 0.04);
  transition: transform 150ms var(--spring), border-color 150ms ease, background-color 150ms ease;
}

.fuk-cm-onebyone-card:hover {
  border-color: var(--primary);
}

.fuk-cm-onebyone-card:active {
  transform: scale(0.98);
}

.fuk-cm-onebyone-card.is-checked {
  background: var(--surface-muted);
  border-color: var(--accent);
}

.fuk-cm-onebyone-card.is-checked .fuk-cm-onebyone-name {
  text-decoration: line-through;
  opacity: 0.78;
}

.fuk-cm-onebyone-box {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 2px solid var(--border-strong);
  background: var(--surface);
  color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 900;
  flex: 0 0 auto;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.fuk-cm-onebyone-card.is-checked .fuk-cm-onebyone-box {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

html[data-theme="dark"] .fuk-cm-onebyone-card.is-checked .fuk-cm-onebyone-box {
  background: var(--accent);
  border-color: var(--accent);
  color: #05180d;
}

.fuk-cm-onebyone-thumb {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: contain;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  padding: 3px;
  flex: 0 0 auto;
}

.fuk-cm-onebyone-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fuk-cm-onebyone-name {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
}

.fuk-cm-onebyone-prep {
  font-size: 0.76rem;
  color: var(--text-2);
  line-height: 1.25;
}

.fuk-cm-instruction-box {
  background: var(--surface-muted);
  border-left: 4px solid var(--primary);
  border-radius: 0 14px 14px 0;
  padding: 15px 18px;
}

html[data-theme="dark"] .fuk-cm-instruction-box {
  border-left-color: var(--accent);
}

.fuk-cm-step-text {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.54;
  color: var(--text);
}

.fuk-cm-inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
}

.fuk-cm-inline-timer-card {
  flex: 1 1 280px;
  background: var(--surface-muted);
  border: 1.5px solid var(--border-strong);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.fuk-cm-inline-timer-card.is-running {
  border-color: var(--accent);
  background: var(--surface-2);
}

.fuk-cm-inline-timer-card.is-done {
  border-color: var(--action);
  background: var(--danger-bg);
}

.fuk-cm-inline-timer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.fuk-cm-inline-clock {
  font-family: var(--mono);
  font-size: 1.48rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

html[data-theme="dark"] .fuk-cm-inline-clock {
  color: #7bf0ad;
}

.fuk-cm-inline-timer-card.is-done .fuk-cm-inline-clock {
  color: var(--action);
}

.fuk-cm-inline-bar {
  height: 7px;
  width: 100%;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}

.fuk-cm-inline-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 350ms linear;
}

.fuk-cm-bobby-tip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.9rem;
  line-height: 1.48;
  color: var(--text);
}

.fuk-cm-nav-btn {
  min-height: 54px;
  padding: 12px 18px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid var(--border-strong);
  background: var(--surface-muted);
  color: var(--text);
  transition: transform 150ms var(--spring), background-color 150ms ease, border-color 150ms ease;
}

.fuk-cm-nav-btn:active {
  transform: scale(0.97);
}

.fuk-cm-nav-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

.fuk-cm-nav-btn.is-next {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(21, 94, 58, 0.24);
}

html[data-theme="dark"] .fuk-cm-nav-btn.is-next {
  background: var(--accent);
  border-color: var(--accent);
  color: #05180d;
}

.fuk-cm-nav-btn.is-finish {
  background: var(--action);
  border-color: var(--action);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(229, 35, 45, 0.28);
}

@media (max-width: 680px) {
  .fuk-cm-header {
    padding: 8px 12px;
    gap: 8px;
  }
  .fuk-cm-steps-strip {
    padding: 0 12px 6px;
  }
  .fuk-cm-step-ings-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .fuk-cm-nav-btn {
    min-height: 54px;
    font-size: 0.93rem;
    padding: 10px 12px;
  }
}

/* ---------- Tab 05: Mastery & Reels ---------- */
.fuk-mastery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.fuk-pantry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 10px;
}

.fuk-challenge-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---------- Tab 06: Kitchen Rules, Oil Table & Unlock PDF ---------- */
.fuk-rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.fuk-oil-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--surface);
}

.fuk-oil-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.fuk-oil-table th,
.fuk-oil-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.fuk-oil-table th {
  background: var(--surface-dark);
  color: #f5f2ea;
  font-family: var(--mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fuk-unlock-card {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-sage) 100%);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  margin-top: 24px;
}

/* ---------- Modal & Toast ---------- */
.fuk-modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  min-height: 100dvh;
  background: rgba(7, 17, 11, 0.68);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.fuk-modal-card {
  width: 100%;
  max-width: 520px;
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  padding: 22px;
}

.fuk-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.fuk-modal-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.65rem;
  line-height: 1.08;
  margin: 6px 0 0;
}

.fuk-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.fuk-field label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.fuk-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.fuk-toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(14px);
  z-index: 300;
  background: var(--surface-dark);
  color: #f5f2ea;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: var(--shadow-float);
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms var(--spring), opacity 200ms ease;
  max-width: calc(100vw - 32px);
  text-align: center;
}

.fuk-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Standalone SEO Meal & Ingredient Pages ---------- */
.fuk-sub-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--header-glass);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top, 0px);
}

.fuk-sub-main {
  padding: 24px 0 48px;
}

.fuk-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.fuk-breadcrumb a {
  color: var(--primary);
  font-weight: 600;
}

html[data-theme="dark"] .fuk-breadcrumb a {
  color: var(--accent);
}

.fuk-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
  gap: 20px;
  align-items: start;
}

.fuk-detail-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.fuk-detail-card h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.03;
  margin: 0;
}

.fuk-seo-dish-hero {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--border);
  background: var(--surface-dark);
  aspect-ratio: 16 / 9;
  max-height: 360px;
}

.fuk-seo-dish-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fuk-seo-ing-photo {
  background: radial-gradient(circle at 50% 45%, var(--surface-sage) 0%, var(--surface) 78%);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.fuk-seo-ing-photo img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(7, 17, 11, 0.16));
}

.fuk-ing-thumb-sm {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px;
  flex-shrink: 0;
}

.fuk-meta-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.fuk-meta-box {
  background: var(--surface-sage);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.fuk-meta-box span {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--muted);
}

.fuk-meta-box strong {
  display: block;
  font-size: 0.94rem;
  color: var(--text);
  margin-top: 2px;
}

.fuk-ing-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.fuk-ing-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  border: 1px solid var(--border);
}

.fuk-steps-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 12px;
}

.fuk-steps-list li {
  line-height: 1.55;
  color: var(--text);
}

.fuk-bobby-tip {
  background: var(--surface-sage);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 14px;
  font-weight: 600;
  color: var(--text);
}

.fuk-dshea-box {
  background: var(--warn-bg);
  border: 1.5px solid var(--warn-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 0.86rem;
  color: var(--warn-text);
  line-height: 1.5;
}

.fuk-pager-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.fuk-pager-link {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 180ms var(--spring), border-color 180ms ease;
}

.fuk-pager-link:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
}

.fuk-pager-link small {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.fuk-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 28px 0 calc(28px + env(safe-area-inset-bottom, 0px));
}

.fuk-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.fuk-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-2);
}

.fuk-footer-links a:hover {
  color: var(--primary);
}

.fuk-print-only {
  display: none;
}

/* ---------- Responsive Breakpoints (Tablet & iPhone 375px-390px) ---------- */
@media (max-width: 960px) {
  .fuk-hero-card,
  .fuk-kitchen-layout,
  .fuk-detail-grid,
  .fuk-footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .fuk-shell {
    padding: 0 14px;
  }
  .fuk-hero-card {
    padding: 16px;
    border-radius: var(--radius-md);
  }
  .fuk-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .fuk-hero-actions .fuk-btn {
    width: 100%;
  }
  .fuk-builder-grid,
  .fuk-pager-nav {
    grid-template-columns: 1fr;
  }
  .fuk-meals-grid {
    grid-template-columns: 1fr;
  }
  .fuk-burner-dial {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fuk-detail-card {
    padding: 16px;
  }
}

/* ---------- @media print: Clean 1-Page Kitchen Counter Sheet ---------- */
@media print {
  @page {
    size: letter portrait;
    margin: 0.45in;
  }

  html,
  body {
    background: #ffffff !important;
    color: #111111 !important;
    font-size: 10.5pt !important;
    line-height: 1.4 !important;
    min-height: auto !important;
  }

  #fuk-campus-bar,
  .fuk-campus-bar,
  .fuk-tab-dock,
  .fuk-hero,
  .fuk-footer,
  .fuk-modal,
  .fuk-toast,
  .fuk-timer-dock,
  .fuk-btn,
  .fuk-icon-btn,
  .fuk-skip-link,
  .fuk-canvas-wrap,
  .fuk-burner-dial,
  .fuk-utensil-bar,
  .fuk-pager-nav,
  .fuk-rail-arrow,
  .fuk-no-print {
    display: none !important;
  }

  .fuk-print-only {
    display: block !important;
  }

  .fuk-shell {
    max-width: 100% !important;
    padding: 0 !important;
  }

  .fuk-card,
  .fuk-detail-card,
  .fuk-oil-table-wrap,
  .fuk-dshea-box {
    box-shadow: none !important;
    border: 1px solid #cccccc !important;
    background: #ffffff !important;
    color: #111111 !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .fuk-oil-table th {
    background: #155e3a !important;
    color: #ffffff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  a {
    text-decoration: none !important;
    color: #111111 !important;
  }
}
