:root {
  color-scheme: light;
  --bg: #fbfaf6;
  --surface: #ffffff;
  --surface-soft: #f3f7ef;
  --sage: #8fb9a8;
  --sage-dark: #45695b;
  --sea: #6fa7b3;
  --blush: #f3c8c2;
  --apricot: #f3b17d;
  --lemon: #f6d77a;
  --ink: #24332e;
  --muted: #6d7b76;
  --line: #dfe8df;
  --shadow: 0 18px 45px rgba(48, 73, 63, 0.12);
  --radius: 8px;
  --nav-height: 76px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(143, 185, 168, 0.18), rgba(251, 250, 246, 0) 260px),
    var(--bg);
}

body.selector-mode {
  overflow: hidden;
}

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

button {
  cursor: pointer;
}

img,
svg {
  display: block;
}

.app-shell {
  width: min(100%, 1180px);
  min-height: 100vh;
  margin: 0 auto;
  padding: env(safe-area-inset-top) 16px calc(var(--nav-height) + 18px);
}

body.selector-mode .app-shell {
  width: 100%;
  max-width: none;
  padding: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 12px;
  background: linear-gradient(180deg, var(--bg) 78%, rgba(251, 250, 246, 0));
}

body.selector-mode .topbar,
body.selector-mode .bottom-nav {
  display: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand strong {
  font-size: 1.05rem;
}

.brand small {
  max-width: 240px;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.view {
  display: none;
}

.view-active {
  display: block;
}

.icon-button,
.send-button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  color: var(--sage-dark);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(69, 105, 91, 0.08);
}

.small-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  box-shadow: none;
}

.icon-button svg,
.send-button svg,
.primary-button svg,
.ghost-button svg,
.nav-item svg,
.choice-button svg,
.upload-target svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 18px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(243, 247, 239, 0.94)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy h1,
.section-heading h1,
.section-heading h2,
.selector-top h1,
.selector-card h2,
.complete-panel h2 {
  margin: 0;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 13ch;
  font-size: clamp(2rem, 10vw, 3.9rem);
  line-height: 0.98;
}

.hero-copy p:not(.eyebrow) {
  max-width: 42rem;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--sage-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-actions,
.admin-actions,
.heading-actions,
.selector-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.heading-actions,
.selector-tools {
  align-items: center;
  justify-content: flex-end;
  margin-top: 0;
}

.primary-button,
.ghost-button,
.text-button,
.details-button,
.filter-chip,
.choice-button {
  min-height: 44px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 800;
  letter-spacing: 0;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
}

.primary-button {
  color: #fff;
  background: var(--sage-dark);
  border-color: var(--sage-dark);
}

.ghost-button {
  color: var(--sage-dark);
  background: var(--surface);
  border-color: var(--line);
}

.compact {
  min-height: 40px;
  padding-inline: 12px;
}

.full-width {
  width: 100%;
}

.text-button {
  color: var(--sage-dark);
  background: transparent;
  border: 0;
  padding: 0 2px;
}

.hero-art {
  width: min(100%, 420px);
  margin: 0 auto -22px;
  filter: drop-shadow(0 18px 28px rgba(36, 51, 46, 0.13));
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 22px;
}

.stat-panel,
.content-section,
.filter-panel,
.selector-start-panel,
.camera-panel,
.pantry-panel,
.shopping-list,
.model-card,
.env-card,
.list-group,
.suggestion-card,
.complete-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(69, 105, 91, 0.07);
}

.stat-panel {
  min-height: 82px;
  padding: 12px;
}

.stat-value,
.stat-label {
  display: block;
}

.stat-value {
  font-size: clamp(1.45rem, 7vw, 2rem);
  font-weight: 900;
  line-height: 1;
}

.stat-label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
}

.content-section {
  padding: 16px;
  margin-top: 14px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.section-heading h1 {
  font-size: clamp(1.65rem, 7vw, 2.5rem);
  line-height: 1;
}

.section-heading h2 {
  font-size: 1.15rem;
  line-height: 1.15;
}

.selected-list {
  display: grid;
  gap: 10px;
}

.history-list {
  display: grid;
  gap: 10px;
}

.history-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.history-heading strong,
.history-heading small {
  display: block;
}

.history-heading small {
  margin-top: 3px;
  color: var(--muted);
}

.history-meals {
  display: grid;
  gap: 7px;
}

.history-meal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 7px 9px;
  color: inherit;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.history-meal span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-meal small {
  color: var(--sage-dark);
  font-weight: 900;
}

.selected-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 36px;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 8px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.selected-title {
  min-width: 0;
  padding: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
}

.selected-title strong,
.selected-title small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-title small {
  margin-top: 4px;
  color: var(--muted);
}

.meal-dot {
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background-color: var(--surface);
  background-position: center;
  background-size: cover;
}

.meal-dot.sea,
.selector-art.sea {
  background-image: url("assets/card-sea.svg");
}

.meal-dot.garden,
.selector-art.garden {
  background-image: url("assets/card-garden.svg");
}

.meal-dot.market,
.selector-art.market {
  background-image: url("assets/card-market.svg");
}

.empty-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.selector-view.view-active {
  display: block;
  min-height: 100vh;
}

.selector-shell {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(12px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(243, 200, 194, 0.3), rgba(251, 250, 246, 0) 240px),
    var(--bg);
}

.selector-top {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: min(100%, 860px);
  margin: 0 auto 14px;
}

.selector-top h1 {
  font-size: clamp(1.65rem, 8vw, 2.9rem);
  line-height: 1;
}

.selector-count {
  display: inline-grid;
  place-items: center;
  min-width: 56px;
  min-height: 40px;
  padding: 0 10px;
  color: var(--sage-dark);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 900;
}

.selector-setup,
.selector-deck,
.selector-complete {
  width: min(100%, 860px);
  margin: 0 auto;
}

.selector-setup {
  display: grid;
  grid-template-rows: auto auto;
  gap: 14px;
}

.filter-panel,
.selector-start-panel {
  padding: 16px;
}

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

.filter-chip {
  min-width: 0;
  padding: 0 10px;
  color: var(--sage-dark);
  background: var(--surface);
  border-color: var(--line);
  white-space: normal;
}

.filter-chip.active {
  color: #fff;
  background: var(--sage-dark);
  border-color: var(--sage-dark);
}

.selector-start-panel {
  display: grid;
  gap: 14px;
}

.selector-start-panel img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
}

.selector-deck {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 12px;
  min-height: calc(100vh - 114px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  min-height: calc(100dvh - 114px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
}

.selector-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.selector-card-body {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 16px;
  overflow-y: auto;
}

.selector-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.selector-card h2 {
  font-size: clamp(1.4rem, 7vw, 2.35rem);
  line-height: 1;
}

.selector-card p,
.muted-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.calories,
.selector-calories {
  flex: 0 0 auto;
  color: var(--sage-dark);
  background: var(--surface-soft);
  border-radius: var(--radius);
  padding: 6px 8px;
  font-size: 0.78rem;
  font-weight: 900;
}

.selector-calories {
  display: grid;
  justify-items: end;
  min-width: 92px;
  padding: 10px 12px;
}

.selector-calories strong {
  font-size: clamp(1.55rem, 8vw, 2.5rem);
  line-height: 0.9;
}

.selector-calories small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.74rem;
  white-space: nowrap;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 8px;
  color: var(--ink);
  background: #f7eee8;
  border: 1px solid rgba(243, 177, 125, 0.32);
  border-radius: var(--radius);
  font-size: 0.74rem;
  font-weight: 800;
}

.details-button {
  color: var(--sage-dark);
  background: var(--surface-soft);
  border-color: var(--line);
}

.inline-details {
  display: grid;
  gap: 12px;
  margin-top: 2px;
}

.inline-details section {
  padding: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.inline-details h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.inline-details ul,
.inline-details ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.35;
}

.inline-details p {
  margin: 0;
}

.selector-actions {
  display: grid;
  grid-template-columns: 1fr minmax(96px, 1.1fr) 1fr;
  gap: 8px;
}

.choice-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.choice-button.no {
  color: #864d4a;
  background: #fff3f1;
  border-color: rgba(243, 200, 194, 0.9);
}

.choice-button.yes {
  color: #fff;
  background: var(--sage-dark);
  border-color: var(--sage-dark);
}

.choice-button.other {
  color: var(--sage-dark);
  background: #eef5f7;
}

.mini-selected {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.mini-slot {
  display: grid;
  place-items: center;
  height: 32px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.74);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 900;
}

.mini-slot.filled {
  color: #fff;
  background: var(--sage-dark);
  border-color: var(--sage-dark);
}

.selector-complete {
  display: grid;
  min-height: 58vh;
  place-items: center;
}

.complete-panel {
  width: min(100%, 520px);
  padding: 18px;
}

.complete-panel h2 {
  font-size: clamp(1.8rem, 8vw, 3rem);
  line-height: 1;
}

.hidden {
  display: none !important;
}

.chat-layout {
  display: grid;
  grid-template-rows: auto minmax(380px, 1fr) auto;
  min-height: calc(100vh - var(--nav-height) - 86px);
}

.chat-window {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 360px;
  padding: 14px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.message {
  max-width: 86%;
  padding: 12px 13px;
  border-radius: var(--radius);
  line-height: 1.45;
}

.message.ai {
  align-self: flex-start;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.message.user {
  align-self: flex-end;
  color: #fff;
  background: var(--sage-dark);
}

.message small {
  display: block;
  margin-bottom: 5px;
  color: inherit;
  font-weight: 900;
  opacity: 0.78;
}

.chat-composer {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 48px;
  gap: 8px;
  align-items: end;
  margin-top: 12px;
}

.chat-composer textarea,
.pantry-panel textarea,
.admin-fields textarea,
.admin-fields input,
.admin-fields select,
.addition-form input {
  width: 100%;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
}

.chat-composer textarea {
  min-height: 48px;
  max-height: 142px;
  padding: 13px 14px;
  resize: none;
}

.chat-composer textarea:focus,
.pantry-panel textarea:focus,
.admin-fields textarea:focus,
.admin-fields input:focus,
.admin-fields select:focus,
.addition-form input:focus {
  border-color: var(--sage-dark);
  box-shadow: 0 0 0 3px rgba(143, 185, 168, 0.22);
}

.send-button {
  width: 48px;
  height: 48px;
  color: #fff;
  background: var(--sage-dark);
  border-color: var(--sage-dark);
}

.pantry-grid {
  display: grid;
  gap: 14px;
}

.camera-panel,
.pantry-panel {
  padding: 16px;
}

.camera-panel > img {
  width: min(100%, 280px);
  margin: 0 auto 14px;
}

.upload-target {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 54px;
  margin-bottom: 10px;
  color: var(--sage-dark);
  background: var(--surface-soft);
  border: 1px dashed var(--sage);
  border-radius: var(--radius);
  font-weight: 900;
}

#pantryPhoto {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.photo-preview {
  overflow: hidden;
  margin: 10px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.photo-preview img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
}

.pantry-panel label {
  display: block;
  margin-bottom: 8px;
  color: var(--sage-dark);
  font-weight: 900;
}

.pantry-panel textarea {
  padding: 12px;
  resize: vertical;
}

.pantry-panel .ghost-button {
  margin-top: 10px;
}

.pantry-result {
  margin-top: 14px;
}

.suggestion-card {
  padding: 12px;
}

.suggestion-card h3,
.list-group h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

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

.addition-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 12px;
}

.addition-form input {
  min-height: 44px;
  padding: 0 12px;
}

.shopping-list {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.list-group {
  padding: 12px;
  background: var(--surface-soft);
  box-shadow: none;
}

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

.list-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.addition-item {
  grid-template-columns: 26px minmax(0, 1fr) 36px;
  align-items: center;
}

.list-item input {
  width: 20px;
  height: 20px;
  accent-color: var(--sage-dark);
}

.list-item strong {
  display: block;
  line-height: 1.2;
}

.list-item small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  height: calc(var(--nav-height) + env(safe-area-inset-bottom));
  padding: 8px max(8px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav-item {
  display: grid;
  place-items: center;
  gap: 3px;
  min-width: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: var(--radius);
}

.nav-item.active {
  color: var(--sage-dark);
  background: var(--surface-soft);
}

.nav-item span {
  font-size: 0.72rem;
  font-weight: 900;
}

.admin-dialog,
.recipe-dialog {
  width: min(92vw, 720px);
  max-height: 88vh;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.admin-dialog::backdrop,
.recipe-dialog::backdrop {
  background: rgba(36, 51, 46, 0.36);
  backdrop-filter: blur(3px);
}

.admin-panel,
.recipe-detail {
  max-height: 88vh;
  padding: 18px;
  overflow-y: auto;
  background: var(--bg);
}

.admin-fields {
  display: grid;
  gap: 12px;
}

.admin-fields label {
  display: grid;
  gap: 6px;
  color: var(--sage-dark);
  font-weight: 900;
}

.admin-fields input,
.admin-fields select,
.admin-fields textarea {
  padding: 12px;
  color: var(--ink);
  font-weight: 500;
}

.model-card,
.env-card {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
}

.model-card strong,
.env-card strong {
  flex-basis: 100%;
}

.model-card code,
.env-card code {
  padding: 5px 7px;
  color: var(--sage-dark);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.78rem;
}

.admin-actions {
  justify-content: flex-end;
  padding: 0;
}

.recipe-detail {
  display: grid;
  gap: 14px;
}

.recipe-detail h2,
.recipe-detail h3,
.recipe-detail p {
  margin: 0;
}

.recipe-detail p {
  color: var(--muted);
  line-height: 1.5;
}

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

.detail-stat {
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.detail-stat strong,
.detail-stat span {
  display: block;
}

.detail-stat span {
  color: var(--muted);
  font-size: 0.78rem;
}

.detail-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (min-width: 740px) {
  .app-shell {
    padding-inline: 26px;
  }

  .hero-panel {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 40%);
    align-items: center;
    min-height: 360px;
  }

  .hero-art {
    margin-bottom: -24px;
  }

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

  .selector-setup {
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    align-items: start;
  }

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

  .selector-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }

  .pantry-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: start;
  }

  .shopping-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

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

  .admin-fields .full {
    grid-column: 1 / -1;
  }
}

@media (min-width: 980px) {
  .app-shell {
    padding-bottom: 28px;
  }

  .bottom-nav {
    left: 50%;
    right: auto;
    bottom: 18px;
    width: min(560px, calc(100% - 32px));
    transform: translateX(-50%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .chat-layout {
    width: min(780px, 100%);
    margin: 0 auto;
  }

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

@media (prefers-reduced-motion: no-preference) {
  .primary-button,
  .ghost-button,
  .icon-button,
  .nav-item,
  .choice-button,
  .filter-chip {
    transition:
      transform 160ms ease,
      box-shadow 160ms ease,
      border-color 160ms ease,
      background-color 160ms ease;
  }

  .primary-button:hover,
  .ghost-button:hover,
  .icon-button:hover,
  .choice-button:hover,
  .filter-chip:hover {
    transform: translateY(-1px);
  }
}
