/* ==========================================================================
   Przepisy z Twojej Szafki — Editorial Culinary Web App & PDF Cookbook
   Design System: NYT Cooking × Kinfolk × Phaidon Print Craft
   ========================================================================== */

:root {
  --bg: #F4F0E8;
  --surface: #FFFFFF;
  --surface-warm: #EDE7DC;
  --ink: #172B35;
  --ink-secondary: #495B64;
  --ink-muted: #6C7B83;
  --line: #D5D9D5;
  --line-strong: #B8C2C4;
  --accent: #BD581B;
  --accent-hover: #A44811;
  --accent-tint: #F7EAE1;
  --sage: #275842;
  --sage-tint: #E6F1EB;
  --gold: #9A7028;
  --gold-tint: #F7EFE0;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --ease-atelier: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif-em: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #168CE3;
  outline-offset: 3px;
}
.a-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: linear-gradient(90deg, #172B35, #BD581B, #EFA154);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  z-index: 120;
  pointer-events: none;
}
.a-line {
  display: inline-block;
  width: 24px;
  height: 1.5px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 9px;
}

/* ---------- Minimalist Sticky Header (Editorial) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 20px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}
.brand-icon {
  width: 26px;
  height: 26px;
  color: var(--accent);
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1;
  white-space: nowrap;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }
.nav-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  height: 100%;
  padding: 0 9px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.16s, border-color 0.16s;
}
.nav-btn:hover { color: var(--ink); }
.nav-btn.active {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--ink);
}
.nav-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 1px 6px;
  border-radius: 999px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ---------- Wypukłe przyciski 3D ze światłocieniem (wg rozwij-ai-frontend) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease-atelier), box-shadow 0.2s var(--ease-atelier), filter 0.16s, background 0.16s;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
  touch-action: manipulation;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: linear-gradient(145deg, #274553 0%, #142731 100%);
  border-color: #365B6B;
  color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 8px 20px rgba(20, 39, 49, 0.24), 0 2px 4px rgba(20, 39, 49, 0.14);
}
.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 13px 28px rgba(20, 39, 49, 0.3);
}
.btn-accent {
  background: linear-gradient(145deg, #EF8B35 0%, #B84C0E 100%);
  border-color: #F4A35E;
  color: #FFFFFF;
  text-shadow: 0 1px 2px rgba(72, 26, 4, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 9px 22px rgba(184, 76, 14, 0.32), 0 2px 4px rgba(23, 43, 53, 0.15);
}
.btn-accent:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 14px 30px rgba(184, 76, 14, 0.4);
}
.btn-outline {
  background: linear-gradient(180deg, #FFFFFF 0%, #F1ECE3 100%);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 3px 8px rgba(23, 43, 53, 0.08);
}
.btn-outline:hover {
  transform: translateY(-1px);
  border-color: var(--ink);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 7px 16px rgba(23, 43, 53, 0.14);
}
.btn-cinema-ghost {
  background: linear-gradient(180deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.05) 100%);
  color: #F4F0E8;
  border-color: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 6px 18px rgba(0,0,0,0.28);
}
.btn-cinema-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.6);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-secondary);
  min-height: 36px;
  padding: 6px 11px;
}
.btn-ghost:hover { color: var(--ink); background: var(--surface-warm); }
.btn-google {
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F2EC 100%);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 3px 10px rgba(23, 43, 53, 0.09);
}
.btn-google:hover { transform: translateY(-1px); border-color: var(--ink); }
.btn-sm { min-height: 38px; padding: 6px 14px; font-size: 12.5px; }
.btn-lg { min-height: 48px; padding: 13px 26px; font-size: 14.5px; }

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 5px 11px 5px 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.user-chip:hover { border-color: var(--line-strong); }
.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 3px;
  background: var(--ink);
  color: #FFF;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.plan-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
}
.plan-pill.free { background: var(--surface-warm); color: var(--ink-secondary); }
.plan-pill.pro { background: var(--gold-tint); color: var(--gold); }

/* ---------- Quiet Floating Role Switcher (Bottom-Right) ---------- */
.proto-dock {
  position: fixed;
  bottom: 16px;
  right: 18px;
  z-index: 80;
  background: rgba(22, 22, 20, 0.9);
  backdrop-filter: blur(10px);
  color: #EAE6DF;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 4px 6px 4px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
  font-size: 11px;
}
.proto-dock-label {
  color: #A8A39A;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.proto-pill {
  background: transparent;
  color: #D8D4CC;
  border: none;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.14s;
}
.proto-pill:hover { color: #FFFFFF; background: rgba(255,255,255,0.08); }
.proto-pill.active { background: #FFFFFF; color: #161614; }
.proto-pill.pro-pill.active { background: #D4AF6A; color: #161614; }

/* ---------- Main Container ---------- */
.app-main {
  max-width: 1360px;
  margin: 0 auto;
  padding: 32px 28px 96px;
}
.view-section { display: none; }
.view-section.active { display: block; animation: fadeIn 0.22s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Editorial Split Hero z aurą światła (rozwij-ai-frontend) ---------- */
.editorial-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 0;
  background: radial-gradient(ellipse at 20% 25%, #FFFDF8 0%, #F7F3EB 65%);
  border: 1px solid #FFFFFF;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 22px 54px rgba(23, 43, 53, 0.08), inset 0 1px 0 #FFFFFF;
}
.hero-aura {
  position: absolute;
  inset: -10% 30% -10% -10%;
  background: radial-gradient(ellipse at 35% 40%, rgba(239, 189, 132, 0.34), transparent 55%),
              radial-gradient(ellipse at 70% 75%, rgba(171, 204, 233, 0.28), transparent 52%);
  filter: blur(36px);
  z-index: -1;
  pointer-events: none;
  animation: auraBreathe 14s ease-in-out infinite alternate;
}
@keyframes auraBreathe {
  to { transform: translate3d(3%, -2%, 0) scale(1.08); }
}
.hero-copy {
  padding: 46px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 16px;
}
.editorial-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
  color: var(--ink);
}
.editorial-hero h1 em, .cinema-book-copy h2 em {
  font-family: var(--font-serif-em);
  font-style: italic;
  font-weight: 400;
  font-size: 1.16em;
  letter-spacing: -0.01em;
  color: #A64E24;
}
.cinema-book-copy h2 em { color: #F2BA82; }

/* ---------- Ciemna sekcja filmowa 3D Książki Kucharskiej (rozwij-ai-frontend) ---------- */
.cinema-book-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 34px;
  padding: 44px 46px;
  color: #EDF3F6;
  background:
    radial-gradient(ellipse at 76% 42%, rgba(235, 136, 52, 0.24), transparent 52%),
    radial-gradient(ellipse at 18% 85%, rgba(56, 114, 148, 0.26), transparent 52%),
    linear-gradient(155deg, #0A1820 0%, #122732 58%, #18313D 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 70px rgba(8, 22, 30, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.cinema-book-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}
.cinema-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #E7A162;
  margin-bottom: 14px;
}
.cinema-book-copy h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  color: #FFFFFF;
}
.cinema-book-copy p {
  font-size: 14.5px;
  line-height: 1.65;
  color: #C2D2DB;
  margin: 0 0 20px;
  max-width: 50ch;
}
.cinema-theme-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.cinema-pill {
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.03) 100%);
  color: #DCE6EC;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: transform 0.18s var(--ease-atelier), background 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.cinema-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.16);
}
.cinema-pill[aria-pressed="true"] {
  background: linear-gradient(145deg, #EF8B35 0%, #B84C0E 100%);
  border-color: #F5AA68;
  color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.48), 0 8px 22px rgba(214, 95, 21, 0.42);
}
.cinema-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.cinema-stage-3d {
  position: relative;
  height: 390px;
  perspective: 1400px;
  isolation: isolate;
  cursor: pointer;
}
.cinema-glow {
  position: absolute;
  inset: 10% 4% 0;
  background: radial-gradient(ellipse at 55% 50%, rgba(244, 186, 120, 0.28), transparent 64%);
  filter: blur(22px);
  z-index: -1;
}
.book3d-front {
  position: absolute;
  left: 4%;
  top: 26px;
  width: 56%;
  height: 340px;
  z-index: 2;
  background: #FFFFFF;
  color: #172B35;
  border-radius: 3px 6px 6px 3px;
  overflow: hidden;
  transform: rotateY(-14deg) rotateZ(-2.5deg);
  transform-origin: left center;
  box-shadow:
    -4px 2px 0 #1A2C38,
    5px 2px 0 #E4E1D9,
    8px 4px 0 #9BA6AE,
    18px 26px 40px rgba(0, 0, 0, 0.55);
  transition: transform 0.55s var(--ease-atelier), box-shadow 0.55s var(--ease-atelier);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.book3d-front::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,0.16) 0%, rgba(255,255,255,0.22) 3%, transparent 8%, transparent 95%, rgba(0,0,0,0.08) 100%);
}
.cinema-stage-3d:hover .book3d-front {
  transform: rotateY(-4deg) rotateZ(-0.5deg) translateY(-6px);
  box-shadow:
    -4px 2px 0 #1A2C38,
    5px 2px 0 #E4E1D9,
    8px 4px 0 #9BA6AE,
    22px 34px 52px rgba(0, 0, 0, 0.62);
}
.book3d-back {
  position: absolute;
  right: 2%;
  top: 8px;
  width: 56%;
  height: 348px;
  z-index: 1;
  background: #FFFFFF;
  color: #172B35;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #D9D6CE;
  transform: rotate(6deg) rotateY(-5deg);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.45);
  transition: transform 0.55s var(--ease-atelier);
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.cinema-stage-3d:hover .book3d-back {
  transform: rotate(3.5deg) translateY(-4px);
}
.b3d-mini-photo {
  width: 100%;
  height: 152px;
  object-fit: cover;
  margin: 10px 0;
}
.b3d-mini-kicker { font-size: 8px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; opacity: 0.72; }
.b3d-mini-title { font-size: 19px; line-height: 1.1; margin: 4px 0; font-weight: 700; }
.b3d-mini-sub { font-size: 10px; opacity: 0.7; margin: 0; }
.b3d-mini-lines { display: grid; gap: 5px; margin-top: 8px; }
.b3d-mini-lines span { height: 5px; background: #E3E7EA; border-radius: 2px; display: block; }

@media screen and (max-width: 1040px) {
  .cinema-book-grid { grid-template-columns: 1fr; gap: 28px; }
  .cinema-book-band { padding: 30px 22px; }
  .cinema-stage-3d { height: 340px; max-width: 460px; margin: 0 auto; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-aura, .book3d-front, .book3d-back, .btn { animation: none !important; transition: none !important; }
  .cinema-stage-3d:hover .book3d-front { transform: rotateY(-14deg) rotateZ(-2.5deg); }
  .cinema-stage-3d:hover .book3d-back { transform: rotate(6deg) rotateY(-5deg); }
}
.editorial-hero p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-secondary);
  margin: 0 0 28px;
  max-width: 48ch;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.hero-meta-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-muted);
}
.hero-meta-strip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
}
.hero-visual {
  position: relative;
  min-height: 400px;
  background: #ECE7DC;
  overflow: hidden;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-photo-caption {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
}
.hero-photo-caption strong { display: block; color: var(--ink); font-size: 13.5px; }
.hero-photo-caption span { color: var(--ink-secondary); font-size: 12px; }

/* ---------- Virtual Fridge Architectural Layout ---------- */
.fridge-layout {
  display: grid;
  grid-template-columns: 356px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.fridge-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 108px);
  display: flex;
  flex-direction: column;
}
.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.panel-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  margin: 0;
  letter-spacing: -0.02em;
}
.search-wrap {
  position: relative;
  flex-shrink: 0;
}
.search-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--ink-muted);
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  font-family: inherit;
  font-size: 13.5px;
  background: var(--bg);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.search-input.no-icon { padding-left: 12px; }
.search-input:focus { border-color: var(--ink); background: #FFFFFF; }

/* Refined iOS-style switch for kitchen staples */
.staples-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  margin: 10px 0 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-secondary);
  cursor: pointer;
  flex-shrink: 0;
}
.staples-toggle strong { color: var(--ink); display: block; font-size: 13px; }
.switch {
  position: relative;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  inset: 0;
  background: var(--line-strong);
  border-radius: 999px;
  transition: background 0.18s;
}
.slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: #FFFFFF;
  border-radius: 50%;
  transition: transform 0.18s;
}
.switch input:checked + .slider { background: var(--sage); }
.switch input:checked + .slider::before { transform: translateX(16px); }

.selected-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.sel-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.sel-chip:hover { background: var(--accent); }

.quick-box { margin-bottom: 12px; flex-shrink: 0; }
.micro-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.cat-scroll {
  overflow-y: auto;
  flex: 1;
  min-height: 220px;
  padding-right: 4px;
}
.cat-group {
  border-top: 1px solid var(--line);
  padding: 9px 0;
}
.cat-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 2px 0;
  list-style: none;
  color: var(--ink);
}
.cat-summary::-webkit-details-marker { display: none; }
.cat-count { font-size: 11.5px; color: var(--ink-muted); font-weight: 500; }
.ing-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 8px 0 4px;
}
.ing-chip {
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F0E8 100%);
  border: 1px solid var(--line);
  color: var(--ink-secondary);
  border-radius: 999px;
  padding: 6px 11px;
  min-height: 32px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.14s, border-color 0.14s, background 0.14s, box-shadow 0.14s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: inset 0 1px 0 #FFFFFF, 0 1px 3px rgba(23,43,53,0.06);
}
.ing-chip:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.ing-chip.selected {
  background: linear-gradient(145deg, #EF8B35 0%, #B84C0E 100%);
  border-color: #EFA154;
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 4px 10px rgba(184,76,14,0.28);
}
.ing-chip.selected::before { content: "✓"; font-size: 11px; font-weight: 800; }
.ing-chip .cnt { font-size: 10px; opacity: 0.7; }

/* ---------- Clean Filters Bar ---------- */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.filter-select {
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.filter-select:focus { outline: none; border-color: var(--ink); }
.diet-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  margin-top: 6px;
}
.diet-pill {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-secondary);
  border-radius: var(--radius-xs);
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.14s;
}
.diet-pill:hover { border-color: var(--ink); color: var(--ink); }
.diet-pill.active { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.diet-pill.locked { opacity: 0.5; }

/* ---------- Editorial Recipe Cards (NYT Cooking / Mob Aesthetic) ---------- */
.results-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.results-header h2 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.02em;
}
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px 22px;
}
.recipe-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.recipe-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.card-photo-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #ECE7DC;
  overflow: hidden;
  cursor: pointer;
}
.card-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.recipe-card:hover .card-photo-wrap img { transform: scale(1.04); }

.photo-match-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--radius-xs);
  backdrop-filter: blur(8px);
}
.photo-match-100 { background: rgba(45, 90, 67, 0.92); color: #FFFFFF; }
.photo-match-near { background: rgba(22, 22, 20, 0.86); color: #F7E4BA; }
.photo-match-part { background: rgba(22, 22, 20, 0.78); color: #FFFFFF; }

.photo-fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  color: var(--ink-secondary);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.15s, color 0.15s;
}
.photo-fav-btn:hover { transform: scale(1.08); color: var(--accent); }
.photo-fav-btn.fav-on { color: var(--accent); background: #FFFFFF; }
.photo-fav-btn svg { width: 16px; height: 16px; }

.card-body {
  padding: 16px 18px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-kicker {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.card-kicker .prot-hi { color: var(--sage); }
.card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18.5px;
  line-height: 1.24;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  cursor: pointer;
  color: var(--ink);
}
.card-title:hover { color: var(--accent); }
.card-desc {
  font-size: 13px;
  color: var(--ink-secondary);
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}
.missing-line {
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 6px 9px;
  border-radius: var(--radius-xs);
  margin-bottom: 12px;
  line-height: 1.4;
}
.card-diet-line {
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-bottom: 14px;
}
.card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-link-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.card-link-btn:hover { color: var(--accent); }
.book-add-btn {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.14s;
}
.book-add-btn:hover { border-color: var(--ink); }
.book-add-btn.in-book {
  background: var(--sage);
  border-color: var(--sage);
  color: #FFFFFF;
}

/* ---------- Editorial Guest Gate ---------- */
.guest-gate {
  margin-top: 28px;
  background: var(--ink);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 32px 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.guest-gate h3 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0 0 8px;
  font-size: 25px;
  letter-spacing: -0.02em;
}
.guest-gate p { margin: 0; color: #C9C5BC; max-width: 58ch; font-size: 14.5px; }

/* ---------- Custom Recipe Form ---------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 34px;
  max-width: 860px;
  margin: 0 auto;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  font-family: inherit;
  font-size: 13.5px;
  background: var(--bg);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #FFFFFF; }
.field textarea { min-height: 98px; resize: vertical; }

/* ---------- PDF Cookbook Creator (Studio Quality) ---------- */
.creator-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.creator-header h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 34px;
  letter-spacing: -0.025em;
  margin: 4px 0 8px;
}
.creator-layout {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.creator-controls {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}
.control-block { min-width: 0; width: 100%; }
.control-block + .control-block { padding-top: 20px; border-top: 1px solid var(--line); }
.control-block h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16.5px;
  margin: 0 0 12px;
}
.theme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}
.theme-option {
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 11px 11px 10px;
  cursor: pointer;
  background: var(--bg);
  text-align: left;
  font-family: inherit;
  transition: all 0.15s;
  position: relative;
  min-width: 0;
  width: 100%;
}
.theme-option:hover { border-color: var(--ink-secondary); }
.theme-option.active {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
  background: #FFFFFF;
}
.theme-swatches { display: flex; gap: 4px; margin-bottom: 7px; }
.swatch { width: 14px; height: 14px; border-radius: 2px; border: 1px solid rgba(0,0,0,0.14); }
.theme-name { font-size: 12px; font-weight: 600; display: block; color: var(--ink); line-height: 1.25; }
.theme-pro-badge, .theme-free-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 5px;
  border-radius: 3px;
}
.theme-pro-badge { background: var(--gold-tint); color: var(--gold); }
.theme-free-badge { background: var(--sage-tint); color: var(--sage); }
.theme-desc-box {
  font-size: 12.5px;
  color: var(--ink-secondary);
  background: var(--surface-warm);
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  margin-top: 10px;
  line-height: 1.5;
}

.quick-fill-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.book-recipe-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
}
.book-recipe-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 7px 9px;
  font-size: 12.5px;
  min-width: 0;
  width: 100%;
}
.book-recipe-item > span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.book-item-btns { display: flex; gap: 3px; flex-shrink: 0; }
.mini-act {
  border: 1px solid var(--line-strong);
  background: #FFFFFF;
  border-radius: 3px;
  width: 24px;
  height: 24px;
  font-size: 11px;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--ink-secondary);
}
.mini-act:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Live Book Preview Desk ---------- */
.preview-stage {
  background: #DFDCD4;
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  min-width: 0;
  width: 100%;
}
.preview-toolbar {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--surface);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

/* ---------- Real Publisher-Grade Cookbook Pages (6 THEMES) ---------- */
.book-pages {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.book-page {
  width: 100%;
  max-width: 720px;
  min-height: 980px;
  background: #FFFFFF;
  color: #161614;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
  padding: 46px 50px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  page-break-after: always;
  break-after: page;
}
.book-pages.fmt-a5 .book-page {
  max-width: 560px;
  min-height: 780px;
  padding: 34px 36px;
}

.bp-cover { justify-content: space-between; }
.bp-cover-photo {
  width: 100%;
  height: 360px;
  object-fit: cover;
  margin: 22px 0;
}
.book-pages.fmt-a5 .bp-cover-photo { height: 250px; }
.bp-kicker { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.18em; font-weight: 700; }
.bp-title { font-size: 42px; line-height: 1.06; margin: 14px 0 10px; letter-spacing: -0.025em; }
.bp-subtitle { font-size: 15.5px; opacity: 0.78; margin: 0; max-width: 44ch; line-height: 1.5; }
.bp-dedication {
  font-style: italic;
  font-size: 13.5px;
  padding: 10px 0 10px 16px;
  border-left: 2px solid currentColor;
  margin: 8px 0 0;
  opacity: 0.82;
}
.bp-cover-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 18px;
  border-top: 1px solid rgba(0,0,0,0.16);
  font-size: 12.5px;
}

.bp-header {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.58;
  padding-bottom: 10px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(0,0,0,0.12);
}
.bp-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.12);
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  opacity: 0.62;
  letter-spacing: 0.04em;
}
.bp-dish-photo {
  width: 100%;
  height: 195px;
  object-fit: cover;
  margin: 0 0 18px;
}
.book-pages.fmt-a5 .bp-dish-photo { height: 145px; }
.bp-recipe-head h2 { margin: 4px 0 6px; font-size: 27px; line-height: 1.14; letter-spacing: -0.02em; }
.bp-recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}
.bp-meta-box {
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 600;
}
.bp-two-col {
  display: grid;
  grid-template-columns: 0.88fr 1.32fr;
  gap: 28px;
  margin-top: 4px;
}
.bp-sec-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 11px;
  font-weight: 700;
}
.bp-ing-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  font-size: 12.5px;
}
.bp-ing-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 5px;
  border-bottom: 1px dotted rgba(0,0,0,0.16);
}
.bp-steps {
  padding-left: 18px;
  margin: 0;
  display: grid;
  gap: 9px;
  font-size: 13px;
  line-height: 1.56;
}
.bp-tip {
  margin-top: 16px;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.5;
}
.bp-toc-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 7px; }
.bp-toc-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  border-bottom: 1px dotted rgba(0,0,0,0.2);
  padding-bottom: 5px;
  font-size: 13.5px;
}
.bp-toc-cat {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 14px;
  opacity: 0.65;
}
.bp-index-grid { columns: 2; column-gap: 26px; font-size: 12px; }
.bp-index-row {
  break-inside: avoid;
  padding: 4px 0;
  border-bottom: 1px dotted rgba(0,0,0,0.14);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

/* ==========================================================================
   6 ODRĘBNYCH, JASNYCH I OSZCZĘDNYCH W DRUKU ARCHITEKTUR KSIĄŻKI PDF
   (Zero ciężkich czarnych teł — każda szata ma własny układ, zdobienia SVG i litery)
   ========================================================================== */

/* Wspólne ornamenty i elementy specjalne */
.bp-ornament { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 10px 0 14px; }
.bp-ornament svg { height: 22px; width: auto; display: block; }
.bp-corner { position: absolute; width: 34px; height: 34px; pointer-events: none; opacity: 0.75; }
.bp-corner.tl { top: 18px; left: 18px; }
.bp-corner.tr { top: 18px; right: 18px; transform: scaleX(-1); }
.bp-corner.bl { bottom: 18px; left: 18px; transform: scaleY(-1); }
.bp-corner.br { bottom: 18px; right: 18px; transform: scale(-1); }

/* ---- 1. SZWAJCARSKI MINIMALIZM (Asymetryczny podział, IBM Plex Mono, duże numery kroków) ---- */
.theme-minimal .book-page {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #FFFFFF;
  color: #161816;
  padding: 42px 46px;
}
.theme-minimal .bp-swiss-cover {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 30px;
  flex: 1;
  align-items: stretch;
}
.theme-minimal .bp-swiss-cover-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 2px solid #161816;
  padding-top: 20px;
}
.theme-minimal .bp-swiss-cover-photo {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}
.theme-minimal .bp-mono { font-family: 'IBM Plex Mono', monospace; }
.theme-minimal .bp-swiss-top {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 26px;
  align-items: start;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1.5px solid #161816;
}
.theme-minimal .bp-swiss-photo { width: 100%; height: 215px; object-fit: cover; }
.theme-minimal .bp-swiss-macros {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #D8DDD8;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
}
.theme-minimal .bp-swiss-body {
  display: grid;
  grid-template-columns: 1.38fr 0.85fr;
  gap: 28px;
}
.theme-minimal .bp-swiss-ing-col {
  border-left: 1px solid #DCE0DC;
  padding-left: 20px;
}
.theme-minimal .bp-swiss-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.theme-minimal .bp-swiss-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 10px; font-size: 13px; line-height: 1.55; }
.theme-minimal .bp-swiss-num { font-family: 'IBM Plex Mono', monospace; font-size: 16px; font-weight: 600; color: #2D5A43; line-height: 1.25; }
.theme-minimal .bp-kicker, .theme-minimal .bp-sec-title { color: #2D5A43; font-family: 'IBM Plex Mono', monospace; }
.theme-minimal .bp-tip { background: #F6F7F6; border-left: 2px solid #2D5A43; }

/* ---- 2. DOMOWA KSIĘGA (Narożne ornamenty SVG, łukowe zdjęcie, inicjał, kropki) ---- */
.theme-rustic .book-page {
  font-family: 'Lora', Georgia, serif;
  background: #FFFFFF;
  color: #2A2018;
  padding: 50px 54px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.14), inset 0 0 0 12px #FFFFFF, inset 0 0 0 13px #C8B296, inset 0 0 0 17px #FFFFFF, inset 0 0 0 17.5px #DFCFB9;
}
.theme-rustic .bp-title, .theme-rustic .bp-recipe-head h2 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #5C2816;
  font-weight: 700;
}
.theme-rustic .bp-rustic-cover { text-align: center; align-items: center; }
.theme-rustic .bp-arch-photo {
  width: 72%;
  max-width: 390px;
  height: 330px;
  object-fit: cover;
  border-radius: 200px 200px 10px 10px;
  border: 1px solid #C8B296;
  padding: 5px;
  background: #FFFFFF;
  margin: 18px auto;
}
.theme-rustic .bp-rustic-head { text-align: center; margin-bottom: 14px; }
.theme-rustic .bp-rustic-head h2 { font-size: 29px; margin: 4px 0 6px; }
.theme-rustic .bp-rustic-meta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  font-size: 11.5px;
  font-style: italic;
  color: #7A4B33;
  border-top: 1px solid #DFCFB9;
  border-bottom: 1px solid #DFCFB9;
  padding: 6px 18px;
  margin: 8px 0 14px;
}
.theme-rustic .bp-dish-photo {
  height: 180px;
  border: 1px solid #D3C0A5;
  padding: 4px;
  background: #FFFFFF;
  margin-bottom: 16px;
}
.theme-rustic .bp-kicker, .theme-rustic .bp-sec-title { color: #8F3E21; }
.theme-rustic .bp-steps li:first-child::first-letter {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  float: left;
  line-height: 0.88;
  padding-right: 3px;
  padding-top: 2px;
  color: #7A3219;
}
.theme-rustic .bp-tip {
  background: #FCF9F4;
  border: 1px solid #D8C4A8;
  text-align: center;
  font-style: italic;
}

/* ---- 3. MAGAZYN KULINARNY (JASNY BIAŁY PAPIER, złote linie, pionowe zdjęcie z boku!) ---- */
.theme-editorial .book-page {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #FFFFFF;
  color: #16181D;
  padding: 44px 48px;
}
.theme-editorial .bp-mag-masthead {
  border-top: 2px solid #16181D;
  border-bottom: 1px solid #C49E52;
  padding: 8px 0;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 24px;
}
.theme-editorial .bp-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 52px;
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.theme-editorial .bp-mag-cover-photo {
  width: 100%;
  height: 360px;
  object-fit: cover;
  padding: 8px;
  border: 1px solid #C9A660;
  background: #FFFFFF;
  margin: 22px 0;
}
.theme-editorial .bp-mag-spread {
  display: grid;
  grid-template-columns: 0.86fr 1.24fr;
  gap: 30px;
  flex: 1;
}
.theme-editorial .bp-mag-portrait {
  width: 100%;
  height: 280px;
  object-fit: cover;
  padding: 5px;
  border: 1px solid #D4B574;
  margin-bottom: 18px;
}
.theme-editorial .bp-mag-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 36px;
  line-height: 1.06;
  font-weight: 700;
  margin: 6px 0 10px;
}
.theme-editorial .bp-mag-lead {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.45;
  color: #4A4D55;
  margin: 0 0 14px;
}
.theme-editorial .bp-mag-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  padding: 9px 0;
  margin-bottom: 18px;
  border-top: 1px solid #C9A660;
  border-bottom: 1px solid #C9A660;
  color: #16181D;
}
.theme-editorial .bp-mag-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.theme-editorial .bp-mag-steps li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 13px; line-height: 1.56; }
.theme-editorial .bp-mag-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 0.95;
  color: #9C7730;
}
.theme-editorial .bp-kicker, .theme-editorial .bp-sec-title { color: #96722E; }
.theme-editorial .bp-sec-title { border-bottom: 1px solid #DEC48C; padding-bottom: 5px; }
.theme-editorial .bp-tip { background: #FDFBF6; border-left: 2px solid #C49E52; }

/* ---- 4. ZIELNIK BOTANICZNY (Biały papier, rysunkowe gałązki SVG w szałwii, kroki w kółkach) ---- */
.theme-botanical .book-page {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #FFFFFF;
  color: #1B3023;
  padding: 44px 48px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.14), inset 0 0 0 10px #FFFFFF, inset 0 0 0 11.5px #B7CFC0;
}
.theme-botanical .bp-title, .theme-botanical .bp-recipe-head h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  color: #1F4A34;
}
.theme-botanical .bp-kicker, .theme-botanical .bp-sec-title { color: #366D50; }
.theme-botanical .bp-bot-top {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 24px;
  align-items: start;
  margin: 14px 0 20px;
}
.theme-botanical .bp-bot-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 16px;
}
.theme-botanical .bp-bot-ing-card {
  border: 1px solid #BDD5C5;
  border-radius: 14px;
  padding: 16px 18px;
  background: #FBFDFB;
}
.theme-botanical .bp-bot-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 22px;
}
.theme-botanical .bp-bot-steps li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 9px;
  font-size: 12.5px;
  line-height: 1.54;
}
.theme-botanical .bp-bot-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #366D50;
  color: #1F4A34;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.theme-botanical .bp-meta-box { border: 1px solid #BDD5C5; border-radius: 999px; color: #1F4A34; background: #F7FBF8; }
.theme-botanical .bp-tip { background: #F7FBF8; border: 1px solid #C5DACD; border-radius: 10px; }

/* ---- 5. KARTA BIAŁKOWA I MAKRO (JASNY BIAŁY PAPIER, tabela makro w cienkich ramkach, kratki) ---- */
.theme-macro .book-page {
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  background: #FFFFFF;
  color: #161A1E;
  padding: 40px 46px;
  border-top: 4px solid #C84D28;
}
.theme-macro .bp-macro-head {
  display: grid;
  grid-template-columns: 1.35fr 0.72fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 16px;
}
.theme-macro .bp-macro-thumb {
  width: 100%;
  height: 132px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #D8DDE2;
}
.theme-macro .bp-macro-dash {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.theme-macro .bp-macro-cell {
  border: 1px solid #CED4DA;
  border-radius: 6px;
  padding: 8px 10px;
  text-align: center;
  background: #FFFFFF;
}
.theme-macro .bp-macro-cell.hi {
  border-color: #C84D28;
  border-top: 3px solid #C84D28;
  background: #FFF9F7;
}
.theme-macro .bp-macro-val {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  color: #161A1E;
}
.theme-macro .bp-macro-cell.hi .bp-macro-val { color: #B83E1B; }
.theme-macro .bp-macro-lbl { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.1em; color: #646E78; font-weight: 700; }
.theme-macro .bp-kicker, .theme-macro .bp-sec-title { color: #C84D28; }
.theme-macro .bp-ing-list li::before { content: "☐ "; font-weight: 700; color: #C84D28; margin-right: 4px; }
.theme-macro .bp-ing-list strong { font-family: 'IBM Plex Mono', monospace; font-size: 12px; }
.theme-macro .bp-macro-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.theme-macro .bp-macro-steps li {
  border-left: 2px solid #DDE2E7;
  padding-left: 12px;
  font-size: 13px;
  line-height: 1.52;
}
.theme-macro .bp-step-tag {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: #C84D28;
  margin-right: 6px;
}
.theme-macro .bp-tip { background: #FFF9F7; border: 1px solid #ECC9BE; border-radius: 6px; }

/* ---- 6. NOTATNIK SZEFA KUCHNI (Monochromatyczna bistro klasyka + pismo odręczne + linie na notatki!) ---- */
.theme-eco .book-page {
  font-family: 'Merriweather', Georgia, serif;
  background: #FFFFFF;
  color: #111111;
  padding: 44px 48px;
}
.theme-eco .bp-hand {
  font-family: 'Caveat', cursive;
  font-size: 21px;
  line-height: 1.25;
  color: #2A2A2A;
}
.theme-eco .bp-cover-photo, .theme-eco .bp-dish-photo {
  filter: grayscale(100%) contrast(1.08);
  border: 1px solid #111111;
  padding: 3px;
}
.theme-eco .bp-meta-box { background: #FFFFFF; color: #111111; border: 1px solid #111111; font-family: 'IBM Plex Mono', monospace; font-size: 11px; }
.theme-eco .bp-tip { background: #FFFFFF; border-top: 1px dashed #111111; border-bottom: 1px dashed #111111; padding: 10px 4px; }
.theme-eco .bp-notes-box {
  margin-top: 16px;
  padding-top: 10px;
}
.theme-eco .bp-notes-line {
  height: 22px;
  border-bottom: 1px dotted #888888;
}

/* ---------- Subscription & Account ---------- */
.sub-hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 28px;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.featured {
  border: 2px solid var(--ink);
  box-shadow: 0 14px 36px rgba(22, 22, 20, 0.08);
}
.best-badge {
  position: absolute;
  top: -11px;
  left: 24px;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  margin: 12px 0 4px;
  line-height: 1;
  letter-spacing: -0.03em;
}
.price-period { font-size: 13.5px; color: var(--ink-muted); font-family: var(--font-sans); font-weight: 500; }
.price-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 24px;
  display: grid;
  gap: 9px;
  font-size: 13.5px;
  color: var(--ink-secondary);
  flex: 1;
}
.price-list li::before { content: "— "; color: var(--accent); font-weight: 700; }
.shopify-arch-box {
  background: var(--surface-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  font-size: 13px;
  color: var(--ink-secondary);
}
.shopify-arch-box code {
  background: #FFFFFF;
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 12px;
  color: var(--ink);
}

/* ---------- Modals ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 16, 14, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  place-items: center;
  padding: 20px;
}
.modal-backdrop.open { display: grid; }
.modal {
  background: var(--surface);
  border-radius: var(--radius-md);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
}
.modal-sm { max-width: 460px; }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  font-size: 18px;
  color: var(--ink-secondary);
}
.modal-close:hover { border-color: var(--ink); color: var(--ink); }
.modal-recipe-hero {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}
.portion-bar {
  display: inline-flex;
  gap: 3px;
  background: var(--surface-warm);
  padding: 3px;
  border-radius: var(--radius-xs);
}
.portion-btn {
  border: none;
  background: transparent;
  padding: 4px 11px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  color: var(--ink-secondary);
}
.portion-btn.active { background: var(--ink); color: #FFFFFF; }

.ing-hint-box {
  font-size: 12.5px;
  color: var(--ink-secondary);
  background: var(--surface-warm);
  border-left: 2px solid var(--sage);
  padding: 8px 11px;
  border-radius: 3px;
  margin: 0 0 12px;
  line-height: 1.45;
}
.modal-ing-item.is-checked label span {
  text-decoration: line-through;
  color: var(--ink-muted);
}
.modal-ing-item.is-checked strong {
  color: var(--ink-muted);
}
.ing-shop-bar {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.ing-all-ok {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--sage);
  background: var(--sage-tint);
  padding: 9px 12px;
  border-radius: var(--radius-xs);
}

.toast {
  position: fixed;
  bottom: 64px;
  right: 22px;
  background: var(--ink);
  color: #FFFFFF;
  padding: 12px 18px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-weight: 500;
  z-index: 200;
  box-shadow: 0 12px 32px rgba(0,0,0,0.22);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.2s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Pełnoekranowy czytnik podglądu PDF (wzorowany na br-dialog z rozwij.ai)
   ========================================================================== */
.br-dialog {
  box-sizing: border-box;
  width: min(1140px, calc(100% - 36px));
  max-width: none;
  height: 92dvh;
  max-height: 100dvh;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 22px;
  overflow: hidden;
  background: #F6F4EF;
  color: var(--ink);
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.55);
}
.br-dialog[open] { display: flex; flex-direction: column; }
.br-dialog::backdrop {
  background: rgba(15, 20, 26, 0.74);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
@media (prefers-reduced-motion: no-preference) {
  .br-dialog[open] { animation: br-open 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
  @keyframes br-open {
    from { opacity: 0; transform: translateY(18px) scale(0.99); }
    to { opacity: 1; transform: none; }
  }
}
.br-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 26px;
  background: linear-gradient(115deg, #FFFFFF 0%, #EFECE4 100%);
  border-bottom: 1px solid var(--line);
}
.br-head-kicker {
  display: block;
  font-size: 10px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.br-head h2 {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.2;
  margin: 4px 0 0;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.br-close {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #FFFFFF 0%, #F2EFE8 100%);
  box-shadow: 0 2px 6px rgba(22, 22, 20, 0.08), inset 0 1px 0 #FFFFFF;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.14s, border-color 0.14s;
}
.br-close:hover { border-color: var(--ink); transform: scale(1.04); }
.br-close:focus-visible, .br-dialog :focus-visible { outline: 3px solid #D8772C; outline-offset: 2px; }

.br-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 26px;
  background: #17232E;
  color: #EEF3F7;
  font-size: 13px;
}
.br-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #D2DCE5;
  font-weight: 500;
}
.br-toolbar input, .br-toolbar select {
  box-sizing: border-box;
  min-height: 36px;
  background: #FFFFFF;
  color: #17232E;
  border: 1px solid #B8C7D6;
  border-radius: 7px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 9px;
}
.br-toolbar input[type="number"] { width: 58px; text-align: center; }

/* Symetryczne strzałki wg skilla rozwij-ai-frontend (ten sam SVG obrócony o 180° + 44x44 touch) */
.br-nav-arrows {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.br-arrow-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: linear-gradient(180deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.04) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 3px 8px rgba(0,0,0,0.25);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s;
}
.br-arrow-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.45);
}
.br-arrow-btn:disabled { opacity: 0.35; cursor: default; }
.br-arrow-btn svg { width: 16px; height: 16px; display: block; }
.br-arrow-btn.br-prev svg { transform: rotate(180deg); }

.br-actions-right {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.br-cta {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid #E89A58;
  background: linear-gradient(180deg, #D96B27 0%, #A94414 100%);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 232, 208, 0.45);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: filter 0.15s, transform 0.14s;
}
.br-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
.br-cta-ghost {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.24);
  background: transparent;
  color: #F2D3B2;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.br-cta-ghost:hover { background: rgba(255,255,255,0.1); color: #FFFFFF; }

.br-progress {
  height: 3px;
  flex-shrink: 0;
  background: #CFD9E3;
}
.br-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: #C45312;
  transition: width 0.1s linear;
}
.br-reading {
  position: relative;
  flex: 1;
  min-height: 0;
  padding-right: 26px;
  background: #C9D3DD;
}
.br-scroll {
  position: relative;
  height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  background: radial-gradient(ellipse at 45% 0%, #E6ECF2 0%, #BCC7D4 100%);
  padding: 26px 20px 36px;
}
.br-scroll::-webkit-scrollbar { width: 0; height: 0; }
.br-stage-inner {
  margin: 0 auto;
  transform-origin: top center;
  transition: transform 0.18s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.br-rail {
  position: absolute;
  right: 6px;
  top: 16px;
  bottom: 16px;
  width: 14px;
  height: calc(100% - 32px);
  margin: 0;
  writing-mode: vertical-lr;
  direction: ltr;
  appearance: none;
  background: transparent;
  cursor: pointer;
  touch-action: none;
}
.br-rail::-webkit-slider-runnable-track {
  width: 8px;
  background: linear-gradient(90deg, #A3B2C2, #EBF0F6);
  border-radius: 12px;
  box-shadow: inset 1px 0 3px rgba(21, 49, 75, 0.22);
}
.br-rail::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 54px;
  margin-left: -2px;
  background: linear-gradient(90deg, #A34708, #DE8943);
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(16, 40, 60, 0.35);
  border: 1px solid #EDBA8D;
}
.br-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 26px;
  border-top: 1px solid #CBD5E0;
  font-size: 12px;
  color: #465B70;
  background: #F6F8FB;
}
@media screen and (max-width: 720px) {
  .br-dialog { width: calc(100% - 12px); height: 96dvh; border-radius: 16px; }
  .br-head { padding: 14px 16px; }
  .br-toolbar { padding: 10px 14px; gap: 8px; }
  .br-actions-right { width: 100%; justify-content: space-between; margin-left: 0; }
  .br-foot { padding: 8px 16px; }
}

/* Drukowanie z czytnika PDF (pojedynczy przepis lub cała książka) */
@media print {
  body.printing-reader > *:not(#br-pdf-dialog) { display: none !important; }
  body.printing-reader #br-pdf-dialog {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
  }
  body.printing-reader .br-head,
  body.printing-reader .br-toolbar,
  body.printing-reader .br-progress,
  body.printing-reader .br-rail,
  body.printing-reader .br-foot { display: none !important; }
  body.printing-reader .br-reading,
  body.printing-reader .br-scroll {
    padding: 0 !important;
    background: #FFFFFF !important;
    overflow: visible !important;
    height: auto !important;
  }
  body.printing-reader .br-stage-inner { transform: none !important; gap: 0 !important; }
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 1080px) {
  .editorial-hero { grid-template-columns: 1fr; }
  .hero-visual { min-height: 280px; }
  .fridge-layout, .creator-layout { grid-template-columns: 1fr; }
  .fridge-panel { position: static; max-height: none; }
  .pricing-grid { grid-template-columns: 1fr; }
}
@media screen and (max-width: 720px) {
  .header-inner { padding: 0 16px; height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
  .main-nav { order: 3; width: 100%; overflow-x: auto; height: 42px; }
  .app-main { padding: 20px 16px 96px; }
  .hero-copy { padding: 28px 22px; }
  .form-grid, .bp-two-col { grid-template-columns: 1fr; }
  .proto-dock { left: 10px; right: 10px; bottom: 10px; justify-content: center; flex-wrap: wrap; border-radius: 12px; padding: 8px; }
}

/* ---------- PRINT / SAVE AS PDF ---------- */
@media print {
  @page { margin: 0; size: A4 portrait; }
  body { background: #FFFFFF !important; }
  .proto-dock, .site-header, .creator-header, .creator-controls, .preview-toolbar,
  #view-lodowka, #view-przepisy, #view-planer, #view-dodaj, #view-konto,
  .modal-backdrop, .toast { display: none !important; }
  .app-main { padding: 0 !important; max-width: none !important; margin: 0 !important; }
  #view-kreator { display: block !important; }
  .creator-layout { display: block !important; }
  .preview-stage { background: #FFFFFF !important; padding: 0 !important; display: block !important; }
  .book-pages { display: block !important; gap: 0 !important; }
  .book-page {
    max-width: none !important;
    width: 100% !important;
    min-height: 297mm !important;
    box-shadow: none !important;
    margin: 0 !important;
    page-break-after: always !important;
    break-after: page !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .book-page:last-child { page-break-after: auto !important; break-after: auto !important; }
}

/* Directional light, with a solid lower edge that recedes on press. */
.btn-accent, .br-cta, .cinema-pill[aria-pressed="true"] {
  color: white;
  background: linear-gradient(155deg, #a54b17, #83330d);
  border-color: #9c4a24;
  box-shadow: inset 0 1px 0 #e7a47c, 0 2px 0 #65280d, 0 4px 8px #36160638;
}
.btn-accent:hover, .br-cta:hover { background: linear-gradient(155deg, #a94e19, #81330e); filter: none; }
:is(.btn, .br-cta, .br-arrow-btn, .cinema-pill):active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: inset 0 2px 3px #20150f55;
}
.br-arrow-btn svg { width: 22px; height: 22px; }
.theme-option[aria-pressed="true"] { outline: 2px solid currentColor; outline-offset: -3px; }
:is(.br-toolbar,.cinema-actions,.cinema-pills,.proto-dock) :focus-visible {
  outline: 3px solid #ffe3af; outline-offset: 2px;
}
.bp-header, .bp-footer { opacity: 1; color: #51555a; }
.theme-editorial :is(.bp-kicker,.bp-sec-title) { color: #76551e; }
.theme-macro :is(.bp-kicker,.bp-sec-title) { color: #993c20; }

@media screen and (max-width: 720px) {
  body :is(button,select,summary,input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"])) {
    min-width: 44px; min-height: 44px;
  }
  .main-nav { height: auto; }
  .br-toolbar label { min-width: 0; max-width: 100%; }
  .br-toolbar select { min-width: 0; max-width: 100%; }
  .br-reading { padding-right: 0; }
  .br-rail { display: none; }
  .br-scroll { padding: 14px 8px 24px; scrollbar-width: thin; }
  .br-scroll::-webkit-scrollbar { width: 5px; height: 5px; }
  .book-pages .book-page { padding: 26px 20px; overflow-wrap: anywhere; min-height: auto; }
  .book-pages :is(.bp-swiss-cover,.bp-swiss-top,.bp-swiss-body,.bp-mag-spread,.bp-bot-top,.bp-bot-steps,.bp-macro-head) {
    grid-template-columns: minmax(0,1fr); gap: 14px;
  }
  .book-pages .bp-swiss-cover-photo { min-height: 0; height: 210px; }
  .book-pages .bp-swiss-ing-col { border: 0; padding: 0; }
  .book-pages .bp-macro-dash { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .book-pages .bp-title { font-size: 34px; }
  .bp-index-grid { columns: 1; }
  .br-stage-inner { transform-origin: top left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: 0s !important; }
}
@media print {
  .book-pages .book-page { background: white; overflow: visible; }
  .book-pages :is(.bp-tip,.bp-bot-ing-card,.bp-macro-cell,.bp-meta-box) { background: white; }
  .book-page li, .bp-tip { break-inside: avoid; }
  body.printing-reader #br-pdf-dialog, body.printing-reader .br-stage-inner { display: block; max-width: none; margin: 0; padding: 0; }
  body.printing-reader #br-pdf-dialog::backdrop { background: transparent; }
  
  
}

@media screen and (max-width: 720px) {
  .nav-btn { flex: 0 0 auto; }
  .switch { min-width: 44px; min-height: 44px; }
}
@media print {
  .br-dialog[open], .view-section { animation: none !important; }
  .book-pages .book-page { padding: 9mm 10mm; }
  .book-pages .bp-bot-steps, .book-pages .bp-steps { row-gap: 6px; }
  .book-pages .bp-bot-top { margin-bottom: 10px; }
  .book-pages .bp-header { margin-bottom: 10px; }
}
@media screen and (max-width: 720px) {
  .switch .slider { inset: 11px 3px; }
}
.switch input:focus-visible + .slider { outline: 3px solid #16629b; outline-offset: 3px; }
@media print {
  .theme-botanical .bp-ing-list { gap: 2px; }
  .theme-botanical .bp-ing-list li { padding-bottom: 2px; }
  .book-pages.fmt-a5 .book-page {
    zoom: .705;
    width: 209.8mm !important;
    min-height: 297mm !important;
    padding: 9mm 10mm;
  }
}


/* ==========================================================================
   PLANER OBIADÓW NA CAŁY TYDZIEŃ + LISTA ZAKUPÓW ZERO-WASTE
   ========================================================================== */
.planner-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.planner-hero h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 38px);
  letter-spacing: -0.02em;
  margin: 4px 0 8px;
}
.planner-lead {
  color: var(--ink-secondary);
  max-width: 66ch;
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}
.planner-hero-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.planner-kpi {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  min-width: 132px;
  box-shadow: 0 2px 6px rgba(23, 43, 53, 0.04);
}
.planner-kpi strong {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.05;
  color: var(--ink);
}
.planner-kpi span {
  font-size: 12px;
  color: var(--ink-secondary);
}
.planner-kpi.accent {
  background: #F4F9F5;
  border-color: #B7D5C1;
}
.planner-kpi.accent strong {
  color: var(--sage);
}

.planner-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 14px;
}
.planner-toolbar-left {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.planner-control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.planner-control-group label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-secondary);
}
.planner-toolbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.planner-zw-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #F5F9F6;
  border: 1px solid #C6DFCE;
  border-radius: 10px;
  padding: 11px 16px;
  margin-bottom: 22px;
}
.planner-zw-banner p {
  margin: 0;
  font-size: 13.5px;
  color: #1F4130;
}
.zw-pill {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 9px;
  border-radius: 999px;
  background: #2D5A43;
  color: #FFFFFF;
}

.planner-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.92fr);
  gap: 24px;
  align-items: start;
}
.planner-days-col, .planner-shop-col {
  min-width: 0;
}
.planner-days-grid {
  display: grid;
  gap: 14px;
}
.planner-day-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 2px 8px rgba(23, 43, 53, 0.04);
}
.planner-day-card.empty {
  border-style: dashed;
  background: #FAF8F4;
}
.planner-day-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.planner-day-name {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.planner-day-shared {
  font-size: 12px;
  font-weight: 600;
  color: var(--sage);
  background: #EEF6F0;
  padding: 3px 9px;
  border-radius: 999px;
}
.planner-day-num {
  font-size: 12px;
  color: var(--ink-muted);
}
.planner-day-main {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}
.planner-day-img {
  width: 116px;
  height: 86px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
}
.planner-day-info {
  min-width: 0;
}
.planner-day-meta {
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 3px;
}
.planner-day-info h4 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.2;
  cursor: pointer;
}
.planner-day-kcal {
  font-size: 12.5px;
  color: var(--ink-secondary);
  margin-bottom: 10px;
}
.planner-day-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.planner-day-empty-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 0 4px;
}
.planner-day-empty-body p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.planner-shop-col {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 84px;
}
.planner-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 3px 12px rgba(23, 43, 53, 0.05);
}
.planner-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  margin: 0;
}
.planner-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.planner-badge {
  font-size: 12px;
  font-weight: 700;
  background: var(--surface-warm);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 999px;
}

.planner-cost-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.cost-tile {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 13px;
  background: #FAF9F6;
}
.cost-tile.best {
  background: #F4F9F5;
  border-color: #B4D4BE;
}
.cost-tile-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-bottom: 4px;
}
.cost-tile-val {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}
.cost-tile.best .cost-tile-val {
  color: #1F5137;
}
.cost-tile-sub {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 2px;
}
.planner-price-notice {
  font-size: 12.5px;
  line-height: 1.48;
  color: var(--ink-secondary);
  margin: 0 0 12px;
}
.planner-fridge-toggle {
  margin-bottom: 12px;
}
.planner-shared-box {
  background: #FAF7F0;
  border: 1px solid #E5DAC6;
  border-radius: 9px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.planner-shared-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.shared-chip {
  font-size: 11.5px;
  background: #FFFFFF;
  border: 1px solid #DFD3BC;
  border-radius: 6px;
  padding: 3px 8px;
  color: var(--ink);
}
.planner-shop-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.planner-shop-list {
  max-height: 460px;
  overflow-y: auto;
  padding-right: 4px;
  display: grid;
  gap: 14px;
}
.shop-cat-title {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-secondary);
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.shop-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
.shop-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px dotted var(--line);
  font-size: 13.5px;
}
.shop-item.is-bought {
  opacity: 0.5;
  text-decoration: line-through;
}
.shop-item-left {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}
.shop-item-left input {
  margin-top: 3px;
  accent-color: var(--sage);
}
.shop-item-left small {
  display: block;
  font-size: 11.5px;
  color: var(--ink-muted);
}
.shop-spec-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: #FFF3DC;
  color: #7D4F0A;
  margin-left: 4px;
  vertical-align: middle;
}
.shop-item-price {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  white-space: nowrap;
}
.planner-empty-msg {
  font-size: 13.5px;
  color: var(--ink-secondary);
  margin: 8px 0 0;
}

.planner-subhint {
  font-size: 13px;
  color: var(--ink-secondary);
  margin: 6px 0 12px;
}
.planner-nearby-form {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.planner-nearby-form .search-input {
  flex: 1;
  min-width: 0;
  padding-left: 12px;
}
.nearby-status {
  font-size: 13px;
  color: var(--ink-secondary);
  background: var(--surface-warm);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.nearby-status a {
  color: var(--accent);
  font-weight: 600;
}
.nearby-list {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.nearby-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #FAF9F6;
  font-size: 13px;
}
.nearby-item small {
  display: block;
  font-size: 11.5px;
  color: var(--ink-muted);
}
.nearby-right {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.nearby-dist {
  font-weight: 700;
  color: var(--sage);
}
.nearby-right a {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.nearby-loc-label {
  font-size: 12px;
  color: var(--ink-secondary);
  margin-bottom: 8px;
}
.nearby-maps-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 12px;
  font-size: 12.5px;
}
.nearby-maps-links a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.nearby-maps-links a:hover {
  text-decoration: underline;
}

.planner-online-block {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.planner-online-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.online-store-btn {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #FFFFFF;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.online-store-btn:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.online-store-btn.highlight {
  background: #FFF9EE;
  border-color: #D7AE66;
}
.online-store-btn strong {
  font-size: 13px;
}
.online-store-btn span {
  font-size: 11px;
  color: var(--ink-muted);
}

/* Modal wyboru dania na dzień */
.week-picker-list {
  display: grid;
  gap: 8px;
  max-height: 55vh;
  overflow-y: auto;
}
.week-picker-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  padding: 8px 10px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
}
.week-picker-row:hover {
  border-color: var(--accent);
  background: #FDFBF7;
}
.week-picker-row img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
}
.week-picker-row-body strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
}
.week-picker-row-body span {
  font-size: 12px;
  color: var(--ink-muted);
}
.week-picker-badges {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}
.zw-chip {
  font-size: 11px;
  font-weight: 700;
  color: #1F5137;
  background: #E8F5EC;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}
.fridge-chip {
  font-size: 11px;
  font-weight: 600;
  color: #7D4F0A;
  background: #FFF2D8;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

@media screen and (max-width: 1080px) {
  .planner-layout { grid-template-columns: 1fr; }
  .planner-shop-col { position: static; }
}
@media screen and (max-width: 720px) {
  .planner-day-main { grid-template-columns: 1fr; }
  .planner-day-img { width: 100%; height: 150px; }
  .planner-cost-grid, .planner-online-grid { grid-template-columns: 1fr; }
  .planner-nearby-form { flex-direction: column; }
  .week-picker-row { grid-template-columns: 52px minmax(0, 1fr); }
  .week-picker-badges { grid-column: 1 / -1; flex-direction: row; }
}


/* ==========================================================================
   GLOBALNA WYSZUKIWARKA Z PODPOWIEDZIAMI (Hero Autocomplete + Header + Spotlight)
   Zgodna z rozwij-ai-frontend: światłocień 3D, kontrast, 44x44px, reduced-motion
   ========================================================================== */

/* Kompaktowy przycisk wyszukiwarki w nagłówku (nie przepełnia 6 zakładek) */
.header-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 44px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #D5CEC2;
  background: linear-gradient(180deg, #FFFFFF 0%, #F4EFE6 100%);
  color: var(--ink);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 #FFFFFF, 0 2px 0 #DDD5C8, 0 4px 10px rgba(23, 43, 53, 0.08);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.header-search-btn svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}
.header-search-btn:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 3px 0 #D4B5A0, 0 6px 14px rgba(23, 43, 53, 0.12);
}
.header-search-btn:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 3px rgba(23, 43, 53, 0.16);
}
.header-search-btn:focus-visible {
  outline: 3px solid #16629b;
  outline-offset: 2px;
}
.hsb-kbd {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 4px;
  background: #ECE6DC;
  border: 1px solid #D5CEC2;
  color: var(--ink-secondary);
}
@media screen and (max-width: 1340px) {
  .hsb-kbd { display: none; }
  .header-search-btn { padding: 0 10px; }
  .nav-btn { padding: 0 7px; }
}
@media screen and (max-width: 1260px) {
  .hsb-label { display: none; }
  .header-search-btn { width: 44px; padding: 0; }
  .header-inner { gap: 10px; padding: 0 14px; }
  .brand-name { font-size: 15.5px; }
  .nav-btn { padding: 0 6px; font-size: 12px; }
}

/* Wyszukiwarka na żywo w sekcji Hero (nad przyciskami CTA) */
.editorial-hero {
  position: relative;
  z-index: 35;
  overflow: visible;
}
.cinema-book-band {
  position: relative;
  z-index: 1;
}
.hero-copy {
  position: relative;
  z-index: 8;
}
.hero-search-wrap {
  position: relative;
  margin: 18px 0 20px;
  max-width: 590px;
  z-index: 30;
}
.hero-search-field {
  position: relative;
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1.5px solid #D3CABE;
  border-radius: 14px;
  padding: 4px 10px 4px 14px;
  box-shadow: inset 0 1px 0 #FFFFFF, 0 2px 0 #DFD7CA, 0 10px 26px rgba(23, 43, 53, 0.08);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.hero-search-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(165, 75, 23, 0.16), 0 12px 28px rgba(23, 43, 53, 0.12);
}
.hero-search-ico {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-right: 10px;
}
.hero-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  min-height: 44px;
  outline: none;
}
.hero-search-input::placeholder {
  color: #77736A;
}
.hero-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.hero-search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: #EFEAE1;
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  margin-right: 6px;
}
.hero-search-clear:hover {
  background: #E2DBD0;
}
.hero-search-kbd {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 7px;
  border-radius: 6px;
  background: #F4F0E8;
  border: 1px solid #DDD5C8;
  color: var(--ink-secondary);
  flex-shrink: 0;
}
.hero-search-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.hero-srch-chip {
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  min-height: 30px;
  border-radius: 999px;
  border: 1px solid #DDD5C8;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink-secondary);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.hero-srch-chip:hover {
  background: #FFFFFF;
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-1px);
}

/* Rozwijany panel podpowiedzi (Hero + Katalog) */
.cat-search-wrap {
  position: relative;
}
.srch-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 460px;
  overflow-y: auto;
  background: #FFFFFF;
  border: 1px solid #D5CEC2;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 22px 48px rgba(23, 43, 53, 0.18), 0 4px 12px rgba(23, 43, 53, 0.08);
  z-index: 80;
}
.srch-dropdown.open {
  display: block;
}

/* Sekcje i wiersze podpowiedzi */
.srch-sec {
  margin-bottom: 10px;
}
.srch-sec:last-child {
  margin-bottom: 0;
}
.srch-sec-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6B6A64;
}
.srch-clear-recent, .srch-see-all {
  background: none;
  border: none;
  padding: 2px 6px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}
.srch-clear-recent:hover, .srch-see-all:hover {
  text-decoration: underline;
}
.srch-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 2px 6px 6px;
}
.srch-chip {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #DFD8CC;
  background: #FAF7F2;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.14s, background 0.14s;
}
.srch-chip:hover {
  border-color: var(--accent);
  background: #FFF6EE;
}

.srch-list {
  display: grid;
  gap: 4px;
}
.srch-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.srch-item-compact {
  grid-template-columns: 36px minmax(0, 1fr) auto;
  padding: 7px 10px;
}
.srch-item:hover, .srch-item.is-active {
  background: #F8F4EC;
  border-color: #E6DDD0;
  border-left-color: var(--accent);
}
.srch-thumb {
  width: 56px;
  height: 44px;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid rgba(23, 43, 53, 0.08);
}
.srch-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
}
.srch-item-icon.ing-ico {
  background: #E9F5EE;
  color: #1F5137;
}
.srch-item-icon.facet-ico {
  background: #FFF1E3;
  color: #9A4217;
}
.srch-item-body {
  min-width: 0;
}
.srch-item-body strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.srch-item-body span {
  display: block;
  font-size: 12px;
  color: var(--ink-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.srch-mark {
  background: #FCE3C6;
  color: #6B2808;
  padding: 0 2px;
  border-radius: 3px;
}
.srch-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}
.srch-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #F1EDE5;
  color: var(--ink-secondary);
  white-space: nowrap;
}
.srch-pill.ok {
  background: #E4F4EA;
  color: #1A5236;
}
.srch-pill.mid {
  background: #FFF2DE;
  color: #824E0B;
}
.srch-quick-acts {
  display: flex;
  gap: 4px;
}
.srch-mini-btn {
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #D8D0C3;
  background: #FFFFFF;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}
.srch-mini-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.srch-mini-btn.is-on {
  background: #172B35;
  border-color: #172B35;
  color: #FFFFFF;
}
.srch-empty {
  text-align: center;
  padding: 24px 16px;
  color: var(--ink-secondary);
  font-size: 14px;
}
.srch-empty p {
  margin: 0;
}

/* Globalny Modal Spotlight (Ctrl+K) */
.spotlight-backdrop {
  align-items: flex-start;
  padding-top: min(10vh, 84px);
  background: rgba(15, 29, 36, 0.56);
  backdrop-filter: blur(6px);
}
.spotlight-shell {
  width: min(720px, calc(100vw - 24px));
  background: #FFFFFF;
  border: 1px solid #D8D0C4;
  border-radius: 16px;
  box-shadow: 0 28px 70px rgba(10, 22, 29, 0.34);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: min(78vh, 660px);
}
.spotlight-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #FDFBF7;
}
.spotlight-ico {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex-shrink: 0;
}
.spotlight-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  min-height: 44px;
  outline: none;
}
.spotlight-input::placeholder {
  color: #77736A;
}
.spotlight-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.spotlight-esc-btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 10px;
  min-height: 34px;
  border-radius: 8px;
  border: 1px solid #D5CEC2;
  background: #FFFFFF;
  color: var(--ink-secondary);
  cursor: pointer;
}
.spotlight-esc-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.spotlight-results {
  padding: 10px 12px;
  overflow-y: auto;
  flex: 1;
}
.spotlight-foot {
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  background: #FAF7F2;
  font-size: 12px;
  color: var(--ink-secondary);
}

@media screen and (max-width: 720px) {
  .hero-search-kbd { display: none; }
  .hero-srch-chip { min-height: 36px; padding: 6px 12px; }
  .srch-item { grid-template-columns: 48px minmax(0, 1fr); }
  .srch-thumb { width: 48px; height: 40px; }
  .srch-item-right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .srch-mini-btn { min-height: 36px; padding: 6px 10px; }
  .spotlight-backdrop { padding-top: 14px; }
  .spotlight-shell { max-height: 86vh; }
}
@media print {
  .header-search-btn, .hero-search-wrap, .spotlight-backdrop { display: none !important; }
}

/* Skrót klawiszowy Ctrl K jest niezrozumiały dla laika – ukryty (działa nadal, opis w podpowiedzi przycisku) */
.hero-search-kbd, .hsb-kbd { display: none !important; }
.planner-shared-box .micro-label { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 700; color: var(--ink); }
.shared-chip small { color: var(--ink-muted); font-size: 11px; }


/* ==========================================================================
   SYSTEM OCENIANIA PRZEPISÓW (1–5 gwiazdek + osobista notatka)
   ========================================================================== */
.card-rating-badge {
  color: #B87409;
  font-weight: 800;
}
.recipe-rating-box {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #FAF7F1;
  border: 1px solid #E5DDD0;
  display: grid;
  gap: 12px;
}
.recipe-rating-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.recipe-rating-top strong {
  font-size: 14px;
  color: var(--ink);
}
.recipe-rating-status {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-secondary);
}
.star-picker {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.star-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #E2D9CB;
  background: #FFFFFF;
  color: #C7BFB1;
  font-size: 22px;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.14s ease, color 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}
.star-btn:hover {
  transform: translateY(-1px);
  border-color: #D19A2E;
  color: #D19A2E;
}
.star-btn.is-filled {
  color: #C88412;
  background: #FFF9EC;
  border-color: #DFB768;
}
.star-btn:focus-visible {
  outline: 3px solid #16629b;
  outline-offset: 2px;
}
.recipe-note-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.recipe-note-form input {
  flex: 1;
  min-width: 200px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #D5CEC2;
  background: #FFFFFF;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink);
}


/* ==========================================================================
   PRACOWNIA „DODAJ WŁASNY PRZEPIS” (wg skilla rozwij-ai-frontend)
   Jasna karta pracowni + ciemna, filmowa scena podglądu na żywo + światłocień 3D
   ========================================================================== */
.custom-studio-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.custom-studio-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 38px);
  letter-spacing: -0.02em;
  margin: 4px 0 0;
}
.custom-status-bar {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid #E2D9CB;
  font-size: 13.5px;
  color: var(--ink-secondary);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 4px 12px rgba(23, 43, 53, 0.05);
}

.custom-studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 0.86fr);
  gap: 24px;
  align-items: start;
}
.custom-studio-card {
  background: #FFFFFF;
  border: 1px solid #DFD7CA;
  border-radius: 16px;
  padding: 26px 28px;
  box-shadow: inset 0 1px 0 #FFFFFF, 0 12px 32px rgba(23, 43, 53, 0.06);
  min-width: 0;
}
.custom-form {
  display: grid;
  gap: 24px;
}
.cf-section {
  display: grid;
  gap: 14px;
  padding-bottom: 22px;
  border-bottom: 1px solid #ECE6DC;
}
.cf-section:last-of-type {
  padding-bottom: 4px;
  border-bottom: none;
}
.cf-sec-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cf-sec-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: #FBF1E8;
  border: 1px solid #EBD3BF;
  border-radius: 7px;
  padding: 3px 7px;
}
.cf-sec-head h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  margin: 0;
  color: var(--ink);
}
.cf-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.custom-studio-card .field label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 5px;
}
.custom-studio-card .field input,
.custom-studio-card .field select,
.custom-studio-card .field textarea {
  background: #FAF8F4;
  border: 1.5px solid #DFD7C9;
  border-radius: 10px;
  padding: 10px 13px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  box-shadow: inset 0 1px 2px rgba(23, 43, 53, 0.04);
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.custom-studio-card .field input:focus,
.custom-studio-card .field select:focus,
.custom-studio-card .field textarea:focus {
  background: #FFFFFF;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(165, 75, 23, 0.16);
  outline: none;
}
.custom-studio-card .field textarea {
  resize: vertical;
  line-height: 1.55;
}

/* Upload zdjęcia dania */
.cf-photo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cf-photo-drop {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px dashed #CFC5B4;
  background: linear-gradient(180deg, #FCFBF8 0%, #F5F1E9 100%);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.cf-photo-drop:hover {
  border-color: var(--accent);
  background: #FFFDF9;
}
.cf-photo-thumb {
  width: 64px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(23, 43, 53, 0.12);
  flex-shrink: 0;
}
.cf-photo-copy strong {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
}
.cf-photo-copy span {
  display: block;
  font-size: 12px;
  color: var(--ink-secondary);
  margin-top: 2px;
}

/* Etykiety diety i szybkie składniki */
.cf-sublabel {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-secondary);
  margin-bottom: 8px;
}
.cf-diet-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cf-diet-pill {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  min-height: 36px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid #D9D1C3;
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F1E9 100%);
  color: var(--ink-secondary);
  cursor: pointer;
  box-shadow: inset 0 1px 0 #FFFFFF, 0 1px 0 #DCD4C6;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease, color 0.14s ease;
}
.cf-diet-pill:hover {
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-1px);
}
.cf-diet-pill[aria-pressed="true"] {
  background: linear-gradient(155deg, #274553, #172B35);
  border-color: #2E4F5E;
  color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 2px 0 #0F1E26;
}
.cf-diet-pill:focus-visible, .cf-ing-btn:focus-visible, .cls-mode-btn:focus-visible {
  outline: 3px solid #16629b;
  outline-offset: 2px;
}

.cf-quick-ings {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.cf-quick-ings .cf-sublabel {
  margin: 0 4px 0 0;
}
.cf-ing-btn {
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  min-height: 32px;
  border-radius: 8px;
  border: 1px solid #DCD4C6;
  background: #FAF7F1;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease, transform 0.14s ease;
}
.cf-ing-btn:hover {
  border-color: var(--accent);
  background: #FFF6EE;
  transform: translateY(-1px);
}

.cf-actions-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 6px;
}

/* Ciemna, filmowa scena podglądu na żywo (kontrast z jasną kartą wg rozwij-ai-frontend) */
.custom-live-stage {
  position: sticky;
  top: 84px;
  border-radius: 18px;
  padding: 22px 22px 20px;
  background: radial-gradient(circle at 18% 12%, #24404E 0%, #172B35 58%, #101F27 100%);
  color: #F4F0E8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 52px rgba(15, 29, 36, 0.26);
  overflow: hidden;
  min-width: 0;
}
.cls-aura {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(214, 118, 62, 0.26) 0%, transparent 70%);
  pointer-events: none;
}
.cls-top {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.cls-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #E7B98A;
}
.cls-mode-switch {
  display: inline-flex;
  gap: 6px;
}
.cls-mode-btn {
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #E9E4DB;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.cls-mode-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}
.cls-mode-btn[aria-pressed="true"] {
  background: linear-gradient(155deg, #a54b17, #83330d);
  border-color: #c26d3d;
  color: #FFFFFF;
  box-shadow: inset 0 1px 0 #e7a47c, 0 2px 0 #65280d;
}
.cls-mount {
  position: relative;
}
.cls-foot-hint {
  position: relative;
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(244, 240, 232, 0.76);
}

/* Podgląd karty w serwisie (wewnątrz ciemnej sceny) */
.cls-card-preview {
  background: #FFFFFF;
  color: var(--ink);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.cls-card-img-wrap {
  position: relative;
  height: 196px;
  overflow: hidden;
}
.cls-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cls-card-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(23, 43, 53, 0.88);
  color: #FFFFFF;
  backdrop-filter: blur(6px);
}
.cls-card-body {
  padding: 16px 18px 18px;
}
.cls-card-body h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.2;
  margin: 6px 0 6px;
  color: var(--ink);
}
.cls-card-body p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-secondary);
  margin: 0 0 12px;
}
.cls-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cls-card-tags span {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: #F4F0E8;
  color: var(--ink-secondary);
}

/* Podgląd białej kartki PDF (wewnątrz ciemnej sceny) */
.cls-pdf-sheet {
  background: #FFFFFF;
  color: #161816;
  border-radius: 6px;
  padding: 20px 20px 16px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.34);
  border-top: 3px solid #2D5A43;
}
.cls-pdf-kicker {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2D5A43;
}
.cls-pdf-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.12;
  margin: 5px 0 6px;
}
.cls-pdf-desc {
  font-size: 12px;
  line-height: 1.45;
  color: #555956;
  margin: 0 0 12px;
}
.cls-pdf-photo {
  width: 100%;
  height: 132px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 12px;
}
.cls-pdf-cols {
  display: grid;
  grid-template-columns: 0.92fr 1.18fr;
  gap: 14px;
  font-size: 11.5px;
  line-height: 1.45;
}
.cls-pdf-sub {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2D5A43;
  border-bottom: 1px solid #DCE2DC;
  padding-bottom: 4px;
  margin-bottom: 6px;
}
.cls-pdf-cols ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px;
}
.cls-pdf-cols ul li {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
.cls-pdf-cols ol {
  padding-left: 16px;
  margin: 0;
  display: grid;
  gap: 4px;
}
.cls-pdf-foot {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid #E5E7E5;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  color: #636864;
}

/* Dolna półka: Twoje własne przepisy */
.custom-shelf {
  margin-top: 34px;
}
.custom-shelf-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.custom-shelf-head h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 25px;
  margin: 0;
}
.custom-shelf-count {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid #DFD7CA;
  color: var(--ink-secondary);
}
.custom-empty-shelf {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #FFFFFF;
  border: 1px dashed #D3CABE;
  border-radius: 14px;
  padding: 20px 22px;
}
.custom-empty-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #FBF1E8;
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.custom-empty-icon svg {
  width: 26px;
  height: 26px;
}
.custom-empty-shelf strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 3px;
}
.custom-empty-shelf p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

@media screen and (max-width: 1080px) {
  .custom-studio-layout { grid-template-columns: 1fr; }
  .custom-live-stage { position: static; }
}
@media screen and (max-width: 720px) {
  .custom-studio-card { padding: 20px 16px; }
  .cf-metrics-row { grid-template-columns: 1fr 1fr; }
  .cls-pdf-cols { grid-template-columns: 1fr; }
  .cf-actions-bar .btn { width: 100%; }
  .custom-empty-shelf { flex-direction: column; align-items: flex-start; }
}


/* ==========================================================================
   SPÓJNY STYL WSZYSTKICH ZAKŁADEK (wzorowany na zaakceptowanej sekcji Hero)
   Ciepła kremowa karta + miękka aura światła + kursywa Instrument Serif terakota
   ========================================================================== */
.tab-hero-band {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  padding: 28px 34px;
  margin-bottom: 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, #FFFDF9 0%, #FAF5EC 62%, #F6F0E6 100%);
  border: 1px solid #E7DFD3;
  box-shadow: inset 0 1px 0 #FFFFFF, 0 14px 36px rgba(23, 43, 53, 0.06);
}
.tab-hero-aura {
  position: absolute;
  top: -80px;
  left: -60px;
  width: 340px;
  height: 260px;
  background: radial-gradient(circle, rgba(214, 128, 72, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.tab-hero-body {
  position: relative;
  z-index: 2;
  max-width: 68ch;
}
.tab-hero-band h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 8px 0 8px;
}
.tab-hero-band h2 em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.12em;
  color: #9E4414;
}
.tab-hero-pill {
  position: relative;
  z-index: 2;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #E2D9CB;
  padding: 9px 14px;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 #FFFFFF, 0 3px 10px rgba(23, 43, 53, 0.05);
}
.tab-hero-band .planner-hero-stats,
.tab-hero-band .custom-status-bar {
  position: relative;
  z-index: 2;
}
/* Ujednolicenie kart cennika, kontrolek i filtrów do tego samego ciepłego stylu atelier */
.price-card {
  border-radius: 18px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FCF9F4 100%);
  border: 1px solid #E4DCD0;
  box-shadow: inset 0 1px 0 #FFFFFF, 0 10px 28px rgba(23, 43, 53, 0.05);
}
.price-card.featured {
  border-color: #C77E52;
  box-shadow: inset 0 1px 0 #FFFFFF, 0 16px 38px rgba(158, 68, 20, 0.12);
}
.control-block, .filters-bar {
  border-radius: 16px;
}

@media screen and (max-width: 720px) {
  .tab-hero-band {
    padding: 22px 18px;
    border-radius: 16px;
  }
}
@media print {
  .tab-hero-band { display: none !important; }
}


/* ==========================================================================
   ATELIER 3D LIGHTING, TONAL GRADIENTS & MAGNETIC HOVER SYSTEM (rozwij-ai-frontend)
   Kierunek światła: 145deg (góra-lewo) -> jasny refleks krawędzi + głębia u podstawy
   ========================================================================== */

/* 1. Atmosferyczne tło pracowni zamiast płaskiego beżu */
body {
  background-color: #EFE9DF;
  background-image:
    radial-gradient(ellipse 85% 48% at 12% 0%, rgba(224, 148, 88, 0.14) 0%, transparent 62%),
    radial-gradient(ellipse 70% 42% at 90% 8%, rgba(23, 43, 53, 0.07) 0%, transparent 58%),
    linear-gradient(180deg, #F5F0E7 0%, #ECE5D9 100%);
  background-attachment: fixed;
}

/* 2. Wypukłe, rzeźbione powierzchnie z przejściem tonalnym i światłocieniem dla WSZYSTKICH boxów */
.editorial-hero,
.tab-hero-band,
.fridge-panel,
.filters-bar,
.planner-toolbar,
.planner-card,
.planner-day-card,
.custom-studio-card,
.control-block,
.price-card,
.shopify-arch-box,
.custom-empty-shelf,
.custom-status-bar {
  background: linear-gradient(155deg, #FFFFFF 0%, #FDFBF7 54%, #F5EFE4 100%);
  border: 1px solid #DFD5C6;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 1px 0 0 rgba(255, 255, 255, 0.65),
    inset 0 -2px 0 rgba(164, 143, 114, 0.16),
    0 2px 4px rgba(23, 43, 53, 0.05),
    0 10px 24px -4px rgba(23, 43, 53, 0.08),
    0 20px 40px -16px rgba(23, 43, 53, 0.10);
}

.tab-hero-band {
  background:
    radial-gradient(ellipse 65% 110% at 8% 0%, rgba(222, 134, 74, 0.16) 0%, transparent 65%),
    linear-gradient(148deg, #FFFFFF 0%, #FCF8F0 52%, #F3EADF 100%);
  border-color: #DFD3C2;
}

.planner-kpi,
.cost-tile {
  background: linear-gradient(160deg, #FFFFFF 0%, #FAF6EE 100%);
  border: 1px solid #DFD5C5;
  box-shadow:
    inset 0 1px 0 #FFFFFF,
    inset 0 -2px 0 rgba(164, 143, 114, 0.16),
    0 4px 12px rgba(23, 43, 53, 0.06);
  transition: transform 0.22s var(--ease-atelier), box-shadow 0.22s var(--ease-atelier);
}
.planner-kpi.accent,
.cost-tile.best {
  background: linear-gradient(155deg, #F9FDFB 0%, #ECF6F0 100%);
  border-color: #B4D4BE;
  box-shadow:
    inset 0 1px 0 #FFFFFF,
    inset 0 -2px 0 rgba(45, 90, 67, 0.14),
    0 6px 16px rgba(45, 90, 67, 0.09);
}

/* 3. Karty dań (.recipe-card i .planner-day-card): głębia 3D + magnetyczny efekt hover + błysk światła na zdjęciu */
.recipe-card {
  position: relative;
  border-radius: 18px;
  background: linear-gradient(162deg, #FFFFFF 0%, #FDFBF7 58%, #F4EDE1 100%);
  border: 1px solid #DFD5C5;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -2px 0 rgba(164, 143, 114, 0.18),
    0 2px 5px rgba(23, 43, 53, 0.05),
    0 10px 24px -6px rgba(23, 43, 53, 0.09);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.24s ease;
  will-change: transform;
}
.recipe-card:hover {
  transform: translateY(-6px);
  border-color: #D4AE8E;
  box-shadow:
    inset 0 1px 0 #FFFFFF,
    inset 0 -2px 0 rgba(165, 75, 23, 0.22),
    0 8px 18px rgba(158, 68, 20, 0.10),
    0 24px 48px -12px rgba(23, 43, 53, 0.20);
}
.recipe-card:active {
  transform: translateY(-2px);
}

.card-photo-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 17px 17px 0 0;
}
.card-photo-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(16, 28, 34, 0.06) 0%, transparent 38%, rgba(16, 28, 34, 0.26) 100%);
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.card-photo-wrap::after {
  content: "";
  position: absolute;
  inset: -20% -60%;
  z-index: 2;
  background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, 0.26) 50%, transparent 62%);
  transform: translateX(-65%);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.recipe-card:hover .card-photo-wrap::after {
  transform: translateX(65%);
}
.card-photo-wrap img {
  transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}
.recipe-card:hover .card-photo-wrap img {
  transform: scale(1.06);
  filter: saturate(1.06) contrast(1.02);
}
.photo-match-pill,
.photo-fav-btn {
  z-index: 3;
}
.recipe-card .card-title {
  transition: color 0.18s ease;
}
.recipe-card:hover .card-title {
  color: #9A3F12;
}
.recipe-card .card-link-btn {
  transition: transform 0.2s ease, color 0.18s ease;
}
.recipe-card:hover .card-link-btn {
  color: #9A3F12;
  transform: translateX(3px);
}

/* Hover wypukły również na kartach dni w Planerze tygodnia i kartach cennika */
.planner-day-card {
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s ease, border-color 0.22s ease;
}
.planner-day-card:hover {
  transform: translateY(-3px);
  border-color: #D4AE8E;
  box-shadow:
    inset 0 1px 0 #FFFFFF,
    inset 0 -2px 0 rgba(165, 75, 23, 0.18),
    0 16px 34px -8px rgba(23, 43, 53, 0.16);
}
.planner-day-img {
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.planner-day-card:hover .planner-day-img {
  transform: scale(1.04);
}
.price-card {
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.26s ease, border-color 0.22s ease;
}
.price-card:hover {
  transform: translateY(-5px);
  border-color: #CFA27F;
  box-shadow:
    inset 0 1px 0 #FFFFFF,
    inset 0 -2px 0 rgba(165, 75, 23, 0.2),
    0 22px 44px -10px rgba(23, 43, 53, 0.16);
}

/* 4. Wklęsłe, dotykowe pola formularzy (kontrastują z wypukłymi przyciskami 3D!) */
.custom-studio-card .field input,
.custom-studio-card .field select,
.custom-studio-card .field textarea,
.control-block input:not([type="checkbox"]):not([type="file"]),
.control-block select,
.filter-select,
.search-input,
.recipe-note-form input {
  background: linear-gradient(180deg, #F3EDE3 0%, #FAF7F1 36%, #FFFFFF 100%);
  border: 1.5px solid #D8CEBE;
  box-shadow:
    inset 0 2px 4px rgba(23, 43, 53, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.92);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.custom-studio-card .field input:hover,
.custom-studio-card .field select:hover,
.custom-studio-card .field textarea:hover,
.filter-select:hover,
.search-input:hover {
  border-color: #C4B6A1;
}
.custom-studio-card .field input:focus,
.custom-studio-card .field select:focus,
.custom-studio-card .field textarea:focus,
.filter-select:focus,
.search-input:focus {
  background: #FFFFFF;
  border-color: var(--accent);
  box-shadow:
    inset 0 1px 2px rgba(23, 43, 53, 0.04),
    0 0 0 3px rgba(165, 75, 23, 0.18);
  outline: none;
}

/* 5. Wypukłe przyciski 3D, pigułki i kafelki z wyraźnym światłocieniem */
.btn-outline,
.btn-google,
.book-add-btn,
.ing-chip,
.hero-srch-chip,
.cf-diet-pill,
.cf-ing-btn,
.online-store-btn,
.theme-option,
.star-btn {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8F3EB 65%, #EFE8DC 100%);
  border-color: #D7CCBC;
  box-shadow:
    inset 0 1px 0 #FFFFFF,
    0 2px 0 #D2C6B4,
    0 5px 12px rgba(23, 43, 53, 0.08);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.btn-outline:hover,
.btn-google:hover,
.book-add-btn:hover,
.ing-chip:hover,
.hero-srch-chip:hover,
.cf-diet-pill:hover,
.cf-ing-btn:hover,
.online-store-btn:hover,
.theme-option:hover,
.star-btn:hover {
  transform: translateY(-2px);
  border-color: #C98B63;
  box-shadow:
    inset 0 1px 0 #FFFFFF,
    0 3px 0 #CCB8A2,
    0 10px 20px rgba(23, 43, 53, 0.12);
}
.btn-outline:active,
.btn-google:active,
.book-add-btn:active,
.ing-chip:active,
.hero-srch-chip:active,
.cf-diet-pill:active,
.cf-ing-btn:active,
.online-store-btn:active,
.star-btn:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(23, 43, 53, 0.16);
}

/* Stany wybrane (ciemny łupkowy 3D lub terakota 3D) */
.ing-chip.selected,
.book-add-btn.in-book,
.cf-diet-pill[aria-pressed="true"] {
  background: linear-gradient(155deg, #2A4B5A 0%, #172B35 100%);
  border-color: #365D70;
  color: #FFFFFF;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 2px 0 #0D1A21,
    0 6px 14px rgba(15, 29, 36, 0.22);
}
.online-store-btn.highlight {
  background: linear-gradient(155deg, #FFFDF7 0%, #FCEFD9 100%);
  border-color: #D3A354;
  box-shadow:
    inset 0 1px 0 #FFFFFF,
    0 2px 0 #C89B4F,
    0 8px 18px rgba(165, 110, 23, 0.14);
}
.star-btn.is-filled {
  background: linear-gradient(160deg, #FFFDF5 0%, #FBECC9 100%);
  border-color: #D8A74A;
  color: #BD7A0A;
  box-shadow:
    inset 0 1px 0 #FFFFFF,
    0 2px 0 #C8963A,
    0 4px 10px rgba(189, 122, 10, 0.16);
}

/* 6. Ciemne sekcje filmowe ze światłem brzegowym i głębią */
.cinema-book-band,
.custom-live-stage,
.sub-hero {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 26px 56px -14px rgba(13, 25, 32, 0.34);
}

/* Szacunek dla prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .recipe-card:hover,
  .planner-day-card:hover,
  .price-card:hover,
  .btn-outline:hover,
  .ing-chip:hover {
    transform: none !important;
  }
  .card-photo-wrap::after {
    display: none !important;
  }
}

html, body {
  overflow-x: clip;
}

.site-header {
  max-width: 100%;
  overflow-x: clip;
}


/* ==========================================================================
   PLANER TYGODNIA 2.0 — 3-KROKOWY KREATOR UX/UI (Atelier 3D + rozwij-ai-frontend)
   ========================================================================== */
.planner-hero-v2 {
  align-items: center;
}
.planner-quick-setup {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #E3D9CA;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: inset 0 1px 0 #FFFFFF, 0 8px 20px rgba(23, 43, 53, 0.06);
}

/* Ciemny, filmowy pasek 3 kroków */
.planner-stepper-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 16px;
  margin-bottom: 22px;
  border-radius: 18px;
  background: radial-gradient(circle at 12% 0%, #24404E 0%, #172B35 58%, #101F27 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 20px 44px -12px rgba(13, 25, 32, 0.34);
}
.planner-steps-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
}
.pstep-btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 52px;
  padding: 8px 16px 8px 10px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #EAE4DA;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.pstep-btn:hover {
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-1px);
}
.pstep-btn[aria-pressed="true"] {
  background: linear-gradient(155deg, #a54b17, #83330d);
  border-color: #c97141;
  color: #FFFFFF;
  box-shadow: inset 0 1px 0 #e7a47c, 0 2px 0 #5f250b, 0 8px 18px rgba(0, 0, 0, 0.25);
}
.pstep-btn:focus-visible {
  outline: 3px solid #ffe3af;
  outline-offset: 2px;
}
.pstep-num {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}
.pstep-btn[aria-pressed="true"] .pstep-num {
  background: rgba(255, 255, 255, 0.26);
}
.pstep-txt strong {
  display: block;
  font-size: 13.5px;
  line-height: 1.15;
}
.pstep-txt small {
  display: block;
  font-size: 11.5px;
  opacity: 0.84;
  margin-top: 2px;
}

.planner-step-panel {
  display: none;
}
.planner-step-panel.active {
  display: block;
}

.planner-step-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.planner-inline-kpis {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.planner-mini-kpi {
  font-size: 13px;
  color: var(--ink-secondary);
  background: linear-gradient(180deg, #FFFFFF 0%, #F7F2E9 100%);
  border: 1px solid #DFD5C5;
  padding: 7px 13px;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 #FFFFFF, 0 2px 6px rgba(23, 43, 53, 0.05);
}
.planner-mini-kpi strong {
  color: var(--ink);
}
.planner-mini-kpi.accent {
  background: linear-gradient(180deg, #F7FDF9 0%, #E9F5ED 100%);
  border-color: #B4D4BE;
  color: #1F5137;
}
.planner-mini-kpi.accent strong {
  color: #1F5137;
}
.planner-step-intro-acts {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Siatka 7 wizualnych kart obiadów (Krok 1) */
.planner-days-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.planner-day-card-v2 {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(162deg, #FFFFFF 0%, #FDFBF7 58%, #F4EDE1 100%);
  border: 1px solid #DFD5C5;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -2px 0 rgba(164, 143, 114, 0.18),
    0 2px 5px rgba(23, 43, 53, 0.05),
    0 10px 24px -6px rgba(23, 43, 53, 0.09);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.26s ease, border-color 0.22s ease;
}
.planner-day-card-v2:hover {
  transform: translateY(-6px);
  border-color: #D4AE8E;
  box-shadow:
    inset 0 1px 0 #FFFFFF,
    inset 0 -2px 0 rgba(165, 75, 23, 0.22),
    0 8px 18px rgba(158, 68, 20, 0.10),
    0 24px 48px -12px rgba(23, 43, 53, 0.20);
}
.planner-day-card-v2.empty {
  border-style: dashed;
  justify-content: center;
  min-height: 290px;
}
.pdc-empty-inner {
  padding: 28px 20px;
  text-align: center;
  display: grid;
  gap: 10px;
  justify-items: center;
}
.pdc-day-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.pdc-photo-wrap {
  position: relative;
  height: 168px;
  overflow: hidden;
  cursor: pointer;
}
.pdc-photo-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(14, 24, 30, 0.34) 0%, transparent 45%, rgba(14, 24, 30, 0.28) 100%);
  pointer-events: none;
}
.pdc-photo-wrap::after {
  content: "";
  position: absolute;
  inset: -20% -60%;
  z-index: 2;
  background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, 0.26) 50%, transparent 62%);
  transform: translateX(-65%);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.planner-day-card-v2:hover .pdc-photo-wrap::after {
  transform: translateX(65%);
}
.pdc-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.planner-day-card-v2:hover .pdc-photo-wrap img {
  transform: scale(1.06);
}
.pdc-day-ribbon {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(23, 43, 53, 0.9);
  color: #FFFFFF;
  backdrop-filter: blur(6px);
}
.pdc-shared-pill {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 3;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(236, 248, 240, 0.94);
  color: #1D5236;
  border: 1px solid rgba(45, 90, 67, 0.25);
}
.pdc-body {
  padding: 15px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pdc-meta {
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 5px;
}
.pdc-body h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.22;
  margin: 0 0 14px;
  cursor: pointer;
  transition: color 0.16s ease;
}
.planner-day-card-v2:hover .pdc-body h4 {
  color: #9A3F12;
}
.pdc-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pdc-actions .btn {
  flex: 1;
  min-height: 38px;
  padding: 6px 12px;
}
.pdc-rm-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid #DFD5C5;
  background: #FAF7F1;
  color: var(--ink-muted);
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.pdc-rm-btn:hover {
  color: #9A3F12;
  border-color: #D4AE8E;
}

.planner-step-footer {
  margin-top: 22px;
  padding: 18px 22px;
  border-radius: 16px;
  background: linear-gradient(155deg, #FFFFFF 0%, #F7F2E8 100%);
  border: 1px solid #DFD5C5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.planner-step-footer p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-secondary);
  max-width: 62ch;
}

/* Krok 2: Studio listy zakupów (jasna lista + ciemny panel kosztów) */
.planner-shop-studio {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.88fr);
  gap: 24px;
  align-items: start;
}
.planner-list-sub {
  display: block;
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: 3px;
}
.planner-shop-list-full {
  max-height: none;
  overflow: visible;
}
.planner-cost-dark-card {
  position: sticky;
  top: 84px;
  border-radius: 18px;
  padding: 22px;
  background: radial-gradient(circle at 15% 10%, #24404E 0%, #172B35 58%, #101F27 100%);
  color: #F4F0E8;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 24px 52px rgba(13, 25, 32, 0.30);
}
.planner-cost-dark-card .cost-tile {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}
.planner-cost-dark-card .cost-tile.best {
  background: rgba(45, 118, 82, 0.28);
  border-color: rgba(130, 214, 168, 0.42);
}
.planner-cost-dark-card .cost-tile-label,
.planner-cost-dark-card .cost-tile-sub {
  color: rgba(244, 240, 232, 0.8);
}
.planner-cost-dark-card .cost-tile-val,
.planner-cost-dark-card .cost-tile.best .cost-tile-val {
  color: #FFFFFF;
}
.planner-price-notice-dark {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(244, 240, 232, 0.78);
  margin: 0 0 14px;
}
.planner-fridge-toggle-dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #F4F0E8;
  margin-bottom: 14px;
}
.planner-fridge-toggle-dark strong {
  color: #FFFFFF;
}
.planner-fridge-toggle-dark span {
  color: rgba(244, 240, 232, 0.78);
}
.planner-shared-dark {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  margin-bottom: 16px;
}
.planner-shared-dark .micro-label {
  color: #F4F0E8 !important;
}
.planner-shared-dark .shared-chip {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}
.planner-shared-dark .shared-chip small {
  color: rgba(244, 240, 232, 0.75);
}

/* Krok 3: Sklepy i dostawa online */
.planner-stores-studio {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 24px;
  align-items: start;
}
.planner-online-grid-v2 {
  grid-template-columns: 1fr;
  gap: 10px;
}

@media screen and (max-width: 1080px) {
  .planner-shop-studio,
  .planner-stores-studio {
    grid-template-columns: 1fr;
  }
  .planner-cost-dark-card {
    position: static;
  }
}
@media screen and (max-width: 720px) {
  .planner-quick-setup { width: 100%; }
  .planner-quick-setup .btn { width: 100%; }
  .pstep-btn { flex: 1 1 100%; }
  .planner-stepper-right { width: 100%; }
  .planner-stepper-right .btn { width: 100%; }
  .pdc-rm-btn { min-width: 44px; min-height: 44px; }
}


/* ==========================================================================
   SŁOWNICZEK RZADKICH SKŁADNIKÓW (? -> Co to jest / Gdzie kupić / Zamiennik)
   ========================================================================== */
.common-only-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 13px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F5EFE4 100%);
  border: 1px solid #D8CEBE;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 #FFFFFF, 0 2px 0 #D2C6B4;
}
.common-only-pill input {
  accent-color: var(--sage);
  width: 16px;
  height: 16px;
}

.ing-rare-name {
  text-decoration: underline dotted #B86B3D;
  text-underline-offset: 3px;
}
.ing-sub-inline {
  display: block;
  font-size: 11.5px;
  color: #2D5A43;
  margin-top: 2px;
}
.ing-help-btn {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  border-radius: 999px;
  border: 1px solid #D4B49A;
  background: linear-gradient(180deg, #FFFDF9 0%, #F7EAE0 100%);
  color: #9A3F12;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
}
.ing-help-btn:hover {
  background: #9A3F12;
  border-color: #9A3F12;
  color: #FFFFFF;
}
.ing-swap-btn {
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #B7D5C1;
  background: #F1F8F3;
  color: #1F5137;
  cursor: pointer;
  white-space: nowrap;
}
.ing-swap-btn:hover {
  background: #2D5A43;
  color: #FFFFFF;
}
.ing-swap-btn.is-swapped {
  background: #FAF5EC;
  border-color: #D5C8B5;
  color: var(--ink-secondary);
}
.shop-item-left-wrap {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  flex-wrap: wrap;
}
.shop-sub-orig {
  font-size: 11.5px;
  color: var(--ink-muted);
  font-weight: 400;
}

/* Podręczna karteczka słowniczka (Atelier 3D) */
.ing-popover {
  position: fixed;
  z-index: 260;
  width: min(360px, calc(100vw - 24px));
  background: linear-gradient(155deg, #FFFFFF 0%, #FCF9F2 100%);
  border: 1px solid #D8C9B5;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow:
    inset 0 1px 0 #FFFFFF,
    0 24px 54px rgba(15, 29, 36, 0.28),
    0 4px 12px rgba(23, 43, 53, 0.12);
}
.ing-pop-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}
.ing-pop-kicker {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.ing-pop-head h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  margin: 2px 0 0;
  color: var(--ink);
  text-transform: capitalize;
}
.ing-pop-close {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #DFD5C5;
  background: #FAF6EE;
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.ing-pop-co {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 10px;
}
.ing-pop-row {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-secondary);
  margin-bottom: 10px;
}
.ing-pop-row strong {
  color: var(--ink);
  display: block;
  margin-bottom: 2px;
}
.ing-pop-swap-box {
  background: linear-gradient(155deg, #F5FBF7 0%, #E9F5ED 100%);
  border: 1px solid #B7D5C1;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #1A4730;
}
.ing-pop-swap-box strong {
  display: block;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}
@media screen and (max-width: 720px) {
  .ing-popover {
    left: 12px !important;
    right: 12px !important;
    top: auto !important;
    bottom: 14px !important;
    width: auto;
  }
  .ing-help-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    font-size: 14px;
  }
}


/* Poprawka marginesów wewnętrznych w Kreatorze PDF (nic nie dotyka krawędzi!) */
.creator-controls {
  padding: 16px;
  gap: 16px;
}
.control-block {
  padding: 18px 20px !important;
  border-radius: 16px;
}
.control-block h3 {
  margin: 0 0 12px;
}

/* Sekcja „Warianty i triki na podbicie smaku” w oknie przepisu */
.chef-tip-box {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: linear-gradient(155deg, #FCF8F1 0%, #F5EDE0 100%);
  border: 1px solid #E3D6C3;
  border-left: 3px solid var(--accent);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-secondary);
}
.flavor-tips-card {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(155deg, #F7FCF9 0%, #EDF6F0 100%);
  border: 1px solid #C4DEC9;
}
.flavor-tips-head {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1F5137;
  margin-bottom: 8px;
}
.flavor-tips-list {
  display: grid;
  gap: 8px;
}
.flavor-tip-item {
  font-size: 12.5px;
  line-height: 1.48;
  color: #1F3C2D;
}
.flavor-tip-item strong {
  color: #143625;
}
