/* «Кто ест» (Э11, задача 2.8), шторки «Для кого готовим», «Поездка или праздник»,
   «Человек», «Питание». Строки K7 (компания, пункт выбора) и K8 (человек). */
.k7, .k8 { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 0; cursor: pointer;
  border-bottom: 1px solid color-mix(in srgb, var(--hint) 18%, transparent); }
.k7 > .grow, .k8 > .grow { flex: 1; min-width: 0; }
.k7[aria-checked="true"] { font-weight: 600; }
.k7[aria-disabled="true"] { cursor: default; }
.k8-s { font-size: 14px; margin-top: 2px; }
.k8 .chev { color: var(--hint); font-size: 20px; }
.radio { width: 20px; flex: none; color: var(--btn); }
.toggle { font-size: 14px; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.err-line { color: var(--danger); min-height: 20px; margin-top: 8px; font-size: 14px; }

[data-screen="people"] h1 { margin: 4px 0 2px; font-size: 20px; }
[data-screen="people"] .p-count { margin-bottom: 8px; }
[data-screen="people"] .entry { min-height: 48px; display: flex; align-items: center; cursor: pointer;
  border-bottom: 1px solid color-mix(in srgb, var(--hint) 18%, transparent); }
[data-screen="people"] .p-empty { padding: 12px 0; }
[data-screen="people"] > .btn.primary { margin-top: 16px; }
[data-screen="people"] > .btn.link { margin-top: 12px; padding: 10px 0; }
[data-screen="people"] .p-note { margin-top: 12px; font-size: 14px; }
.p-add:empty { display: none; }
.p-add { margin-top: 12px; }
.p-add .chips + .chips { margin-top: 8px; }
.p-add .trail { margin: 0 0 8px; }

/* ряд «поле + кнопка» экрана и шторки человека (не общий .row: у того своя рамка) */
.p-line { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.p-line > .grow { flex: 1; min-width: 0; }
.p-line > .btn { width: auto; margin-top: 0; padding: 12px 16px; flex: none; }
.p-field[type=text] { margin-top: 0; }
.sheet .p-field[type=text] { margin-top: 0; }
.p-msg:empty { display: none; }
.p-msg { margin-top: 6px; }
.p-avoid { display: flex; align-items: center; gap: 10px; min-height: 44px;
  border-bottom: 1px solid color-mix(in srgb, var(--hint) 18%, transparent); }
.p-avoid > .grow { flex: 1; min-width: 0; }
.p-avoid > .btn.round { margin-top: 0; }
.p-ages { margin-top: 8px; }
.p-qty .val { min-width: 32px; text-align: center; font-size: 18px; font-weight: 600; }
.p-qty > .btn.round { padding: 0; width: 44px; }
.sheet-wrap[data-sheet="person"] .sec-t { margin-top: 16px; }
.sheet-wrap[data-sheet="person"] .sec-t:first-child { margin-top: 0; }
.sheet-wrap[data-sheet="person"] .btn.p-del { margin-top: 24px; }

/* «Поездка или праздник» */
.sheet-wrap[data-sheet="trip"] .sec-t { margin-top: 16px; }
.tr-row { display: flex; align-items: center; gap: 8px; }
.tr-row > .grow { flex: 1; min-width: 0; }
.tr-icon { font-size: 24px; width: 32px; text-align: center; flex: none; }
.sheet .tr-field[type=text] { margin-top: 0; }
.tr-step { display: inline-flex; align-items: center; gap: 6px; }
.tr-step > .btn.round { margin-top: 0; }
.tr-step .val { min-width: 28px; text-align: center; font-weight: 600; }
.tr-hint { font-size: 13px; margin-top: 4px; }
.sheet-wrap[data-sheet="trip"] .btn.primary { margin-top: 12px; }

/* «Для кого готовим» */
.sheet-wrap[data-sheet="ctx"] .btn.link { display: block; padding: 12px 0; }
.sheet-wrap[data-sheet="ctx"] .btn.ghost { margin-top: 8px; }

/* Ш-Человек: свёрнутые «Бывает дома ›» и «Для точных порций ›», переключатели строкой */
.p-fold { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; margin-top: 12px; padding: 8px 0;
  background: none; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--hint) 18%, transparent);
  color: inherit; font: inherit; text-align: left; cursor: pointer; }
.p-fold > .grow { flex: 1; min-width: 0; }
.p-fold .chev { color: var(--hint); font-size: 20px; transition: transform .15s; }
.p-fold[aria-expanded="true"] .chev { transform: rotate(90deg); }
.p-fold-body { padding: 8px 0 4px; }
.p-fold-body .chips { margin-top: 4px; }
.p-fold-body .chips.col { flex-direction: column; align-items: stretch; }
.p-sub { margin-top: 12px; }
.p-check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 8px; cursor: pointer; }
.p-check input { width: 20px; height: 20px; margin: 0; flex: none; }
.sheet .p-fold-body .p-field { margin-top: 4px; }
.k7.past { cursor: default; color: var(--hint); }
.tr-dates { margin-top: 8px; }
.tr-dates > .tr-field { flex: 1; min-width: 0; }
