:root {
  --bg: #fffaf2;
  --bg-strong: #fff2dd;
  --surface: #ffffff;
  --surface-warm: #fff7ec;
  --text: #171613;
  --muted: #676057;
  --line: #eadfce;
  --tomato: #f05a24;
  --tomato-dark: #c93f16;
  --herb: #2f7d4f;
  --herb-soft: #dff0df;
  --mustard: #f4b93f;
  --shadow: 0 18px 50px rgba(48, 36, 20, .12);
  --radius: 8px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(255, 250, 242, .88);
  border-bottom: 1px solid rgba(234, 223, 206, .8);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 850;
  text-decoration: none;
}

.brand-logo {
  width: 104px;
  height: 80px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.nav a:hover {
  color: var(--tomato-dark);
}

.primary,
.secondary,
.icon-button {
  border: 0;
  border-radius: var(--radius);
  min-height: 44px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  background: var(--tomato);
  color: #fff;
  font-weight: 850;
  box-shadow: 0 12px 24px rgba(240, 90, 36, .22);
}

.primary:hover,
.secondary:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  font-weight: 800;
}

.compact {
  min-height: 38px;
  padding: 0 12px;
  font-size: 13px;
}

.small {
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
}

.full {
  width: 100%;
}

.icon-button {
  display: none;
  place-items: center;
  width: 44px;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
}

.icon-button svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 520px) 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  min-height: min(820px, calc(100vh - 76px));
  padding: clamp(30px, 5vw, 58px) clamp(18px, 5vw, 70px) 26px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 242, 221, .78), transparent 52%),
    radial-gradient(circle at 86% 16%, rgba(47, 125, 79, .12), transparent 28%);
}

.hero-copy,
.hero-map {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 9ch;
  margin: 0;
  font-size: clamp(54px, 8vw, 116px);
  line-height: .88;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 470px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-map {
  min-height: 560px;
}

.route {
  position: absolute;
  inset: 74px 0 auto 0;
  width: 100%;
  height: 260px;
}

.route path {
  fill: none;
  stroke: rgba(240, 90, 36, .48);
  stroke-width: 5;
  stroke-dasharray: 8 14;
  stroke-linecap: round;
}

.pantry-pin {
  position: absolute;
  left: 8%;
  top: 232px;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  background: var(--text);
  color: #fff;
  border: 7px solid var(--bg);
  border-radius: 50% 50% 50% 8px;
  box-shadow: var(--shadow);
  transform: rotate(-45deg);
}

.pantry-pin span,
.pantry-pin strong {
  transform: rotate(45deg);
}

.pantry-pin span {
  margin-top: 10px;
  color: rgba(255, 255, 255, .76);
  font-size: 12px;
  font-weight: 800;
}

.pantry-pin strong {
  margin-top: -12px;
  font-size: 26px;
}

.plate-orbit {
  position: absolute;
  inset: 0;
}

.hero-plate {
  position: absolute;
  display: grid;
  gap: 10px;
  width: min(220px, 29vw);
  padding: 12px;
  background: rgba(255, 255, 255, .84);
  border: 1px solid rgba(234, 223, 206, .92);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-plate:nth-child(1) {
  right: 45%;
  top: 8px;
}

.hero-plate:nth-child(2) {
  right: 96px;
  top: 118px;
}

.hero-plate:nth-child(3) {
  right: 34%;
  top: 326px;
}

.hero-plate img {
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
  border-radius: 7px;
}

.hero-plate h3,
.plate-card h3,
.panel h3,
.section-heading h2 {
  margin: 0;
}

.hero-plate h3 {
  font-size: 16px;
  line-height: 1.15;
}

.hero-plate .mini-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.section-heading {
  max-width: 880px;
  margin: 0 auto 24px;
  padding: 0 clamp(18px, 4vw, 54px);
}

.section-heading h2 {
  font-size: clamp(36px, 5vw, 66px);
  line-height: .95;
  letter-spacing: 0;
}

.section-heading p {
  max-width: 650px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.kitchen,
.photo-lab,
.recipe-lab,
.library,
.stove,
.legal {
  padding: 78px 0;
}

.kitchen {
  background: linear-gradient(180deg, var(--bg-strong), var(--bg));
}

.workspace {
  display: grid;
  grid-template-columns: minmax(250px, .85fr) minmax(440px, 1.7fr) minmax(240px, .8fr);
  gap: 14px;
  width: min(1320px, calc(100% - 36px));
  margin: 0 auto;
}

.panel {
  min-width: 0;
  padding: 18px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(48, 36, 20, .08);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.panel h3 {
  font-size: 24px;
  line-height: 1.05;
}

.panel p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.add-form,
.library-tools,
.control-row {
  display: flex;
  gap: 10px;
}

input,
textarea,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #fff;
  color: var(--text);
  outline: 0;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(240, 90, 36, .72);
  box-shadow: 0 0 0 4px rgba(240, 90, 36, .12);
}

.bulk-label {
  display: block;
  margin: 18px 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 8px 0 11px;
  background: var(--herb-soft);
  border: 1px solid rgba(47, 125, 79, .18);
  border-radius: 999px;
  color: #21472f;
  font-size: 13px;
  font-weight: 800;
}

.chip button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(47, 125, 79, .12);
  color: #21472f;
  font-weight: 900;
}

.plates-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.plate-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.plate-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1.08;
  object-fit: cover;
  background: var(--surface-warm);
}

.plate-body {
  display: grid;
  gap: 11px;
  padding: 13px;
}

.readiness {
  display: flex;
  align-items: center;
  gap: 8px;
}

.readiness span {
  position: relative;
  flex: 1;
  height: 8px;
  overflow: hidden;
  background: #f1e5d1;
  border-radius: 999px;
}

.readiness span::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--ready, 50%);
  background: var(--herb);
}

.readiness strong {
  min-width: 42px;
  color: var(--herb);
  font-size: 13px;
}

.plate-card h3 {
  min-height: 44px;
  font-size: 20px;
  line-height: 1.12;
}

.plate-card p {
  min-height: 40px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.plate-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.plate-tags span {
  padding: 5px 8px;
  background: var(--surface-warm);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.plate-tags .profile-ok {
  background: var(--herb-soft);
  color: #21472f;
}

.missing {
  min-height: 34px;
  color: var(--tomato-dark);
  font-size: 13px;
  font-weight: 800;
}

.favorite {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .84);
  border-radius: 50%;
  background: rgba(255, 255, 255, .8);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.favorite svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.favorite.is-on {
  color: var(--tomato);
}

.favorite.is-on svg {
  fill: currentColor;
}

.shopping-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shopping-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.shopping-list strong {
  color: var(--text);
}

.library {
  background: var(--surface);
}

.stove {
  background: linear-gradient(180deg, #fff, var(--bg));
}

.profile-dock {
  padding: 42px 0;
}

.recipe-lab {
  background:
    linear-gradient(180deg, var(--bg), #ffffff 84%),
    radial-gradient(circle at 88% 18%, rgba(244, 185, 63, .12), transparent 30%);
}

.photo-lab {
  background: var(--surface);
}

.legal {
  background: linear-gradient(180deg, #fff, var(--bg));
}

.legal .section-heading {
  width: min(1120px, calc(100% - 36px));
  max-width: none;
  padding: 0;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.legal-card {
  min-width: 0;
  padding: 18px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(48, 36, 20, .07);
}

.legal-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.08;
}

.legal-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.legal-card a {
  color: var(--tomato-dark);
  font-weight: 850;
  text-decoration: none;
}

.legal-card a:hover {
  text-decoration: underline;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 54px);
  background: var(--text);
  color: #fff;
}

.site-footer div {
  display: grid;
  gap: 4px;
}

.site-footer strong {
  font-size: 16px;
}

.site-footer span,
.site-footer a {
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  font-weight: 750;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.cookie-consent {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  width: min(520px, calc(100% - 36px));
  padding: 10px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 55px rgba(48, 36, 20, .18);
  backdrop-filter: blur(16px);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.cookie-consent p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.cookie-actions {
  display: flex;
  gap: 8px;
}

.photo-shell {
  display: grid;
  grid-template-columns: minmax(280px, .95fr) minmax(320px, 1.05fr);
  gap: 14px;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.photo-drop,
.photo-result {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 38px rgba(48, 36, 20, .08);
}

.photo-drop {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
  overflow: hidden;
  background: var(--surface-warm);
}

.photo-drop input {
  position: absolute;
  inset: 0;
  z-index: 2;
  min-height: 100%;
  opacity: 0;
  cursor: pointer;
}

.photo-empty {
  display: grid;
  gap: 8px;
  place-items: center;
  padding: 20px;
  text-align: center;
}

.photo-empty strong {
  font-size: 24px;
}

.photo-empty span {
  color: var(--muted);
  font-weight: 750;
}

.photo-empty small {
  max-width: 260px;
  color: var(--herb);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.photo-drop img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.photo-result {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
}

.vision-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vision-chip {
  display: inline-grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  background: var(--herb-soft);
  border: 1px solid rgba(47, 125, 79, .2);
  border-radius: 999px;
  color: #21472f;
  font-size: 13px;
  font-weight: 850;
}

.vision-chip input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--herb);
}

.vision-chip small {
  color: var(--muted);
}

.seasoning-box {
  display: grid;
  gap: 6px;
  padding: 12px;
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.seasoning-box p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.guide-shell {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.guide-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 14px;
}

.guide-form input {
  min-height: 52px;
  font-size: 18px;
}

.guide-card {
  display: grid;
  grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr);
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(48, 36, 20, .1);
}

.guide-visual {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  padding: 18px;
  background:
    linear-gradient(145deg, #fff7ec, #f2f9ef),
    radial-gradient(circle at 80% 12%, rgba(240, 90, 36, .16), transparent 32%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.guide-visual svg {
  width: 100%;
  max-height: 280px;
}

.guide-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  background: var(--text);
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

.guide-visual h3 {
  margin: 16px 0 8px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: .98;
}

.guide-visual p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}

.guide-content {
  display: grid;
  gap: 14px;
}

.guide-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}

.guide-top h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
}

.guide-top p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}

.guide-time {
  display: grid;
  place-items: center;
  min-width: 84px;
  min-height: 84px;
  background: var(--tomato);
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 14px 28px rgba(240, 90, 36, .22);
}

.guide-time span {
  display: block;
  font-size: 24px;
}

.guide-time small {
  display: block;
  font-size: 12px;
}

.ingredient-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ingredient-tile,
.tip-card,
.step-check {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-warm);
}

.ingredient-tile {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 9px;
}

.ingredient-tile svg {
  width: 32px;
  height: 32px;
}

.ingredient-tile strong {
  display: block;
  font-size: 13px;
  line-height: 1.1;
}

.ingredient-tile span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.guide-tips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ai-contract {
  display: grid;
  gap: 5px;
  padding: 12px;
  background: #f7fbf5;
  border: 1px solid rgba(47, 125, 79, .26);
  border-radius: var(--radius);
}

.ai-contract strong {
  font-size: 14px;
}

.ai-contract p,
.ai-contract small {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.ai-contract small {
  color: #21472f;
  font-weight: 750;
}

.tip-card {
  padding: 12px;
}

.tip-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

.tip-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.guide-steps {
  display: grid;
  gap: 8px;
}

.step-check {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 10px;
  padding: 11px;
  background: #fff;
}

.step-check input {
  width: 22px;
  min-height: 22px;
  margin: 2px 0 0;
  accent-color: var(--herb);
}

.step-check div {
  min-width: 0;
}

.step-check strong {
  display: block;
  margin-bottom: 3px;
  font-size: 15px;
}

.step-check p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.step-check small {
  min-width: 70px;
  color: var(--tomato-dark);
  font-size: 12px;
  font-weight: 850;
  text-align: right;
}

.step-check:has(input:checked) {
  background: #f2faef;
  border-color: rgba(47, 125, 79, .3);
}

.step-check:has(input:checked) strong,
.step-check:has(input:checked) p {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(47, 125, 79, .35);
}

.library-tools,
.recipe-list,
.profile-shell {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.library-tools {
  margin-bottom: 16px;
}

.recipe-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.recipe-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  min-height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.recipe-card img {
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
}

.recipe-card div {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.recipe-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.15;
}

.recipe-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.profile-shell {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(320px, 1.1fr);
  gap: 14px;
  align-items: start;
}

.profile-panel {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  background: var(--surface-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.profile-panel h3 {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 24px;
}

.profile-panel h3 svg,
.stove-option svg,
.diet-option svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stove-grid,
.diet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
  gap: 12px;
}

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

.stove-option,
.diet-option {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 850;
  line-height: 1.1;
}

.stove-option:has(input:checked),
.diet-option:has(input:checked) {
  border-color: rgba(240, 90, 36, .42);
  background: #fff7ec;
  color: var(--tomato-dark);
}

.diet-option {
  min-height: 58px;
  font-size: clamp(14px, 1.35vw, 17px);
}

.stove-option input,
.diet-option input {
  flex: 0 0 auto;
  width: 22px;
  min-height: 22px;
  accent-color: var(--tomato);
}

.stove-option span,
.diet-option span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.diet-summary {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.empty-state strong {
  display: block;
  margin-bottom: 5px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

@media (min-width: 1180px) {
  main {
    margin-right: 306px;
  }

  .topbar {
    padding-right: 320px;
  }

  .profile-dock {
    position: fixed;
    top: 156px;
    right: 18px;
    z-index: 18;
    width: 274px;
    max-height: calc(100vh - 174px);
    overflow: auto;
    padding: 0;
    background: transparent;
  }

  .profile-dock .section-heading {
    margin: 0 0 10px;
    padding: 0;
  }

  .profile-dock .section-heading h2 {
    font-size: 22px;
    line-height: 1;
  }

  .profile-dock .section-heading p {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.3;
  }

  .profile-dock .profile-shell {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .profile-dock .profile-panel {
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 14px 38px rgba(48, 36, 20, .12);
    backdrop-filter: blur(16px);
  }

  .profile-dock .profile-panel h3 {
    font-size: 17px;
  }

  .profile-dock .stove-grid,
  .profile-dock .diet-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .profile-dock .stove-option,
  .profile-dock .diet-option {
    min-height: 42px;
    padding: 9px 10px;
    font-size: 14px;
  }

  .profile-dock .stove-option svg,
  .profile-dock .diet-option svg {
    width: 18px;
    height: 18px;
  }

  .profile-dock textarea {
    min-height: 74px;
  }

  .site-footer {
    margin-right: 306px;
  }

  .cookie-consent {
    right: 324px;
  }
}

.cook-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(23, 22, 19, .76);
}

.cook-overlay[hidden] {
  display: none;
}

.cook-shell {
  position: relative;
  display: grid;
  gap: 18px;
  width: min(780px, 100%);
  min-height: min(680px, calc(100vh - 36px));
  padding: clamp(24px, 5vw, 54px);
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .38);
}

.close-cook {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
}

.cook-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-right: 50px;
}

.cook-meta span {
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.cook-shell h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
}

.cook-shell p {
  margin: 0;
  color: var(--text);
  font-size: clamp(21px, 3vw, 30px);
  line-height: 1.28;
}

#cook-step {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(48, 36, 20, .07);
}

#cook-step::before {
  content: "Teď udělejte";
  display: block;
  margin-bottom: 8px;
  color: var(--tomato-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.cook-top-tip {
  display: grid;
  gap: 6px;
  padding: 13px 15px;
  background: #171613;
  border-radius: var(--radius);
  color: #fff;
}

.cook-top-tip[hidden] {
  display: none;
}

.cook-top-tip strong {
  color: var(--mustard);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.cook-top-tip p {
  margin: 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
}

.cook-adjust {
  align-self: end;
  display: grid;
  gap: 10px;
}

.cook-adjust label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.cook-adjust-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cook-advice {
  display: grid;
  gap: 5px;
  padding: 12px;
  background: #f2faef;
  border: 1px solid rgba(47, 125, 79, .28);
  border-radius: var(--radius);
}

.cook-advice[hidden] {
  display: none;
}

.cook-advice strong {
  color: #21472f;
  font-size: 15px;
}

.cook-advice p,
.cook-advice small {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.cook-advice small {
  color: #21472f;
  font-weight: 750;
}

.cook-friend {
  display: grid;
  gap: 12px;
  align-self: end;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cook-friend[hidden] {
  display: none;
}

.cook-friend strong {
  font-size: 20px;
}

.cook-friend label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.cook-friend p {
  margin: 0;
  color: #21472f;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.cook-mood {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cook-mood .is-active {
  background: var(--herb);
  border-color: var(--herb);
  color: #fff;
}

.cook-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-map {
    min-height: 530px;
  }

  .workspace {
    grid-template-columns: 1fr 1fr;
  }

  .guide-card {
    grid-template-columns: 1fr;
  }

  .photo-shell {
    grid-template-columns: 1fr;
  }

  .legal-grid {
    grid-template-columns: 1fr;
  }

  .profile-shell {
    grid-template-columns: 1fr;
  }

  .ingredient-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plates-panel {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .recipe-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 10px 14px;
  }

  .brand-logo {
    width: 82px;
    height: 64px;
  }

  .nav,
  .topbar > .primary {
    display: none;
  }

  .icon-button {
    display: grid;
  }

  .hero {
    padding: 34px 16px 18px;
  }

  .hero h1 {
    font-size: clamp(58px, 18vw, 86px);
  }

  .hero-actions > * {
    flex: 1 1 180px;
  }

  .hero-map {
    min-height: 620px;
  }

  .hero-plate {
    width: min(300px, 76vw);
  }

  .hero-plate:nth-child(1) {
    right: 4%;
    top: 0;
  }

  .hero-plate:nth-child(2) {
    right: 16%;
    top: 196px;
  }

  .hero-plate:nth-child(3) {
    right: 4%;
    bottom: 0;
  }

  .pantry-pin {
    left: 2%;
    top: 260px;
    width: 82px;
    height: 82px;
  }

  .workspace,
  .plates-grid,
  .recipe-list,
  .stove-grid,
  .diet-grid {
    grid-template-columns: 1fr;
  }

  .workspace,
  .photo-shell,
  .guide-shell,
  .library-tools,
  .recipe-list,
  .profile-shell {
    width: calc(100% - 28px);
  }

  .panel-head,
  .add-form,
  .guide-form,
  .guide-top,
  .library-tools,
  .control-row,
  .cook-actions {
    flex-direction: column;
  }

  .plates-panel {
    grid-column: auto;
    grid-row: auto;
  }

  .plate-card h3,
  .plate-card p,
  .missing {
    min-height: 0;
  }

  .guide-card {
    padding: 8px;
  }

  .guide-visual {
    min-height: 0;
  }

  .guide-tips,
  .ingredient-strip {
    grid-template-columns: 1fr;
  }

  .step-check {
    grid-template-columns: auto 1fr;
  }

  .step-check small {
    grid-column: 2;
    text-align: left;
  }

  .site-footer,
  .cookie-consent {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions > * {
    flex: 1;
  }
}
