/* Recipe Ideas Engine
   Patch 08: expanded refinements + clearer recipe/menu separation */

:root {
  --bg: #111317;
  --panel: #181c22;
  --panel-alt: #1e242c;
  --border: #2b333d;
  --text: #eef2f7;
  --muted: #aeb7c2;
  --accent: #84cc16;
  --accent-dark: #6aa10f;
  --accent-soft: rgba(132, 204, 22, 0.12);
  --danger: #ef4444;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max-width: 1160px;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(132, 204, 22, 0.08), transparent 30%),
    linear-gradient(180deg, #0e1014 0%, #14181e 100%);
  color: var(--text);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.shell { width: min(calc(100% - 2rem), var(--max-width)); margin: 0 auto; }
.site-header { padding: 3.75rem 0 1.5rem; }
.site-main { padding: 2rem 0 3rem; }
.brand-block { max-width: 780px; }
.brand-block-header { display: flex; align-items: center; }
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.site-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--text);
  text-decoration: none;
}

.site-brand-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.28));
}
.site-brand-copy {
  display: grid;
  gap: 0.22rem;
}
.site-brand-name {
  font-size: clamp(1.85rem, 2.9vw, 2.8rem);
  line-height: 1;
  font-weight: 800;
  color: #c9c9c9;
  letter-spacing: 0.01em;
  transition: color .2s ease;
}

.site-brand-name-accent {
  color: var(--accent);
}
.site-brand-link:hover .site-brand-name-accent {
  color: var(--accent);
}
.site-brand-tagline {
  font-size: 0.98rem;
  line-height: 1.35;
  color: var(--muted);
  max-width: 30rem;
  margin-left: 0.16rem;
}
.site-auth-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}
.site-auth-nav form { margin: 0; }
.eyebrow, .section-label, .meta-label, .tool-label, .refinement-group-label {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
}
h1, h2, h3, h4, h5, p { margin-top: 0; }
h1 { margin-bottom: 0.85rem; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; }
h2 { margin-bottom: 0.65rem; font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.15; }
h3 { margin-bottom: 0.85rem; font-size: 1.05rem; }
h4 { margin: 0 0 0.25rem; font-size: 1.05rem; }
h5 { margin: 0 0 0.65rem; font-size: 0.92rem; }
.intro, .section-text, .result-description, .helper-text, .feedback-message, .compact-text, .menu-dish-card p {
  color: var(--muted);
}
.panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.panel-hero { margin-bottom: 1.15rem; }
.flow-hero { padding: 0; background: transparent; border: 0; box-shadow: none; }
.panel-head, .result-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.panel-head-form { align-items: flex-start; }
.desktop-voice-wrap { margin-left: auto; }
.desktop-voice-button { min-width: 178px; }
.desktop-only { display: block !important; }
.mobile-only { display: none !important; }
.generator-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 3.0rem;
}
.view-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 56px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  color: var(--text);
  padding: 0.85rem 1rem;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.view-tab:hover { transform: translateY(-1px); }
.view-tab.is-active {
  background: var(--accent-soft);
  border-color: rgba(132, 204, 22, 0.45);
}
.generator-pane { margin-top: 1.5rem; }
.grid-layout { display: grid; gap: 1.5rem; }
.grid-layout-single { grid-template-columns: minmax(0, 1fr); }
.stack-form { display: grid; gap: 1rem; }
.field-group { display: grid; gap: 0.45rem; }
.field-group label { font-weight: 600; }
.field-group-actions { align-content: end; }
.field-group-servings-desktop { max-width: 260px; }
.field-group-servings-below { max-width: 160px; margin-top: -0.25rem; }
.voice-status-message { margin-bottom: 0.25rem; min-height: 1.25rem; }
.field-group-servings-head { width: 148px; margin-left: auto; align-self: start; }
.field-group-servings-head input { min-height: 44px; padding-block: 0.7rem; }
.field-label-row-input { align-items: center; margin-bottom: 0.45rem; }
.desktop-voice-inline .desktop-voice-button { min-width: 158px; }
.field-label-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.menu-structure-panel {
  display: grid;
  gap: 1rem;
  margin-top: 0.15rem;
  margin-bottom: 0.4rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.02);
}
.menu-structure-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}
.menu-structure-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(5, minmax(100px, 1fr));
  align-items: end;
}
.menu-structure-grid .field-group { gap: 0.35rem; }
.menu-structure-grid input[type="number"] {
  min-height: 44px;
  padding: 0.55rem 0.8rem;
}
.menu-structure-servings-row {
  max-width: 180px;
  margin-top: 0;
}
.menu-structure-panel > .menu-structure-servings-row {
  grid-column: 1 / -1;
}


.prompt-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
}

.prompt-toolbar .button + .button {
  margin-left: 0.15rem;
}

.menu-voice-status-inline {
  margin-top: -0.1rem;
  margin-bottom: 0.15rem;
}

.helper-text.is-error {
  color: #fca5a5;
}

.prompt-toolbar-mobile {
  display: grid;
  gap: 0.7rem;
}

.menu-structure-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  margin-top: 1.45rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
}
.menu-structure-summary strong {
  font-size: 1rem;
  color: var(--text);
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  background-position:
    calc(100% - 1.15rem) calc(50% - 0.18rem),
    calc(100% - 0.75rem) calc(50% - 0.18rem),
    center;
  background-size: 0.42rem 0.42rem, 0.42rem 0.42rem, 100% 100%;
  background-repeat: no-repeat;
  padding-right: 2.8rem;
  min-height: 52px;
}

select:hover {
  border-color: rgba(132, 204, 22, 0.28);
}

select:focus {
  border-color: rgba(132, 204, 22, 0.45);
  box-shadow: 0 0 0 4px rgba(132, 204, 22, 0.08);
}

.form-row { display: grid; gap: 1rem; }
.form-row-tight { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.form-row-single-desktop { align-items: end; }
textarea, input[type="number"], input[type="text"], input[type="search"], select {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
}
textarea { resize: vertical; min-height: 132px; }
textarea:focus, input:focus, button:focus {
  outline: 2px solid rgba(132, 204, 22, 0.35);
  outline-offset: 2px;
}
.form-actions, .result-actions, .chip-row, .meta-grid, .inline-tool-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.form-actions { justify-content: flex-end; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.85rem 1.15rem;
  color: var(--text);
  background: rgba(255,255,255,0.06);
}
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: 0.65; cursor: wait; transform: none; }
.button-primary { background: var(--accent); color: #0f1507; font-weight: 700; }
.button-secondary { background: #334155; }
.button-muted { background: rgba(255,255,255,0.04); border-color: var(--border); }
.button-ghost { background: transparent; border-color: rgba(255,255,255,0.12); color: var(--muted); }
.button-ghost:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.button-small { min-height: 40px; padding: 0.65rem 0.95rem; }
.copy-action-button { justify-content: center; }
.copy-action-button.is-copied { border-color: rgba(163, 230, 53, 0.45); box-shadow: 0 0 0 1px rgba(163, 230, 53, 0.2) inset; color: #d9ff8a; }
.copy-action-button.is-copied i { color: #d9ff8a; }
.button.is-disabled { opacity: 0.5; pointer-events: none; }
.assist-card-photos { gap: 1rem; }

.preference-accordion {
  padding: 1rem;
}
.preference-accordion summary {
  list-style: none;
}
.preference-accordion summary::-webkit-details-marker {
  display: none;
}
.preference-accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--text);
  text-align: left;
}
.preference-accordion-copy {
  display: grid;
  gap: 0.35rem;
}
.preference-accordion-title-wrap {
  display: grid;
  gap: 0.2rem;
}
.preference-accordion-title {
  font-size: 1.05rem;
  font-weight: 700;
}
.preference-accordion-summary {
  color: var(--muted);
  font-size: 0.95rem;
}
.preference-accordion-icon {
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  transition: transform .2s ease, border-color .2s ease, color .2s ease;
  flex-shrink: 0;
}
.preference-accordion-toggle[aria-expanded="true"] .preference-accordion-icon {
  transform: rotate(180deg);
  border-color: rgba(132, 204, 22, 0.35);
  color: var(--text);
}
.preference-accordion-panel {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.preference-head-inside {
  margin-bottom: 1rem;
}
.preference-accordion-toggle:hover .preference-accordion-icon {
  border-color: rgba(132, 204, 22, 0.3);
  color: var(--text);
}

.assist-card-top { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.assist-actions-photos { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0.85rem; }
.photo-preview-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.85rem; min-height: 0; margin-bottom: 0.9rem; }
.photo-preview-grid.is-empty { display: none; margin-bottom: 0; }
#recipe-photo-status:empty,
#menu-photo-status:empty { display: none; min-height: 0; margin: 0; }
.assist-card-photos.is-empty-state { padding-bottom: 0.2rem; }
.photo-preview-item { position: relative; border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; overflow: hidden; background: rgba(255,255,255,0.03); aspect-ratio: 1 / 1; }
.photo-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-preview-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.35rem 0.45rem; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.82)); color: #f8fafc; font-size: 0.72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo-preview-remove { position: absolute; top: 0.4rem; right: 0.4rem; width: 1.85rem; height: 1.85rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.18); background: rgba(11,15,21,0.78); color: #fff; display: inline-flex; align-items: center; justify-content: center; padding: 0; z-index: 2; }
.photo-preview-remove:hover { background: rgba(132, 204, 22, 0.18); border-color: rgba(132, 204, 22, 0.5); }
.feedback-message, .helper-text { min-height: 1.4rem; font-size: 0.95rem; }
.feedback-message { text-align: center; }
.feedback-message.is-success, .helper-text.is-success { color: #baf26b; }
.feedback-message.is-error, .helper-text.is-error { color: #fca5a5; }

.feedback-message.auth-flash {
  width: fit-content;
  max-width: min(100%, 720px);
  margin: 0 0 1rem;
  text-align: left;
  transition: opacity 0.26s ease, transform 0.26s ease;
}

.feedback-message.auth-flash.auth-flash-inline {
  margin-top: 0.35rem;
  margin-bottom: 1rem;
}

.feedback-message.is-dismissing {
  opacity: 0;
  transform: translateY(-6px);
}

.is-hidden {
  display: none !important;
}
.result-panel { margin-top: 1rem; }
.result-panel.is-hidden { display: none; }
.result-tools {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.4rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.02);
}
.inline-tool-form { display: grid; gap: 0.55rem; justify-items: start; }
.inline-tool-controls input { width: 110px; }
.result-photo-mode {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.02);
}
.result-photo-mode.is-hidden { display: none; }
.refinement-tools { display: grid; gap: 0.85rem; }
.refinement-control-grid {
  display: grid;
  gap: 1rem;
}
.refinement-control-row {
  position: relative;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  z-index: 1;
}
.refinement-control-row.is-select-open {
  z-index: 120;
}
.refinement-control-row .button {
  position: relative;
  z-index: 5;
  pointer-events: auto;
  min-width: 120px;
  justify-content: center;
}
.refinement-control-row .refinement-select-wrap,
.refinement-control-row .custom-select {
  position: relative;
  z-index: 1;
}
.refinement-select-wrap {
  min-width: 0;
}
.refinement-group-label {
  margin: 0;
  padding-bottom: 0.2rem;
  color: var(--text);
  letter-spacing: 0.04em;
  font-size: 0.82rem;
}
.chip-button {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border-radius: 999px;
  padding: 0.6rem 0.85rem;
}
.chip-button:hover { background: rgba(255,255,255,0.08); }
.result-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.result-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.025);
  padding: 1rem;
}
.detail-list { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.55rem; }
.detail-list-numbered { padding-left: 1.2rem; }
.compact-list { gap: 0.4rem; }
.meta-grid { align-items: stretch; }
.meta-pill {
  min-width: 110px;
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
}
.menu-dishes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.menu-dishes-grid-standalone {
  margin-top: 1rem;
}
.ingredient-flag {
  display: inline-flex;
  align-items: center;
  margin-left: 0.5rem;
  padding: 0.16rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(251, 191, 36, 0.28);
  background: rgba(251, 191, 36, 0.1);
  color: #fcd34d;
  vertical-align: middle;
}
.ingredient-extra-text {
  color: #fde68a;
}
.photo-mode-row {
  display: grid;
  gap: 0.35rem;
  justify-items: start;
  margin: 0.1rem 0 0.2rem;
}
.photo-mode-check { width: auto; }
.photo-mode-check span {
  min-height: 0;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 600;
}
.photo-mode-helper {
  max-width: 36rem;
  margin-left: 1.9rem;
}
.menu-dish-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.025);
  padding: 1rem;
}
.menu-dish-head {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.menu-dish-type {
  width: fit-content;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--accent);
  border: 1px solid rgba(132, 204, 22, 0.3);
  border-radius: 999px;
  padding: 0.3rem 0.55rem;
  background: var(--accent-soft);
}
.menu-dish-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.menu-dish-content {
  display: grid;
  gap: 0.9rem;
}
.menu-dish-section {
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.is-recording { border-color: rgba(239,68,68,0.5); background: rgba(239,68,68,0.12); }
.is-transcribing { border-color: rgba(132,204,22,0.45); }
@media (max-width: 980px) {
  .result-photo-mode { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 720px) {
  .site-header {
    padding-top: 2.75rem;
    padding-bottom: 2.15rem;
  }
  .site-main {
    padding-top: 0.25rem;
  }
  .site-header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1.4rem;
  }
  .brand-block-header {
    justify-content: center;
    width: 100%;
  }
  .site-brand-link {
    justify-content: center;
    text-align: left;
  }
  .site-brand-logo {
    width: 110px;
    height: 110px;
  }
  .site-brand-copy {
    gap: 0.35rem;
    align-items: flex-start;
  }
  .site-brand-name {
    display: block;
    width: 100%;
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }
  .site-brand-tagline {
    display: block;
    width: 100%;
    font-size: 0.92rem;
    max-width: none;
    margin-left: 0;
  }
  .site-auth-nav {
    width: 100%;
    justify-content: stretch;
    gap: 0.9rem;
    margin-bottom: 1.85rem;
  }
  .field-label-row { align-items: stretch; }
  .field-label-row .button { width: 100%; }
  .panel { padding: 1.1rem; }
  .generator-switcher { grid-template-columns: 1fr; }
  .result-head, .panel-head { gap: 0.85rem; }
  .result-actions { width: 100%; }
  .button, .view-tab { width: 100%; }
  .inline-tool-controls { flex-direction: column; align-items: stretch; }
  .prompt-toolbar-mobile .button { width: 100%; }
  .inline-tool-controls input { width: 100%; }
  .desktop-only { display: none !important; }
  .mobile-only { display: grid !important; }
  .field-group-servings-desktop { max-width: none; }
  .field-group-servings-head { width: 100%; margin-left: 0; }
  .assist-card-top { flex-direction: column; }
  .photo-preview-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }

  .mobile-voice-servings-row {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .mobile-recipe-input-row {
    gap: 1.15rem;
    margin-bottom: 0.95rem;
  }

  .mobile-menu-input-row {
    margin-bottom: 1.7rem;
  }

  .menu-structure-panel {
    display: grid;
    margin-top: 0;
    padding: 0.95rem;
  }

  .menu-structure-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-structure-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .menu-structure-servings-row {
    max-width: none;
    margin-top: 0;
  }

  .menu-structure-summary {
    margin-top: 0.15rem;
  }

  .result-panel {
    display: grid;
    gap: 1rem;
  }

  .result-panel .result-head { order: 1; }
  .result-panel .result-grid { order: 2; }
  .result-panel .result-tools { order: 3; margin-bottom: 0; }
}


.input-assist-panel { margin-bottom: 0.4rem; }
.preference-panel {
  margin-top: 1.2rem;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  background: rgba(255,255,255,0.02);
}

.preference-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 0.9rem;
}

.compact-helper {
  max-width: 34rem;
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.35;
}

.equipment-fieldset {
  margin: 1.15rem 0 0;
  padding: 0;
  border: 0;
}

.equipment-fieldset legend {
  margin-bottom: 0.65rem;
  font-weight: 700;
  color: #f3f3f3;
}

.chip-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}


.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.7rem 1rem;
}
@media (max-width: 1100px) {
  .checkbox-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 780px) {
  .checkbox-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.checkbox-option {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  color: var(--text);
  cursor: pointer;
}

.checkbox-option input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  accent-color: var(--accent);
}

.checkbox-option span {
  color: var(--text);
  font-size: 0.95rem;
}

.chip-check {
  position: relative;
  display: inline-flex;
}

.chip-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip-check span {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #e8e8e8;
  font-size: 0.95rem;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  cursor: pointer;
}

.chip-check input:checked + span {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.24);
}

.chip-check span:hover {
  transform: translateY(-1px);
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
}

.modal-card {
  position: relative;
  width: min(720px, calc(100% - 2rem));
  margin: 8vh auto 0;
  padding: 1.25rem;
  border-radius: 1.1rem;
  background: #171717;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 25px 70px rgba(0,0,0,0.4);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 0.85rem;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #f1f1f1;
  cursor: pointer;
}

.conflict-summary {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.conflict-item {
  padding: 0.85rem 0.95rem;
  border-radius: 0.9rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.conflict-item strong {
  display: block;
  margin-bottom: 0.25rem;
}

.conflict-item.is-hard {
  border-color: rgba(255, 190, 92, 0.35);
  background: rgba(255, 190, 92, 0.08);
}

.conflict-kind {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #cfcfcf;
  margin-bottom: 0.3rem;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

@media (max-width: 680px) {
  .preference-head {
    flex-direction: column;
  }

  .modal-card {
    margin-top: 4vh;
    padding: 1rem;
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-actions .button {
    width: 100%;
  }
}


.input-assist-panel {
  margin-top: 0.45rem;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: rgba(255,255,255,0.02);
}

.assist-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.assist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
  margin-bottom: 1.15rem;
}

.assist-card {
  padding: 0.9rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.assist-card-label {
  margin: 0 0 0.6rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.assist-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

@media (max-width: 700px) {
  .assist-head {
    flex-direction: column;
  }
}


.custom-select-source {
  display: none !important;
}

.custom-select {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  padding: 0.9rem 3rem 0.9rem 1rem;
  text-align: left;
  position: relative;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.custom-select-trigger::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.18s ease;
}

.custom-select.is-open .custom-select-trigger {
  border-color: rgba(132, 204, 22, 0.45);
  box-shadow: 0 0 0 4px rgba(132, 204, 22, 0.08);
}

.custom-select.is-open .custom-select-trigger::after {
  transform: translateY(-25%) rotate(-135deg);
}

 .custom-select-menu {
  position: absolute;
  z-index: 200;
  top: calc(100% + 0.45rem);
  left: 0;
  right: 0;
  display: none;
  padding: 0.45rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #171b21;
  box-shadow: var(--shadow);
  overflow: hidden;
  max-height: min(320px, 50vh);
  overflow-y: auto;
}

.custom-select.is-open .custom-select-menu {
  display: grid;
  gap: 0.2rem;
}

.custom-select-option {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 0.75rem 0.85rem;
}

.custom-select-option:hover {
  background: rgba(255,255,255,0.08);
}

.custom-select-option.is-selected {
  background: rgba(255,255,255,0.1);
  color: #f8fafc;
}

.refinement-select-wrap .custom-select-trigger,
.field-group > .custom-select .custom-select-trigger {
  border-radius: var(--radius-md);
}


@media (max-width: 900px) {
  .refinement-control-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .refinement-control-row .button {
    width: 100%;
  }
}


.refinement-select {
  position: relative;
  z-index: 2;
}



.menu-refinement-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.menu-refinement-field {
  margin-bottom: 0;
}

.menu-result-tools {
  margin-bottom: 1.5rem;
}

#menu-refinement-feedback {
  margin-top: 0.85rem;
}

@media (max-width: 767px) {
  .menu-refinement-meta {
    grid-template-columns: 1fr;
  }
}


.menu-structure-limit-note {
  margin-top: 0.5rem;
}

#menu-total-dishes-display.is-over-limit {
  color: #b42318;
}

.blackboard-panel {
  margin-top: 1.5rem;
}

.blackboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.blackboard-empty-state {
  padding: 1rem 1.1rem;
  border: 1px dashed rgba(255,255,255,0.16);
  border-radius: 16px;
  color: var(--text-muted, #bdbdbd);
  background: rgba(255,255,255,0.02);
}

.blackboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.account-cookbook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.blackboard-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
}

.blackboard-card-head,
.blackboard-card-meta,
.blackboard-card-actions,
.account-stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: space-between;
}

.blackboard-type-pill,
.blackboard-date {
  font-size: 0.78rem;
}

.blackboard-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}

.blackboard-date,
.blackboard-card-description,
.blackboard-card-meta {
  color: var(--text-muted, #bdbdbd);
}

.blackboard-card h3,
.blackboard-card h4 {
  margin: 0;
}

.blackboard-card-description {
  margin: 0;
  line-height: 1.5;
}

.blackboard-card-meta {
  justify-content: flex-start;
  font-size: 0.86rem;
}

.blackboard-card-actions {
  justify-content: space-between;
  align-items: center;
}

.workspace-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.workspace-action-group-right {
  margin-left: auto;
  justify-content: flex-end;
}

.account-stats-grid {
  justify-content: flex-start;
  margin: 1rem 0 1.25rem;
}

@media (max-width: 720px) {
  .blackboard-head {
    flex-direction: column;
  }

  .blackboard-card-actions,
  .workspace-action-group {
    flex-direction: column;
    align-items: stretch;
  }

  .workspace-action-group-right {
    margin-left: 0;
  }

  .blackboard-card-actions .button,
  .workspace-action-group .button,
  .blackboard-head .result-actions .button {
    width: 100%;
  }
}

.blackboard-card-expanded,
.cookbook-card-full {
  gap: 1rem;
}

.blackboard-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.workspace-detail-block {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: rgba(255,255,255,0.025);
}

.workspace-detail-block h4 {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
}

.cookbook-menu-stack {
  display: grid;
  gap: 1rem;
}

.cookbook-menu-dish-card {
  padding: 1rem;
}

.cookbook-page-shell,
.cookbook-page-panel {
  width: 100%;
}

.cookbook-grid-full {
  grid-template-columns: 1fr;
}

.cookbook-empty-state {
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .blackboard-detail-grid {
    grid-template-columns: 1fr;
  }
}


.cookbook-toolbar {
  margin-top: 1rem;
}

.cookbook-search-field {
  max-width: none;
}

.cookbook-search-input-wrap,
.cookbook-card-head-left,
.cookbook-results-meta,
.cookbook-card-actions-wide {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.cookbook-search-input-wrap {
  gap: 0.75rem;
}

.cookbook-filter {
  position: relative;
  width: 170px;
  flex: 0 0 170px;
}

.cookbook-filter-trigger {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  padding: 0.9rem 2.9rem 0.9rem 1rem;
  text-align: left;
  position: relative;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.cookbook-filter-trigger::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.18s ease;
}

.cookbook-filter.is-open .cookbook-filter-trigger {
  border-color: rgba(132, 204, 22, 0.45);
  box-shadow: 0 0 0 4px rgba(132, 204, 22, 0.08);
}

.cookbook-filter.is-open .cookbook-filter-trigger::after {
  transform: translateY(-25%) rotate(-135deg);
}

.cookbook-filter-menu {
  position: absolute;
  z-index: 220;
  top: calc(100% + 0.45rem);
  left: 0;
  right: 0;
  display: grid;
  gap: 0.2rem;
  padding: 0.45rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #171b21;
  box-shadow: var(--shadow);
}


.cookbook-filter-menu[hidden] {
  display: none;
}
.cookbook-filter-option {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 0.75rem 0.85rem;
}

.cookbook-filter-option:hover,
.cookbook-filter-option.is-selected {
  background: rgba(255,255,255,0.08);
}

.cookbook-search-input-shell {
  width: min(100%, 360px);
}

.cookbook-search-input-wrap input[type="search"] {
  width: 100%;
  min-width: 0;
}

.cookbook-search-input-wrap input[type="search"]::-webkit-search-cancel-button {
  cursor: pointer;
}

.cookbook-search-input-wrap input[type="search"]::-ms-clear {
  cursor: pointer;
}

.cookbook-results-meta {
  justify-content: space-between;
  margin-top: 1rem;
  color: var(--text-muted, #bdbdbd);
  font-size: 0.9rem;
}

.blackboard-type-pill-accent {
  gap: 0.45rem;
  background: rgba(163, 230, 53, 0.16);
  color: #d9ff8a;
}

.cookbook-pin-form {
  margin: 0;
}

.cookbook-pin-pill {
  appearance: none;
  border: 1px solid var(--border);
  cursor: pointer;
  gap: 0.45rem;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cookbook-pin-pill:hover {
  border-color: rgba(163, 230, 53, 0.28);
  background: rgba(255,255,255,0.06);
  color: var(--text);
}

.cookbook-pin-pill.is-active:hover {
  background: rgba(163, 230, 53, 0.2);
}

.cookbook-card-favorite {
  border-color: rgba(163, 230, 53, 0.22);
  box-shadow: 0 0 0 1px rgba(163, 230, 53, 0.08) inset;
}

.cookbook-card-actions-wide {
  justify-content: space-between;
  align-items: center;
}

.cookbook-card-actions-end {
  margin-top: 1.15rem;
}

.cookbook-card-actions-left,
.cookbook-card-actions-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.cookbook-card-actions-right {
  justify-content: flex-end;
  margin-left: auto;
}

@media (max-width: 900px) {
  .cookbook-filter,
  .cookbook-search-input-shell {
    width: 100%;
    max-width: none;
    flex-basis: 100%;
  }
}

@media (max-width: 720px) {
  .cookbook-search-input-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .cookbook-search-input-wrap input[type="search"] {
    min-width: 0;
  }

  .cookbook-results-meta,
  .cookbook-card-actions-wide,
  .cookbook-card-actions-left,
  .cookbook-card-actions-right {
    flex-direction: column;
    align-items: stretch;
  }

  .cookbook-card-actions-right {
    margin-left: 0;
  }
}


.admin-shell {
  gap: 1rem;
}

.admin-panel {
  display: grid;
  gap: 1.35rem;
}

.admin-panel-head,
.admin-list-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.admin-head-actions,
.admin-toolbar-actions,
.admin-simple-list-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.admin-stats-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.admin-stats-grid-tight {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-stat-card {
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1rem;
}

.admin-stat-card strong {
  font-size: 1.35rem;
}

.admin-section-block {
  display: grid;
  gap: 1rem;
}

.admin-simple-list {
  display: grid;
  gap: 0.85rem;
}

.admin-simple-list-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
}

.admin-toolbar {
  display: grid;
  gap: 0.85rem;
}

.admin-toolbar-inline {
  grid-template-columns: minmax(280px, 420px) auto;
  align-items: end;
  gap: 0.75rem;
  margin-top: -0.2rem;
}

.admin-toolbar-field {
  margin-bottom: 0;
}

.admin-toolbar-field-compact input {
  width: 100%;
}

.admin-toolbar-actions-compact {
  align-self: end;
  margin-bottom: 0;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.admin-table th,
.admin-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.admin-table thead th {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-user-cell {
  display: grid;
  gap: 0.2rem;
}

.admin-user-cell span,
.admin-table-empty {
  color: var(--muted);
}

.admin-table-actions {
  white-space: nowrap;
}

.admin-table-users {
  min-width: 0;
}

.admin-table-row-link {
  cursor: pointer;
}

.admin-table-row-link:hover td,
.admin-table-row-link:focus-visible td {
  background: rgba(255,255,255,0.045);
}

.admin-table-row-link:focus-visible {
  outline: none;
}

.admin-users-help {
  margin-top: 0.9rem;
  margin-bottom: 0;
}

.admin-detail-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-pagination nav {
  display: flex;
  justify-content: center;
}

.admin-pagination svg {
  width: 1rem;
  height: 1rem;
}

@media (max-width: 900px) {
  .admin-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .admin-toolbar-inline {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-toolbar-actions-compact {
    align-self: stretch;
  }
}

@media (max-width: 640px) {
  .admin-simple-list-item,
  .admin-panel-head,
  .admin-list-head {
    flex-direction: column;
    align-items: stretch;
  }
}


.admin-top-link-row {
  margin-bottom: 0.15rem;
}

.admin-panel-head .section-text {
  margin-bottom: 0.1rem;
}

.admin-simple-list-link {
  color: inherit;
  text-decoration: none;
}

.admin-simple-list-link:hover,
.admin-simple-list-link:focus-visible {
  border-color: rgba(132, 204, 22, 0.45);
  background: rgba(255,255,255,0.045);
}

.admin-table-status-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.blackboard-kind-danger {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
}

.admin-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.admin-action-row form {
  margin: 0;
}

.admin-detail-grid-three-up {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
}

@media (max-width: 1100px) {
  .admin-detail-grid-three-up {
    grid-template-columns: 1fr;
  }
}


@media print {
  body {
    background: #ffffff !important;
    color: #111111 !important;
  }

  body * {
    visibility: hidden !important;
  }

  body.print-mode-workspace #workspace-print-sheet,
  body.print-mode-workspace #workspace-print-sheet * {
    visibility: visible !important;
  }

  body.print-mode-workspace #workspace-print-sheet {
    position: static !important;
    display: block !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #111111 !important;
    break-after: auto;
    page-break-after: auto;
  }

  body.print-mode-workspace #workspace-print-sheet,
  body.print-mode-workspace #workspace-print-sheet h2,
  body.print-mode-workspace #workspace-print-sheet h3,
  body.print-mode-workspace #workspace-print-sheet h4,
  body.print-mode-workspace #workspace-print-sheet p,
  body.print-mode-workspace #workspace-print-sheet li,
  body.print-mode-workspace #workspace-print-sheet span,
  body.print-mode-workspace #workspace-print-sheet strong {
    color: #111111 !important;
  }

  body.print-mode-workspace #workspace-print-sheet .workspace-print-stack,
  body.print-mode-workspace #workspace-print-sheet .workspace-print-menu-stack {
    display: grid;
    gap: 0.9rem;
  }

  body.print-mode-workspace #workspace-print-sheet .workspace-print-section-card,
  body.print-mode-workspace #workspace-print-sheet .workspace-print-dish-card {
    background: transparent !important;
    border: 1px solid #d1d5db !important;
    box-shadow: none !important;
    padding: 1rem;
    border-radius: 16px;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body.print-mode-workspace #workspace-print-sheet .workspace-print-meta-cards {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem !important;
    margin: 0 0 1rem;
  }

  body.print-mode-workspace #workspace-print-sheet .workspace-print-meta-cards-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.print-mode-workspace #workspace-print-sheet .workspace-print-meta-card {
    border: 1px solid #d1d5db !important;
    border-radius: 14px;
    padding: 0.75rem 0.85rem;
    background: transparent !important;
  }

  body.print-mode-workspace #workspace-print-sheet .workspace-print-meta-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  body.print-mode-workspace #workspace-print-sheet .workspace-print-meta-value {
    display: block;
    font-size: 1rem;
  }

  body.print-mode-workspace #workspace-print-sheet .workspace-print-dish-head {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
  }

  body.print-mode-workspace #workspace-print-sheet .workspace-print-pill {
    background: transparent !important;
    color: #111111 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
    text-transform: capitalize;
  }

  body.print-mode-workspace #workspace-print-sheet .workspace-print-description {
    margin-bottom: 1rem;
  }

  body.print-mode-workspace #workspace-print-sheet ul,
  body.print-mode-workspace #workspace-print-sheet ol {
    margin-bottom: 0;
  }

  @page {
    margin: 0.5in;
  }
}

.workspace-print-sheet {
  display: none;
}

.workspace-print-meta-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.workspace-print-meta-cards-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workspace-print-meta-card {
  border: 1px solid rgba(17,17,17,0.16);
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
}

.workspace-print-meta-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workspace-print-meta-value {
  display: block;
  font-size: 1rem;
}

.workspace-print-stack {
  display: grid;
  gap: 0.9rem;
}

.workspace-print-section-card {
  border: 1px solid rgba(17,17,17,0.16);
  border-radius: 16px;
  padding: 1rem;
}

body.print-mode-workspace .workspace-print-sheet {
  display: block !important;
}


.workspace-tab-pill {
  appearance: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.workspace-tab-pill:hover {
  border-color: rgba(163, 230, 53, 0.22);
  background: rgba(255,255,255,0.06);
}

.workspace-tab-pill.is-active {
  background: rgba(163, 230, 53, 0.16);
  color: #d9ff8a;
  border-color: rgba(163, 230, 53, 0.28);
}

.workspace-meta-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.workspace-meta-card {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: rgba(255,255,255,0.025);
}

.workspace-meta-card small {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workspace-meta-card strong {
  font-size: 1.55rem;
  line-height: 1.1;
}

.workspace-shopping-list-stack {
  display: grid;
  gap: 1rem;
}

@media (max-width: 900px) {
  .workspace-meta-cards {
    grid-template-columns: 1fr;
  }
}

.cookbook-card-head-left { display:flex; flex-wrap:wrap; align-items:center; gap:0.5rem; }


.site-footer {
  padding: 0.4rem 0 2rem;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.site-footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.15rem;
}

.site-footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-footer-nav a:hover {
  color: var(--text);
}

.legal-shell,
.legal-panel {
  width: 100%;
}

.legal-top-link-row {
  margin-bottom: 1rem;
}

.legal-panel {
  max-width: none;
  margin: 0 auto 1.5rem;
}

.legal-copy h2 {
  margin-top: 1.6rem;
  margin-bottom: 0.55rem;
  font-size: 1.15rem;
}

.legal-copy p {
  margin-bottom: 0.95rem;
}

.legal-updated {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

@media (max-width: 720px) {
  .site-footer {
    padding-bottom: 1.7rem;
  }

  .site-footer-inner {
    justify-content: center;
    text-align: center;
  }
}
