/* ════════════════════════════════════════════════════
   REZEPTIFY v2.0 — DESIGN TOKENS
════════════════════════════════════════════════════ */
:root {
  --n-0:   #ffffff;
  --n-50:  #fcf9f8;
  --n-100: #f0edec;
  --n-150: #ebe7e7;
  --n-200: #dcc1b3;
  --n-400: #887366;
  --n-600: #554338;
  --n-800: #3a1e00;
  --n-900: #1c1b1b;
  --n-950: #1c1b1b;

  --a-50:  #fef4ee;
  --a-100: #ffdbc8;
  --a-300: #ffb68a;
  --a-400: #e8823a;
  --a-500: #984700;
  --a-600: #743500;

  --bg:      #fcf9f8;
  --surface: #ffffff;
  --border:  #dcc1b3;
  --text:    #1c1b1b;
  --muted:   #887366;
  --accent:  #e8823a;
  --shadow:  rgba(28,27,27,0.06);

  --serif: 'Plus Jakarta Sans', Georgia, sans-serif;
  --sans:  'Inter', system-ui, sans-serif;

  --r-sm: 12px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t:    0.18s var(--ease);
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  :root {
    --n-50:  #2d2b2b;
    --n-100: #353232;
    --n-150: #3d3a3a;
    --n-200: #5a5050;
    --n-200: #3d3532;
    --n-400: #8a7b72;
    --n-600: #c2b0a5;
    --n-800: #e8d5c8;
    --n-900: #fcf9f8;
    --n-950: #111010;
    --bg:      #1c1b1b;
    --surface: #242323;
    --border:  #3d3532;
    --text:    #fcf9f8;
    --muted:   #8a7b72;
    --shadow:  rgba(0,0,0,0.3);
  }
}

/* ════════════════════════════════════════════════════
   RESET & BASE
════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-size: 20px; line-height: 1; vertical-align: middle; flex-shrink: 0;
}

/* ════════════════════════════════════════════════════
   LOGIN SCREEN
════════════════════════════════════════════════════ */
#login-screen {
  display: none;
  position: fixed; inset: 0;
  background: var(--n-950);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
#login-screen.on { display: flex; }
.login-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 2.5rem 2rem;
  width: 100%; max-width: 380px;
  margin: 1rem;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}
.login-logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 1.75rem;
}
.login-logo-icon {
  width: 44px; height: 44px;
  background: var(--accent);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.login-logo-icon .material-symbols-outlined { font-size: 22px; color: white; }
.login-logo-text { font-family: var(--serif); font-size: 1.4rem; font-weight: 800; color: var(--text); }
.login-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--text); margin-bottom: 0.35rem; }
.login-sub { font-size: 0.88rem; color: var(--muted); margin-bottom: 1.5rem; }
.login-inp {
  width: 100%; height: 50px;
  padding: 0 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg);
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.85rem;
  transition: border-color var(--t), box-shadow var(--t);
}
.login-inp:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,130,58,0.12); }
.login-err { font-size: 0.82rem; color: #991b1b; text-align: center; margin-bottom: 0.5rem; min-height: 1.2em; }

/* ════════════════════════════════════════════════════
   APP SHELL
════════════════════════════════════════════════════ */
#app { display: flex; flex-direction: column; min-height: 100dvh; }

.topbar {
  height: 60px;
  background: var(--n-950);
  display: flex; align-items: center;
  padding: 0 1.5rem; gap: 1rem;
  position: sticky; top: 0; z-index: 80;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.logo {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 800;
  color: var(--n-0); letter-spacing: -0.5px;
  display: flex; align-items: center; gap: 8px;
}
.logo-icon {
  width: 32px; height: 32px; background: var(--accent); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo-icon .material-symbols-outlined { font-size: 18px; color: white; }
.topbar-sp { flex: 1; }
.topbar-count { font-size: 0.75rem; font-weight: 500; color: rgba(255,255,255,0.3); letter-spacing: 0.3px; }
.topbar-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--accent); color: white;
  border: none; border-radius: var(--r-sm);
  padding: 0 14px; height: 36px;
  font-size: 0.82rem; font-weight: 700; font-family: var(--serif);
  transition: background var(--t); white-space: nowrap; letter-spacing: 0.2px;
}
.topbar-btn:hover { background: var(--a-500); }
.topbar-btn .material-symbols-outlined { font-size: 16px; }

.content { flex: 1; padding: 1.5rem; max-width: 1100px; width: 100%; margin: 0 auto; }

.bottomnav {
  height: 62px; background: rgba(28,27,27,0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; position: sticky; bottom: 0; z-index: 80;
  padding-bottom: env(safe-area-inset-bottom, 0);
  border-radius: 20px 20px 0 0;
}
.bnav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  padding: 0.5rem; border: none; background: none;
  color: rgba(255,255,255,0.3);
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; font-family: var(--serif);
  transition: color var(--t); position: relative;
}
.bnav-item .material-symbols-outlined { font-size: 22px; }
.bnav-item.on { color: var(--accent); }
.bnav-item.on::after {
  content: ''; position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 2.5px;
  background: var(--accent); border-radius: 0 0 4px 4px;
}

/* PWA Banner */
.pwa-banner {
  display: none; position: sticky; top: 60px; z-index: 79;
  background: var(--n-800); color: white;
  padding: 10px 1.5rem; gap: 12px;
  align-items: center; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.pwa-banner.show { display: flex; }
.pwa-banner p { flex: 1; font-size: 0.82rem; color: rgba(255,255,255,0.7); }
.pwa-install-btn {
  background: var(--accent); color: white; border: none;
  border-radius: var(--r-sm); padding: 6px 14px;
  font-size: 0.8rem; font-weight: 700;
}
.pwa-dismiss { background: none; border: none; color: rgba(255,255,255,0.4); font-size: 1.2rem; padding: 4px; }
.ios-hint {
  display: none; position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  background: var(--n-800); color: white; border-radius: var(--r-lg);
  padding: 14px 18px; font-size: 0.84rem; text-align: center;
  max-width: 300px; z-index: 200; box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  line-height: 1.6;
}
.ios-hint.show { display: block; animation: fadeUp 0.2s var(--ease); }

/* ════════════════════════════════════════════════════
   VIEWS
════════════════════════════════════════════════════ */
.view { display: none; }
.view.on { display: block; animation: fadeUp 0.2s var(--ease); }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════════
   EDITORIAL HEADER
════════════════════════════════════════════════════ */
.editorial-header { margin-bottom: 2rem; }
.editorial-eyebrow {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 0.5rem; font-family: var(--serif);
}
.editorial-title {
  font-family: var(--serif); font-size: 2.5rem; font-weight: 800;
  letter-spacing: -0.04em; line-height: 1.05; color: var(--text); margin-bottom: 0.75rem;
}
.editorial-sub { font-size: 0.95rem; color: var(--muted); max-width: 520px; line-height: 1.6; }

/* ════════════════════════════════════════════════════
   TOOLBAR / SEARCH / FILTERS
════════════════════════════════════════════════════ */
.toolbar { display: flex; gap: 0.6rem; margin-bottom: 0.85rem; align-items: center; }
.search-wrap { flex: 1; position: relative; }
.search-wrap .material-symbols-outlined {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 17px; color: var(--muted); pointer-events: none;
}
.search-inp {
  width: 100%; height: 44px; padding: 0 14px 0 44px;
  border: 1.5px solid var(--border); border-radius: 40px;
  background: var(--surface); font-size: 0.9rem; color: var(--text);
  transition: border-color var(--t), box-shadow var(--t);
}
.search-inp:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,130,58,0.12); }
.search-inp::placeholder { color: var(--muted); }

.icon-pill {
  height: 44px; padding: 0 16px;
  border: 1.5px solid var(--border); border-radius: 40px;
  background: var(--surface);
  display: flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 700; color: var(--n-600); white-space: nowrap;
  transition: all var(--t); font-family: var(--serif); letter-spacing: 0.2px;
}
.icon-pill .material-symbols-outlined { font-size: 16px; }
.icon-pill:hover, .icon-pill.on { background: var(--n-950); color: white; border-color: var(--n-950); }

.filters {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.6rem;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--r-lg); padding: 1rem; margin-bottom: 0.85rem;
  animation: fadeUp 0.15s var(--ease);
}
.filters.on { display: grid; }
.filter-label {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--muted); display: block; margin-bottom: 5px;
}
.filter-sel {
  width: 100%; height: 36px; padding: 0 10px;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  background: var(--bg); font-size: 0.86rem; color: var(--text);
}

.count-line { font-size: 0.76rem; font-weight: 500; color: var(--muted); margin-bottom: 0.75rem; }

.sort-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 0.85rem; flex-wrap: wrap; }
.sort-label { font-size: 0.74rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.sort-btn {
  height: 30px; padding: 0 13px;
  border: 1.5px solid var(--border); border-radius: 20px;
  background: var(--surface); font-size: 0.76rem; font-weight: 700;
  color: var(--n-600); cursor: pointer; transition: all var(--t);
  white-space: nowrap; font-family: var(--serif);
}
.sort-btn:hover { border-color: var(--accent); color: var(--accent); }
.sort-btn.on { background: var(--accent); color: white; border-color: var(--accent); }

/* ════════════════════════════════════════════════════
   SKELETON LOADER
════════════════════════════════════════════════════ */
.skeleton { pointer-events: none; }
.skeleton-box {
  background: linear-gradient(90deg, var(--n-100) 25%, var(--n-150) 50%, var(--n-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--r);
}
@keyframes shimmer { to { background-position: -200% 0; } }
.card.skeleton .card-thumb { background: var(--n-100); animation: shimmer 1.4s infinite; background-size: 200% 100%; }
.card.skeleton .card-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 18px; }
.skel-line { height: 12px; background: var(--n-100); border-radius: 6px; animation: shimmer 1.4s infinite; background-size: 200% 100%; }
.skel-line.w-80 { width: 80%; }
.skel-line.w-60 { width: 60%; }
.skel-line.w-40 { width: 40%; }

/* ════════════════════════════════════════════════════
   RECIPE GRID
════════════════════════════════════════════════════ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface); border-radius: var(--r-xl);
  overflow: hidden; cursor: pointer;
  transition: transform var(--t), box-shadow var(--t);
  position: relative;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(28,27,27,0.12); }

.card-thumb {
  aspect-ratio: 4 / 5; background: var(--n-100);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .card-thumb img { transform: scale(1.05); }
.card-thumb-emoji { font-size: 3rem; }

.card-hover-overlay {
  position: absolute; bottom: 12px; left: 12px; right: 12px;
  background: rgba(252,249,248,0.85); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--r); padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
@media (prefers-color-scheme: dark) {
  .card-hover-overlay { background: rgba(28,27,27,0.85); }
}
.card:hover .card-hover-overlay { opacity: 1; transform: translateY(0); }
.card-hover-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--n-600); }
.card-hover-arrow { color: var(--accent); font-size: 16px; }

.card-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(252,249,248,0.9); backdrop-filter: blur(8px);
  color: var(--accent); font-size: 0.62rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 40px; font-family: var(--serif);
}
.card-img-count {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(28,27,27,0.6); color: white;
  font-size: 0.68rem; font-weight: 600; padding: 3px 9px; border-radius: 20px;
  display: flex; align-items: center; gap: 4px; backdrop-filter: blur(4px);
}
.card-img-count .material-symbols-outlined { font-size: 12px; }

.card-body { padding: 14px 16px 18px; }
.card-cat { font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 5px; font-family: var(--serif); }
.card-title { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; line-height: 1.3; color: var(--text); margin-bottom: 10px; transition: color var(--t); }
.card:hover .card-title { color: var(--accent); }
.card-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.75rem; color: var(--muted); font-weight: 500; }
.card-meta-i { display: flex; align-items: center; gap: 4px; }
.card-meta-i .material-symbols-outlined { font-size: 13px; }
.card-kcal { color: var(--a-400); font-weight: 600; }
.card-stars { margin-top: 6px; }
.card-star { font-size: 0.8rem; }
.card-star.filled { color: #f59e0b; }
.card-star.empty  { color: var(--n-200); }

.diff-tag {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 40px;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.3px;
  margin-top: 8px; font-family: var(--serif);
}
.diff-tag.leicht { background: #ecfdf5; color: #065f46; }
.diff-tag.mittel  { background: #fef3c7; color: #92400e; }
.diff-tag.schwer  { background: #fef2f2; color: #991b1b; }
@media (prefers-color-scheme: dark) {
  .diff-tag.leicht { background: #022c22; color: #6ee7b7; }
  .diff-tag.mittel  { background: #451a03; color: #fde68a; }
  .diff-tag.schwer  { background: #450a0a; color: #fca5a5; }
}

.empty { grid-column: 1/-1; text-align: center; padding: 5rem 1rem; color: var(--muted); }
.empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.4; }
.empty h3 { font-family: var(--serif); font-size: 1.35rem; color: var(--n-600); margin-bottom: 0.5rem; font-weight: 700; }
.empty p { font-size: 0.9rem; margin-bottom: 1.25rem; }

/* ════════════════════════════════════════════════════
   IMPORT VIEW
════════════════════════════════════════════════════ */
.import-header {
  background: linear-gradient(135deg, #1c1b1b 0%, #3a1e00 100%);
  border-radius: var(--r-xl); padding: 1.75rem 2rem; margin-bottom: 1.5rem;
  position: relative; overflow: hidden;
}
.import-header::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(232,130,58,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.import-header h2 { font-family: var(--serif); font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 0.4rem; letter-spacing: -0.02em; }
.import-header p { font-size: 0.86rem; color: rgba(255,255,255,0.45); line-height: 1.55; }

.tab-bar { display: flex; gap: 4px; background: var(--n-100); border-radius: var(--r-lg); padding: 5px; margin-bottom: 1.1rem; }
.tab-btn {
  flex: 1; height: 40px; border: none; border-radius: calc(var(--r-lg) - 3px);
  background: transparent; font-size: 0.82rem; font-weight: 700; color: var(--muted);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all var(--t); font-family: var(--serif);
}
.tab-btn .material-symbols-outlined { font-size: 16px; }
.tab-btn.on { background: var(--surface); color: var(--text); box-shadow: 0 2px 8px rgba(28,27,27,0.1); }

.tab-panel { display: none; }
.tab-panel.on { display: block; animation: fadeUp 0.18s var(--ease); }

.url-inp {
  width: 100%; height: 52px; padding: 0 16px;
  border: 1.5px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface); font-size: 0.92rem; color: var(--text);
  transition: border-color var(--t), box-shadow var(--t); margin-bottom: 0.85rem;
}
.url-inp:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,130,58,0.12); }
.url-inp::placeholder { color: var(--muted); }

.dropzone {
  border: 2px dashed var(--border); border-radius: var(--r-xl);
  padding: 2.5rem 1.5rem; text-align: center; cursor: pointer;
  transition: all var(--t); background: var(--surface); margin-bottom: 0.85rem; position: relative;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--a-50); }
@media (prefers-color-scheme: dark) { .dropzone:hover, .dropzone.drag { background: rgba(232,130,58,0.08); } }
.dropzone input { display: none; }
.dropzone-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.dropzone-title { font-weight: 700; font-size: 1rem; margin-bottom: 0.3rem; font-family: var(--serif); }
.dropzone-sub   { font-size: 0.8rem; color: var(--muted); }
.dropzone-preview { display: none; margin-top: 1rem; }
.dropzone-preview img { max-height: 160px; border-radius: 12px; margin: 0 auto; object-fit: contain; }
.dropzone-preview .pdf-icon { font-size: 3rem; }
.dropzone-preview .pdf-name { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }

.paste-hint {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 14px;
  background: rgba(232,130,58,0.06); border: 1px solid rgba(232,130,58,0.2);
  border-radius: var(--r); font-size: 0.8rem; color: var(--n-600); margin-bottom: 0.85rem;
}
.paste-hint .material-symbols-outlined { font-size: 16px; color: var(--accent); }
.paste-hint kbd { display: inline-flex; align-items: center; background: var(--n-950); color: white; padding: 1px 6px; border-radius: 5px; font-family: monospace; font-size: 0.75rem; font-weight: 600; }
.paste-hint.paste-active { background: rgba(232,130,58,0.12); border-color: var(--accent); }

.source-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 0.85rem; }
.source-chip { background: var(--surface); border: 1.5px solid var(--border); border-radius: 40px; padding: 5px 13px; font-size: 0.75rem; font-weight: 600; color: var(--n-600); display: flex; align-items: center; gap: 5px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 46px; padding: 0 22px; border: none; border-radius: var(--r-lg);
  font-size: 0.9rem; font-weight: 700; transition: all var(--t);
  white-space: nowrap; font-family: var(--serif); letter-spacing: 0.1px;
}
.btn .material-symbols-outlined { font-size: 17px; }
.btn-full { width: 100%; }
.btn-primary { background: var(--n-950); color: white; }
.btn-primary:hover { background: var(--n-800); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-accent { background: linear-gradient(135deg, var(--a-400) 0%, var(--a-500) 100%); color: white; box-shadow: 0 4px 16px rgba(232,130,58,0.3); }
.btn-accent:hover { transform: scale(1.02); box-shadow: 0 6px 20px rgba(232,130,58,0.4); }
.btn-accent:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: var(--n-100); color: var(--text); border: 1.5px solid var(--border); }
.btn-ghost:hover { background: var(--n-150); border-color: var(--n-400); }
.btn-danger { background: #fef2f2; color: #991b1b; }
.btn-danger:hover { background: #fee2e2; }

.loading-box { display: none; text-align: center; padding: 2.5rem; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-xl); margin-top: 1rem; }
.loading-box.on { display: block; }
.spinner { width: 40px; height: 40px; border: 3px solid var(--n-150); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; margin: 0 auto 1rem; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-box p { font-size: 0.88rem; color: var(--muted); font-weight: 500; }

.preview-card { display: none; background: var(--surface); border: 2px solid var(--accent); border-radius: var(--r-xl); overflow: hidden; margin-top: 1rem; animation: fadeUp 0.2s var(--ease); box-shadow: 0 8px 32px rgba(232,130,58,0.12); }
.preview-card.on { display: block; }
.preview-hdr { background: linear-gradient(135deg, var(--a-400) 0%, var(--a-500) 100%); color: white; padding: 12px 18px; font-size: 0.82rem; font-weight: 700; display: flex; align-items: center; gap: 6px; font-family: var(--serif); }
.preview-body { padding: 1.1rem 1.25rem; }
.preview-title { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; margin-bottom: 0.6rem; }
.preview-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 0.75rem; }
.preview-chip { background: var(--n-100); border-radius: 40px; padding: 4px 11px; font-size: 0.74rem; font-weight: 700; color: var(--n-600); font-family: var(--serif); }
.preview-img { width: 100%; height: 160px; object-fit: cover; border-radius: var(--r); margin-bottom: 0.75rem; }
.preview-footer { display: flex; gap: 8px; padding: 14px 18px; background: var(--n-50); border-top: 1px solid var(--border); flex-wrap: wrap; }

/* ════════════════════════════════════════════════════
   DETAIL MODAL
════════════════════════════════════════════════════ */
.overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(28,27,27,0.6); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100; overflow-y: auto; padding: 1rem;
  align-items: flex-start; justify-content: center;
}
.overlay.on { display: flex; }
.modal {
  background: var(--surface); border-radius: var(--r-xl);
  width: 100%; max-width: 720px; margin: auto;
  overflow: hidden; box-shadow: 0 24px 64px rgba(28,27,27,0.24);
  animation: fadeUp 0.2s var(--ease);
}

.d-hero { position: relative; background: var(--n-100); aspect-ratio: 16/9; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.d-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.d-hero-emoji { font-size: 5rem; z-index: 1; }
.d-hero-grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(28,27,27,0.5) 0%, transparent 50%); z-index: 2; }
.d-hero-actions { position: absolute; top: 14px; right: 14px; display: flex; gap: 8px; z-index: 10; }
.round-btn { width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(252,249,248,0.9); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all var(--t); }
.round-btn:hover { background: white; transform: scale(1.08); }
.round-btn.danger:hover { background: #fee2e2; color: #991b1b; }
.round-btn .material-symbols-outlined { font-size: 16px; }

.thumb-strip { display: flex; gap: 6px; padding: 10px 16px; overflow-x: auto; background: var(--n-50); border-bottom: 1px solid var(--border); }
.thumb-strip::-webkit-scrollbar { height: 3px; }
.thumb-item { flex-shrink: 0; width: 52px; height: 52px; border-radius: 8px; overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: border-color var(--t); position: relative; }
.thumb-item.on { border-color: var(--accent); }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.thumb-del { position: absolute; top: 1px; right: 1px; width: 16px; height: 16px; background: rgba(28,27,27,0.7); color: white; border: none; border-radius: 50%; font-size: 0.65rem; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transition: opacity var(--t); }
.thumb-item:hover .thumb-del { opacity: 1; }
.thumb-add { flex-shrink: 0; width: 52px; height: 52px; border-radius: 8px; border: 2px dashed var(--border); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); transition: all var(--t); }
.thumb-add:hover { border-color: var(--accent); color: var(--accent); }
.thumb-add .material-symbols-outlined { font-size: 18px; }

.d-body { padding: 1.5rem; }
.d-category { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.15em; color: var(--accent); margin-bottom: 0.4rem; font-family: var(--serif); }
.d-title { font-family: var(--serif); font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 1rem; }
.d-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1rem; }
.d-meta-pill { display: inline-flex; align-items: center; gap: 5px; background: var(--n-100); border-radius: 40px; padding: 5px 12px; font-size: 0.8rem; font-weight: 600; color: var(--n-600); }
.d-meta-pill .material-symbols-outlined { font-size: 14px; }
.d-desc { font-size: 0.95rem; color: var(--muted); line-height: 1.65; margin-bottom: 1.25rem; }
.source-link { display: inline-flex; align-items: center; gap: 5px; font-size: 0.8rem; font-weight: 700; color: var(--accent); padding: 6px 12px; border: 1.5px solid var(--a-100); border-radius: 40px; transition: all var(--t); }
.source-link:hover { background: var(--a-50); }
.source-link .material-symbols-outlined { font-size: 13px; }

.star-row { display: flex; align-items: center; gap: 8px; margin-bottom: 1.25rem; padding: 6px 12px; background: var(--n-50); border-radius: var(--r-sm); border: 1px solid var(--border); min-height: 0; }
.star-row-label { font-size: 0.78rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.stars { display: flex; gap: 1px; align-items: center; height: 32px; }
.star { font-size: 1.3rem; line-height: 1; cursor: pointer; transition: transform 0.1s; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; font-family: serif; }
.star:hover { transform: scale(1.2); }
.star.filled { color: #f59e0b; }
.star.empty  { color: var(--n-400); }
.star-hint { font-size: 0.78rem; font-weight: 600; color: var(--muted); flex: 1; }

.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1.5rem; }
.act-btn { display: flex; align-items: center; gap: 5px; height: 38px; padding: 0 14px; border: 1.5px solid var(--border); border-radius: var(--r-sm); background: var(--surface); font-size: 0.8rem; font-weight: 700; color: var(--n-600); transition: all var(--t); font-family: var(--serif); }
.act-btn:hover { border-color: var(--accent); color: var(--accent); }
.act-btn.copied, .act-btn.share-ok { border-color: #065f46; color: #065f46; background: #ecfdf5; }
.act-btn .material-symbols-outlined { font-size: 15px; }

.portion-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 1.25rem; background: var(--n-50); border-radius: var(--r); padding: 10px 14px; border: 1px solid var(--border); }
.portion-label { font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.portion-ctrl { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 40px; border: 1.5px solid var(--border); padding: 3px 8px; }
.portion-btn { width: 28px; height: 28px; border: none; background: none; font-size: 1.2rem; color: var(--accent); cursor: pointer; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; transition: background var(--t); }
.portion-btn:hover { background: var(--a-50); }
.portion-val { font-weight: 700; font-size: 1rem; min-width: 24px; text-align: center; }
.portion-base { font-size: 0.72rem; color: var(--muted); margin-left: auto; }

.d-section-title { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted); margin: 1.5rem 0 0.75rem; font-family: var(--serif); border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.ingredients { list-style: none; display: flex; flex-direction: column; gap: 2px; margin-bottom: 1.5rem; }
.ing-group-header { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; color: var(--accent); padding: 10px 0 4px; border-bottom: 1px solid var(--a-100); }
.ing-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--n-100); }
.ing-amount { font-size: 0.88rem; font-weight: 700; color: var(--accent); min-width: 80px; flex-shrink: 0; }
.ing-name { flex: 1; font-size: 0.9rem; }
.ing-copy { background: none; border: none; color: var(--muted); cursor: pointer; padding: 4px; border-radius: 4px; transition: all var(--t); opacity: 0; }
.ing-copy .material-symbols-outlined { font-size: 14px; }
.ing-row:hover .ing-copy { opacity: 1; }
.ing-copy:hover { color: var(--accent); }
.ing-copy.done { color: #065f46; opacity: 1; }

.steps { margin-bottom: 1.5rem; }
.step-text { font-size: 0.95rem; line-height: 1.8; color: var(--text); white-space: pre-wrap; }
.tags-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pill { background: var(--n-100); border-radius: 40px; padding: 4px 12px; font-size: 0.76rem; font-weight: 700; color: var(--n-600); cursor: pointer; transition: all var(--t); font-family: var(--serif); }
.tag-pill:hover { background: var(--n-950); color: white; }

/* ════════════════════════════════════════════════════
   FORM MODAL
════════════════════════════════════════════════════ */
.form-modal { max-width: 860px; max-height: 90dvh; display: flex; flex-direction: column; }
.form-header { display: flex; align-items: center; padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.form-header-title { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; flex: 1; }
.form-header-close { background: none; border: none; font-size: 1.2rem; color: var(--muted); cursor: pointer; padding: 4px 8px; border-radius: 6px; transition: all var(--t); }
.form-header-close:hover { color: var(--text); }
.form-scroll { overflow-y: auto; flex: 1; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.form-section { background: var(--n-50); border-radius: var(--r-lg); padding: 1.25rem; border: 1px solid var(--border); }
.form-section-title { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted); margin-bottom: 1rem; font-family: var(--serif); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 10px; }
.span2 { margin-bottom: 10px; }
.fg { display: flex; flex-direction: column; gap: 5px; }
.fg label { font-size: 0.72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.3px; }
.fc {
  height: 38px; padding: 0 11px;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface); font-size: 0.88rem; color: var(--text);
  transition: border-color var(--t), box-shadow var(--t); width: 100%;
}
.fc:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,130,58,0.1); }
textarea.fc { height: auto; padding: 10px 11px; resize: vertical; }

.img-upload-row { display: flex; flex-wrap: wrap; gap: 8px; }
.img-thumb { position: relative; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.img-thumb img { width: 100%; height: 100%; object-fit: cover; }
.img-thumb-del { position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; background: rgba(28,27,27,0.7); color: white; border: none; border-radius: 50%; font-size: 0.7rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.img-add-btn { width: 72px; height: 72px; border-radius: 10px; border: 2px dashed var(--border); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); transition: all var(--t); background: var(--surface); flex-shrink: 0; }
.img-add-btn:hover { border-color: var(--accent); color: var(--accent); }
.img-add-btn input { display: none; }
.img-add-btn .material-symbols-outlined { font-size: 22px; }
.form-paste-hint { font-size: 0.72rem; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.form-paste-hint .material-symbols-outlined { font-size: 14px; }
.form-paste-hint kbd { background: var(--n-150); border-radius: 4px; padding: 1px 4px; font-family: monospace; font-size: 0.7rem; }

.z-header { display: grid; grid-template-columns: auto 2fr 2fr 3fr auto; gap: 6px; padding: 0 0 6px; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); }
.z-row, .z-group-row { display: grid; gap: 6px; margin-bottom: 4px; align-items: center; }
.z-row { grid-template-columns: auto 2fr 2fr 3fr auto; }
.z-group-row { grid-template-columns: auto 1fr auto; }
.zh { cursor: grab; color: var(--muted); font-size: 0.8rem; padding: 4px; user-select: none; }
.z-inp { height: 34px; padding: 0 8px; border: 1.5px solid var(--border); border-radius: 8px; background: var(--surface); font-size: 0.85rem; color: var(--text); min-width: 0; }
.z-inp:focus { outline: none; border-color: var(--accent); }
.z-group-row .z-inp { border-color: var(--a-300); }
.z-rm { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1.1rem; padding: 4px; border-radius: 4px; transition: color var(--t); }
.z-rm:hover { color: #991b1b; }
.z-add { height: 36px; border: 1.5px dashed var(--border); border-radius: 8px; background: none; font-size: 0.82rem; color: var(--muted); cursor: pointer; transition: all var(--t); font-family: var(--serif); font-weight: 600; }
.z-add:hover { border-color: var(--accent); color: var(--accent); }
.zg { opacity: 0.4; }

.tag-input-wrap { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px; border: 1.5px solid var(--border); border-radius: var(--r-sm); background: var(--surface); cursor: text; min-height: 44px; }
.tag-input-wrap:focus-within { border-color: var(--accent); }
.tag-edit { background: var(--n-100); border-radius: 40px; padding: 3px 8px 3px 11px; font-size: 0.8rem; font-weight: 600; color: var(--n-600); display: flex; align-items: center; gap: 4px; }
.tag-edit button { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 0.75rem; line-height: 1; padding: 0 2px; }
.tag-text-inp { border: none; outline: none; background: none; font-size: 0.85rem; color: var(--text); min-width: 120px; flex: 1; }

.form-footer { display: flex; gap: 8px; padding: 1.25rem 1.5rem; border-top: 1px solid var(--border); background: var(--n-50); flex-shrink: 0; }

/* ════════════════════════════════════════════════════
   REZEPTBUCH
════════════════════════════════════════════════════ */
.rb-header { margin-bottom: 1.5rem; }
.rb-header h2 { font-family: var(--serif); font-size: 1.5rem; font-weight: 800; margin-bottom: 0.3rem; }
.rb-header p { color: var(--muted); font-size: 0.9rem; }
.rb-settings { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-lg); padding: 1rem; margin-bottom: 1.25rem; }
.rb-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.25rem; }
@media (max-width: 640px) { .rb-cols { grid-template-columns: 1fr; } }
.rb-panel { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.rb-panel-hdr { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--n-50); border-bottom: 1px solid var(--border); font-size: 0.82rem; font-weight: 700; font-family: var(--serif); }
.rb-panel-hdr span { font-size: 0.72rem; font-weight: 600; color: var(--muted); }
.rb-list, .rb-selected-list { list-style: none; max-height: 350px; overflow-y: auto; }
.rb-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; cursor: pointer; transition: background var(--t); border-bottom: 1px solid var(--n-100); }
.rb-item:hover { background: var(--n-50); }
.rb-item-thumb { width: 40px; height: 40px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--n-100); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.rb-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rb-item-info { flex: 1; min-width: 0; }
.rb-item-title { font-size: 0.86rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-item-meta { font-size: 0.72rem; color: var(--muted); }
.rb-item-add { background: none; border: 1.5px solid var(--border); border-radius: 50%; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1rem; font-weight: 700; color: var(--accent); transition: all var(--t); flex-shrink: 0; }
.rb-item-add:hover { background: var(--accent); color: white; border-color: var(--accent); }
.rb-sel-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--n-100); cursor: default; user-select: none; }
.rb-sel-item.dragging { opacity: 0.5; }
.rb-sel-item.drag-over { background: var(--a-50); }
.rb-drag-handle { color: var(--muted); cursor: grab; display: flex; align-items: center; }
.rb-drag-handle .material-symbols-outlined { font-size: 18px; }
.rb-sel-num { font-size: 0.72rem; font-weight: 700; color: var(--accent); min-width: 20px; }
.rb-sel-thumb { width: 36px; height: 36px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: var(--n-100); display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.rb-sel-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rb-sel-title { flex: 1; font-size: 0.86rem; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-sel-remove { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1.1rem; padding: 2px 6px; border-radius: 4px; transition: color var(--t); }
.rb-sel-remove:hover { color: #991b1b; }
.rb-empty { color: var(--muted); font-size: 0.84rem; padding: 1.5rem; text-align: center; list-style: none; }

/* ════════════════════════════════════════════════════
   SUCHBOT
════════════════════════════════════════════════════ */
.bot-header { margin-bottom: 1.5rem; }
.bot-header h2 { font-family: var(--serif); font-size: 1.5rem; font-weight: 800; margin-bottom: 0.3rem; }
.bot-header p { color: var(--muted); font-size: 0.9rem; max-width: 540px; }
.bot-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1rem; }
.bot-chip { background: var(--surface); border: 1.5px solid var(--border); border-radius: 40px; padding: 6px 14px; font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: all var(--t); color: var(--n-600); }
.bot-chip:hover { border-color: var(--accent); color: var(--accent); background: var(--a-50); }
.bot-textarea { width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: var(--r-lg); background: var(--surface); font-size: 0.9rem; color: var(--text); resize: none; overflow: hidden; min-height: 80px; transition: border-color var(--t); }
.bot-textarea:focus { outline: none; border-color: var(--accent); }
.bot-status { display: none; align-items: center; gap: 12px; padding: 1rem 1.25rem; background: var(--n-50); border-radius: var(--r-lg); border: 1px solid var(--border); margin-top: 1rem; }
.bot-status.on { display: flex; }
.bot-spinner { width: 20px; height: 20px; border: 2px solid var(--n-150); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; flex-shrink: 0; }
.bot-results { display: none; margin-top: 1.5rem; }
.bot-results.on { display: block; }
.bot-results-hdr { font-family: var(--serif); font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.bot-results-grid { display: grid; gap: 1rem; }
.bot-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-xl); overflow: hidden; transition: box-shadow var(--t); }
.bot-card:hover { box-shadow: 0 8px 24px var(--shadow); }
.bot-card-rank { background: var(--n-50); padding: 8px 16px; font-size: 0.78rem; font-weight: 700; border-bottom: 1px solid var(--border); font-family: var(--serif); }
.bot-card-body { padding: 1rem 1.25rem; }
.bot-card-kat { font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 4px; font-family: var(--serif); }
.bot-card-title { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.bot-card-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 0.6rem; }
.bot-card-chip { background: var(--n-100); border-radius: 40px; padding: 3px 10px; font-size: 0.72rem; font-weight: 600; color: var(--n-600); }
.bot-card-desc { font-size: 0.86rem; color: var(--muted); line-height: 1.55; margin-bottom: 0.75rem; }
.bot-suchinfo { display: flex; align-items: flex-start; gap: 6px; font-size: 0.78rem; color: var(--muted); padding: 8px 10px; background: var(--n-50); border-radius: 8px; margin-bottom: 0.75rem; }
.bot-suchinfo .material-symbols-outlined { font-size: 14px; flex-shrink: 0; margin-top: 1px; }
.bot-ing-preview { font-size: 0.84rem; border-top: 1px solid var(--n-100); padding-top: 8px; }
.bot-ing-row { display: flex; gap: 10px; padding: 4px 0; border-bottom: 1px solid var(--n-100); }
.bot-ing-amt { font-weight: 700; color: var(--accent); min-width: 60px; }
.bot-card-footer { display: flex; gap: 8px; padding: 12px 16px; background: var(--n-50); border-top: 1px solid var(--border); align-items: center; }
.bot-history { margin-top: 2rem; }
.bot-history-title { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted); margin-bottom: 8px; font-family: var(--serif); }
.bot-history-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); cursor: pointer; margin-bottom: 6px; transition: border-color var(--t); font-size: 0.85rem; }
.bot-history-item:hover { border-color: var(--accent); }
.bot-history-item .material-symbols-outlined { font-size: 16px; color: var(--muted); flex-shrink: 0; }

/* ════════════════════════════════════════════════════
   TOAST
════════════════════════════════════════════════════ */
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(10px);
  background: var(--n-900); color: white;
  padding: 10px 20px; border-radius: 40px;
  font-size: 0.88rem; font-weight: 600;
  opacity: 0; transition: opacity 0.2s, transform 0.2s;
  pointer-events: none; z-index: 500; white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { background: #065f46; }
.toast.err { background: #991b1b; }

/* ════════════════════════════════════════════════════
   PRINT
════════════════════════════════════════════════════ */
#print-area, #rb-print-area { display: none; }
@media print {
  body > *:not(#print-area):not(#rb-print-area) { display: none !important; }
  #print-area, #rb-print-area { display: block !important; }
  * { box-sizing: border-box; }
  .print-title { font-family: Georgia, serif; font-size: 22pt; font-weight: 700; margin-bottom: 4pt; }
  .print-meta { font-size: 9pt; color: #666; margin-bottom: 10pt; }
  .print-desc { font-style: italic; font-size: 10pt; color: #555; margin-bottom: 10pt; line-height: 1.6; }
  .print-sect { font-size: 11pt; font-weight: 700; margin: 12pt 0 6pt; border-bottom: 1pt solid #e8823a; padding-bottom: 3pt; }
  .print-ing { display: flex; gap: 12pt; font-size: 10pt; padding: 4pt 0; border-bottom: 0.5pt solid #eee; }
  .print-ing-amt { font-weight: 700; color: #e8823a; min-width: 80pt; }
  .print-ing-group { font-size: 8pt; font-weight: 700; text-transform: uppercase; color: #e8823a; padding: 6pt 0 2pt; border-bottom: none; }
  .print-steps { font-size: 10.5pt; line-height: 1.8; white-space: pre-wrap; }
  .print-img { max-height: 9cm; width: 100%; object-fit: cover; margin-bottom: 10pt; border-radius: 4pt; }
  .print-footer { font-size: 8pt; color: #aaa; margin-top: 14pt; border-top: 0.5pt solid #ddd; padding-top: 6pt; }
  @page { size: A4; margin: 1.5cm 2cm; }
}

/* ════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════ */
@media (max-width: 520px) {
  .editorial-title { font-size: 1.75rem; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .content { padding: 1rem; }
  .d-title { font-size: 1.4rem; }
}
@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr; }
}
