:root {
  --bg: #fff6e4;
  --surface: rgba(255, 252, 242, 0.82);
  --surface-strong: rgba(255, 252, 242, 0.96);
  --label: #2b2620;
  --secondary: #6e6257;
  --tertiary: #9a8d80;
  --line: rgba(43, 38, 32, 0.13);
  --tomato: #f2634a;
  --dill: #3a9b68;
  --butter: #f4c95d;
  --berry: #5075b8;
  --plum: #8f5ba6;
  --blue: var(--berry);
  --green: var(--dill);
  --orange: #d47b24;
  --pink: var(--tomato);
  --purple: var(--plum);
  --shadow: 0 20px 48px rgba(80, 50, 25, 0.13);
  --soft-shadow: 0 10px 26px rgba(80, 50, 25, 0.09);
  --radius: 8px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  margin: 0;
  color: var(--label);
  background:
    linear-gradient(180deg, #fffaf1 0%, var(--bg) 48%, #eef6ed 100%);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    repeating-linear-gradient(0deg, transparent 0 37px, rgba(43, 38, 32, 0.035) 37px 38px),
    repeating-linear-gradient(90deg, transparent 0 37px, rgba(43, 38, 32, 0.028) 37px 38px);
  opacity: 0.58;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  transform: translateY(-140%);
  padding: 10px 14px;
  color: #fff;
  background: #111114;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(43, 38, 32, 0.08);
  background: rgba(255, 248, 232, 0.78);
  box-shadow: 0 10px 30px rgba(80, 50, 25, 0.08);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

.top-bar {
  width: min(100% - 28px, var(--container));
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand.compact {
  flex: 1;
}

.brand-mark {
  width: 42px;
  aspect-ratio: 1;
  display: block;
  border-radius: var(--radius);
  box-shadow: 0 10px 22px rgba(242, 99, 74, 0.2);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  line-height: 1.1;
}

.brand small {
  color: var(--secondary);
  font-size: 12px;
}

.header-note {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(43, 38, 32, 0.08);
  border-radius: var(--radius);
  color: var(--secondary);
  background: rgba(255, 252, 242, 0.66);
  font-size: 13px;
  font-weight: 750;
}

.auth-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-button,
.primary-button,
.secondary-button {
  min-height: 38px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.header-button,
.secondary-button {
  color: var(--tomato);
  background: rgba(242, 99, 74, 0.12);
}

.primary-button {
  color: #fff;
  background: var(--dill);
  box-shadow: 0 10px 22px rgba(58, 155, 104, 0.18);
}

.user-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(43, 38, 32, 0.08);
  border-radius: var(--radius);
  padding: 0 10px;
  color: var(--secondary);
  background: rgba(255, 252, 242, 0.74);
  font-size: 13px;
  font-weight: 800;
}

.pill-link,
.icon-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(43, 38, 32, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 252, 242, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), var(--soft-shadow);
}

.pill-link {
  padding: 0 14px;
  color: var(--tomato);
  font-size: 14px;
  font-weight: 700;
}

.icon-link {
  width: 42px;
  padding: 0;
  color: var(--label);
  font-size: 25px;
  border: 0;
  cursor: pointer;
}

.app-shell {
  width: min(100% - 28px, var(--container));
  margin: 0 auto;
  padding: 26px 0 56px;
}

.brand-panel {
  min-height: 220px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px auto;
  align-items: center;
  gap: 22px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(43, 38, 32, 0.08);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 252, 242, 0.96), rgba(255, 241, 199, 0.62)),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
}

.kicker {
  margin: 0 0 12px;
  color: var(--tomato);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-panel h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 0.95;
  letter-spacing: 0;
}

.brand-line {
  max-width: 560px;
  margin: 12px 0 0;
  color: var(--secondary);
  font-size: 17px;
}

.brand-panel-card {
  width: 118px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(43, 38, 32, 0.08);
  border-radius: var(--radius);
  background: #fffcf2;
  box-shadow: var(--soft-shadow);
}

.brand-panel-card img {
  width: 86px;
  height: 86px;
}

.brand-panel-meta {
  justify-self: end;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-stats span,
.dish-meta span,
.source-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid rgba(43, 38, 32, 0.09);
  border-radius: var(--radius);
  color: var(--secondary);
  background: rgba(255, 252, 242, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.hero-stats strong {
  color: var(--label);
}

.menu-tools {
  position: relative;
  z-index: 20;
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.mode-switch {
  display: flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(43, 38, 32, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 248, 232, 0.82);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.mode-button {
  min-height: 42px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 14px;
  color: var(--secondary);
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.mode-button.is-active {
  color: var(--label);
  background: #fffcf2;
  box-shadow: 0 8px 18px rgba(80, 50, 25, 0.12);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(43, 38, 32, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 248, 232, 0.82);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.pantry-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(43, 38, 32, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 248, 232, 0.86);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.community-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(43, 38, 32, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 248, 232, 0.86);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.community-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 14px;
  align-items: start;
}

.auth-card,
.recipe-builder {
  display: grid;
  gap: 14px;
  min-width: 0;
  border: 1px solid rgba(43, 38, 32, 0.08);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255, 252, 242, 0.78);
}

.auth-card h2,
.recipe-builder h2,
.auth-form h3,
.builder-block h3 {
  margin: 0;
  line-height: 1.12;
}

.auth-card p {
  margin: 8px 0 0;
  color: var(--secondary);
}

.auth-form,
.recipe-form,
.builder-list {
  display: grid;
  gap: 10px;
}

.auth-form label,
.recipe-form label {
  display: grid;
  gap: 6px;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 780;
}

.auth-form input,
.recipe-form input,
.recipe-form select,
.recipe-form textarea,
.builder-row input,
.builder-row textarea,
.builder-row select {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(43, 38, 32, 0.1);
  border-radius: var(--radius);
  padding: 10px 11px;
  color: var(--label);
  background: rgba(255, 252, 242, 0.92);
  outline: 0;
}

.recipe-form textarea,
.builder-row textarea {
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 10px;
}

.builder-header,
.builder-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.builder-block {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(43, 38, 32, 0.08);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 248, 232, 0.56);
}

.builder-row {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(43, 38, 32, 0.08);
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(255, 252, 242, 0.72);
}

.ingredient-row {
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.42fr) auto;
  align-items: end;
}

.step-row {
  grid-template-columns: minmax(0, 1fr);
}

.step-row-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 0.35fr);
  gap: 8px;
}

.icon-remove {
  width: 38px;
  min-height: 38px;
  border: 0;
  border-radius: var(--radius);
  color: var(--tomato);
  background: rgba(242, 99, 74, 0.12);
  cursor: pointer;
  font-weight: 900;
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: var(--secondary);
  font-size: 14px;
  font-weight: 760;
}

.form-message.is-error {
  color: var(--tomato);
}

.form-message.is-ok {
  color: var(--dill);
}

.pantry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pantry-header h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}

.pantry-summary {
  margin: 0;
  color: var(--secondary);
  font-size: 14px;
  font-weight: 750;
}

.ingredient-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 210px;
  overflow: auto;
  padding: 2px;
}

.ingredient-toggle {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(43, 38, 32, 0.09);
  border-radius: var(--radius);
  padding: 7px 10px;
  color: var(--label);
  background: rgba(255, 252, 242, 0.78);
  cursor: pointer;
  font-size: 14px;
  font-weight: 760;
}

.ingredient-toggle small {
  color: var(--tertiary);
  font-size: 12px;
  font-weight: 750;
}

.ingredient-toggle.is-selected {
  color: #fff;
  border-color: rgba(58, 155, 104, 0.2);
  background: var(--dill);
  box-shadow: 0 10px 20px rgba(58, 155, 104, 0.18);
}

.ingredient-toggle.is-selected small {
  color: rgba(255, 255, 255, 0.78);
}

.search-field {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid rgba(43, 38, 32, 0.09);
  border-radius: var(--radius);
  background: rgba(255, 252, 242, 0.92);
}

.search-field span {
  color: var(--tertiary);
  font-size: 20px;
  line-height: 1;
}

.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--label);
  background: transparent;
}

.segmented-control {
  min-width: 0;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 3px;
  border: 1px solid rgba(43, 38, 32, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 252, 242, 0.58);
}

.segment {
  min-height: 40px;
  flex: 0 0 auto;
  border: 0;
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--secondary);
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.segment.is-active {
  color: var(--label);
  background: #fffcf2;
  box-shadow: 0 8px 18px rgba(80, 50, 25, 0.12);
}

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

.dish-card {
  min-height: 242px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(43, 38, 32, 0.08);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 252, 242, 0.94), rgba(255, 246, 228, 0.72)),
    var(--surface);
  box-shadow: var(--soft-shadow);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.dish-card:hover,
.dish-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(242, 99, 74, 0.32);
  box-shadow: 0 20px 42px rgba(80, 50, 25, 0.14);
}

.card-top {
  display: grid;
  gap: 12px;
}

.card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.category-chip {
  width: fit-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: var(--radius);
  color: var(--label);
  background: var(--butter);
  font-size: 12px;
  font-weight: 800;
}

.match-chip {
  width: fit-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: var(--radius);
  color: var(--berry);
  background: rgba(80, 117, 184, 0.11);
  font-size: 12px;
  font-weight: 850;
}

.match-chip.is-complete {
  color: #fff;
  background: var(--dill);
}

.author-chip {
  width: fit-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: var(--radius);
  color: var(--tomato);
  background: rgba(242, 99, 74, 0.11);
  font-size: 12px;
  font-weight: 850;
}

.category-chip.salads {
  color: #fff;
  background: var(--dill);
}

.category-chip.mains {
  color: #fff;
  background: var(--berry);
}

.category-chip.breakfasts {
  background: var(--butter);
}

.category-chip.desserts {
  color: #fff;
  background: var(--plum);
}

.dish-card h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.13;
  letter-spacing: 0;
}

.dish-card p {
  margin: 0;
  color: var(--secondary);
  font-size: 14px;
}

.card-bottom {
  display: grid;
  gap: 10px;
}

.missing-note {
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.35;
}

.progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 700;
}

.progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(43, 38, 32, 0.08);
}

.progress span {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--dill), var(--butter), var(--tomato));
}

.empty-state {
  grid-column: 1 / -1;
  padding: 34px;
  border: 1px solid rgba(43, 38, 32, 0.08);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--soft-shadow);
  color: var(--secondary);
  text-align: center;
}

.empty-state.compact {
  width: 100%;
  padding: 16px;
  font-size: 14px;
}

.dish-shell {
  max-width: 980px;
}

.dish-hero {
  position: relative;
  display: grid;
  gap: 22px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid rgba(43, 38, 32, 0.08);
  border-top: 7px solid var(--hero-b, var(--tomato));
  border-radius: var(--radius);
  color: var(--label);
  background:
    linear-gradient(135deg, rgba(255, 252, 242, 0.96), rgba(255, 252, 242, 0.8)),
    linear-gradient(135deg, var(--hero-a, var(--label)), var(--hero-b, var(--tomato)) 58%, var(--hero-c, var(--butter)));
  box-shadow: var(--shadow);
}

.dish-hero .kicker {
  color: var(--hero-a, var(--tomato));
}

.dish-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.dish-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--secondary);
  font-size: 18px;
}

.dish-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dish-meta span {
  color: var(--secondary);
  background: rgba(255, 252, 242, 0.72);
  border-color: rgba(43, 38, 32, 0.08);
}

.dish-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 14px;
  margin-top: 14px;
}

.dish-main-stack {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.checklist,
.cookbook,
.summary-card,
.sources-card {
  border: 1px solid rgba(43, 38, 32, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 252, 242, 0.8);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.checklist {
  overflow: hidden;
}

.cookbook {
  overflow: hidden;
}

.checklist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 252, 242, 0.92);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.checklist-header h2,
.summary-card h2,
.sources-card h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}

.checklist-header p {
  margin: 4px 0 0;
  color: var(--secondary);
  font-size: 13px;
}

.reset-button {
  min-height: 38px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 11px;
  color: var(--tomato);
  background: rgba(242, 99, 74, 0.12);
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
}

.ingredient-list {
  display: grid;
}

.step-list {
  display: grid;
}

.ingredient-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(43, 38, 32, 0.08);
  cursor: pointer;
}

.ingredient-item:last-child {
  border-bottom: 0;
}

.ingredient-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkmark {
  width: 24px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid rgba(43, 38, 32, 0.18);
  border-radius: 50%;
  color: #fff;
  background: #fff;
  font-size: 14px;
  font-weight: 900;
}

.ingredient-item input:checked + .checkmark {
  border-color: var(--green);
  background: var(--green);
}

.ingredient-name {
  min-width: 0;
  font-weight: 750;
}

.ingredient-amount {
  color: var(--secondary);
  font-size: 14px;
  text-align: right;
}

.ingredient-item:has(input:checked) .ingredient-name,
.ingredient-item:has(input:checked) .ingredient-amount {
  color: var(--tertiary);
  text-decoration: line-through;
}

.step-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(43, 38, 32, 0.08);
}

.step-item:last-child {
  border-bottom: 0;
}

.step-check {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  cursor: pointer;
}

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

.step-check input:checked + .checkmark {
  border-color: var(--green);
  background: var(--green);
}

.step-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.step-copy strong {
  font-size: 16px;
  line-height: 1.2;
}

.step-copy span {
  color: var(--secondary);
  font-size: 14px;
}

.step-copy small {
  color: var(--tertiary);
  font-size: 13px;
  font-weight: 750;
}

.step-check:has(input:checked) .step-copy strong,
.step-check:has(input:checked) .step-copy span,
.step-check:has(input:checked) .step-copy small {
  color: var(--tertiary);
  text-decoration: line-through;
}

.timer-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.timer-button {
  --timer-progress: 0%;
  min-width: 118px;
  min-height: 42px;
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--berry);
  background:
    linear-gradient(90deg, rgba(80, 117, 184, 0.22) var(--timer-progress), rgba(80, 117, 184, 0.1) var(--timer-progress)),
    rgba(80, 117, 184, 0.08);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.timer-button.is-running {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(58, 155, 104, 0.92) var(--timer-progress), rgba(80, 117, 184, 0.92) var(--timer-progress)),
    var(--berry);
  box-shadow: 0 10px 24px rgba(80, 117, 184, 0.18);
}

.timer-button.is-finished {
  color: #fff;
  background: var(--green);
}

.timer-editor {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid rgba(80, 117, 184, 0.16);
  border-radius: var(--radius);
  color: var(--secondary);
  background: rgba(255, 252, 242, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 750;
}

.timer-editor input {
  width: 42px;
  border: 0;
  outline: 0;
  color: var(--label);
  background: transparent;
  font-weight: 850;
  text-align: center;
}

.timer-editor input::-webkit-outer-spin-button,
.timer-editor input::-webkit-inner-spin-button {
  margin: 0;
}

.summary-stack {
  display: grid;
  gap: 14px;
}

.summary-card,
.sources-card {
  padding: 18px;
}

.big-progress {
  --progress: 0%;
  display: grid;
  gap: 12px;
}

.big-number {
  margin: 0;
  font-size: 48px;
  font-weight: 860;
  line-height: 1;
  letter-spacing: 0;
}

.missing-list {
  display: grid;
  gap: 7px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: var(--secondary);
  font-size: 14px;
}

.missing-list li {
  padding: 7px 9px;
  border-radius: var(--radius);
  background: rgba(43, 38, 32, 0.055);
}

.sources-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.recipe-extra-list {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: var(--secondary);
  font-size: 14px;
}

.recipe-extra-list li {
  padding: 7px 9px;
  border-radius: var(--radius);
  background: rgba(43, 38, 32, 0.055);
}

.source-chip {
  justify-content: space-between;
  color: var(--berry);
  font-weight: 750;
}

.not-found {
  padding: 34px;
  border-radius: var(--radius);
  background: rgba(255, 252, 242, 0.8);
  box-shadow: var(--soft-shadow);
}

.not-found h1 {
  margin: 0 0 12px;
  font-size: 36px;
}

.not-found p {
  margin: 0 0 18px;
  color: var(--secondary);
}

@media (max-width: 900px) {
  .brand-panel,
  .toolbar,
  .dish-panel,
  .community-grid,
  .form-grid,
  .step-row-grid {
    grid-template-columns: 1fr;
  }

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

  .brand-panel-card,
  .brand-panel-meta {
    justify-self: start;
  }

  .toolbar {
    top: 72px;
  }

}

@media (max-width: 620px) {
  .top-bar,
  .app-shell {
    width: min(100% - 20px, var(--container));
  }

  .app-shell {
    padding-top: 14px;
  }

  .brand-panel,
  .dish-hero {
    padding: 22px;
  }

  .brand-panel {
    min-height: 0;
    gap: 16px;
  }

  .brand-panel h1 {
    font-size: 38px;
  }

  .brand-line {
    font-size: 15px;
  }

  .auth-actions {
    gap: 6px;
  }

  .user-pill {
    display: none;
  }

  .header-button {
    min-height: 36px;
    padding: 0 10px;
  }

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

  .dish-card {
    min-height: 210px;
  }

  .toolbar {
    position: static;
  }

  .mode-switch {
    display: grid;
    grid-template-columns: 1fr;
  }

  .pantry-header {
    align-items: stretch;
    display: grid;
  }

  .builder-header,
  .builder-block-head {
    align-items: stretch;
    display: grid;
  }

  .ingredient-row {
    grid-template-columns: 1fr;
  }

  .ingredient-picker {
    max-height: 280px;
  }

  .ingredient-item {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .ingredient-amount {
    grid-column: 2;
    text-align: left;
  }

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

  .timer-control {
    width: fit-content;
    margin-left: 40px;
  }

}
