:root {
  --bg: #f4efe5;
  --surface: #fffaf2;
  --surface-strong: #fffdf8;
  --surface-soft: #e8f0ec;
  --surface-warm: #f7e5dc;
  --ink: #17372e;
  --muted: #68736e;
  --line: #dedbd1;
  --primary: #23735d;
  --primary-dark: #175443;
  --primary-soft: #dcebe5;
  --accent: #c7543c;
  --blue: #327a68;
  --warning: #a76b18;
  --danger: #ac3f3a;
  --shadow: 0 24px 60px rgba(23, 55, 46, 0.16);
  --shadow-soft: 0 10px 28px rgba(23, 55, 46, 0.07);
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  padding-bottom: 112px;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none !important;
}

button,
input,
select,
textarea {
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(35, 115, 93, 0.24);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 84px;
  border-bottom: 1px solid rgba(35, 115, 93, 0.1);
  background: rgba(244, 239, 229, 0.9);
  padding: 14px clamp(16px, 4vw, 44px);
  backdrop-filter: blur(20px);
}

.brand,
.header-actions,
.screen-heading,
.detail-heading,
.detail-heading-actions,
.detail-actions,
.settings-actions,
.empty-actions,
.month-controls,
.planner-toolbar,
.recipe-card-topline,
.detail-meta {
  display: flex;
  align-items: center;
}

.brand {
  gap: 13px;
}

.brand-mark {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(35, 115, 93, 0.18);
  object-fit: cover;
}

.header-actions {
  gap: 9px;
}

.app-header h1,
.screen-heading h2,
.detail-heading h2,
.cooking-header h2 {
  margin: 0;
  letter-spacing: 0;
}

.app-header h1 {
  color: var(--ink);
  font-size: clamp(1.24rem, 3vw, 1.7rem);
  font-weight: 820;
  letter-spacing: -0.035em;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.app-shell {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 34px clamp(16px, 4vw, 44px) 42px;
}

.app-screen {
  display: none;
}

.app-screen.active {
  display: block;
}

.screen-heading,
.detail-heading,
.planner-toolbar,
.detail-meta {
  justify-content: space-between;
  gap: 16px;
}

.screen-heading h2 {
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 2.55rem);
  font-weight: 820;
  letter-spacing: -0.045em;
  line-height: 1;
}

.counter {
  min-width: max-content;
  border: 1px solid rgba(35, 115, 93, 0.12);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.72);
  color: var(--primary-dark);
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 750;
}

.status-filters,
.tag-suggestions,
.tag-row,
.selected-recipes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-filters {
  margin: 24px 0 14px;
}

.filter-chip,
.tag-option,
.selected-recipe-chip,
.tag,
.status-badge,
.recipe-status {
  border-radius: 999px;
}

.filter-chip,
.tag-option {
  min-height: 38px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.82);
  color: var(--muted);
  padding: 0 14px;
  font-size: 0.8rem;
  font-weight: 750;
}

.filter-chip.active,
.tag-option.active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--surface-strong);
}

.filter-chip:hover,
.tag-option:hover {
  border-color: rgba(35, 115, 93, 0.42);
  color: var(--primary-dark);
}

.search-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(150px, 220px) minmax(150px, 210px);
  gap: 12px;
  margin: 0 0 22px;
  border: 1px solid rgba(35, 115, 93, 0.1);
  border-radius: 22px;
  background: rgba(255, 250, 242, 0.68);
  padding: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.01em;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
  color: var(--ink);
  outline: none;
}

input,
select {
  min-height: 48px;
  padding: 0 14px;
}

textarea {
  resize: vertical;
  padding: 13px 14px;
  line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(35, 115, 93, 0.12);
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.icon-button,
.stepper-button,
.mode-button {
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  font-weight: 780;
}

.primary-button {
  background: var(--primary);
  color: var(--surface-strong);
  padding: 0 18px;
  box-shadow: 0 8px 18px rgba(35, 115, 93, 0.16);
}

.primary-button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.secondary-button {
  display: inline-grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary-dark);
  padding: 0 16px;
}

.ghost-button {
  background: transparent;
  color: var(--muted);
  padding: 0 12px;
}

.ghost-button:hover {
  background: rgba(35, 115, 93, 0.08);
  color: var(--ink);
}

.danger-button {
  background: rgba(172, 63, 58, 0.11);
  color: var(--danger);
  padding: 0 15px;
}

.icon-button,
.stepper-button {
  display: grid;
  width: 42px;
  flex: 0 0 42px;
  place-items: center;
  background: rgba(255, 250, 242, 0.84);
  color: var(--ink);
  font-size: 1.22rem;
}

.icon-button:hover,
.stepper-button:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.icon-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.compact-command {
  display: flex;
  align-items: center;
  gap: 6px;
}

.recipe-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 16px;
}

.recipe-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(35, 115, 93, 0.11);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.recipe-card:hover {
  border-color: rgba(35, 115, 93, 0.34);
  box-shadow: 0 16px 34px rgba(23, 55, 46, 0.1);
  transform: translateY(-2px);
}

.recipe-open-button {
  display: grid;
  gap: 10px;
  width: 100%;
  min-height: 206px;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: var(--ink);
  padding: 20px 52px 18px 20px;
  text-align: left;
}

.favorite-card-button {
  position: absolute;
  top: 13px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.72);
  color: var(--muted);
  font-size: 1.35rem;
}

.favorite-card-button.active {
  color: var(--warning);
  background: #fff2d8;
}

.recipe-card-topline {
  justify-content: space-between;
  gap: 8px;
}

.recipe-category,
.detail-category {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recipe-status,
.status-badge {
  width: fit-content;
  background: var(--primary-soft);
  color: var(--primary-dark);
  padding: 5px 9px;
  font-size: 0.7rem;
  font-weight: 780;
}

.recipe-status:empty,
.status-badge:empty {
  display: none;
}

.recipe-open-button strong {
  font-size: 1.17rem;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.recipe-preview {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.recipe-card-meta {
  align-self: end;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 760;
}

.empty-state {
  display: grid;
  justify-items: center;
  border: 1px dashed rgba(35, 115, 93, 0.32);
  border-radius: 24px;
  background: rgba(255, 250, 242, 0.68);
  padding: 48px 24px;
  text-align: center;
}

.empty-state h3 {
  margin: 10px 0 6px;
}

.empty-state p {
  max-width: 460px;
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
}

.empty-illustration {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(35, 115, 93, 0.18);
  object-fit: cover;
}

.empty-actions,
.settings-actions {
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(620px, 100%);
  margin: 24px 0 18px;
  border: 0;
  border-radius: 18px;
  background: var(--primary-soft);
  padding: 4px;
}

.mode-button {
  background: transparent;
  color: var(--muted);
}

.mode-button.active {
  background: var(--primary);
  color: var(--surface-strong);
  box-shadow: 0 6px 16px rgba(35, 115, 93, 0.16);
}

.paste-panel {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(199, 84, 60, 0.14);
  border-radius: 20px;
  background: var(--surface-warm);
  padding: 20px;
  box-shadow: inset 4px 0 var(--accent);
}

.paste-panel .primary-button {
  justify-self: start;
}

.voice-panel {
  border: 1px solid rgba(35, 115, 93, 0.14);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(220, 235, 229, 0.9), rgba(255, 250, 242, 0.92));
  padding: clamp(18px, 3vw, 26px);
  box-shadow: inset 4px 0 var(--primary);
}

.voice-setup,
.voice-controls {
  display: grid;
  gap: 16px;
}

.voice-setup h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.12rem;
}

.voice-setup p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.voice-setup > .primary-button {
  justify-self: start;
}

.voice-listening {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  color: var(--muted);
}

.voice-listening.active {
  color: var(--danger);
}

.voice-pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 rgba(172, 63, 58, 0.28);
}

.voice-listening.active .voice-pulse {
  animation: voice-pulse 1.4s infinite;
}

@keyframes voice-pulse {
  70% {
    box-shadow: 0 0 0 11px rgba(172, 63, 58, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(172, 63, 58, 0);
  }
}

.voice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.recording-button {
  background: var(--danger);
  box-shadow: 0 8px 18px rgba(172, 63, 58, 0.18);
}

.recording-button:hover {
  background: #89312d;
}

.voice-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.45;
}

.voice-status[data-state="listening"] {
  color: var(--danger);
}

.voice-status[data-state="processing"] {
  color: var(--primary-dark);
}

.voice-status[data-state="error"] {
  color: var(--danger);
}

.voice-transcript {
  border-top: 1px solid rgba(35, 115, 93, 0.13);
  padding-top: 12px;
}

.voice-transcript summary {
  width: fit-content;
  cursor: pointer;
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.voice-transcript p {
  max-height: 220px;
  overflow: auto;
  margin: 10px 0 0;
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.78);
  color: var(--ink);
  padding: 13px;
  font-size: 0.84rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.voice-paste-fallback {
  justify-self: start;
}

.voice-review-notice {
  margin: 0;
  border: 1px solid rgba(167, 107, 24, 0.24);
  border-radius: 14px;
  background: #fff2d8;
  color: #70470e;
  padding: 12px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
}

.recipe-form {
  display: grid;
  gap: 18px;
  border: 1px solid rgba(35, 115, 93, 0.1);
  border-radius: 24px;
  background: rgba(255, 250, 242, 0.76);
  padding: clamp(18px, 3vw, 28px);
}

.form-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px;
}

.form-grid.three-columns {
  grid-template-columns: minmax(190px, 1fr) minmax(170px, 0.9fr) minmax(100px, 0.45fr);
}

.field-help {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 580;
  line-height: 1.4;
}

.tag-fieldset {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.tag-fieldset legend {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.favorite-control {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  width: fit-content;
  color: var(--ink);
  border-radius: 14px;
  background: var(--surface-strong);
  padding: 0 14px;
}

.favorite-control input {
  width: 20px;
  min-height: 20px;
  accent-color: var(--primary);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.shopping-picker {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin: 24px 0 14px;
  border: 1px solid rgba(35, 115, 93, 0.1);
  border-radius: 20px;
  background: rgba(255, 250, 242, 0.72);
  padding: 16px;
}

.selected-recipes {
  margin-bottom: 15px;
}

.selected-recipe-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  padding: 6px 8px 6px 11px;
  font-size: 0.78rem;
  font-weight: 800;
}

.selected-recipe-chip button {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(35, 115, 93, 0.12);
  color: var(--primary-dark);
}

.shopping-list {
  display: grid;
  gap: 2px;
  overflow: hidden;
  border: 1px solid rgba(35, 115, 93, 0.1);
  border-radius: 20px;
  background: rgba(255, 250, 242, 0.76);
  padding: 0 16px;
}

.shopping-item,
.ingredient-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 10px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 600;
}

.shopping-item {
  grid-template-columns: 22px 1fr auto;
  border-bottom: 1px solid var(--line);
  padding: 15px 4px;
}

.shopping-item input,
.ingredient-item input {
  width: 19px;
  min-height: 19px;
  margin: 1px 0 0;
  accent-color: var(--primary);
}

.shopping-item.checked .shopping-item-label,
.ingredient-item:has(input:checked) span {
  color: var(--muted);
  text-decoration: line-through;
}

.shopping-origin {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.compact-empty {
  padding: 28px 20px;
}

.month-controls {
  gap: 6px;
}

.month-controls input {
  width: 155px;
}

.planner-toolbar {
  margin: 22px 0 16px;
  border: 1px solid rgba(35, 115, 93, 0.1);
  border-radius: 20px;
  background: rgba(255, 250, 242, 0.72);
  padding: 16px;
}

.planner-toolbar p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.calendar-scroll {
  overflow-x: auto;
  border-radius: 20px;
  padding-bottom: 4px;
}

.calendar-weekdays,
.month-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(122px, 1fr));
  min-width: 860px;
}

.calendar-weekdays {
  border: 1px solid var(--line);
  border-bottom: 0;
  background: var(--primary);
  color: var(--surface-strong);
}

.calendar-weekdays span {
  padding: 9px 10px;
  font-size: 0.74rem;
  font-weight: 850;
  text-align: center;
}

.month-calendar {
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.calendar-spacer,
.calendar-day {
  min-height: 178px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-strong);
}

.calendar-spacer {
  background: rgba(255, 250, 242, 0.45);
}

.calendar-day {
  padding: 8px;
}

.day-number {
  display: grid;
  width: 27px;
  height: 27px;
  margin-bottom: 7px;
  place-items: center;
  border-radius: 50%;
  font-size: 0.76rem;
  font-weight: 850;
}

.calendar-day.today .day-number {
  background: var(--primary);
  color: white;
}

.meal-field {
  display: grid;
  gap: 2px;
  margin-top: 5px;
}

.meal-field span {
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 850;
  text-transform: uppercase;
}

.meal-field select {
  min-height: 30px;
  padding: 0 5px;
  font-size: 0.68rem;
}

.bottom-nav {
  position: fixed;
  right: auto;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: min(560px, calc(100% - 24px));
  border: 1px solid rgba(35, 115, 93, 0.13);
  border-radius: 24px;
  background: rgba(255, 250, 242, 0.92);
  padding: 6px;
  box-shadow: 0 18px 46px rgba(23, 55, 46, 0.16);
  transform: translateX(-50%);
  backdrop-filter: blur(20px);
}

.nav-button {
  display: grid;
  place-items: center;
  gap: 3px;
  min-height: 62px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 760;
}

.nav-button.active {
  background: var(--primary);
  color: var(--surface-strong);
  box-shadow: 0 8px 18px rgba(35, 115, 93, 0.18);
}

.nav-button:not(.active):hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.nav-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  line-height: 1;
}

.nav-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.recipe-dialog,
.settings-dialog {
  width: min(760px, calc(100vw - 24px));
  max-height: calc(100vh - 28px);
  border: 0;
  border-radius: 26px;
  background: var(--surface);
  color: var(--ink);
  padding: 0;
  box-shadow: var(--shadow);
}

.settings-dialog {
  width: min(620px, calc(100vw - 24px));
}

.recipe-dialog::backdrop,
.settings-dialog::backdrop,
.cooking-dialog::backdrop {
  background: rgba(16, 43, 35, 0.52);
  backdrop-filter: blur(7px);
}

.recipe-detail,
.settings-view {
  display: grid;
  gap: 20px;
  padding: 26px;
}

.detail-heading-actions {
  gap: 6px;
}

.detail-meta {
  flex-wrap: wrap;
}

.servings-control {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.86rem;
}

.stepper-button {
  width: 36px;
  min-height: 36px;
  flex-basis: 36px;
  border-radius: 12px;
}

.tag-row {
  gap: 7px;
}

.tag {
  background: var(--surface-warm);
  color: #874433;
  padding: 6px 10px;
  font-size: 0.76rem;
  font-weight: 800;
}

.recipe-detail section,
.settings-section {
  border-top: 1px solid rgba(35, 115, 93, 0.11);
  padding-top: 18px;
}

.recipe-detail h3,
.settings-section h3,
.cooking-view h3 {
  margin: 0 0 10px;
  font-size: 0.96rem;
}

.ingredient-checklist {
  display: grid;
  gap: 10px;
}

.detail-text {
  color: var(--ink);
  line-height: 1.6;
  white-space: pre-wrap;
}

.step-list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding-left: 24px;
}

.step-list li {
  padding-left: 3px;
  line-height: 1.55;
}

.detail-actions {
  flex-wrap: wrap;
  gap: 8px;
}

.cooking-dialog {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  border: 0;
  background: var(--bg);
  color: var(--ink);
  padding: 0;
}

.cooking-view {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 24px clamp(18px, 5vw, 54px) 50px;
}

.cooking-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 239, 229, 0.94);
  padding: 12px 0 18px;
  backdrop-filter: blur(14px);
}

.cooking-header h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.cooking-columns {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
  gap: clamp(28px, 6vw, 70px);
  padding-top: 28px;
}

.large-checklist {
  gap: 14px;
}

.large-checklist .ingredient-item,
.cooking-steps {
  font-size: clamp(1.02rem, 2vw, 1.24rem);
}

.cooking-steps {
  gap: 20px;
}

.settings-section p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.5;
}

.settings-actions {
  justify-content: flex-start;
}

.voice-settings-actions {
  margin-top: 12px;
}

.file-button {
  cursor: pointer;
}

.file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.privacy-note {
  border: 1px solid rgba(35, 115, 93, 0.12);
  border-radius: 18px;
  background: var(--primary-soft);
  padding: 16px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .voice-listening.active .voice-pulse {
    animation: none;
  }
}

.privacy-note p {
  margin: 4px 0 0;
}

@media (max-width: 780px) {
  .search-row,
  .form-grid.three-columns,
  .cooking-columns {
    grid-template-columns: 1fr;
  }

  .search-row {
    gap: 9px;
    padding: 12px;
  }

  .cooking-columns {
    gap: 28px;
  }
}

@media (max-width: 620px) {
  body {
    padding-bottom: 104px;
  }

  .app-header {
    min-height: 74px;
    padding: 11px 14px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 14px;
  }

  .app-header .eyebrow {
    display: none;
  }

  .app-header h1 {
    font-size: 1.08rem;
  }

  .compact-command {
    width: 42px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }

  .compact-command span {
    font-size: 1.35rem;
  }

  .app-shell {
    padding: 24px 14px 32px;
  }

  .planner-heading,
  .planner-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .planner-heading {
    gap: 12px;
  }

  .planner-toolbar .primary-button {
    width: 100%;
  }

  .shopping-picker {
    grid-template-columns: 1fr;
  }

  .shopping-picker .primary-button {
    width: 100%;
  }

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

  .voice-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .recipe-list {
    grid-template-columns: 1fr;
  }

  .recipe-open-button {
    min-height: 174px;
  }

  .recipe-detail,
  .settings-view {
    padding: 20px;
  }

  .detail-heading {
    align-items: flex-start;
  }

  .detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .detail-actions .primary-button {
    grid-column: 1 / -1;
  }

  .bottom-nav {
    bottom: max(8px, env(safe-area-inset-bottom));
    width: calc(100% - 16px);
    border-radius: 22px;
  }

  .nav-button {
    min-height: 58px;
    border-radius: 16px;
  }

  .calendar-weekdays {
    display: none;
  }

  .month-calendar {
    display: grid;
    min-width: 0;
    border: 0;
    gap: 8px;
  }

  .calendar-spacer {
    display: none;
  }

  .calendar-day {
    min-height: auto;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-strong);
    padding: 13px;
  }

  .day-number {
    width: auto;
    height: auto;
    justify-content: start;
    border-radius: 0;
    font-size: 0.83rem;
  }

  .calendar-day.today .day-number {
    width: fit-content;
    min-width: 27px;
    height: 27px;
    justify-content: center;
    border-radius: 50%;
  }

  .meal-field {
    grid-template-columns: 74px 1fr;
    align-items: center;
  }

  .meal-field select {
    min-height: 38px;
    font-size: 0.78rem;
  }

  .cooking-view {
    padding: 14px 16px 40px;
  }
}
