@charset "UTF-8";
@font-face {
  font-family:Fraunces;
  src:url(fonts/fraunces-bold.ttf) format('truetype');
  font-weight:700;
  font-style:normal;
  font-display:swap
}

:root {
  color-scheme:light;
  --paper:#fff9ec;
  --cream:#fffbf2;
  --ink:#3e1a10;
  --muted:#79604a;
  --red:#cd2c23;
  --red-dark:#ad211b;
  --red-pale:#ffefe4;
  --line:#dfc59c;
  --ochre:#b58c53;
  --sage:#f0f3db;
  --green:#6a8c3d;
  --butter:#fff0c8;
  --radius:16px;
  --heading:Fraunces,Georgia,serif;
  font:16px/1.45 ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:#fcf4e3;
}

* {
  box-sizing:border-box
}

body {
  margin:0;
  min-width:280px
}

body::before,body::after {
  content:"";
  position:fixed;
  pointer-events:none;
  z-index:-1;
  background:repeating-linear-gradient(0deg,#c744352a 0 15px,transparent 15px 30px),repeating-linear-gradient(90deg,#c744352a 0 15px,transparent 15px 30px)
}

body::before {
  width:235px;
  height:110px;
  top:-30px;
  right:-40px;
  transform:rotate(13deg)
}

body::after {
  width:175px;
  height:85px;
  bottom:-30px;
  left:-40px;
  transform:rotate(12deg);
  opacity:.7
}

#app {
  position:relative;
  max-width:1184px;
  min-height:calc(100dvh - 40px);
  margin:20px auto;
  border:1px solid var(--ochre);
  border-radius:24px;
  background:var(--paper);
  box-shadow:0 10px 40px #6b3f1110
}

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

button,a,input,select,textarea {
  -webkit-tap-highlight-color:transparent
}

button,a {
  touch-action:manipulation
}

button {
  color:inherit;
  cursor:pointer
}

button:disabled {
  cursor:not-allowed;
  opacity:.55
}

button[aria-busy="true"] {
  cursor:wait
}

a {
  color:var(--red)
}

svg.icon {
  width:1.25rem;
  height:1.25rem;
  flex-shrink:0;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
  vertical-align:middle
}

h1,h2,h3,.brand {
  font-family:var(--heading);
  font-weight:700;
  line-height:1.1;
  letter-spacing:-.025em
}

h1 {
  margin:0 0 .45rem;
  font-size:clamp(2rem,3.8vw,2.7rem);
  text-wrap:balance
}

h2 {
  margin:0 0 .65rem;
  font-size:1.55rem;
  text-wrap:balance
}

h3 {
  margin:0;
  font-size:1.25rem
}

p {
  margin:.45rem 0 .9rem
}

strong {
  font-weight:700
}

small {
  font-size:.875rem
}

input,select,textarea {
  width:100%;
  min-height:46px;
  padding:.7rem .8rem;
  color:var(--ink);
  background:#fffdf6;
  border:1px solid var(--line);
  border-radius:10px
}

input[type=checkbox],input[type=radio] {
  width:1.15rem;
  min-height:0;
  accent-color:var(--red)
}

input::placeholder {
  color:#947c65
}

input:focus {
  border-color:var(--red)
}

select {
  appearance:none;
  padding-right:2.5rem;
  background:#fffdf6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none' stroke='%233e1a10' stroke-width='2'%3E%3Cpath d='m5 7 5 5 5-5'/%3E%3C/svg%3E") no-repeat right .7rem center
}

.field {
  display:grid;
  gap:.4rem;
  margin:.9rem 0;
  font-weight:650
}

.field small {
  color:var(--muted);
  font-weight:400
}

.field-row {
  display:flex;
  align-items:center;
  gap:.65rem;
  margin:1rem 0
}

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

legend {
  margin-bottom:.55rem;
  font:700 1.22rem/1.2 var(--heading)
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible {
  outline:3px solid #6f8e46;
  outline-offset:3px
}

main[tabindex="-1"]:focus {
  outline:none
}

[hidden] {
  display:none!important
}

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

.skip-link {
  position:fixed;
  top:-100px;
  left:1rem;
  z-index:100;
  padding:.8rem;
  background:var(--cream);
  border-radius:8px
}

.skip-link:focus {
  top:1rem
}

.initial-loader,.offline-page,.fatal-page {
  max-width:560px;
  margin:12vh auto;
  padding:2rem;
  text-align:center
}

.fatal-page>.food-illustration {
  margin:0 auto 1rem
}

.brand-mark {
  font-size:3.5rem;
  color:var(--red)
}

.loader {
  display:block;
  width:28px;
  height:28px;
  margin:2rem auto;
  border:3px solid var(--line);
  border-top-color:var(--red);
  border-radius:50%;
  animation:spin 1s linear infinite
}

@keyframes spin {
  to {
    transform:rotate(360deg)
  }

}

.noscript {
  padding:1rem;
  text-align:center
}

.offline-banner {
  position:sticky;
  top:0;
  z-index:30;
  padding:.65rem 1rem;
  color:white;
  background:#713e20;
  text-align:center;
  font-size:.875rem
}

/* Cadre de la cuisine, identité et navigation. */
.kitchen-corner {
  position:absolute;
  top:-24px;
  left:-46px;
  z-index:-1;
  display:flex;
  pointer-events:none;
  transform:rotate(-12deg)
}

.kitchen-corner .ingredient-art {
  --ingredient-size:96px
}

.kitchen-corner .ingredient-art+.ingredient-art {
  margin-left:-40px;
  margin-top:-6px
}

.site-header {
  display:flex;
  align-items:center;
  gap:1.5rem;
  padding:1.15rem 2rem;
  border-bottom:1px solid #dfc59c80
}

.brand {
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  padding:0;
  border:0;
  background:none;
  color:var(--ink);
  text-decoration:none;
  white-space:nowrap;
  font-size:1.9rem
}

.brand svg {
  width:2rem;
  height:2rem;
  color:#7f331b
}

.desktop-nav {
  display:flex;
  flex:1;
  justify-content:center;
  gap:.4rem
}

.nav-button {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  min-height:44px;
  padding:.55rem 1rem;
  border:0;
  border-radius:13px;
  background:transparent;
  color:#634127;
  font-size:.95rem;
  font-weight:600
}

.nav-button.active {
  background:var(--butter);
  color:var(--red)
}

.nav-button:hover {
  background:#faedce
}

.nav-button.active svg {
  fill:#cd2c2313
}

.profile-button {
  display:flex;
  align-items:center;
  gap:.6rem;
  margin-left:auto;
  padding:0;
  border:0;
  border-radius:50px;
  background:transparent;
  text-align:left
}

.profile-label {
  font-size:.875rem;
  line-height:1.3
}

.profile-label strong {
  display:block
}

.profile-label small {
  color:var(--muted)
}

.avatar {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  flex-shrink:0;
  border-radius:50%;
  background:#f4c4ad;
  color:#763723;
  font:700 1.4rem var(--heading)
}

.avatar.color-1 {
  background:#f2c5bd;
  color:#8d2d23
}

.avatar.color-2 {
  background:#d3e1ae;
  color:#3f522a
}

.avatar.color-3 {
  background:#ffe2a0;
  color:#82501c
}

.avatar.color-4 {
  background:#e7d5e7;
  color:#69456b
}

.avatar.guest {
  background:#dde6dd;
  color:#4a6550
}

.avatar.small {
  width:32px;
  height:32px;
  font-size:1.05rem
}

.bottom-nav {
  display:none
}

.header-back {
  display:inline-flex;
  align-items:center;
  gap:.65rem;
  min-width:0;
  padding:.4rem 0;
  border:0;
  background:none;
  font-weight:650
}

.header-back span {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}

.header-back svg {
  width:1.25rem
}

.page {
  max-width:1120px;
  min-width:0;
  margin:auto;
  padding:1.7rem 2rem 2.5rem
}

.page.narrow {
  max-width:860px
}

.page-heading {
  margin-bottom:1.2rem
}

.eyebrow {
  display:flex;
  align-items:center;
  gap:.4rem;
  margin:0 0 .55rem;
  color:#8d5c3a;
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.11em;
  text-transform:uppercase
}

.lead {
  max-width:620px;
  margin:.35rem 0 1rem;
  color:#4a2818;
  font-size:1rem
}

.heading-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem
}

.back-button {
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  margin-bottom:.8rem;
  padding:.2rem 0;
  border:0;
  background:none;
  color:var(--muted);
  font-size:.875rem
}

.back-button svg {
  width:1rem
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  min-width:0;
  min-height:44px;
  padding:.65rem .95rem;
  border:1px solid var(--line);
  border-radius:11px;
  background:#fffaf0;
  color:var(--ink);
  font-size:1rem;
  line-height:1.35;
  font-weight:650;
  text-decoration:none
}

.button.primary {
  background:var(--red);
  border-color:#b9211c;
  color:white
}

.button.primary:hover {
  background:var(--red-dark)
}

.button.outline {
  background:transparent;
  border-color:var(--red);
  color:var(--red)
}

.button.outline:hover {
  background:var(--red-pale)
}

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

.button.quiet:hover {
  background:#f7eddc
}

.button.full {
  width:100%
}

.button.small {
  min-height:36px;
  padding:.4rem .65rem;
  border-radius:9px;
  font-size:.875rem
}

.icon-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  flex-shrink:0;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--cream)
}

.icon-button:hover {
  border-color:var(--red);
  color:var(--red)
}

.icon-button.danger {
  background:transparent;
  border-color:transparent;
  color:var(--red)
}

.text-button {
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  padding:.35rem 0;
  border:0;
  background:none;
  color:#5b2b1d;
  font-size:.9rem;
  font-weight:600;
  text-decoration:underline;
  text-underline-offset:4px
}

.text-button:hover {
  color:var(--red)
}

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

.actions.end {
  justify-content:flex-end
}

.muted {
  color:var(--muted)
}

.caption {
  color:var(--muted);
  font-size:.875rem
}

.card {
  min-width:0;
  padding:1.25rem;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--cream)
}

.soft-card {
  padding:1rem 1.1rem;
  border-radius:12px;
  background:var(--butter)
}

.notice {
  display:flex;
  align-items:flex-start;
  gap:.6rem;
  margin-bottom:1rem;
  padding:.85rem 1rem;
  border:1px solid #d5dfaf;
  border-radius:12px;
  background:var(--sage);
  font-size:.95rem
}

.notice p {
  margin:0
}

.notice .icon {
  margin-top:.15rem
}

.notice.warning {
  background:#fff0ce;
  border-color:#e1c38f
}

.notice.error {
  background:var(--red-pale);
  border-color:#e7aa94;
  color:#8b241a
}

.section-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:.8rem;
  margin:1.4rem 0 .8rem
}

.section-heading h2 {
  margin:0
}

.pill {
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  padding:.35rem .75rem;
  border-radius:30px;
  background:var(--butter);
  font-size:.875rem;
  font-weight:650
}

.pill.green {
  background:var(--sage);
  color:#506932
}

.pill.neutral {
  background:#f0e9da;
  color:#786149
}

.pill.outline {
  border:1px solid var(--line);
  background:transparent
}

.pill .icon {
  width:1rem;
  height:1rem
}

.divider {
  height:1px;
  margin:1.1rem 0;
  border:0;
  background:var(--line)
}

.space-top {
  margin-top:1rem
}

.space-top-lg {
  margin-top:1.5rem
}

.no-bottom {
  margin-bottom:0
}

.subtle-footer {
  margin:2rem 0 0;
  color:#947a5a;
  text-align:center;
  font-size:.8rem
}

.subtle-footer .icon {
  width:.9rem;
  height:.9rem;
  margin:0 .3rem
}

/* Les trois plats partagent une planche aquarelle à fond transparent. */
.food-illustration {
  display:block;
  width:100px;
  flex-shrink:0;
  aspect-ratio:1;
  background:url(illustrations/meals-watercolor-v2.png) no-repeat;
  background-size:300% 100%
}

.food-croque {
  background-position:0 50%
}

.food-pizza {
  background-position:50% 50%
}

.food-omelette {
  background-position:100% 50%
}

.home-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);
  align-items:start;
  gap:2rem
}

.home-grid>*,.new-meal-grid>*,.summary-grid>* {
  min-width:0
}

.kitchen-hero {
  position:relative;
  padding:1.25rem;
  border:1px solid var(--line);
  border-radius:20px;
  background:#fffaf0
}

.kitchen-hero h1 {
  font-size:2.2rem
}

.kitchen-hero .lead {
  margin-bottom:.65rem
}

.home-followup>.section-heading:first-child {
  margin-top:.4rem
}

.meal-details {
  margin:.4rem 0 .8rem
}

.meal-details summary {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  min-height:44px;
  cursor:pointer;
  list-style:none
}

.meal-details summary::-webkit-details-marker {
  display:none
}

.timing-edit {
  display:inline-flex;
  align-items:center;
  gap:.3rem;
  color:var(--muted);
  font-size:.75rem
}

.timing-edit svg {
  width:.85rem;
  height:.85rem
}

.meal-detail-fields {
  padding:.3rem .9rem .7rem;
  margin:.65rem 0;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fffdf5
}

.type-options {
  display:grid;
  gap:.7rem
}

.type-card {
  display:flex;
  align-items:center;
  gap:.55rem;
  width:100%;
  min-width:0;
  min-height:107px;
  padding:.35rem .7rem .35rem .2rem;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fffaf0;
  text-align:left
}

.type-card.selected {
  border:2px solid var(--red);
  background:#fff9ee
}

.type-card:hover {
  border-color:#b5874c
}

.type-card.selected:hover {
  border-color:var(--red)
}

.type-card .food-illustration {
  width:118px
}

.type-label {
  flex:1;
  min-width:0
}

.type-name {
  display:block;
  font:700 1.35rem/1.14 var(--heading)
}

.selection-dot {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:24px;
  height:24px;
  flex-shrink:0;
  border:1px solid #b68b53;
  border-radius:50%;
  color:white;
  background:#fffdf7
}

.selection-dot .icon {
  width:17px;
  height:17px;
  stroke-width:2.5
}

.selected .selection-dot {
  background:var(--red);
  border-color:var(--red)
}

.launch-family {
  padding-top:1.2rem
}

.family-preview-label {
  display:flex;
  align-items:center;
  gap:.45rem;
  margin:0 0 .8rem;
  font:700 1.15rem/1.25 var(--heading)
}

.family-preview-label .icon {
  fill:#6f352520;
  width:1.35rem
}

.family-preview {
  display:flex;
  justify-content:space-between;
  gap:.3rem;
  margin:.65rem 0 .8rem
}

.family-person {
  min-width:44px;
  min-height:44px;
  padding:.2rem 0;
  text-align:center;
  cursor:pointer
}

.invitation-hint {
  margin:0 0 .45rem
}

.family-checkbox:focus-visible+.family-avatar {
  outline:3px solid #6f8e46;
  outline-offset:4px;
  border-radius:50%
}

.family-checkbox:not(:checked)+.family-avatar>.avatar {
  opacity:.45;
  filter:grayscale(.85)
}

.family-checkbox:not(:checked)+.family-avatar .invite-check {
  background:var(--cream);
  border-color:var(--muted)
}

.family-checkbox:not(:checked)+.family-avatar .invite-check .icon {
  visibility:hidden
}

.family-checkbox:not(:checked)~.family-name {
  color:var(--muted)
}

.family-avatar {
  position:relative;
  display:inline-block
}

.invite-check {
  position:absolute;
  bottom:-1px;
  right:-3px;
  display:flex;
  align-items:center;
  justify-content:center;
  width:16px;
  height:16px;
  border:1px solid white;
  border-radius:50%;
  background:var(--green);
  color:white
}

.invite-check .icon {
  width:11px;
  height:11px;
  stroke-width:2.5
}

.family-name {
  display:block;
  margin-top:.3rem;
  font-size:.78rem;
  font-weight:550
}

.ingredients-shortcut {
  display:flex;
  justify-content:center;
  width:100%;
  margin:.5rem 0 .7rem
}

.guest-hint {
  margin:.7rem 0 0;
  text-align:center;
  font-size:.78rem
}

.new-meal-grid {
  display:grid;
  grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);
  align-items:start;
  gap:2rem
}

.new-meal-grid .launch-family {
  margin-top:55px;
  padding:1.3rem;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fffaf0
}

.new-meal-grid .type-card {
  min-height:118px
}

.new-meal-grid .type-card .food-illustration {
  width:130px
}

.new-meal-grid .family-preview {
  margin:1rem 0
}

.member-menu-art {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.3rem
}

.member-menu-art .food-illustration {
  width:31%
}

.empty-state {
  padding:1.8rem 1.2rem;
  border:1px dashed #c9ab7c;
  border-radius:16px;
  background:#fffaf0;
  text-align:center
}

.empty-symbol {
  display:inline-flex;
  padding:.75rem;
  margin-bottom:.8rem;
  border-radius:50%;
  background:var(--butter);
  color:#93612d
}

.empty-symbol .icon {
  width:1.7rem;
  height:1.7rem
}

.empty-state h2 {
  font-size:1.45rem
}

.empty-state p {
  max-width:330px;
  margin:.65rem auto;
  color:var(--muted);
  font-size:.95rem
}

.meal-list {
  display:grid;
  gap:.7rem
}

.meal-card {
  display:flex;
  align-items:center;
  gap:.8rem;
  width:100%;
  min-width:0;
  padding:.6rem .8rem .6rem .3rem;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--cream);
  text-align:left
}

.meal-card:hover {
  border-color:#b88d55;
  background:#fffdf5
}

.meal-card .food-illustration {
  width:85px
}

.meal-card-main {
  flex:1;
  min-width:0
}

.meal-card h3 {
  margin:.35rem 0 .25rem;
  overflow-wrap:anywhere;
  font-size:1.2rem
}

.meal-card p {
  margin:0;
  color:var(--muted);
  font-size:.82rem
}

.meal-card .pill {
  font-size:.75rem;
  padding:.2rem .55rem
}

.meal-card .chevron {
  width:1rem;
  color:#a58254
}

.meal-entry-actions {
  display:flex;
  justify-content:flex-end;
  padding:.15rem .35rem .35rem
}

.meal-entry-actions .text-button {
  min-height:44px;
  font-size:.85rem
}

.meal-history {
  margin-top:1.4rem;
  padding-top:1rem;
  border-top:1px solid var(--line)
}

.meal-history summary {
  display:flex;
  align-items:center;
  gap:.6rem;
  min-height:48px;
  cursor:pointer;
  list-style:none;
  font-weight:700
}

.meal-history summary::-webkit-details-marker {
  display:none
}

.meal-history .history-chevron {
  margin-left:auto;
  width:1rem
}

.meal-history[open] .history-chevron {
  transform:rotate(90deg)
}

.meal-history>.caption {
  margin:0 0 .8rem
}

.support-card {
  display:flex;
  align-items:flex-start;
  gap:.7rem;
  margin-top:1.2rem;
  padding:1rem;
  border:1px solid #d8dfbb;
  border-radius:14px;
  background:var(--sage)
}

.support-card>.icon {
  color:var(--green);
  margin-top:.2rem
}

.support-card p {
  margin:.25rem 0 0;
  font-size:.875rem
}

.support-card .text-button {
  margin-top:.3rem;
  font-size:.875rem
}

.small-line {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.4rem
}

/* Composer sa recette */
.composer-page {
  max-width:760px;
  padding-bottom:11rem
}

.composer-heading {
  margin:.25rem 0 1.25rem
}

.composer-heading h1 {
  font-size:2.4rem;
  overflow-wrap:anywhere
}

.composer-heading .caption {
  margin:.45rem 0 0
}

.composition-editor {
  min-width:0
}

.composition-list {
  display:grid;
  gap:.8rem
}

.composition-item-heading {
  margin:0
}

.composition-title {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.8rem;
  width:100%;
  min-width:0;
  text-align:left;
  scroll-margin-top:100px;
  padding:.7rem .85rem;
  border:1px solid var(--line);
  border-left:5px solid var(--red);
  border-radius:11px;
  background:var(--butter)
}

.composition-title strong {
  margin:0;
  font:700 1.55rem/1.2 var(--heading)
}

.composition-title .caption {
  display:block;
  margin:.2rem 0 0;
  font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-weight:400;
  overflow-wrap:anywhere
}

.composition-title-copy {
  flex:1;
  min-width:0
}

.composition-item:not(.is-open) .composition-title {
  background:#fff6e3;
  border-left-color:var(--ochre)
}

.composition-item:not(.is-open) .composition-title strong {
  font-size:1.15rem
}

.composition-chevron {
  width:18px;
  flex-shrink:0
}

.is-open .composition-chevron {
  transform:rotate(90deg)
}

.ingredients-section {
  margin:1.25rem 0 0
}

.ingredients-section legend {
  padding:0;
  margin-bottom:.7rem;
  font:700 1.3rem/1.2 var(--heading)
}

.ingredient-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.65rem
}

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

.choice-tile {
  position:relative;
  display:flex;
  min-width:0;
  min-height:110px;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:.05rem;
  padding:.25rem .4rem .55rem;
  border:1px solid var(--line);
  border-radius:11px;
  background:#fffaf0;
  cursor:pointer
}

.choice-tile input {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  margin:0;
  opacity:0;
  cursor:pointer
}

.choice-tile:focus-within {
  outline:2px solid #527c4a;
  outline-offset:3px
}

.choice-tile.selected {
  border:2px solid var(--red);
  background:#ffeadf;
  padding:calc(.25rem - 1px) calc(.4rem - 1px) calc(.55rem - 1px)
}

.choice-tile:has(input:disabled) {
  cursor:default;
  opacity:.75
}

.choice-tile .ingredient-art {
  --ingredient-size:79px;
  pointer-events:none
}

.choice-tile .selection-dot {
  position:absolute;
  top:7px;
  right:7px;
  width:19px;
  height:19px;
  pointer-events:none
}

.choice-tile .selection-dot .icon {
  width:13px;
  height:13px
}

.ingredient-label {
  display:block;
  max-width:100%;
  text-align:center;
  line-height:1.15;
  font-size:.95rem;
  overflow-wrap:anywhere;
  pointer-events:none
}

.bread-grid .choice-tile {
  min-height:126px
}

.bread-grid .ingredient-art {
  --ingredient-size:105px;
  margin-top:-.3rem;
  margin-bottom:-.25rem
}

.composition-delete {
  margin:.5rem 0;
  text-align:right
}

.composition-delete .text-button {
  font-size:.78rem;
  color:var(--muted)
}

.composer-actions {
  margin-top:1rem
}

.composer-actions .button {
  width:100%;
  background:#fffaf0
}

.composer-footer {
  position:fixed;
  z-index:10;
  bottom:0;
  left:0;
  right:0;
  padding:.8rem 1rem calc(.8rem + env(safe-area-inset-bottom));
  border-top:1px solid var(--line);
  background:#fff9ecf5;
  box-shadow:0 -4px 20px #57271408
}

.composer-footer-inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  max-width:696px;
  margin:auto
}

.composition-total {
  flex:1;
  min-width:0;
  padding:.6rem .8rem;
  border:1px solid #dce1bd;
  border-radius:10px;
  background:var(--sage);
  text-align:center
}

.composition-total strong {
  font-weight:650;
  font-size:.95rem
}

.composition-total .caption {
  margin:.25rem 0 0;
  font-size:.73rem
}

.composer-footer .button {
  flex-shrink:0
}

/* Le carnet de préparation */
.summary-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:.7rem;
  margin:.5rem 0 1rem
}

.summary-heading>div {
  min-width:0;
  flex:1
}

.summary-heading h1 {
  overflow-wrap:anywhere
}

.summary-heading .lead {
  margin:.45rem 0 0
}

.meal-date-caption {
  margin:0 0 .4rem;
  color:var(--muted);
  font-size:.86rem
}

.summary-heading .food-illustration {
  width:110px
}

.meal-stats {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.8rem;
  padding:.85rem 1rem;
  margin:0 0 1rem;
  border:1px solid #e5cc99;
  border-radius:12px;
  background:var(--butter)
}

.meal-stats strong {
  font-size:1rem;
  font-weight:600
}

.stats-dot {
  padding:0 .2rem;
  color:#936e42
}

.response-dots {
  display:flex;
  flex-wrap:wrap;
  gap:.4rem
}

.response-dot {
  display:block;
  width:17px;
  height:17px;
  border:1px solid #b0bba0;
  border-radius:50%;
  background:#fffaf0
}

.response-dot.answered {
  border-color:var(--green);
  background:var(--green)
}

.summary-grid {
  display:grid;
  grid-template-columns:minmax(0,1.8fr) minmax(0,1fr);
  align-items:start;
  gap:1.2rem
}

.participants {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:.65rem;
  min-width:0;
  align-items:start
}

.participant-card {
  position:relative;
  min-width:0;
  min-height:95px;
  padding:.7rem .75rem .55rem 64px;
  border:1px solid #e0cba6;
  border-radius:12px;
  background:#fff3d8;
  overflow-wrap:anywhere
}

.participant-card.responded {
  border-color:#d6ddb7;
  background:var(--sage)
}

.participant-top {
  display:flex;
  align-items:center;
  min-height:25px;
  padding-right:25px
}

.participant-top>.avatar {
  position:absolute;
  left:12px;
  top:14px;
  width:41px;
  height:41px
}

.participant-name {
  min-width:0
}

.participant-name h3 {
  margin:0;
  font-size:1.2rem
}

.guest-badge {
  display:inline-block;
  margin-left:.4rem;
  font:500 .68rem/1.2 system-ui,sans-serif;
  color:var(--muted)
}

.status-icon {
  position:absolute;
  right:11px;
  top:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  width:23px;
  height:23px;
  border-radius:50%;
  color:white;
  background:var(--green)
}

.status-icon .icon {
  width:21px;
  height:21px;
  stroke-width:2.5
}

.status-icon.pending {
  color:#bb9459;
  background:transparent
}

.status-icon.pending .icon {
  width:18px;
  height:18px
}

.composition-summary {
  display:flex;
  align-items:baseline;
  gap:.35rem;
  margin:.35rem 16px 0 0;
  font-size:.87rem;
  line-height:1.4
}

.composition-summary .quantity {
  flex-shrink:0;
  font-weight:650;
  color:#5a482d
}

.composition-summary p {
  margin:0
}

.no-response {
  margin:.35rem 0 .2rem;
  color:#9e8058;
  font-style:italic;
  font-size:.85rem
}

.participant-actions {
  display:flex;
  flex-wrap:wrap;
  gap:.15rem .5rem;
  margin:.3rem 0 -.15rem
}

.participant-actions .button {
  min-height:31px;
  padding:.25rem 0;
  border:0;
  border-radius:4px;
  background:transparent;
  color:#786347;
  font-size:.76rem;
  gap:.3rem
}

.participant-actions .button:hover {
  color:var(--red);
  background:transparent
}

.participant-actions .icon {
  width:13px;
  height:13px
}

.summary-tools {
  position:sticky;
  top:1rem;
  min-width:0
}

.summary-tools .card {
  padding:1rem
}

.summary-tools h2 {
  margin-bottom:.8rem;
  font-size:1.3rem
}

.summary-tools .button {
  margin-top:.5rem;
  font-size:.86rem
}

.summary-tools .caption {
  font-size:.75rem
}

.ingredient-total-list {
  list-style:none;
  padding:0;
  margin:0
}

.ingredient-total-list li {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:.6rem;
  padding:.4rem 0;
  border-bottom:1px dashed #dcc6a1;
  font-size:.85rem
}

.ingredient-total-list li:last-child {
  border-bottom:0
}

.ingredient-total-list strong {
  white-space:nowrap;
  color:#795d32
}

.summary-footnote {
  font-size:.7rem;
  color:var(--muted);
  margin:.7rem 0 0
}

.saved-feedback {
  display:flex;
  align-items:center;
  gap:.5rem;
  border:1px solid #cad7a7;
  border-radius:10px;
  background:#eff4db;
  color:#48652c;
  padding:.7rem .85rem;
  margin-bottom:1rem;
  font-size:.88rem
}

.saved-feedback .icon {
  flex-shrink:0
}

/* Le garde-manger */
.pantry-page {
  max-width:820px
}

.tabs {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.35rem;
  margin:1.2rem 0 .45rem
}

.tab {
  min-width:0;
  min-height:41px;
  padding:.45rem .3rem;
  border:1px solid var(--line);
  border-radius:9px;
  background:#fffaf0;
  font:700 1.02rem/1.2 var(--heading)
}

.tab.active {
  border:2px solid var(--red);
  background:var(--red);
  color:white
}

.pantry-title-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.5rem;
  margin:.1rem 0 .45rem
}

.pantry-title-row h2 {
  font-size:1.3rem;
  margin:0;
  min-width:0
}

.pantry-title-row .food-illustration {
  width:72px;
  margin:-.3rem 0
}

.pantry-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.55rem;
  margin:0 0 .8rem
}

.pantry-item {
  display:flex;
  align-items:center;
  gap:.45rem;
  min-width:0;
  min-height:59px;
  padding:.2rem .55rem .2rem .25rem;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fffaf0;
  text-align:left
}

.pantry-item .ingredient-art {
  --ingredient-size:50px
}

.ingredient-info {
  min-width:0;
  flex:1
}

.ingredient-name {
  display:block;
  font-size:.94rem;
  line-height:1.15;
  overflow-wrap:break-word;
  word-break:normal
}

.ingredient-info small {
  display:none
}

.pantry-item.inactive {
  opacity:.68;
  background:#f7efdf
}

.pantry-item.inactive .ingredient-info small {
  display:block;
  margin-top:.2rem;
  font-size:.7rem;
  color:var(--muted)
}

.pantry-edit {
  display:flex;
  align-items:center;
  justify-content:center;
  width:16px;
  flex-shrink:0;
  color:#987344
}

.pantry-edit .icon {
  width:16px;
  height:16px
}

.pantry-item:hover {
  border-color:#be965c;
  background:#fff5e3
}

.pantry-page>.button {
  margin-top:.25rem
}

.pantry-section-label {
  margin:1.2rem 0 .6rem;
  color:var(--muted);
  font-size:.85rem
}

.pantry-note {
  display:flex;
  align-items:flex-start;
  gap:.45rem;
  margin:1.1rem 0 0;
  color:var(--muted);
  font-size:.78rem;
  line-height:1.5
}

.pantry-note .icon {
  width:16px;
  height:16px;
  flex-shrink:0;
  margin-top:.1rem
}

/* La famille, l'accueil et les dialogues */
.family-info {
  max-width:640px
}

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

.family-card {
  display:flex;
  align-items:center;
  gap:.7rem;
  flex-wrap:wrap;
  padding:1rem;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fffaf0
}

.family-card-name {
  flex:1;
  min-width:0
}

.family-card h2 {
  margin:0 0 .25rem;
  font-size:1.4rem
}

.family-card small {
  font-size:.77rem;
  color:var(--muted)
}

.family-card .button {
  width:100%;
  margin-top:.3rem
}

.guest-explanation {
  display:flex;
  align-items:flex-start;
  gap:.8rem;
  padding:1.2rem;
  margin-top:1.2rem;
  border:1px solid #d5ddb7;
  border-radius:14px;
  background:var(--sage)
}

.guest-explanation>.icon {
  flex-shrink:0;
  margin-top:.2rem;
  color:#6b7d44
}

.guest-explanation h2 {
  font-size:1.35rem;
  margin:0 0 .4rem
}

.guest-explanation p {
  margin:0;
  font-size:.9rem;
  line-height:1.55
}

.subtle-footer {
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:.35rem;
  margin:2.1rem 0 0;
  text-align:center;
  font-size:.73rem;
  color:#9e805a
}

.subtle-footer .icon {
  width:12px;
  height:12px;
  color:#b24c37
}

.welcome {
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);
  align-items:center;
  gap:3rem;
  padding:3rem
}

.welcome-copy .brand {
  margin-bottom:2rem
}

.welcome h1 {
  font-size:2.7rem;
  line-height:1.12
}

.welcome-art {
  width:100%;
  aspect-ratio:3;
  background:url(illustrations/meals-watercolor-v2.png) center/contain no-repeat;
  margin:1.4rem 0 0
}

.welcome .card {
  padding:1.6rem;
  background:#fffaf0
}

.login-title {
  font-size:1.7rem
}

.intro-note {
  padding:.75rem .85rem;
  margin:1rem 0;
  border-radius:10px;
  background:var(--butter);
  font-size:.88rem
}

.intro-note p {
  margin:0
}

.setup-page {
  max-width:620px;
  margin:auto;
  padding:2rem
}

.setup-page>.brand {
  margin-bottom:1.4rem
}

.setup-page .card {
  padding:1.5rem
}

.setup-page h1 {
  font-size:2rem
}

.account-header {
  display:flex;
  align-items:center;
  gap:.8rem;
  margin:.5rem 0 1.25rem
}

.account-header strong {
  font:700 1.35rem var(--heading)
}

.account-header p {
  margin:.25rem 0 0
}

.account-actions {
  display:grid;
  gap:.6rem
}

.account-actions>.button {
  width:100%;
  justify-content:flex-start
}

.account-note {
  font-size:.8rem;
  line-height:1.55;
  margin-bottom:0
}

.conflict-actions {
  margin-top:.5rem
}

.field {
  display:flex;
  flex-direction:column;
  gap:.4rem;
  margin:1rem 0;
  font-size:.88rem;
  font-weight:600
}

.field small {
  color:var(--muted);
  font-size:.75rem;
  font-weight:400
}

.field input,.field select {
  width:100%;
  min-width:0;
  min-height:44px;
  padding:.7rem .75rem;
  border:1px solid #cdb388;
  border-radius:9px;
  background:#fffdf6;
  color:var(--ink);
  font:400 1rem/1.2 system-ui,sans-serif
}

.field input:focus,.field select:focus {
  border-color:var(--red);
  outline:2px solid #cd2c2320;
  outline-offset:1px
}

.field input:invalid:not(:placeholder-shown):focus {
  border-color:var(--red)
}

.field-row {
  display:flex;
  align-items:center;
  gap:.55rem;
  margin:1.1rem 0 .3rem;
  font-size:.9rem
}

.field-row input {
  width:19px;
  height:19px;
  accent-color:var(--red)
}

.form-error {
  padding:.7rem .8rem;
  border:1px solid #dba89a;
  border-radius:9px;
  background:#fff0e8;
  color:#9e2e22;
  font-size:.85rem;
  margin:.7rem 0
}

.link-field {
  font-size:.8rem!important;
  word-break:break-all
}

.divider {
  border:0;
  border-top:1px solid var(--line);
  margin:1rem 0
}

.no-bottom {
  margin-bottom:0!important
}

dialog {
  max-width:calc(100% - 28px);
  width:480px;
  max-height:calc(100dvh - 40px);
  padding:0;
  border:1px solid #c7a576;
  border-radius:19px;
  background:var(--paper);
  color:var(--ink);
  box-shadow:0 15px 70px #48281430
}

dialog::backdrop {
  background:#39281860;
  backdrop-filter:blur(2px)
}

.modal-body {
  padding:1.3rem
}

.modal-heading {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:.7rem;
  margin:0 0 1rem
}

.modal-heading h2 {
  font-size:1.55rem;
  margin:.2rem 0 0;
  overflow-wrap:anywhere
}

.modal-heading .icon-button {
  flex-shrink:0
}

.modal-body>p {
  font-size:.9rem;
  line-height:1.55
}

.modal-body .actions {
  margin-top:1rem
}

.modal-body .actions>.button {
  flex:1
}

.modal-body .actions>.full {
  flex-basis:100%
}

#toast {
  position:fixed;
  z-index:100;
  left:50%;
  bottom:100px;
  transform:translateX(-50%);
  width:max-content;
  max-width:calc(100% - 30px);
  padding:.8rem 1rem;
  border:1px solid #bccb9a;
  border-radius:12px;
  background:#edf3da;
  color:#3c522b;
  font-size:.9rem;
  box-shadow:0 5px 25px #51391720
}

#toast[hidden] {
  display:none
}

#toast.error {
  border-color:#d4a08d;
  background:#fff0e3;
  color:#a13725
}

/* Tablettes et petits écrans */
@media (min-width:1100px) {
  .summary-grid .participants {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }

}

@media (max-width:1240px) {
  #app {
    margin:16px;
    min-height:calc(100vh - 32px)
  }

  .kitchen-corner {
    display:none
  }

}

@media (max-width:899px) {
  #app {
    margin:8px 8px 88px;
    min-height:calc(100dvh - 96px);
    border-radius:22px
  }

  .site-header {
    padding:1rem 1rem .75rem;
    border-bottom:0
  }

  .desktop-nav,.profile-label {
    display:none
  }

  .brand {
    font-size:1.7rem;
    gap:.35rem
  }

  .brand>.icon {
    width:30px;
    height:30px
  }

  .profile-button .avatar {
    width:38px;
    height:38px
  }

  .page {
    padding:.8rem 1rem 1.7rem
  }

  .page-heading {
    margin-bottom:1.2rem
  }

  .page-heading h1 {
    font-size:2.1rem
  }

  .lead {
    font-size:.96rem
  }

  .bottom-nav {
    position:fixed;
    z-index:15;
    display:flex;
    align-items:center;
    justify-content:space-around;
    left:8px;
    right:8px;
    bottom:8px;
    min-height:69px;
    padding:.35rem .5rem calc(.35rem + env(safe-area-inset-bottom));
    border:1px solid var(--line);
    border-radius:0 0 20px 20px;
    background:#fff8eaf7;
    box-shadow:0 -4px 20px #79552a08
  }

  .bottom-nav .nav-button {
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:.25rem;
    min-width:70px;
    min-height:52px;
    padding:.25rem .4rem;
    border:0;
    border-radius:9px;
    background:transparent;
    font-size:.73rem;
    color:#80613e
  }

  .bottom-nav .nav-button>.icon {
    width:24px;
    height:24px
  }

  .bottom-nav .nav-button.active {
    background:transparent;
    color:var(--red)
  }

  .home-grid {
    grid-template-columns:minmax(0,1fr);
    gap:1.5rem
  }

  .kitchen-hero {
    padding:0;
    border:0;
    background:transparent
  }

  .kitchen-hero h1 {
    font-size:2.1rem
  }

  .kitchen-hero>.lead {
    margin:.55rem 0 .6rem
  }

  .home-followup {
    padding-top:1.1rem;
    border-top:1px solid var(--line)
  }

  .home-followup>.section-heading:first-child {
    margin-top:0
  }

  .type-card {
    min-height:106px
  }

  .type-card .food-illustration {
    width:125px
  }

  .type-name {
    font-size:1.45rem
  }

  .family-preview {
    justify-content:space-around
  }

  .family-name {
    font-size:.8rem
  }

  .family-preview .avatar {
    width:45px;
    height:45px
  }

  .launch-family {
    padding-top:1.2rem
  }

  .new-meal-grid {
    grid-template-columns:minmax(0,1fr);
    gap:0
  }

  .new-meal-grid .launch-family {
    margin-top:0;
    padding:1.2rem 0 0;
    border:0;
    border-radius:0;
    background:transparent
  }

  .new-meal-grid .type-card {
    min-height:106px
  }

  .new-meal-grid .type-card .food-illustration {
    width:125px
  }

  .summary-grid {
    grid-template-columns:minmax(0,1fr);
    gap:1rem
  }

  .summary-tools {
    position:static
  }

  .summary-tools>.card {
    padding:1rem
  }

  .summary-tools .button {
    min-height:43px
  }

  .participant-card {
    padding-top:.75rem;
    padding-bottom:.6rem
  }

  .meal-stats {
    flex-direction:column;
    align-items:flex-start;
    gap:.6rem
  }

  .response-dots {
    gap:.4rem
  }

  .composer-page {
    padding-bottom:10rem
  }

  .composer-site-header {
    border-bottom:1px solid #e8d5b4
  }

  .header-back {
    max-width:calc(100% - 50px)
  }

  .welcome {
    grid-template-columns:minmax(0,1fr);
    gap:1rem;
    max-width:620px;
    margin:auto;
    padding:1.5rem
  }

  .welcome-copy .brand {
    margin-bottom:1.5rem
  }

  .welcome h1 {
    font-size:2.5rem
  }

  .welcome-art {
    margin:.4rem 0 0
  }

  .welcome .card {
    padding:1.3rem
  }

  .setup-page {
    padding:1.5rem
  }

  .subtle-footer {
    margin-top:1.5rem
  }

  .family-grid {
    gap:.6rem
  }

}

@media (max-width:540px) {
  .page {
    padding:.7rem .9rem 1.5rem
  }

  .site-header {
    padding:.85rem .9rem .65rem
  }

  .brand {
    font-size:1.6rem
  }

  .brand>.icon {
    width:28px;
    height:28px
  }

  .kitchen-hero h1,.page-heading h1 {
    font-size:2rem
  }

  .lead {
    font-size:.93rem;
    line-height:1.5
  }

  .type-options {
    gap:.6rem
  }

  .type-card,.new-meal-grid .type-card {
    min-height:95px;
    gap:.3rem;
    padding:.15rem .65rem .15rem 0
  }

  .type-card .food-illustration,.new-meal-grid .type-card .food-illustration {
    width:112px;
    height:88px;
    aspect-ratio:auto;
    background-size:300% auto
  }

  .type-name {
    font-size:1.25rem
  }

  .type-card .selection-dot {
    width:23px;
    height:23px
  }

  .family-preview {
    justify-content:space-between;
    gap:.15rem
  }

  .family-preview .avatar {
    width:40px;
    height:40px
  }

  .family-name {
    font-size:.75rem
  }

  .family-preview-label {
    font-size:1.13rem
  }

  .launch-family {
    padding-top:1.15rem
  }

  .ingredients-shortcut {
    font-size:.82rem
  }

  .timing-edit {
    font-size:.7rem
  }

  .meal-details summary {
    gap:.4rem
  }

  .meal-detail-fields {
    padding:.1rem .65rem .6rem
  }

  .guest-hint {
    font-size:.71rem
  }

  .section-heading h2 {
    font-size:1.4rem
  }

  .section-heading .text-button {
    font-size:.8rem
  }

  .meal-card .food-illustration {
    width:76px
  }

  .meal-card {
    gap:.35rem;
    padding-right:.6rem
  }

  .meal-card h3 {
    font-size:1.15rem
  }

  .meal-card p {
    font-size:.77rem
  }

  .support-card {
    padding:.8rem;
    font-size:.9rem
  }

  .support-card p {
    font-size:.8rem
  }

  .summary-heading {
    gap:.3rem;
    margin:.25rem 0 .8rem
  }

  .summary-heading h1 {
    font-size:1.95rem
  }

  .summary-heading .food-illustration {
    width:82px
  }

  .meal-date-caption {
    font-size:.75rem
  }

  .summary-heading .lead {
    font-size:.9rem
  }

  .meal-stats {
    padding:.7rem .85rem;
    border-radius:10px
  }

  .meal-stats strong {
    font-size:.94rem
  }

  .response-dot {
    width:16px;
    height:16px
  }

  .participants {
    gap:.55rem
  }

  .participant-card {
    padding:.6rem .65rem .5rem 59px
  }

  .participant-top>.avatar {
    left:10px;
    top:13px;
    width:39px;
    height:39px
  }

  .participant-name h3 {
    font-size:1.17rem
  }

  .composition-summary {
    font-size:.84rem;
    margin-top:.3rem;
    line-height:1.4
  }

  .participant-actions .button {
    font-size:.73rem
  }

  .no-response {
    font-size:.8rem
  }

  .summary-tools {
    margin-top:.2rem
  }

  .summary-tools h2 {
    font-size:1.3rem
  }

  .participant-card .guest-badge {
    font-size:.65rem
  }

  .status-icon {
    right:9px;
    top:14px
  }

  .composer-page {
    padding-bottom:10.4rem
  }

  .composer-heading {
    margin:.2rem 0 1rem
  }

  .composer-heading h1 {
    font-size:2rem
  }

  .composer-heading .caption {
    font-size:.75rem
  }

  .composition-title {
    padding:.6rem .65rem;
    border-left-width:4px
  }

  .composition-title strong {
    font-size:1.2rem
  }

  .composition-title .caption {
    font-size:.75rem
  }

  .ingredients-section {
    margin-top:1.1rem
  }

  .ingredients-section legend {
    font-size:1.17rem;
    margin-bottom:.6rem
  }

  .ingredient-grid,.bread-grid {
    gap:.5rem
  }

  .choice-tile {
    min-height:91px;
    padding:.15rem .25rem .45rem;
    border-radius:9px
  }

  .choice-tile.selected {
    padding:calc(.15rem - 1px) calc(.25rem - 1px) calc(.45rem - 1px)
  }

  .choice-tile .ingredient-art {
    --ingredient-size:68px
  }

  .choice-tile .ingredient-label {
    font-size:.86rem
  }

  .choice-tile .selection-dot {
    width:16px;
    height:16px;
    top:6px;
    right:6px
  }

  .choice-tile .selection-dot .icon {
    width:11px;
    height:11px
  }

  .bread-grid .choice-tile {
    min-height:112px
  }

  .bread-grid .ingredient-art {
    --ingredient-size:94px
  }

  .composer-footer {
    padding:.6rem 1rem calc(.65rem + env(safe-area-inset-bottom))
  }

  .composer-footer-inner {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:.55rem;
    max-width:480px
  }

  .composition-total {
    padding:.55rem .5rem
  }

  .composition-total strong {
    font-size:.88rem
  }

  .composition-total .caption {
    display:none
  }

  .composer-footer .button {
    width:100%;
    min-height:47px
  }

  .header-back {
    font-size:.9rem;
    gap:.35rem
  }

  .header-back>.icon {
    width:19px;
    height:19px
  }

  .pantry-page .page-heading {
    margin-bottom:1rem
  }

  .tabs {
    gap:.3rem;
    margin:1rem 0 .35rem
  }

  .tab {
    font-size:.91rem;
    min-height:38px
  }

  .pantry-title-row h2 {
    font-size:1.1rem
  }

  .pantry-title-row .food-illustration {
    width:64px
  }

  .pantry-grid {
    gap:.5rem;
    margin-bottom:.7rem
  }

  .pantry-item {
    min-height:49px;
    gap:.25rem;
    padding:.2rem .25rem .2rem .1rem;
    border-radius:9px
  }

  .pantry-item .ingredient-art {
    --ingredient-size:42px
  }

  .ingredient-name {
    font-size:.86rem
  }

  .pantry-edit {
    width:14px
  }

  .pantry-edit .icon {
    width:14px;
    height:14px
  }

  .pantry-page>.button {
    min-height:43px;
    font-size:.85rem
  }

  .pantry-note {
    font-size:.72rem
  }

  .family-grid {
    grid-template-columns:minmax(0,1fr)
  }

  .family-card {
    padding:.85rem;
    gap:.7rem
  }

  .family-card .button {
    width:auto;
    margin:0;
    flex-basis:100%
  }

  .family-card .avatar {
    width:42px;
    height:42px
  }

  .family-card h2 {
    font-size:1.3rem
  }

  .guest-explanation {
    padding:.9rem
  }

  .guest-explanation h2 {
    font-size:1.2rem
  }

  .guest-explanation p {
    font-size:.82rem
  }

  .subtle-footer {
    font-size:.64rem;
    gap:.2rem
  }

  .welcome {
    padding:1.2rem .9rem
  }

  .welcome h1 {
    font-size:2.2rem
  }

  .welcome .card {
    padding:1rem
  }

  .welcome .eyebrow {
    font-size:.7rem
  }

  .welcome .brand {
    font-size:1.7rem
  }

  .setup-page {
    padding:1.2rem .9rem
  }

  .setup-page .card {
    padding:1rem
  }

  .setup-page h1 {
    font-size:1.8rem
  }

  .modal-body {
    padding:1rem
  }

  .modal-heading h2 {
    font-size:1.4rem
  }

  .modal-body .actions>.button {
    flex-basis:100%
  }

  .modal-body .button {
    font-size:.87rem
  }

  .field {
    font-size:.85rem
  }

  .field input,.field select {
    font-size:16px
  }

  .modal-body .account-actions>.button {
    font-size:.82rem
  }

  .account-note {
    font-size:.75rem
  }

}

@media (max-width:360px) {
  #app {
    margin:6px 6px 84px;
    border-radius:20px
  }

  .page {
    padding-left:.7rem;
    padding-right:.7rem
  }

  .site-header {
    padding-left:.7rem;
    padding-right:.7rem
  }

  .brand {
    font-size:1.4rem
  }

  .brand>.icon {
    width:26px;
    height:26px
  }

  .profile-button .avatar {
    width:34px;
    height:34px
  }

  .kitchen-hero h1,.page-heading h1,.composer-heading h1 {
    font-size:1.8rem
  }

  .type-card,.new-meal-grid .type-card {
    min-height:88px;
    padding-right:.5rem
  }

  .type-card .food-illustration,.new-meal-grid .type-card .food-illustration {
    width:94px;
    height:74px
  }

  .type-name {
    font-size:1.15rem
  }

  .type-card .selection-dot {
    width:21px;
    height:21px
  }

  .family-preview .avatar {
    width:36px;
    height:36px
  }

  .family-name {
    font-size:.7rem
  }

  .invite-check {
    width:14px;
    height:14px
  }

  .family-preview-label {
    font-size:1.05rem
  }

  .button {
    font-size:.88rem
  }

  .guest-hint {
    font-size:.67rem
  }

  .meal-details summary {
    justify-content:space-between
  }

  .summary-heading h1 {
    font-size:1.75rem
  }

  .summary-heading .food-illustration {
    width:64px
  }

  .meal-stats strong {
    font-size:.86rem
  }

  .stats-dot {
    padding:0 .1rem
  }

  .participant-name h3 {
    font-size:1.08rem
  }

  .composition-summary {
    font-size:.79rem
  }

  .participant-card {
    padding-left:54px
  }

  .participant-top>.avatar {
    width:35px;
    height:35px
  }

  .composer-heading {
    margin-bottom:.8rem
  }

  .composition-title strong,.composition-item:not(.is-open) .composition-title strong {
    font-size:1.1rem
  }

  .choice-tile {
    min-height:84px
  }

  .choice-tile .ingredient-art {
    --ingredient-size:63px
  }

  .choice-tile .ingredient-label {
    font-size:.8rem
  }

  .bread-grid .choice-tile {
    min-height:105px
  }

  .bread-grid .ingredient-art {
    --ingredient-size:89px
  }

  .pantry-title-row h2 {
    font-size:1rem
  }

  .pantry-title-row .food-illustration {
    width:54px
  }

  .tab {
    font-size:.83rem
  }

  .pantry-item {
    display:grid;
    grid-template-columns:minmax(0,1fr) 28px;
    grid-template-rows:33px auto;
    min-height:69px;
    padding:.2rem .5rem .4rem;
    gap:0 .1rem
  }

  .pantry-item .ingredient-art {
    --ingredient-size:33px;
    grid-row:1;
    grid-column:1
  }

  .pantry-edit {
    grid-row:1;
    grid-column:2
  }

  .pantry-item .ingredient-info {
    grid-row:2;
    grid-column:1/-1
  }

  .ingredient-name {
    font-size:.86rem;
    overflow-wrap:normal;
    word-break:normal;
    hyphens:auto
  }

  .pantry-item.inactive .ingredient-info small {
    font-size:.65rem
  }

  .bottom-nav {
    left:6px;
    right:6px;
    bottom:6px
  }

  .bottom-nav .nav-button {
    font-size:.68rem
  }

  .subtle-footer {
    font-size:.61rem
  }

}

@media (prefers-reduced-motion:reduce) {
  * {
    scroll-behavior:auto!important;
    animation:none!important;
    transition:none!important
  }

}

@media print {
  :root {
    color:#222;
    background:white
  }

  body {
    background:white;
    font-size:12px
  }

  body::before,body::after,.site-header,.bottom-nav,.summary-tools,.back-button,.subtle-footer,.participant-actions,.support-card,.saved-feedback,.closed-banner,#toast,.kitchen-corner {
    display:none!important
  }

  #app {
    margin:0;
    border:0;
    border-radius:0;
    max-width:none;
    min-height:0;
    background:white;
    box-shadow:none
  }

  .page {
    padding:0;
    max-width:none
  }

  .summary-heading {
    margin:0 0 1rem
  }

  .summary-heading h1 {
    font-size:24px
  }

  .summary-heading .food-illustration {
    width:70px
  }

  .summary-grid {
    display:block
  }

  .participants {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px
  }

  .participant-card {
    break-inside:avoid;
    background:#f8faef!important;
    border:1px solid #ccc;
    padding-bottom:12px
  }

  .meal-stats {
    background:white;
    border-color:#ccc
  }

  .composition-summary {
    font-size:12px
  }

  .participant-name h3 {
    font-size:17px
  }

  .avatar {
    print-color-adjust:exact
  }

  .response-dots {
    display:none
  }

  .summary-heading .lead {
    font-size:14px
  }

}
