/* ═══════════════════════════════════════════════════════════════════
   ALQY — styles.css v2.0.0
   Design token-first · Dark Luxury theme · Mobile-first
   ═══════════════════════════════════════════════════════════════════ */

/* ── Fonts ─────────────────────────────────────────────────────────── */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/inter/inter-v20-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/inter/inter-v20-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/inter/inter-v20-latin-600.woff2") format("woff2");
}

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/playfair/playfair-display-v40-latin-regular.woff2")
    format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/playfair/playfair-display-v40-latin-600.woff2")
    format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./fonts/playfair/playfair-display-v40-latin-700.woff2")
    format("woff2");
}

/* ── Tokens ────────────────────────────────────────────────────────── */
:root {
  color-scheme: dark;
  --bg: #08090a;
  --app-bg: #08090a;
  --body-glow: rgba(253, 186, 77, 0.05);
  --surface: rgba(20, 22, 26, 0.7);
  --surface-soft: rgba(30, 34, 42, 0.8);
  --surface-2: rgba(30, 34, 42, 0.8);
  --header-bg: rgba(8, 9, 10, 0.8);
  --border: rgba(255, 255, 255, 0.06);
  --text: #f5f2ed;
  --muted: #a1a1aa;
  --accent: #fdba4d;
  --accent-dk: #c47f00;
  --accent-contrast: #1a1202;
  --accent-hover: #fecf7a;
  --ok: #22c55e;
  --err: #ef4444;
  --warn: #f59e0b;
  --radius: 24px;
  --radius-sm: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-serif: "Playfair Display", serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fbf7ee;
  --body-glow: rgba(253, 186, 77, 0.22);
  --surface: rgba(255, 255, 255, 0.88);
  --surface-2: rgba(244, 236, 220, 0.94);
  --header-bg: rgba(255, 250, 240, 0.92);
  --border: rgba(26, 18, 2, 0.16);
  --text: #1a1202;
  --muted: #5f5549;
  --accent: #8d5400;
  --accent-dk: #1a1202;
  --accent-contrast: #fffaf0;
  --accent-hover: #6f4200;
  --shadow: 0 8px 28px rgba(68, 45, 12, 0.16);
}

:root[data-theme="light"] .input:focus,
:root[data-theme="light"] .input--search:focus {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0 0 3px rgba(253, 186, 77, 0.26);
}

:root[data-theme="light"] .app-header,
:root[data-theme="light"] .topbar {
  background: linear-gradient(
    180deg,
    rgba(255, 251, 242, 0.98),
    rgba(244, 236, 220, 0.96)
  );
  border-bottom-color: rgba(141, 84, 0, 0.28);
  box-shadow: 0 8px 24px rgba(68, 45, 12, 0.14);
}

:root[data-theme="light"] .app-header img[src*="icon-192-maskable"],
:root[data-theme="light"] .brand__icon {
  padding: 2px;
  background: linear-gradient(135deg, #1a1202, #5a3600);
  border: 1px solid rgba(141, 84, 0, 0.48);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72) inset,
    0 4px 12px rgba(68, 45, 12, 0.22);
}

:root[data-theme="light"] .app-logo,
:root[data-theme="light"] .brand__name {
  color: #5f3600;
  font-weight: 700;
}

:root[data-theme="light"] .app-tagline,
:root[data-theme="light"] .brand__tag {
  color: #4b4033;
  font-weight: 600;
}

:root[data-theme="light"] .app-nav a,
:root[data-theme="light"] .nav a {
  color: #4f463a;
}

/* ── Reset ─────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}
::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}
body {
  background: var(--bg);
  background-image: radial-gradient(
    circle at 50% 0%,
    var(--body-glow) 0%,
    transparent 50%
  );
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100dvh;
  overflow-x: hidden;
  width: 100%;
}

/* ── App splash ────────────────────────────────────────────────────── */
.alqy-splash {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: var(--bg);
  background:
    radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 42%),
    radial-gradient(circle at 50% 92%, color-mix(in srgb, var(--surface-soft) 42%, transparent), transparent 48%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 88%, #000 12%), var(--bg));
  opacity: 0;
  transition: opacity 0.24s ease;
  cursor: pointer;
}
.alqy-splash.is-visible {
  opacity: 1;
}
.alqy-splash.is-hiding {
  opacity: 0;
  pointer-events: none;
}
.alqy-splash__card {
  position: relative;
  z-index: 1;
  width: min(372px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
  border-radius: 28px;
  background: var(--surface);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 94%, transparent), color-mix(in srgb, var(--surface) 96%, transparent)),
    var(--surface);
  backdrop-filter: blur(18px) saturate(1.08);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.42),
    0 1px 0 color-mix(in srgb, var(--text) 12%, transparent) inset;
  transform: scale(0.84);
  transition: transform 0.32s ease;
}
.alqy-splash__card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--text) 12%, transparent), transparent 28%),
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 46%);
}
.alqy-splash.is-visible .alqy-splash__card {
  transform: scale(1);
}
.alqy-splash__brand {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  padding: 30px 24px 22px;
  text-align: center;
}
.alqy-splash__icon {
  width: clamp(84px, 26vw, 118px);
  height: clamp(84px, 26vw, 118px);
  object-fit: contain;
  margin-bottom: 14px;
  padding: 6px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 26px;
  background: color-mix(in srgb, var(--bg) 72%, #000 28%);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.26),
    0 1px 0 color-mix(in srgb, var(--text) 18%, transparent) inset;
}
.alqy-splash__name {
  color: var(--text);
  font-family: var(--font-serif);
  font-size: clamp(2.82rem, 14vw, 4.55rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}
.alqy-splash__tag {
  margin-top: 8px;
  color: var(--accent);
  font-weight: 900;
  font-size: clamp(0.84rem, 3.7vw, 1.08rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.alqy-splash__photo {
  position: relative;
  z-index: 1;
  display: block;
  width: calc(100% - 20px);
  margin: 0 10px 10px;
  aspect-ratio: 4 / 3.12;
  object-fit: cover;
  border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  border-radius: 20px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}
.alqy-splash__skip {
  position: fixed;
  right: 16px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-soft) 72%, transparent);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
}
.alqy-splash--reduced {
  transition-duration: 0.08s;
}

/* ── Appearance panel ──────────────────────────────────────────────── */
.appearance-panel__backdrop {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.58);
}
.appearance-panel {
  width: min(560px, 100%);
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-2);
  box-shadow: var(--shadow);
}
.appearance-panel__title {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1.05rem;
}
.appearance-panel__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.appearance-swatch {
  min-height: 44px;
  padding: 8px 10px 8px 36px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
  position: relative;
}
.appearance-swatch::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--swatch-bg);
  transform: translateY(-50%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.24) inset;
}
.appearance-swatch.is-active {
  border-color: var(--accent);
}
.appearance-panel__custom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-weight: 700;
}
.appearance-panel__custom input {
  width: 54px;
  height: 34px;
  border: 0;
  background: transparent;
}
.appearance-panel__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

/* ── Home hero ─────────────────────────────────────────────────────── */
.home-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(240px, 54vh, 520px);
  margin: -10px -16px 16px;
  background: #000;
}
.home-hero__video {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}
.home-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.58));
}
.home-hero__audio {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  right: 12px;
  z-index: 2;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: rgba(0,0,0,0.34);
  color: #fff;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
}
.home-hero__copy {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: #fff;
}
.home-hero__eyebrow {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.home-hero__title {
  margin-top: 4px;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  line-height: 1.05;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
select,
input,
textarea {
  font-family: inherit;
}
img {
  max-width: 100%;
  display: block;
}

/* ── Layout ────────────────────────────────────────────────────────── */
.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  width: 100%;
  overflow-x: hidden;
}
.app-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 12px;
  padding-top: env(safe-area-inset-top);
  display: flex;
  align-items: center;
  gap: 8px;
  height: calc(64px + env(safe-area-inset-top));
  width: 100%;
}
.app-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.5px;
}
.app-tagline {
  font-size: 0.78rem;
  color: var(--muted);
  display: none;
}
@media (min-width: 640px) {
  .app-tagline {
    display: inline-block;
  }
}
.app-nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
}
.app-nav a {
  padding: 6px 10px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  transition:
    background 0.2s,
    color 0.2s;
}
@media (min-width: 640px) {
  .app-nav {
    gap: 4px;
  }
  .app-nav a {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
}
.app-nav a:hover,
.app-nav a.active,
.app-nav a[aria-current="page"],
.nav a:hover,
.nav a.active,
.nav a[aria-current="page"] {
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  padding: 0;
  flex: 0 0 auto;
}
.theme-toggle__icon {
  font-size: 1rem;
  line-height: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 64px;
  padding: 0 12px;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.brand__icon {
  border-radius: 8px;
  flex-shrink: 0;
}
.brand__name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}
.brand__tag {
  display: none;
  color: var(--muted);
  font-size: 0.78rem;
}
.nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
}
.nav a {
  padding: 6px 10px;
  border-radius: 99px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}
.app {
  flex: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}
.footer {
  padding: 12px 16px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--border);
}
@media (min-width: 640px) {
  .brand__tag {
    display: inline-block;
  }
  .nav {
    gap: 4px;
  }
  .nav a {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
}
.app-main {
  flex: 1;
  padding: 20px 16px 40px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}
.app-footer {
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--border);
}

/* ── Net badge ─────────────────────────────────────────────────────── */
.net-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  letter-spacing: 0.3px;
}
.net--online {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.net--offline {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ── Card ──────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card__title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.card__sub {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.seed-card {
  cursor: pointer;
}
.seed-card:hover,
.seed-card:focus-visible {
  border-color: rgba(253, 186, 77, 0.28);
}
.seed-card--applied {
  background: rgba(34, 197, 94, 0.06);
}
.seed-view-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 0;
  padding: 12px;
  border: 1px solid rgba(253, 186, 77, 0.22);
  border-radius: 14px;
  background: rgba(253, 186, 77, 0.08);
}
@media (max-width: 640px) {
  .seed-view-notice {
    align-items: stretch;
    flex-direction: column;
  }
}

/* ── Typography ────────────────────────────────────────────────────── */
.h2 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 8px;
  line-height: 1.6;
}
.hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 8px;
}
.muted {
  color: var(--muted);
}
.label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 99px;
  border: 1px solid transparent;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--surface-2);
  color: var(--text);
  white-space: nowrap;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:active {
  transform: scale(0.96);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn--accent {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: var(--accent);
}
.btn--accent:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 15px rgba(253, 186, 77, 0.3);
}
.btn--ghost {
  background: transparent;
}
.btn--ghost:hover {
  background: var(--surface-2);
}
.btn--outline {
  border-color: var(--border);
}
.btn--danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}
.btn--danger:hover {
  background: rgba(239, 68, 68, 0.25);
}

/* ── Input / Select ────────────────────────────────────────────────── */
.input {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  transition: all 0.2s ease;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.input:focus {
  border-color: var(--accent);
  background: rgba(30, 34, 42, 0.95);
  box-shadow: 0 0 0 2px rgba(253, 186, 77, 0.1);
}
.input::placeholder {
  color: var(--muted);
}

.password-field {
  position: relative;
  width: 100%;
}
.password-field .input {
  padding-right: 52px;
}
.password-visibility-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    color 0.2s ease,
    background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.password-visibility-btn:hover,
.password-visibility-btn:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  outline: none;
}
.password-visibility-btn svg {
  flex-shrink: 0;
}

/* Remove native cancel button for search inputs */
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

/* ── Premium Polish ────────────────────────────────────────────────── */
@keyframes pop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
.animate-pop {
  animation: pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.detail-header {
  margin-bottom: 14px;
  padding-bottom: 0;
}
.detail-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.recipe-detail {
  touch-action: pan-y;
}
.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.detail-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
  margin: 0;
  min-width: 0;
}
.detail-position-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(253, 186, 77, 0.26);
  border-radius: 999px;
  background: rgba(253, 186, 77, 0.12);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}
.detail-sticky-header {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 8px);
  left: 50%;
  z-index: 420;
  width: min(868px, calc(100vw - 24px));
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(10, 12, 18, 0.82);
  color: var(--text);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -12px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.detail-sticky-header.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.detail-sticky-header__back {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1;
}
.detail-sticky-header__title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 850;
}
.detail-position-pill--sticky {
  min-height: 28px;
  min-width: 44px;
  padding: 4px 9px;
  font-size: 0.74rem;
}
.detail-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.drink-hero {
  margin: 0 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  position: relative;
}
.detail-media-shell {
  position: relative;
  margin: 0 0 24px;
}
.detail-media-shell .drink-hero {
  margin-bottom: 0;
}
.drink-hero__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.04);
  cursor: zoom-in;
}
.drink-hero--group-large .drink-hero__image {
  object-position: 70% center;
}
.detail-desktop-nav__btn {
  display: none;
}
.drink-hero__caption {
  padding: 8px 12px;
  color: rgba(245, 242, 237, 0.64);
  font-size: 0.76rem;
  letter-spacing: 0.01em;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.drink-hero__watermark {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(10, 12, 18, 0.56);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.drink-hero__watermark img {
  width: 18px;
  height: 18px;
  border-radius: 6px;
}
.drink-hero__jump {
  position: absolute;
  left: 50%;
  bottom: 44px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 999px;
  background: rgba(10, 12, 18, 0.56);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
  transform: translateX(-50%);
  animation: alqy-bounce 1.18s ease-in-out infinite;
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
}
.drink-hero__jump.is-returning {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 64px);
  right: 18px;
  bottom: auto;
  left: auto;
  z-index: 460;
  background: rgba(10, 12, 18, 0.78);
  transform: none;
  animation-name: alqy-float-up-fixed;
}
.drink-hero__jump.is-soft {
  opacity: 0;
  pointer-events: none;
  animation-play-state: paused;
}
.detail-return-float {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 64px);
  right: 18px;
  z-index: 465;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 999px;
  background: rgba(10, 12, 18, 0.78);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  animation: alqy-float-up-fixed 1.18s ease-in-out infinite;
}
.detail-return-float.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
@keyframes alqy-bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}
@keyframes alqy-bounce-up {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-8px);
  }
}
@keyframes alqy-float-up-fixed {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}
.detail-swipe-hint {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
  z-index: 430;
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  max-width: min(338px, calc(100vw - 28px));
  padding: 10px 13px;
  border: 1px solid rgba(253, 186, 77, 0.32);
  border-radius: 999px;
  background: rgba(10, 12, 18, 0.84);
  color: var(--text);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.detail-swipe-hint.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.detail-swipe-hint__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 800;
}
.detail-swipe-hint__arrow {
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
  animation: alqy-swipe-arrow 1.12s ease-in-out infinite;
}
.detail-swipe-hint__arrow:first-child {
  animation-direction: reverse;
}
@keyframes alqy-swipe-arrow {
  0%, 100% {
    transform: translateX(0);
    opacity: 0.58;
  }
  50% {
    transform: translateX(4px);
    opacity: 1;
  }
}
.detail-sections {
  display: grid;
  gap: 22px;
  margin-bottom: 30px;
  scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 72px);
}
@media (min-width: 760px) {
  .detail-sections {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: start;
    gap: 32px;
  }
  .detail-media-shell--navigable {
    padding-inline: 38px;
  }
  .detail-desktop-nav__btn {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(253, 186, 77, 0.26);
    border-radius: 999px;
    background: rgba(10, 12, 18, 0.82);
    color: var(--accent);
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
    transform: translateY(-50%);
  }
  .detail-desktop-nav__btn--prev {
    left: 0;
  }
  .detail-desktop-nav__btn--next {
    right: 0;
  }
}
.detail-section {
  min-width: 0;
}
.detail-meta-sheet {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.detail-meta-sheet__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.detail-meta-sheet__label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}
.detail-meta-sheet__value {
  color: var(--text);
  text-align: right;
  font-size: 0.9rem;
}
.image-zoom {
  position: fixed;
  inset: 0;
  z-index: 7000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.88);
}
.image-zoom__img {
  max-width: 100%;
  max-height: 86vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 18px 64px rgba(0, 0, 0, 0.58);
}
.image-zoom__close {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  right: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
}
.detail-scroll-hint {
  position: fixed;
  right: 16px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 72px);
  z-index: 250;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(253, 186, 77, 0.34);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.44);
  color: var(--accent);
  box-shadow: var(--shadow);
}
.detail-scroll-hint.is-soft {
  opacity: 0.38;
}
.prep-techniques__label {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(253, 186, 77, 0.12);
  color: var(--accent);
  font-weight: 800;
}
.detail-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 22px;
}
.drink-nav {
  display: grid;
  gap: 10px;
  clear: both;
  margin: 0 0 24px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}
.drink-nav__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(245, 242, 237, 0.72);
  font-size: 0.82rem;
}
.drink-nav__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.drink-nav__count {
  flex: 0 0 auto;
  color: var(--accent);
  font-weight: 700;
}
.drink-nav__actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.drink-nav__btn {
  width: 100%;
  justify-content: center;
}
.drink-nav__btn[disabled] {
  cursor: not-allowed;
  opacity: 0.42;
}
.detail-versions {
  display: grid;
  gap: 12px;
  margin: -4px 0 22px;
  padding: 14px;
  border: 1px solid rgba(253, 186, 77, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(253, 186, 77, 0.1), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.035);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
}
.detail-versions__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}
.detail-versions__copy {
  min-width: 0;
}
.detail-versions__eyebrow {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.detail-versions__title {
  margin: 2px 0 0;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.2;
}
.detail-versions__hint {
  margin: 4px 0 0;
  color: rgba(245, 242, 237, 0.68);
  font-size: 0.82rem;
}
.detail-versions__current {
  flex: 0 0 auto;
  max-width: 46%;
  padding: 6px 10px;
  border: 1px solid rgba(253, 186, 77, 0.24);
  border-radius: 999px;
  background: rgba(253, 186, 77, 0.12);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.detail-versions__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}
.detail-version-chip {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(10, 12, 16, 0.28);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}
.detail-version-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(253, 186, 77, 0.34);
  background: rgba(253, 186, 77, 0.08);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}
.detail-version-chip.is-active {
  border-color: rgba(253, 186, 77, 0.58);
  background:
    linear-gradient(135deg, rgba(253, 186, 77, 0.24), rgba(253, 186, 77, 0.1)),
    rgba(253, 186, 77, 0.08);
  box-shadow:
    0 14px 28px rgba(253, 186, 77, 0.08),
    0 0 0 1px rgba(253, 186, 77, 0.12) inset;
}
.detail-version-chip:disabled {
  cursor: default;
}
.detail-version-chip__label,
.detail-version-chip__name,
.detail-version-chip__meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.detail-version-chip__label {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 850;
}
.detail-version-chip__name {
  color: rgba(245, 242, 237, 0.72);
  font-size: 0.78rem;
}
.detail-version-chip__meta {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
}
.detail-source-badge {
  background: rgba(253, 186, 77, 0.1);
  border-color: rgba(253, 186, 77, 0.22);
  color: var(--accent);
}
@media (max-width: 640px) {
  .detail-title-row {
    align-items: center;
  }
  .detail-title {
    font-size: 1.72rem;
  }
  .detail-position-pill {
    min-width: 44px;
    min-height: 28px;
    padding: 4px 9px;
    font-size: 0.74rem;
  }
  .drink-hero {
    margin-left: -2px;
    margin-right: -2px;
    border-radius: 16px;
  }
  .drink-hero__image {
    aspect-ratio: 1 / 1;
  }
  .drink-hero--group-large .drink-hero__image {
    aspect-ratio: 4 / 3;
    object-position: 68% center;
  }
  .drink-hero__jump {
    bottom: 38px;
    width: 40px;
    height: 40px;
  }
  .detail-sticky-header {
    width: calc(100vw - 16px);
    top: calc(env(safe-area-inset-top, 0px) + 6px);
  }
  .drink-nav__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .drink-nav__btn {
    min-height: 40px;
    padding-inline: 8px;
  }
  .detail-versions__head {
    flex-direction: column;
  }
  .detail-versions__current {
    max-width: 100%;
  }
  .detail-versions__grid {
    grid-template-columns: 1fr;
  }
}

.ing-list {
  list-style: none;
  padding: 0;
}
.ing-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.2s;
}
.ing-item:last-child {
  border-bottom: none;
}
.ing-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  cursor: pointer;
  accent-color: var(--accent);
}
.ing--done {
  opacity: 0.5;
  color: var(--muted);
  text-decoration: line-through;
}

.section-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 600;
}

/* Glassmorphism for detail card */
.glass-card {
  background: rgba(30, 34, 42, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.glass-card > .p {
  color: rgba(245, 242, 237, 0.78) !important;
}

.glass-card .section-title {
  color: var(--accent);
  font-weight: 700;
}

.glass-card .badge--ok {
  background: rgba(34, 197, 94, 0.14);
  color: #8df0b0;
  border-color: rgba(34, 197, 94, 0.28);
}

.glass-card .ing-list {
  display: flex;
  flex-direction: column;
}

.glass-card .ing-item {
  color: rgba(245, 242, 237, 0.92);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 12px;
}

.glass-card .ing-item + .ing-item {
  margin-top: 8px;
}

.glass-card .ing-item input[type="checkbox"] {
  accent-color: var(--accent);
}

.glass-card .ing--done {
  color: rgba(245, 242, 237, 0.52);
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.05);
}

.glass-card .ol {
  gap: 8px;
}

.glass-card .ol li {
  color: rgba(245, 242, 237, 0.92);
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid rgba(253, 186, 77, 0.62);
  border-radius: 10px;
}

.glass-card .ol li::marker {
  color: var(--accent);
  font-weight: 700;
}

.prep-step {
  margin-bottom: 10px;
}

.prep-step__text {
  line-height: 1.55;
}

.prep-techniques {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.prep-techniques__label {
  font-size: 12px;
  color: rgba(245, 242, 237, 0.62);
}

.prep-technique-chip {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 12px;
}

.technique-modal {
  max-height: min(720px, calc(100vh - 32px));
  overflow: auto;
}

.technique-modal__section {
  margin-top: 18px;
}

.technique-modal__heading {
  font-size: 13px;
  color: var(--accent);
  margin: 0 0 8px;
  font-weight: 700;
}

.technique-modal__list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text);
}

.technique-modal__list li {
  line-height: 1.45;
}

:root[data-theme="light"] .glass-card {
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(250, 243, 230, 0.96));
  border-color: rgba(141, 84, 0, 0.22);
  box-shadow:
    0 16px 40px rgba(68, 45, 12, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

:root[data-theme="light"] .detail-header {
  border-bottom-color: rgba(141, 84, 0, 0.18);
}

:root[data-theme="light"] .detail-title {
  color: #2b1a02;
}

:root[data-theme="light"] .detail-position-pill {
  background: rgba(141, 84, 0, 0.1);
  border-color: rgba(141, 84, 0, 0.22);
  color: #7a4700;
}

:root[data-theme="light"] .detail-sticky-header {
  background: rgba(255, 250, 240, 0.9);
  border-color: rgba(141, 84, 0, 0.18);
  color: #2b1a02;
  box-shadow: 0 16px 36px rgba(68, 45, 12, 0.16);
}

:root[data-theme="light"] .detail-sticky-header__back {
  background: rgba(141, 84, 0, 0.08);
  border-color: rgba(141, 84, 0, 0.18);
  color: #2b1a02;
}

:root[data-theme="light"] .detail-meta {
  color: #5c4b38;
}

:root[data-theme="light"] .drink-hero {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(141, 84, 0, 0.18);
  box-shadow: 0 14px 34px rgba(68, 45, 12, 0.13);
}

:root[data-theme="light"] .drink-hero__image {
  background: rgba(244, 236, 220, 0.72);
}

:root[data-theme="light"] .drink-hero__caption {
  color: #665a4b;
  border-top-color: rgba(141, 84, 0, 0.14);
}

:root[data-theme="light"] .drink-hero__jump.is-returning,
:root[data-theme="light"] .detail-return-float,
:root[data-theme="light"] .detail-swipe-hint {
  background: rgba(255, 250, 240, 0.9);
  border-color: rgba(141, 84, 0, 0.24);
  color: #2b1a02;
  box-shadow: 0 16px 36px rgba(68, 45, 12, 0.16);
}

:root[data-theme="light"] .drink-nav {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(141, 84, 0, 0.15);
}

:root[data-theme="light"] .drink-nav__meta {
  color: #5f5549;
}
:root[data-theme="light"] .detail-desktop-nav__btn,
:root[data-theme="light"] .badge--group {
  background: rgba(255, 250, 240, 0.92);
  border-color: rgba(141, 84, 0, 0.24);
  color: #7a4700;
  box-shadow: 0 16px 36px rgba(68, 45, 12, 0.14);
}

:root[data-theme="light"] .detail-versions {
  background:
    linear-gradient(135deg, rgba(141, 84, 0, 0.1), rgba(255, 255, 255, 0.72)),
    rgba(255, 255, 255, 0.68);
  border-color: rgba(141, 84, 0, 0.18);
  box-shadow:
    0 16px 36px rgba(68, 45, 12, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.92) inset;
}

:root[data-theme="light"] .detail-versions__hint {
  color: #665a4b;
}

:root[data-theme="light"] .detail-versions__current {
  background: rgba(141, 84, 0, 0.1);
  border-color: rgba(141, 84, 0, 0.22);
  color: #7a4700;
}

:root[data-theme="light"] .detail-version-chip {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(141, 84, 0, 0.13);
  color: #2b1a02;
}

:root[data-theme="light"] .detail-version-chip:hover {
  background: rgba(255, 248, 235, 0.92);
  border-color: rgba(141, 84, 0, 0.28);
  box-shadow: 0 12px 24px rgba(68, 45, 12, 0.1);
}

:root[data-theme="light"] .detail-version-chip.is-active {
  background:
    linear-gradient(135deg, rgba(141, 84, 0, 0.18), rgba(255, 255, 255, 0.84)),
    rgba(255, 248, 235, 0.9);
  border-color: rgba(141, 84, 0, 0.36);
  box-shadow:
    0 14px 28px rgba(68, 45, 12, 0.11),
    0 0 0 1px rgba(141, 84, 0, 0.08) inset;
}

:root[data-theme="light"] .detail-version-chip__name {
  color: #665a4b;
}

:root[data-theme="light"] .detail-version-chip__meta {
  color: #7a4700;
}

:root[data-theme="light"] .glass-card > .p {
  color: #4f463a !important;
}

:root[data-theme="light"] .glass-card .section-title {
  color: #7a4700;
  font-weight: 700;
}

:root[data-theme="light"] .glass-card .badge--ok {
  background: rgba(28, 112, 63, 0.12);
  color: #17613b;
  border-color: rgba(28, 112, 63, 0.28);
}

:root[data-theme="light"] .glass-card .ing-item {
  color: #2f2416;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(141, 84, 0, 0.14);
  border-radius: 12px;
}

:root[data-theme="light"] .glass-card .ing-item + .ing-item {
  margin-top: 8px;
}

:root[data-theme="light"] .glass-card .ing-item input[type="checkbox"] {
  accent-color: #8d5400;
}

:root[data-theme="light"] .glass-card .ing--done {
  color: #6b6256;
  background: rgba(244, 236, 220, 0.72);
  border-color: rgba(141, 84, 0, 0.08);
}

:root[data-theme="light"] .glass-card .ol {
  gap: 8px;
}

:root[data-theme="light"] .glass-card .ol li {
  color: #2f2416;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.56);
  border-left: 3px solid rgba(141, 84, 0, 0.56);
  border-radius: 10px;
}

:root[data-theme="light"] .glass-card .ol li::marker {
  color: #7a4700;
  font-weight: 700;
}

:root[data-theme="light"] .prep-techniques__label {
  color: #6b6256;
}

.search-header.is-collapsed {
  padding: 8px 0 !important;
  box-shadow: none !important;
  border-color: transparent !important;
}
.search-header.is-collapsed .chips-bar-wrapper {
  margin-top: 0;
}

.btn-toggle-search {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  z-index: 15;
  transition: all 0.2s;
}
.btn-toggle-search:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(253, 186, 77, 0.1);
}

.search-header.is-collapsed .input--search,
.search-header.is-collapsed .btn-clear-search,
.search-header.is-collapsed .home-search-assist,
.search-header.is-collapsed .home-search-suggestion {
  display: none !important;
}
.search-header.is-collapsed .search-input-wrapper {
  margin-bottom: 0;
  justify-content: center;
  width: 100%;
}
.search-header.is-collapsed .btn-toggle-search {
  position: relative;
  right: 0;
  top: 0;
  transform: none;
  width: 100%;
  max-width: 100%;
  height: 48px;
  border-radius: 99px;
  background: var(--surface-2);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 20px;
  gap: 12px;
  border: 1px solid var(--border);
  font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-toggle-search span {
  display: none;
}
.btn-toggle-search svg {
  min-width: 16px;
  flex-shrink: 0;
}
.search-header.is-collapsed .btn-toggle-search span {
  display: inline;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Favorite button width stability */
.btn-fav-stable {
  min-width: 150px;
  justify-content: center;
}

.home-actions-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-bottom: 4px;
}

.home-action-chip {
  width: 100%;
  min-width: 0;
  height: 34px;
  justify-content: center;
  padding: 0 12px;
  box-sizing: border-box;
}

.home-action-chip[style*="none"] {
  display: none !important;
}

@media (min-width: 720px) {
  .home-actions-row {
    display: flex;
    flex-wrap: wrap;
  }

  .home-action-chip {
    flex: 0 0 150px;
    width: 150px;
    min-width: 150px;
  }
}

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

/* ── Chips ─────────────────────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition:
    background 0.12s,
    border-color 0.12s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.chip--active,
.chip--on {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: var(--accent);
}
.chip--icon.chip--on {
  background: rgba(253, 186, 77, 0.1);
  color: var(--accent);
  border-color: var(--accent);
}
.chip--ghost {
  background: transparent;
}
.chip--ghost:hover {
  background: var(--surface-2);
}

/* ── Badge ─────────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.badge--ok {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.25);
}
.badge--warn {
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.25);
}
.badge--err {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.25);
}
.badge--group {
  background: rgba(253, 186, 77, 0.12);
  color: var(--accent);
  border-color: rgba(253, 186, 77, 0.22);
}

/* ── List / Item row ───────────────────────────────────────────────── */
.list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: var(--text);
}
.item__thumb {
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  margin-right: 14px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
}
.item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.item--group-large .item__thumb {
  width: 124px;
  height: 92px;
  flex-basis: 124px;
}
.item--group-large .item__thumb img {
  object-position: 70% center;
}
.item:hover {
  background: var(--surface-2);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}
.item:active {
  transform: scale(0.98);
}
.catalog-group-section {
  display: grid;
  gap: 12px;
}
.catalog-group-section + .catalog-group-section {
  margin-top: 18px;
}
.catalog-group-section__head {
  padding: 2px 2px 0;
}
.item__title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.item__meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}
.item__arrow {
  color: var(--muted);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ── Listas de receita ─────────────────────────────────────────────── */
.ul,
.ol {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ul li,
.ol li {
  font-size: 0.92rem;
}
.ing--done {
  opacity: 0.45;
  text-decoration: line-through;
}

/* ── Grid / Stack ──────────────────────────────────────────────────── */
.grid {
  display: grid;
  gap: 16px;
}
.grid--2 {
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Row (flex horizontal) ─────────────────────────────────────────── */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
  align-content: flex-start;
}

/* ── HR ────────────────────────────────────────────────────────────── */
.hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 14px 0;
}

/* ── Skeleton ──────────────────────────────────────────────────────── */
@keyframes shimmer {
  0% {
    background-position: -400px 0;
  }
  100% {
    background-position: 400px 0;
  }
}
.skeleton {
  border-radius: var(--radius-sm);
  background: linear-gradient(
    90deg,
    var(--surface) 25%,
    var(--surface-2) 50%,
    var(--surface) 75%
  );
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
}
.skeleton--row {
  height: 52px;
  width: 100%;
}

/* ── Toast (Simultâneo com ui.js) ──────────────────────────────────── */
.toast-root {
  position: fixed;
  top: 80px;
  right: 16px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  width: calc(100% - 32px);
  max-width: 320px;
}
.toast {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  pointer-events: auto;
  animation: fadeSlideIn 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.toast__msg {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ── Modal confirm ─────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 380px;
  width: 100%;
  box-shadow: var(--shadow);
}
.modal__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.modal__message {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.modal__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ── Install modal (iOS) ───────────────────────────────────────────── */
.install-modal__backdrop {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 8500;
  display: flex;
  align-items: flex-end;
  padding: 0;
}
.install-modal {
  background: var(--surface);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  width: 100%;
  max-height: 80dvh;
  overflow-y: auto;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
}
.install-modal__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.install-modal__title {
  font-size: 1.1rem;
  font-weight: 700;
}
.install-modal__desc {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 4px;
}
.install-modal__close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.3rem;
  cursor: pointer;
}
.install-modal__art {
  text-align: center;
  margin: 12px 0;
}
.install-modal__steps {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.install-modal__steps li {
  font-size: 0.92rem;
}
.install-modal__actions {
  display: flex;
  justify-content: flex-end;
}

/* ── New Home Mobile-First ─────────────────────────────────────────── */
.mobile-content-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  gap: 4px;
}
.search-header {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 8px 0;
}
.home-search-modes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}
.home-search-card {
  min-width: 0;
  min-height: 74px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}
.home-search-card:active {
  transform: scale(0.98);
}
.home-search-card.is-active {
  border-color: rgba(253, 186, 77, 0.65);
  background: linear-gradient(180deg, rgba(253, 186, 77, 0.16), var(--surface));
}
.home-search-card__title {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
}
.home-search-card__desc {
  display: block;
  font-size: 0.76rem;
  line-height: 1.25;
  color: var(--muted);
  white-space: normal;
}
.input--search {
  font-size: 1.05rem;
  padding: 14px 20px;
  border-radius: 99px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.input--search:focus {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(253, 186, 77, 0.2);
  transform: translateY(-1px);
}
.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.search-input-wrapper .input--search {
  width: 100%;
  padding-right: 84px; /* Space for both clear and toggle buttons */
}
.home-search-assist {
  display: grid;
  gap: 8px;
  margin: 8px 2px 10px;
}
.home-search-hint {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}
.home-search-tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.home-search-token {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 5px 6px 5px 11px;
  border: 1px solid rgba(253, 186, 77, 0.34);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    rgba(253, 186, 77, 0.1);
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  line-height: 1;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 6px 18px rgba(0, 0, 0, 0.16);
}
.home-search-token:hover,
.home-search-token:focus-visible {
  border-color: rgba(253, 186, 77, 0.64);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02)),
    rgba(253, 186, 77, 0.16);
}
.home-search-token__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-search-token__remove {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(245, 242, 237, 0.76);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
}
.home-search-token:hover .home-search-token__remove,
.home-search-token:focus-visible .home-search-token__remove {
  background: rgba(253, 186, 77, 0.24);
  color: var(--text);
}
.home-search-suggestion {
  display: flex;
  margin: 8px 2px 10px;
}
.home-search-suggestion__btn {
  min-width: 0;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.04);
  color: rgba(245, 242, 237, 0.78);
  font: inherit;
  font-size: 0.78rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 6px 18px rgba(0, 0, 0, 0.14);
}
.home-search-suggestion__btn:hover,
.home-search-suggestion__btn:focus-visible {
  border-color: rgba(253, 186, 77, 0.42);
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(253, 186, 77, 0.12), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.05);
}
.btn-clear-search {
  position: absolute;
  right: 48px; /* Offset to leave room for toggle btn */
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition:
    color 0.2s,
    background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn-clear-search:hover,
.btn-clear-search:active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.scroll-x {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 100%;
}
.scroll-x::-webkit-scrollbar {
  display: none;
}
.select--small {
  width: auto;
  font-size: 0.85rem;
  padding: 0 30px 0 12px;
  border-radius: 99px;
  height: 32px;
  background-color: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
}
.select--small:focus {
  border-color: var(--accent);
  outline: none;
}
.search-similar-toggle {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.search-similar-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}
.home-actions-block {
  padding: 16px 0;
}
.list--home {
  margin-top: 8px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px;
}
.list--home .item {
  border: none;
  background: transparent;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
}
.list--home .item:last-child {
  border-bottom: none;
}

/* ── Sticky tools ──────────────────────────────────────────────────── */
.sticky-tools {
  position: sticky;
  top: 64px; /* Alinhado com .app-header height */
  z-index: 100;
  background: var(--bg); /* Usa a cor do fundo para não sobrepor estranho */
  padding: 12px 0 8px;
  margin: -16px 0 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.sticky-tools:has(.search-header.is-collapsed) {
  background: transparent;
  pointer-events: none;
  border: none;
}
.sticky-tools:has(.search-header.is-collapsed) * {
  pointer-events: auto;
}
.sticky-tools:has(.search-header.is-collapsed) .home-search-modes {
  display: none;
}
.sticky-tools__row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Filters wrap ──────────────────────────────────────────────────── */
.filtersWrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Empty state ───────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}
.empty-state__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.empty-state__desc {
  font-size: 0.88rem;
  margin-bottom: 20px;
}
.empty-state__actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Only-mobile helper ────────────────────────────────────────────── */
@media (min-width: 640px) {
  .only-mobile {
    display: none !important;
  }
}

/* ── Seed panel ────────────────────────────────────────────────────── */
.seed-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.seed-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.seed-item--applied {
  border-color: rgba(34, 197, 94, 0.3);
}
.seed-item__name {
  font-size: 0.9rem;
  font-weight: 600;
}
.seed-item__meta {
  font-size: 0.78rem;
  color: var(--muted);
}
.seed-item__actions {
  display: flex;
  gap: 6px;
}

/* ── Autocomplete ──────────────────────────────────────────────────── */
.autocomplete-list {
  position: absolute;
  z-index: 3000;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  max-height: 220px;
  overflow-y: auto;
  min-width: 220px;
}
.autocomplete-item {
  padding: 10px 14px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.1s;
}
.autocomplete-item:hover,
.autocomplete-item--active {
  background: var(--surface-2);
}

/* ── SW update banner (fadeSlideUp keyframe já definido acima) ─────── */
#alqy-update-banner {
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    sans-serif;
}

/* ═══════════════════════════════════════════════════════════════════════
   Jiggerless — v2.3.0-supabase-vercel
   Rail position:absolute (pg-wrapper tem overflow:hidden — não usar fixed)
   ═══════════════════════════════════════════════════════════════════════ */

.pg-wrapper {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: #000;
  z-index: 500;
  overflow: hidden;
}

.pg-video {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.pg-stage {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  touch-action: none;
}

/* ── Top bar ──────────────────────────────────────────────────────── */
.pg-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 12px;
  padding-top: calc(env(safe-area-inset-top, 0px) + 12px);
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent);
  z-index: 60;
  pointer-events: auto;
}
.pg-top-title {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Rail — position:absolute dentro do pg-wrapper ──────────────── */
.pg-rail {
  position: absolute;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 90px;
  height: auto;
  max-height: calc(100vh - 80px);
  z-index: 50;
  overflow: visible;
}
.pg-rail.right {
  right: 8px;
  left: auto;
}
.pg-rail.left {
  left: 8px;
  right: auto;
}

.pg-rail .btn:not(.pg-cap-sel) {
  width: 100%;
  min-height: 48px;
  font-size: 0.78rem;
  padding: 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pg-cap-sel {
  width: 100%;
  font-size: 0.75rem;
  text-align: center;
  min-height: 44px;
  padding: 0 4px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-color: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: visible;
}

.pg-icon-btn {
  min-height: 44px !important;
  font-size: 1.15rem !important;
}

.pg-rail-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 2px 0;
  flex-shrink: 0;
}

.pg-profile-label {
  width: 100%;
  font-size: 0.68rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  padding: 4px 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  max-height: 2.6em;
}
.pg-profile-source {
  width: 100%;
  margin-top: -4px;
  padding: 2px 6px;
  border: 1px solid rgba(253, 186, 77, 0.32);
  border-radius: 999px;
  background: rgba(253, 186, 77, 0.12);
  color: rgba(253, 186, 77, 0.92);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  pointer-events: none;
}

/* ── Step label — position:absolute, mesmo nível do rail ─────────── */
.pg-step-overlay {
  position: absolute;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
  left: 12px;
  right: 108px; /* 90px rail + 8px gap + 10px margem */
  z-index: 50;
  pointer-events: none;
}
/* Quando rail está à esquerda, label vai para a direita */
.pg-rail.left ~ .pg-step-overlay {
  left: 108px;
  right: 12px;
}
.pg-step-label {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;
  line-height: 1.35;
  word-break: break-word;
  background: #1e222a;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.pg-step-label.pg-step-done {
  background: rgba(34, 140, 70, 0.7);
  border-color: rgba(72, 210, 110, 0.4);
  color: #d1fae5;
}

/* ── Botão Próximo — long-press ───────────────────────────────────── */
.pg-next-btn {
  position: relative;
  overflow: visible !important;
  min-height: 64px !important;
  font-size: 0.85rem !important;
  transition:
    transform 0.1s,
    opacity 0.1s;
}
.pg-next-btn.pg-btn-pressing {
  opacity: 0.85;
  transform: scale(0.97);
}
.pg-next-btn.pg-btn-fired {
  transform: scale(0.93);
  transition: transform 0.08s;
}
.pg-next-btn::before,
.pg-next-btn::after {
  display: none !important;
  content: none !important;
}

.pg-prev-btn {
  min-height: 46px !important;
  font-size: 0.82rem !important;
}

/* ── Save banner ──────────────────────────────────────────────────── */
.pg-save-banner {
  position: absolute;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0d0f15;
  border: 1px solid rgba(253, 186, 77, 0.35);
  border-radius: 12px;
  padding: 10px 14px;
  z-index: 200;
  max-width: calc(100vw - 32px);
  box-shadow: var(--shadow);
  animation: fadeSlideIn 0.2s ease;
}
.pg-save-banner__text {
  flex: 1 0 100%;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
}
.pg-save-banner__btn {
  font-size: 0.8rem;
  padding: 6px 12px;
  min-height: 34px;
}
.pg-save-banner__close {
  font-size: 0.85rem;
  padding: 6px 8px;
  min-height: unset !important;
}

/* ── Calibration Wizard ───────────────────────────────────────────── */
.pg-cw-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 600;
  display: flex;
  flex-direction: column;
}
.pg-cw-overlay.pg-cw--top {
  justify-content: flex-start;
}

.pg-cw-free-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.pg-cw-free-badge {
  background: #000000;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.pg-cw-card {
  pointer-events: auto;
  background: #0d0f15;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px 20px 0 0;
  padding: 16px 18px calc(env(safe-area-inset-bottom, 0px) + 16px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 60vh;
  min-height: 140px;
  overflow-y: auto;
  margin-top: auto; /* padrão: card no bottom */
}

.pg-cw--top .pg-cw-card {
  border-radius: 0 0 20px 20px;
  border-top: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 0;
  margin-bottom: auto; /* card no top */
}

.pg-cw-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.pg-cw-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* ── Dots / title / lines / actions compartilhados ───────────────── */
.pg-ob-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.2s;
  display: inline-block;
}
.pg-ob-dot--active {
  background: var(--accent);
}

.pg-ob-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.pg-ob-lines {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
  margin: 0;
}

.pg-ob-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 4px;
}

.pg-ob-secondary-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.pg-ob-skip {
  font-size: 0.78rem;
  opacity: 0.65;
  padding: 6px 8px;
}

.pg-ob-home {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 0.78rem;
  opacity: 0.9;
}

@media (max-width: 420px) {
  .pg-ob-actions > .btn,
  .pg-ob-secondary-actions > .btn {
    flex: 1 1 auto;
  }

  .pg-ob-secondary-actions {
    align-items: stretch;
  }
}

@keyframes pg-slide-in-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pg-slide-in-down {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.pg-ob-slide-in {
  animation: pg-slide-in-up 0.22s ease forwards;
}
.pg-cw--top .pg-ob-slide-in {
  animation: pg-slide-in-down 0.22s ease forwards;
}

@keyframes pg-fade-out {
  to {
    opacity: 0;
  }
}
.pg-ob-fade-out {
  animation: pg-fade-out 0.24s ease forwards;
}

/* ── Long-press ring SVG ──────────────────────────────────────────── */
.pg-ring-svg {
  position: absolute;
  pointer-events: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9;
  overflow: visible;
}

/* ── Backdrop inline (ProfilePicker / Onboarding) ─────────────────── */
.pg-ob-backdrop--inline {
  position: fixed; /* fixed — sai do overflow:hidden do wrapper */
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
}
.pg-ob-backdrop--inline .pg-ob-modal {
  max-height: 82vh;
  margin: 0 16px;
}
.pg-ob-backdrop--inline .pg-pp-modal {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  border-radius: 20px 20px 0 0;
  max-height: 70vh;
}
.pg-pp-link-toggle {
  min-height: 36px;
  padding: 6px 10px;
  font-size: 0.76rem;
}
.pg-pp-section-title {
  margin: 12px 0 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.pg-pp-empty {
  padding: 14px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.pg-hud {
  position: fixed;
  bottom: 24px; /* ← era 0, sobe 24px */
  left: 0;
  right: 98px;
  z-index: 510;
  background: #0d0f15;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px 16px 16px 16px; /* arredondado em todos os lados agora */
  margin: 0 8px; /* respira nas laterais */
  padding: 12px 16px calc(env(safe-area-inset-bottom, 0px) + 12px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}
.pg-hud.left {
  left: 98px;
  right: 0;
}
.pg-hud__label {
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── HUD barra segmentada ───────────────────────────────────────── */
.pg-hud__seg-wrap {
  display: flex;
  gap: 3px;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

.pg-hud__seg {
  flex: 1;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.pg-hud__seg-fill {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.15s ease;
}

.pg-hud__seg-fill--done {
  background: rgba(72, 210, 110, 0.9);
}

.pg-hud__seg-fill--over {
  background: rgba(253, 186, 77, 0.9);
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* ── Monetização base / Age gate ───────────────────────────────────── */
.is-age-gated { overflow: hidden; }
.age-gate,
.paywall-backdrop {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 7, 12, .88);
  backdrop-filter: blur(18px);
}
.age-gate { z-index: 13000; }
.age-gate__card,
.paywall-card {
  width: min(100%, 520px);
  padding: clamp(24px, 6vw, 42px);
  border: 1px solid rgba(253, 186, 77, .32);
  border-radius: 28px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  box-shadow: 0 28px 80px rgba(0, 0, 0, .48);
}
.age-gate__eyebrow,
.paywall-card__eyebrow,
.plan-page__eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.age-gate__title,
.paywall-card__title,
.plan-page__title {
  margin: 0 0 14px;
  color: var(--text);
  font-size: clamp(1.8rem, 7vw, 3rem);
  line-height: 1.05;
}
.age-gate__description,
.paywall-card__description,
.plan-page__lead {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}
.age-gate__responsibility,
.paywall-card__note,
.age-gate__privacy,
.plan-page__legal {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.5;
}
.age-gate__actions,
.paywall-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 16px;
}
.age-gate__primary { flex: 1 1 230px; }
.locked-feature-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 14px 0;
  padding: 18px;
  border: 1px solid rgba(253, 186, 77, .28);
  border-radius: 18px;
  background: rgba(253, 186, 77, .07);
}
.locked-feature-card__badge {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--accent);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.locked-feature-card__title { margin: 0 0 5px; font-size: 1.05rem; }
.locked-feature-card__description { margin: 0; color: var(--muted); line-height: 1.45; }
.plan-page { max-width: 1040px; margin: 0 auto; }
.plan-page__hero {
  padding: clamp(26px, 7vw, 58px);
  border: 1px solid var(--border);
  border-radius: 28px;
  background: radial-gradient(circle at 85% 10%, rgba(253,186,77,.18), transparent 38%), var(--surface);
}
.plan-page__nav { display: flex; flex-wrap: wrap; gap: 8px; }
.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.plan-page__features { margin: 14px 0 20px; padding-left: 20px; color: var(--text); }
.plan-page__features li { margin: 9px 0; }
.plan-simulator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 220px) auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px dashed rgba(253,186,77,.45);
  border-radius: 16px;
}
.plan-simulator .p { margin: 4px 0 0; }
@media (max-width: 700px) {
  .locked-feature-card { align-items: stretch; flex-direction: column; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan-simulator { grid-template-columns: 1fr; }
}
.inventory-page{display:grid;gap:16px}.inventory-add{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin:16px 0}.inventory-list{display:flex;flex-wrap:wrap;gap:8px}.inventory-remove{border:0;background:transparent;color:inherit;font-size:1.1rem;cursor:pointer;margin-left:8px}.inventory-results{display:grid;gap:12px}.inventory-group{padding:16px}.inventory-recipes{display:grid;gap:8px}.inventory-recipe{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px;border:1px solid var(--border,rgba(148,163,184,.24));border-radius:12px;color:inherit;text-decoration:none}.inventory-recipe:hover{border-color:var(--accent,#fdba4d)}.inventory-recipe .hint{text-align:right;max-width:55%}.inventory-affiliate{text-align:center}@media(max-width:520px){.inventory-add{grid-template-columns:1fr}.inventory-recipe{align-items:flex-start;flex-direction:column}.inventory-recipe .hint{text-align:left;max-width:none}}
.pro-page{display:grid;gap:16px}.pro-control-grid,.pro-cost-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:center}.pro-control-grid{grid-template-columns:1fr 1fr auto;margin:12px 0}.pro-sheet{padding:24px}.pro-sheet__header{border-bottom:1px solid var(--border);margin-bottom:18px}.pro-table{width:100%;border-collapse:collapse}.pro-table th,.pro-table td{padding:9px;border-bottom:1px solid var(--border);text-align:left}.pro-sheet__total{font-weight:700;margin:16px 0}.pro-checklist{list-style:none;padding:0;display:grid;gap:8px}.pro-checklist li{display:flex;gap:8px}@media(max-width:600px){.pro-control-grid,.pro-cost-row{grid-template-columns:1fr}.pro-table{font-size:.8rem}.pro-sheet{padding:14px}}@media print{body>*:not(#app){display:none!important}.app-header,.app-nav,.pro-controls,.pro-cost-editor{display:none!important}.pro-page{display:block}.printable-sheet{box-shadow:none;border:0;color:#111;background:#fff}.pro-table th,.pro-table td{border-color:#bbb}}
.b2b-page{display:grid;gap:16px}.b2b-profile{display:grid;grid-template-columns:2fr 2fr auto;gap:8px}.b2b-profile textarea,.b2b-profile h2,.b2b-profile button{grid-column:1/-1}.b2b-menu-item{display:grid;grid-template-columns:auto 1fr auto;gap:10px;padding:10px;border-bottom:1px solid var(--border)}.b2b-publish{display:grid;gap:12px;justify-items:start}.b2b-public-url{max-width:100%;overflow-wrap:anywhere}.public-menu{min-height:100vh;background:#faf7f2;color:#1f2937;padding:24px}.public-menu__header{text-align:center;border-top:8px solid var(--menu-brand,#d97706);padding:24px}.public-menu__header img{max-width:120px;max-height:80px}.public-menu__items{max-width:760px;margin:auto;display:grid;gap:14px}.public-menu__card{background:#fff;border-left:5px solid var(--menu-brand,#d97706);border-radius:12px;padding:18px;box-shadow:0 5px 20px #0001}@media(max-width:600px){.b2b-profile{grid-template-columns:1fr}}@media print{.app-header,.app-nav,.b2b-page>section:not(.b2b-publish),.b2b-page>header{display:none!important}.b2b-publish{box-shadow:none;border:0}}
.commerce-page,.brand-hub{display:grid;gap:16px}.commerce-disclosure{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.commerce-disclosure--advertisement{background:#fee2e2;color:#991b1b}.commerce-disclosure--partnership{background:#fef3c7;color:#92400e}.commerce-disclosure--editorial{background:#dbeafe;color:#1e40af}.sponsored-collection,.commerce-recipe-box{border:2px solid #f59e0b;background:linear-gradient(135deg,#f59e0b12,transparent)}.commerce-recipe-box{padding:16px;border-radius:14px;margin:16px 0}.commerce-recipe-box section{display:grid;gap:8px}.sponsored-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.sponsored-recipe-card{display:grid;gap:8px;padding:14px;border:1px solid var(--border);border-radius:12px;color:inherit;text-decoration:none}.commerce-report{display:grid;gap:16px}
.pro-field{display:grid;gap:6px;min-width:0}.pro-field__label{font-size:.82rem;font-weight:700;color:var(--muted)}.pro-field__control{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;border:1px solid var(--border);border-radius:12px;background:var(--surface,#111827);overflow:hidden}.pro-field__control .input{border:0;border-radius:0;min-width:0}.pro-field__unit{padding:0 12px;font-weight:700;color:var(--muted);white-space:nowrap;border-left:1px solid var(--border)}
