/* Fruit Up Interactive Kitchen (Campus 03) - Workspace Shell, Campus Switcher,
   Cmd/Ctrl+K Spotlight, Tab 06 Kitchen Rules, Mastery Lab, Unlock Modal & Print Sheet.
   120fps Project Butter transitions, iOS WebKit & Android parity enforced. */

/* ---------- 1. Fruit Up University Campus Switcher (#fuk-campus-bar) ---------- */
#fuk-campus-bar {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--header-glass, rgba(250, 248, 244, 0.9));
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border, #e4dfd5);
}

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

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

.fuk-campus-brand {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary, #155e3a);
  white-space: nowrap;
  flex-shrink: 0;
}

html[data-theme="dark"] .fuk-campus-brand {
  color: var(--accent, #19b660);
}

.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;
  min-width: 0;
  max-width: 100%;
}

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

/* Hide native horizontal scrollbars on all workspace pill, tab, vessel & filter rails */
.fuk-campus-pills,
.fuk-campus-actions,
.fuk-tab-dock,
.fuk-tabs,
.fuk-vessel-bar,
.fuk-pill-row,
.fuk-ke-pills-scroll,
.fuk-ke-vessels-row,
.fuk-cs-pills-scroll,
.fuk-cm-timer-dock,
.fuk-spotlight-filters,
.fuk-mastery-nav,
.fuk-store-chips {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

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

/* 120fps Tactile Scroll Rail Arrows (< / >) & Edge Fade Masks */
.fuk-rail-wrap {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.fuk-rail-wrap.is-campus-rail {
  width: auto;
  flex: 0 1 auto;
}

.fuk-rail-wrap.is-timer-rail {
  flex: 0 0 auto;
}

.fuk-rail-wrap > :first-child {
  scroll-padding-inline: 44px;
}

.fuk-rail-wrap::before,
.fuk-rail-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 44px;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transition: opacity 160ms ease;
}

.fuk-rail-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--surface, #ffffff) 28%, rgba(255, 255, 255, 0) 100%);
}

.fuk-rail-wrap::after {
  right: 0;
  background: linear-gradient(270deg, var(--surface, #ffffff) 28%, rgba(255, 255, 255, 0) 100%);
}

.fuk-rail-wrap.is-campus-rail::before,
.fuk-rail-wrap.is-tabs-rail::before {
  background: linear-gradient(90deg, var(--bg, #faf8f4) 28%, rgba(250, 248, 244, 0) 100%);
}

.fuk-rail-wrap.is-campus-rail::after,
.fuk-rail-wrap.is-tabs-rail::after {
  background: linear-gradient(270deg, var(--bg, #faf8f4) 28%, rgba(250, 248, 244, 0) 100%);
}

.fuk-rail-wrap.is-timer-rail::before {
  background: linear-gradient(90deg, var(--surface-2, #edf5f0) 28%, rgba(237, 245, 240, 0) 100%);
}

.fuk-rail-wrap.is-timer-rail::after {
  background: linear-gradient(270deg, var(--surface-2, #edf5f0) 28%, rgba(237, 245, 240, 0) 100%);
}

html[data-theme="dark"] .fuk-rail-wrap::before {
  background: linear-gradient(90deg, var(--surface, #0f2e1c) 28%, rgba(15, 46, 28, 0) 100%);
}

html[data-theme="dark"] .fuk-rail-wrap::after {
  background: linear-gradient(270deg, var(--surface, #0f2e1c) 28%, rgba(15, 46, 28, 0) 100%);
}

html[data-theme="dark"] .fuk-rail-wrap.is-campus-rail::before,
html[data-theme="dark"] .fuk-rail-wrap.is-tabs-rail::before {
  background: linear-gradient(90deg, var(--bg, #07110b) 28%, rgba(7, 17, 11, 0) 100%);
}

html[data-theme="dark"] .fuk-rail-wrap.is-campus-rail::after,
html[data-theme="dark"] .fuk-rail-wrap.is-tabs-rail::after {
  background: linear-gradient(270deg, var(--bg, #07110b) 28%, rgba(7, 17, 11, 0) 100%);
}

.fuk-rail-wrap.has-left::before {
  opacity: 1;
}

.fuk-rail-wrap.has-right::after {
  opacity: 1;
}

.fuk-rail-arrow {
  appearance: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scale(0.86);
  z-index: 6;
  width: 32px;
  height: 32px;
  padding: 0 0 2px 0;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong, #cfc8ba);
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--primary, #155e3a);
  font-family: var(--body, Inter, sans-serif);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 14px rgba(7, 17, 11, 0.16);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease,
              transform 170ms var(--spring, cubic-bezier(0.22, 1, 0.36, 1)),
              background-color 150ms ease,
              border-color 150ms ease,
              color 150ms ease,
              box-shadow 160ms ease;
}

.fuk-rail-arrow.is-prev {
  left: 3px;
}

.fuk-rail-arrow.is-next {
  right: 3px;
}

.fuk-rail-wrap.has-left > .fuk-rail-arrow.is-prev,
.fuk-rail-wrap.has-right > .fuk-rail-arrow.is-next {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

.fuk-rail-arrow:hover {
  background: var(--primary, #155e3a);
  border-color: var(--primary, #155e3a);
  color: #ffffff;
  transform: translateY(-50%) scale(1.07);
  box-shadow: 0 6px 18px rgba(21, 94, 58, 0.28);
}

.fuk-rail-arrow:active {
  transform: translateY(-50%) scale(0.92);
}

html[data-theme="dark"] .fuk-rail-arrow {
  background: rgba(19, 58, 36, 0.96);
  border-color: var(--border-strong, #395c48);
  color: #82f3b2;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.44);
}

html[data-theme="dark"] .fuk-rail-arrow:hover {
  background: var(--accent, #19b660);
  border-color: var(--accent, #19b660);
  color: #05180d;
}

@media (max-width: 760px) {
  .fuk-rail-wrap.is-campus-rail {
    width: 100%;
  }

  .fuk-rail-arrow {
    width: 28px;
    height: 28px;
    font-size: 1.15rem;
  }
}

.fuk-campus-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border, #e4dfd5);
  background: var(--surface, #ffffff);
  color: var(--text-2, #46524b);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  transition: transform 160ms var(--spring, cubic-bezier(0.22, 1, 0.36, 1)),
              border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.fuk-campus-pill:hover {
  border-color: var(--primary, #155e3a);
  color: var(--text, #141a16);
  transform: translateY(-1px);
}

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

.fuk-campus-pill.is-current {
  background: var(--primary, #155e3a);
  border-color: var(--primary, #155e3a);
  color: #ffffff;
}

html[data-theme="dark"] .fuk-campus-pill.is-current {
  background: var(--accent, #19b660);
  border-color: var(--accent, #19b660);
  color: #062112;
}

.fuk-campus-pill.is-app {
  border-color: rgba(229, 35, 45, 0.35);
  color: var(--action, #e5232d);
}

html[data-theme="dark"] .fuk-campus-pill.is-app {
  color: #ff7a82;
  border-color: rgba(255, 122, 130, 0.4);
}

.fuk-campus-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #82f3b2;
  display: inline-block;
}

html[data-theme="dark"] .fuk-campus-pill.is-current .fuk-campus-dot {
  background: #062112;
}

.fuk-campus-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.fuk-campus-tool {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong, #cfc8ba);
  background: var(--surface, #ffffff);
  color: var(--text, #141a16);
  font-family: var(--body, Inter, sans-serif);
  font-size: 0.79rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms var(--spring, cubic-bezier(0.22, 1, 0.36, 1)),
              border-color 160ms ease, background-color 160ms ease;
}

.fuk-campus-tool:hover {
  border-color: var(--primary, #155e3a);
  background: var(--surface-sage, #edf5f0);
}

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

.fuk-campus-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--primary, #155e3a);
  color: #ffffff;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.7rem;
  font-weight: 700;
}

html[data-theme="dark"] .fuk-campus-badge {
  background: var(--accent, #19b660);
  color: #062112;
}

.fuk-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--border-strong, #cfc8ba);
  background: var(--surface-muted, #f3efe8);
  color: var(--text-2, #46524b);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}

/* Smooth Tab Enter Animation */
@keyframes fukTabEnter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.is-ws-entering {
  animation: fukTabEnter 210ms var(--spring, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

/* Shared Micro Buttons & Pills (scoped safely for workspace, mastery, rules, unlock) */
.fuk-ws-eyebrow {
  display: inline-block;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary, #155e3a);
}

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

.fuk-btn-sm,
.fuk-btn-md {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--body, Inter, sans-serif);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: transform 160ms var(--spring, cubic-bezier(0.22, 1, 0.36, 1)),
              background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.fuk-btn-sm {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 0.79rem;
}

.fuk-btn-md {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 0.9rem;
}

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

.fuk-btn-sm.is-primary,
.fuk-btn-md.is-primary {
  background: var(--primary, #155e3a);
  color: #ffffff;
}

.fuk-btn-sm.is-primary:hover,
.fuk-btn-md.is-primary:hover {
  background: var(--primary-hover, #0f472b);
}

html[data-theme="dark"] .fuk-btn-sm.is-primary,
html[data-theme="dark"] .fuk-btn-md.is-primary {
  background: var(--accent, #19b660);
  color: #062112;
}

.fuk-btn-sm.is-action,
.fuk-btn-md.is-action {
  background: var(--action, #e5232d);
  color: #ffffff;
}

.fuk-btn-sm.is-action:hover,
.fuk-btn-md.is-action:hover {
  background: var(--action-hover, #bf1720);
}

.fuk-btn-sm.is-ghost,
.fuk-btn-md.is-ghost {
  background: var(--surface, #ffffff);
  border-color: var(--border-strong, #cfc8ba);
  color: var(--text, #141a16);
}

.fuk-btn-sm.is-ghost:hover,
.fuk-btn-md.is-ghost:hover {
  border-color: var(--primary, #155e3a);
  background: var(--surface-sage, #edf5f0);
}

.fuk-btn-sm.is-ghost.is-on,
.fuk-btn-md.is-ghost.is-on {
  border-color: var(--primary, #155e3a);
  background: var(--primary-soft, rgba(21, 94, 58, 0.1));
  color: var(--primary, #155e3a);
}

html[data-theme="dark"] .fuk-btn-sm.is-ghost.is-on,
html[data-theme="dark"] .fuk-btn-md.is-ghost.is-on {
  border-color: var(--accent, #19b660);
  color: #82f3b2;
}

.fuk-close-btn {
  appearance: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong, #cfc8ba);
  background: var(--surface, #ffffff);
  color: var(--text, #141a16);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 150ms var(--spring, cubic-bezier(0.22, 1, 0.36, 1)), border-color 150ms ease;
}

.fuk-close-btn:hover {
  border-color: var(--action, #e5232d);
  color: var(--action, #e5232d);
}

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

.fuk-mode-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--surface-muted, #f3efe8);
  color: var(--text-2, #46524b);
  border: 1px solid var(--border, #e4dfd5);
  white-space: nowrap;
}

.fuk-mode-pill.is-alkaline {
  background: rgba(21, 94, 58, 0.12);
  color: #155e3a;
  border-color: rgba(21, 94, 58, 0.3);
}

.fuk-mode-pill.is-plant {
  background: rgba(180, 83, 9, 0.12);
  color: #9a3412;
  border-color: rgba(180, 83, 9, 0.3);
}

.fuk-mode-pill.is-raw {
  background: rgba(229, 35, 45, 0.11);
  color: #b91c1c;
  border-color: rgba(229, 35, 45, 0.28);
}

html[data-theme="dark"] .fuk-mode-pill.is-alkaline {
  background: rgba(25, 182, 96, 0.18);
  color: #82f3b2;
}

html[data-theme="dark"] .fuk-mode-pill.is-plant {
  background: rgba(251, 146, 60, 0.18);
  color: #fdba74;
}

html[data-theme="dark"] .fuk-mode-pill.is-raw {
  background: rgba(248, 113, 113, 0.18);
  color: #fca5a5;
}

.fuk-pantry-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.67rem;
  font-weight: 700;
  background: rgba(25, 182, 96, 0.16);
  color: #0e6336;
}

html[data-theme="dark"] .fuk-pantry-badge {
  color: #82f3b2;
}

/* ---------- 2. Accessible Toast Notification (#fuk-toast) ---------- */
.fuk-toast {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 16px) scale(0.96);
  opacity: 0;
  z-index: 260;
  max-width: min(92vw, 460px);
  padding: 11px 18px;
  border-radius: 999px;
  background: #0b2416;
  color: #f5f2ea;
  border: 1.5px solid #19b660;
  box-shadow: 0 18px 40px rgba(7, 17, 11, 0.34);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  pointer-events: none;
  transition: transform 200ms var(--spring, cubic-bezier(0.22, 1, 0.36, 1)), opacity 180ms ease;
}

.fuk-toast.is-visible {
  transform: translate(-50%, 0) scale(1);
  opacity: 1;
}

.fuk-toast[data-tone="warn"] {
  border-color: #f59e0b;
}

.fuk-toast[data-tone="action"],
.fuk-toast[data-tone="error"] {
  border-color: #e5232d;
}

/* ---------- 3. Universal Cmd/Ctrl+K Spotlight Search ---------- */
.fuk-spotlight-modal,
.fuk-quick-modal,
.fuk-unlock-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(7, 17, 11, 0.68);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: min(7vh, 52px) 14px 16px;
}

.fuk-quick-modal,
.fuk-unlock-modal {
  align-items: center;
}

.fuk-spotlight-card {
  width: 100%;
  max-width: 780px;
  max-height: min(84dvh, 740px);
  background: var(--surface, #ffffff);
  color: var(--text, #141a16);
  border: 1.5px solid var(--border-strong, #cfc8ba);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(7, 17, 11, 0.32);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fukTabEnter 180ms var(--spring, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

.fuk-spotlight-head {
  padding: 16px 18px 12px;
  background: var(--surface-sage, #edf5f0);
  border-bottom: 1px solid var(--border, #e4dfd5);
  display: grid;
  gap: 10px;
}

.fuk-spotlight-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.fuk-spotlight-search-ico {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.fuk-spotlight-input-wrap input {
  flex: 1 1 auto;
  min-width: 0;
  font-size: max(16px, 1rem);
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong, #cfc8ba);
  background: var(--surface, #ffffff);
  color: var(--text, #141a16);
}

.fuk-spotlight-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fuk-spot-chip {
  appearance: none;
  min-height: 32px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong, #cfc8ba);
  background: var(--surface, #ffffff);
  color: var(--text-2, #46524b);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 150ms var(--spring, cubic-bezier(0.22, 1, 0.36, 1)),
              background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.fuk-spot-chip:active {
  transform: scale(0.96);
}

.fuk-spot-chip.is-active {
  background: var(--primary, #155e3a);
  border-color: var(--primary, #155e3a);
  color: #ffffff;
}

html[data-theme="dark"] .fuk-spot-chip.is-active {
  background: var(--accent, #19b660);
  border-color: var(--accent, #19b660);
  color: #062112;
}

.fuk-spotlight-results {
  overflow-y: auto;
  padding: 12px 16px 16px;
  display: grid;
  gap: 8px;
}

.fuk-spot-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1.5px solid var(--border, #e4dfd5);
  background: var(--surface-2, #edf5f0);
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.fuk-spot-row.is-selected,
.fuk-spot-row:hover {
  border-color: var(--primary, #155e3a);
  background: var(--surface-sage, #edf5f0);
}

.fuk-spot-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface, #ffffff);
  border: 1.5px solid var(--border, #e4dfd5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.fuk-spot-copy {
  min-width: 0;
}

.fuk-spot-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.fuk-spot-title-line strong {
  font-size: 0.93rem;
  color: var(--text, #141a16);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fuk-spot-tag {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.67rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--surface, #ffffff);
  color: var(--text-2, #46524b);
  border: 1px solid var(--border, #e4dfd5);
  flex-shrink: 0;
}

.fuk-spot-sub {
  display: block;
  font-size: 0.8rem;
  color: var(--text-2, #46524b);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}

.fuk-spot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fuk-spot-empty {
  text-align: center;
  padding: 24px 16px;
  color: var(--text-2, #46524b);
}

.fuk-spotlight-foot {
  padding: 10px 16px;
  border-top: 1px solid var(--border, #e4dfd5);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.72rem;
  color: var(--text-2, #46524b);
}

/* ---------- 4. Quick Recipe Modal ---------- */
.fuk-quick-card {
  width: 100%;
  max-width: 720px;
  max-height: min(88dvh, 780px);
  overflow-y: auto;
  background: var(--surface, #ffffff);
  color: var(--text, #141a16);
  border: 1.5px solid var(--border-strong, #cfc8ba);
  border-radius: 24px;
  padding: 22px;
  display: grid;
  gap: 16px;
  box-shadow: 0 24px 60px rgba(7, 17, 11, 0.34);
  animation: fukTabEnter 190ms var(--spring, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

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

.fuk-quick-head h2 {
  margin: 6px 0 4px;
  font-family: var(--display, Anton, Impact, sans-serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.05;
}

.fuk-quick-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fuk-quick-tagline {
  margin: 0;
  color: var(--text-2, #46524b);
  font-size: 0.94rem;
}

.fuk-quick-section {
  background: var(--surface-2, #edf5f0);
  border: 1px solid var(--border, #e4dfd5);
  border-radius: 16px;
  padding: 14px 16px;
}

.fuk-quick-section h3 {
  margin: 0 0 10px;
  font-size: 0.96rem;
}

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

.fuk-qr-ing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border, #e4dfd5);
  font-size: 0.9rem;
}

.fuk-qr-ing-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.fuk-qr-prep {
  color: var(--text-2, #46524b);
  font-size: 0.84rem;
}

.fuk-qr-steps {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 7px;
  font-size: 0.9rem;
  color: var(--text-2, #46524b);
}

.fuk-qr-steps strong {
  color: var(--text, #141a16);
}

.fuk-quick-tip {
  background: var(--surface-sage, #edf5f0);
  border-left: 4px solid var(--accent, #19b660);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.9rem;
}

.fuk-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border, #e4dfd5);
}

/* ---------- 5. Tab 06: 12 Kitchen Laws, Oil Cheat Sheet & Pantry Matrix ---------- */
.fuk-rules-shell {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.fuk-rules-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e4dfd5);
  border-radius: 22px;
  padding: 22px;
}

.fuk-rules-header h2 {
  margin: 6px 0 6px;
  font-family: var(--display, Anton, Impact, sans-serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 1.05;
}

.fuk-rules-header p {
  margin: 0;
  max-width: 62ch;
  color: var(--text-2, #46524b);
}

.fuk-rules-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fuk-laws-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.fuk-law-card {
  background: var(--surface, #ffffff);
  border: 1.5px solid var(--border, #e4dfd5);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 8px;
  align-content: start;
  transition: transform 180ms var(--spring, cubic-bezier(0.22, 1, 0.36, 1)), border-color 180ms ease;
}

.fuk-law-card:hover,
.fuk-law-card.is-highlighted {
  border-color: var(--primary, #155e3a);
  transform: translateY(-2px);
}

.fuk-law-num {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary, #155e3a);
  letter-spacing: 0.08em;
}

html[data-theme="dark"] .fuk-law-num {
  color: var(--accent, #19b660);
}

.fuk-law-card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.28;
}

.fuk-law-card p {
  margin: 0;
  font-size: 0.89rem;
  line-height: 1.52;
  color: var(--text-2, #46524b);
}

.fuk-law-highlight {
  margin-top: auto;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--surface-sage, #edf5f0);
  border-left: 3px solid var(--accent, #19b660);
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text, #141a16);
}

.fuk-oil-sheet,
.fuk-pantry-ref-card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e4dfd5);
  border-radius: 22px;
  padding: 22px;
  display: grid;
  gap: 16px;
  min-width: 0;
}

.fuk-subhead h3,
.fuk-pantry-ref-top h3 {
  margin: 4px 0 4px;
  font-family: var(--display, Anton, Impact, sans-serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}

.fuk-subhead p,
.fuk-pantry-ref-top p {
  margin: 0;
  color: var(--text-2, #46524b);
  font-size: 0.92rem;
}

.fuk-oil-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.fuk-oil-col {
  border-radius: 18px;
  padding: 16px;
  border: 1.5px solid var(--border, #e4dfd5);
  background: var(--surface-2, #edf5f0);
  display: grid;
  gap: 12px;
  align-content: start;
}

.fuk-oil-col.is-heat-safe {
  border-color: rgba(21, 94, 58, 0.35);
}

.fuk-oil-col.is-raw-only {
  border-color: rgba(217, 119, 6, 0.38);
}

.fuk-oil-col-head h4 {
  margin: 6px 0 0;
  font-size: 1.02rem;
}

.fuk-oil-badge {
  display: inline-block;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}

.fuk-oil-badge.is-green {
  background: #155e3a;
  color: #ffffff;
}

.fuk-oil-badge.is-amber {
  background: #b45309;
  color: #ffffff;
}

.fuk-oil-list {
  display: grid;
  gap: 10px;
}

.fuk-oil-row {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e4dfd5);
  border-radius: 13px;
  padding: 11px 13px;
}

.fuk-oil-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.fuk-oil-row p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-2, #46524b);
}

.fuk-pantry-ref-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.fuk-pantry-ref-controls {
  display: grid;
  gap: 8px;
  min-width: min(100%, 340px);
}

.fuk-rules-search {
  font-size: max(16px, 1rem);
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong, #cfc8ba);
  background: var(--bg, #faf8f4);
  color: var(--text, #141a16);
}

.fuk-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border, #e4dfd5);
  border-radius: 16px;
}

.fuk-pantry-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.88rem;
}

.fuk-pantry-table th,
.fuk-pantry-table td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--border, #e4dfd5);
  text-align: left;
  vertical-align: middle;
}

.fuk-pantry-table th {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--surface-sage, #edf5f0);
  color: var(--text-2, #46524b);
}

.fuk-pantry-table tr.is-owned {
  background: rgba(25, 182, 96, 0.08);
}

.fuk-pantry-check-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.fuk-pantry-check-cell input {
  width: 18px;
  min-width: 18px;
  max-width: 18px;
  height: 18px;
  padding: 0;
  accent-color: var(--primary, #155e3a);
  flex-shrink: 0;
}

.fuk-pantry-check-cell span {
  display: grid;
  line-height: 1.25;
}

.fuk-pantry-check-cell small {
  color: var(--text-2, #46524b);
  font-size: 0.76rem;
}

.fuk-table-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.fuk-dshea-bar {
  background: var(--surface-sage, #edf5f0);
  border: 1px solid var(--border, #e4dfd5);
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 0.84rem;
  color: var(--text-2, #46524b);
}

/* ---------- 6. Tab 05 Mastery Lab & Viral 9:16 Story Studio ---------- */
.fuk-mastery-shell {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.fuk-mastery-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e4dfd5);
  border-radius: 18px;
  padding: 10px;
}

.fuk-mastery-tab {
  appearance: none;
  flex: 1 1 180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 13px;
  border: 1.5px solid var(--border, #e4dfd5);
  background: var(--surface-2, #edf5f0);
  color: var(--text, #141a16);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: transform 160ms var(--spring, cubic-bezier(0.22, 1, 0.36, 1)),
              background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

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

.fuk-mastery-tab.is-active {
  background: var(--primary, #155e3a);
  border-color: var(--primary, #155e3a);
  color: #ffffff;
}

html[data-theme="dark"] .fuk-mastery-tab.is-active {
  background: var(--accent, #19b660);
  border-color: var(--accent, #19b660);
  color: #062112;
}

.fuk-mastery-count {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
}

.fuk-mastery-tab.is-active .fuk-mastery-count {
  background: rgba(255, 255, 255, 0.22);
}

.fuk-mastery-card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e4dfd5);
  border-radius: 22px;
  padding: 22px;
  display: grid;
  gap: 18px;
  min-width: 0;
}

.fuk-mastery-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.fuk-mastery-head h3 {
  margin: 4px 0 4px;
  font-family: var(--display, Anton, Impact, sans-serif);
  font-weight: 400;
  font-size: clamp(1.45rem, 2.8vw, 2.05rem);
}

.fuk-mastery-head p {
  margin: 0;
  color: var(--text-2, #46524b);
  max-width: 60ch;
}

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

.fuk-staple-tile {
  appearance: none;
  text-align: left;
  padding: 12px 13px;
  border-radius: 16px;
  border: 1.5px solid var(--border, #e4dfd5);
  background: var(--surface-2, #edf5f0);
  color: var(--text, #141a16);
  display: grid;
  gap: 5px;
  cursor: pointer;
  transition: transform 150ms var(--spring, cubic-bezier(0.22, 1, 0.36, 1)),
              border-color 150ms ease, background-color 150ms ease;
}

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

.fuk-staple-tile.is-owned {
  background: rgba(25, 182, 96, 0.14);
  border-color: var(--primary, #155e3a);
}

.fuk-staple-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.fuk-staple-emoji {
  font-size: 1.3rem;
}

.fuk-staple-check {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--surface, #ffffff);
  color: var(--text-2, #46524b);
}

.fuk-staple-tile.is-owned .fuk-staple-check {
  background: var(--primary, #155e3a);
  color: #ffffff;
}

.fuk-staple-tile strong {
  font-size: 0.88rem;
  line-height: 1.2;
}

.fuk-staple-tile small {
  font-size: 0.75rem;
  color: var(--text-2, #46524b);
}

.fuk-readiness-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.fuk-readiness-bucket {
  background: var(--surface-2, #edf5f0);
  border: 1px solid var(--border, #e4dfd5);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.fuk-readiness-bucket h4 {
  margin: 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fuk-ready-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
}

.fuk-ready-meal {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e4dfd5);
  border-radius: 14px;
  padding: 11px 13px;
  display: grid;
  gap: 7px;
}

.fuk-ready-meal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.fuk-ready-meal-top strong {
  font-size: 0.91rem;
}

.fuk-ready-missing {
  font-size: 0.79rem;
  color: var(--text-2, #46524b);
}

.fuk-ready-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* 60-Second Kitchen Challenges */
.fuk-challenge-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.35fr);
  gap: 18px;
  align-items: start;
}

.fuk-challenge-list {
  display: grid;
  gap: 8px;
}

.fuk-challenge-pick {
  appearance: none;
  text-align: left;
  padding: 12px 14px;
  border-radius: 15px;
  border: 1.5px solid var(--border, #e4dfd5);
  background: var(--surface-2, #edf5f0);
  color: var(--text, #141a16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: transform 150ms var(--spring, cubic-bezier(0.22, 1, 0.36, 1)), border-color 150ms ease;
}

.fuk-challenge-pick:active {
  transform: scale(0.98);
}

.fuk-challenge-pick.is-active {
  border-color: var(--primary, #155e3a);
  background: var(--surface, #ffffff);
  box-shadow: 0 8px 20px rgba(21, 94, 58, 0.12);
}

.fuk-challenge-pick.is-done {
  border-color: var(--accent, #19b660);
}

.fuk-challenge-stage {
  background: var(--surface-2, #edf5f0);
  border: 1.5px solid var(--border, #e4dfd5);
  border-radius: 20px;
  padding: 18px;
  display: grid;
  gap: 14px;
}

.fuk-challenge-timer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--surface-dark, #0f2e1c);
  color: #f5f2ea;
}

.fuk-challenge-clock {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 1.35rem;
  font-weight: 800;
  color: #82f3b2;
}

.fuk-challenge-clock.is-low {
  color: #fca5a5;
}

.fuk-challenge-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fuk-choice-chip {
  appearance: none;
  min-height: 38px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong, #cfc8ba);
  background: var(--surface, #ffffff);
  color: var(--text, #141a16);
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  transition: transform 150ms var(--spring, cubic-bezier(0.22, 1, 0.36, 1)), background-color 150ms ease, border-color 150ms ease;
}

.fuk-choice-chip:active {
  transform: scale(0.96);
}

.fuk-choice-chip.is-selected {
  background: var(--primary, #155e3a);
  border-color: var(--primary, #155e3a);
  color: #ffffff;
}

.fuk-challenge-feedback {
  padding: 13px 15px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.48;
  border: 1.5px solid var(--border, #e4dfd5);
  background: var(--surface, #ffffff);
}

.fuk-challenge-feedback.is-win {
  border-color: var(--accent, #19b660);
  background: rgba(25, 182, 96, 0.12);
}

.fuk-challenge-feedback.is-retry {
  border-color: #d97706;
  background: rgba(217, 119, 6, 0.1);
}

/* Cook Passport */
.fuk-passport-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.fuk-stat-tile {
  background: var(--surface-2, #edf5f0);
  border: 1px solid var(--border, #e4dfd5);
  border-radius: 16px;
  padding: 14px 16px;
}

.fuk-stat-tile span {
  display: block;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-2, #46524b);
}

.fuk-stat-tile strong {
  display: block;
  margin-top: 4px;
  font-family: var(--display, Anton, Impact, sans-serif);
  font-weight: 400;
  font-size: 1.75rem;
  color: var(--text, #141a16);
}

.fuk-passport-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--surface-muted, #f3efe8);
  overflow: hidden;
  margin-top: 8px;
}

.fuk-passport-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #155e3a, #19b660);
  transition: width 260ms var(--spring, cubic-bezier(0.22, 1, 0.36, 1));
}

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

.fuk-stamp-card {
  background: var(--surface-2, #edf5f0);
  border: 1.5px solid var(--border, #e4dfd5);
  border-radius: 15px;
  padding: 12px 13px;
  display: grid;
  gap: 8px;
}

.fuk-stamp-card.is-cooked {
  border-color: var(--accent, #19b660);
  background: rgba(25, 182, 96, 0.1);
}

/* Viral Sharing Studio */
.fuk-studio-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 20px;
  align-items: start;
}

.fuk-studio-controls {
  display: grid;
  gap: 14px;
}

.fuk-studio-preview-box {
  background: #07110b;
  border-radius: 20px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border: 1.5px solid #294134;
}

.fuk-studio-preview-box canvas {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

/* ---------- 7. Tab 06 Embedded Unlock Card & Modal (#fuk-unlock-root) ---------- */
.fuk-unlock-card {
  margin-top: 24px;
  background: linear-gradient(145deg, #0f2e1c 0%, #155e3a 100%);
  color: #f5f2ea;
  border-radius: 24px;
  padding: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  box-shadow: 0 18px 44px rgba(7, 17, 11, 0.18);
}

.fuk-unlock-card h3 {
  margin: 6px 0 8px;
  font-family: var(--display, Anton, Impact, sans-serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  color: #ffffff;
  line-height: 1.05;
}

.fuk-unlock-card p {
  margin: 0 0 12px;
  color: #d6eadc;
  font-size: 0.95rem;
}

.fuk-unlock-perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  color: #e9f5ed;
}

.fuk-unlock-form-panel {
  background: var(--surface, #ffffff);
  color: var(--text, #141a16);
  border-radius: 18px;
  padding: 20px;
  display: grid;
  gap: 12px;
}

.fuk-unlock-form-panel input[type="text"],
.fuk-unlock-form-panel input[type="email"] {
  width: 100%;
  font-size: max(16px, 1rem);
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong, #cfc8ba);
  background: var(--bg, #faf8f4);
  color: var(--text, #141a16);
}

.fuk-unlock-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.fuk-unlock-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.82rem;
  color: var(--text-2, #46524b);
  cursor: pointer;
}

.fuk-unlock-consent input {
  width: 18px;
  min-width: 18px;
  max-width: 18px;
  height: 18px;
  padding: 0;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--primary, #155e3a);
}

.fuk-unlock-notice,
.fuk-unlock-status {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-2, #46524b);
}

.fuk-unlock-modal-card {
  width: 100%;
  max-width: 520px;
  max-height: 90dvh;
  overflow-y: auto;
  background: var(--surface, #ffffff);
  color: var(--text, #141a16);
  border: 1.5px solid var(--border-strong, #cfc8ba);
  border-radius: 24px;
  padding: 24px;
  display: grid;
  gap: 14px;
  box-shadow: 0 24px 64px rgba(7, 17, 11, 0.36);
  animation: fukTabEnter 190ms var(--spring, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

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

.fuk-unlock-modal-head h2 {
  margin: 4px 0 4px;
  font-family: var(--display, Anton, Impact, sans-serif);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.06;
}

/* ---------- 8. Clean 1-Page Kitchen Counter Print Sheet ---------- */
.fuk-print-sheet {
  display: none;
}

@media print {
  #fuk-campus-bar,
  header,
  nav,
  main,
  footer,
  .fuk-spotlight-modal,
  .fuk-quick-modal,
  .fuk-unlock-modal,
  .fuk-rail-arrow,
  .fuk-toast {
    display: none !important;
  }

  body {
    background: #ffffff !important;
    color: #111111 !important;
    padding: 0 !important;
  }

  .fuk-print-sheet {
    display: block !important;
    padding: 16px 20px;
    background: #ffffff;
    color: #111111;
    font-family: Georgia, 'Times New Roman', serif;
  }

  .fuk-print-kicker {
    font-family: monospace;
    font-size: 9pt;
    letter-spacing: 0.08em;
    color: #155e3a;
    font-weight: 700;
  }

  .fuk-print-head {
    border-bottom: 2px solid #155e3a;
    padding-bottom: 10px;
    margin-bottom: 12px;
  }

  .fuk-print-head h1 {
    margin: 4px 0;
    font-size: 20pt;
  }

  .fuk-print-table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0 12px;
  }

  .fuk-print-table th,
  .fuk-print-table td {
    border: 1px solid #999999;
    padding: 6px 9px;
    text-align: left;
    font-size: 9.5pt;
  }

  .fuk-print-box {
    border: 1px solid #88968d;
    border-radius: 6px;
    padding: 9px 12px;
    margin-bottom: 10px;
    font-size: 9.5pt;
    line-height: 1.42;
  }

  .fuk-print-laws {
    margin: 6px 0 0;
    padding-left: 18px;
    display: grid;
    gap: 3px;
  }

  .fuk-print-foot {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #cccccc;
    font-size: 8.5pt;
    color: #444444;
  }
}

/* ---------- 9. Responsive Parity (iPhone 390px + Tablet) ---------- */
@media (max-width: 960px) {
  .fuk-oil-columns,
  .fuk-readiness-split,
  .fuk-challenge-layout,
  .fuk-studio-split,
  .fuk-unlock-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .fuk-campus-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 12px;
    gap: 6px;
  }

  .fuk-campus-left {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
  }

  .fuk-campus-links {
    width: 100%;
  }

  .fuk-campus-brand {
    display: none;
  }

  .fuk-campus-actions {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    -webkit-overflow-scrolling: touch;
  }

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

  .fuk-kbd {
    display: none;
  }

  .fuk-spot-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .fuk-spot-actions {
    grid-column: 1 / -1;
  }

  .fuk-rules-header,
  .fuk-oil-sheet,
  .fuk-pantry-ref-card,
  .fuk-mastery-card,
  .fuk-unlock-card {
    padding: 16px;
  }
}

/* ---------- University Hub Return Pill & Seamless Embedded Mode ---------- */
.fuk-campus-pill.is-hub {
  background: linear-gradient(135deg, #ffa53a, #ffcb6b);
  border-color: #e2871e;
  color: #0b2215;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(255, 165, 58, 0.25);
}

.fuk-campus-pill.is-hub:hover {
  background: linear-gradient(135deg, #ff961c, #ffd685);
  border-color: #c87211;
  color: #07150d;
}

html[data-theme="dark"] .fuk-campus-pill.is-hub {
  background: linear-gradient(135deg, #ffa53a, #ffd23f);
  border-color: #ffd23f;
  color: #07110b;
}

html[data-fuu-embedded="1"] {
  --fuk-campus-h: 0px !important;
}

html[data-fuu-embedded="1"] #fuk-campus-bar,
html[data-fuu-embedded="1"] #fuCampusBar {
  display: none !important;
}

html[data-fuu-embedded="1"] .fuk-tab-dock {
  top: 0 !important;
}

html[data-fuu-embedded="1"] .fuk-hero {
  padding-top: 14px !important;
  padding-bottom: 18px !important;
}

html[data-fuu-embedded="1"] .fuk-workspace-main {
  padding-top: 12px !important;
}
