.owner-day-head {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px 12px;margin:0 0 18px}
.owner-day-head .subtitle {font-size:.94rem;margin-top:4px}
.owner-day-head .btn.primary {border-radius:99px;min-height:44px;padding:8px 14px;font-weight:600}
.owner-day-head>.periods {grid-column:1/-1;justify-self:start}
.owner-day-head .periods,.page-head:has(+.week-nav) .periods {background:#f1e9e7;border:0;border-radius:99px;padding:3px;gap:2px}
.owner-day-head .periods button,.page-head:has(+.week-nav) .periods button {border-radius:99px;min-height:44px;padding-inline:18px;font-weight:500}
.owner-day-head .periods .chosen,.page-head:has(+.week-nav) .periods .chosen {background:white;color:var(--wine);box-shadow:0 1px 5px #61415119;font-weight:650}
.day-slots {display:grid;gap:13px;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.day-slot {min-width:0;position:relative;background:#fff;border:1px solid #e9e1dd;border-radius:22px;box-shadow:0 3px 14px #5d343c07;scroll-margin-block:68px 85px}
.day-slot:has(.slot-settings[open]) {z-index:2}
.day-slot>header,.day-slot.empty-slot,.choice-context,.choice-search,.planned-tools,.owner-extras {display:flex;align-items:center;gap:10px}
.day-slot>header {padding:3px 6px 0 16px}
.slot-label {min-width:0;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.day-slot h2 {color:var(--ink);font-size:1rem;letter-spacing:-.018em;font-weight:650;line-height:1.22}
.day-slot time {color:var(--muted);font-weight:500;font-size:.9rem;margin-right:auto}
.day-slot .next-meal-time {color:var(--wine)}
.slot-settings {position:relative;flex:none;margin-left:auto}
.slot-settings summary,.slot-add {display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:44px;min-width:44px;border:0;background:transparent;color:var(--wine);cursor:pointer}
.slot-settings summary,.choice-filter-menu summary {list-style:none}
.slot-settings summary::-webkit-details-marker,.choice-filter-menu summary::-webkit-details-marker {display:none}
.slot-settings[open] summary {background:var(--rose);border-radius:50%}
.slot-options {position:absolute;z-index:2;top:calc(100% + 2px);right:1px;min-width:154px;display:grid;gap:1px;padding:5px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 6px 24px #47323924}
.slot-options .link {justify-content:flex-start;min-height:44px;padding:8px;border-radius:10px;font-weight:500}
.slot-options .link:hover,.slot-options .link:focus-visible {background:var(--rose)}
.day-slot.empty-slot {margin:0;padding:3px 12px 3px 16px;justify-content:space-between;background:#fbf8f5;box-shadow:none;border-style:dashed}
.slot-add {font-size:.94rem;font-weight:550;padding:4px}
.planned-dish {padding:2px 14px 6px}
.planned-dish+.planned-dish {padding-top:12px;border-top:1px solid #f0eae8}
.planned-line.dish-link {display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px;width:100%;min-height:60px;overflow-wrap:anywhere}
.planned-copy {min-width:0}
.planned-copy strong {display:block;font-size:1.07rem;font-weight:650;line-height:1.19;letter-spacing:-.018em}
.planned-line.dish-link .planned-cook,.planned-line.dish-link .state {font-weight:400}
.planned-line.dish-link:hover {text-decoration:none}
.planned-line.dish-link:hover strong {text-decoration:underline}
.meal-thumb {display:block;width:74px;height:66px;border-radius:16px;object-fit:cover}
.meal-thumb.no-photo {display:grid}
.featured-dish .planned-line {grid-template-columns:minmax(96px,41%) minmax(0,1fr);gap:15px}
.featured-dish .meal-thumb {width:100%;height:auto;aspect-ratio:1.35;max-height:180px;border-radius:17px}
.featured-dish .planned-copy strong {font-size:clamp(1.16rem,2.2vw,1.35rem)}
.featured-bottom {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1px 6px}
.featured-bottom .planned-cook,.featured-bottom .planned-tools {margin-top:0}
.featured-bottom .planned-tools {margin-left:auto}
.featured-byline {min-width:0;overflow-wrap:anywhere}
.planned-cook {display:flex;align-items:center;gap:5px;margin-top:6px;color:var(--muted);font-size:.875rem;line-height:1.25}
.slot-note {margin:0 14px 11px;padding:7px 10px;color:var(--muted);background:#faf4f2;border-radius:9px;font-size:.875rem;overflow-wrap:anywhere;white-space:pre-line}
.planned-tools {justify-content:flex-end;gap:8px;margin-top:3px}
.planned-tools .link {padding:6px 9px;min-height:44px;font-weight:500;line-height:1.12;font-size:.875rem}
.planned-tools .link:first-child {margin-left:auto}
.planned-tools .link:hover,.slot-add:hover {border-radius:12px;background:var(--rose)}
.owner-note {color:var(--muted);margin-bottom:12px;white-space:pre-line}
.owner-extras {flex-wrap:wrap;margin:16px 0;gap:8px}
.owner-extras .btn {min-height:44px;border-radius:99px;background:#fff;border-color:var(--line);font-weight:500}
.just-planned {outline:2px solid var(--wine);outline-offset:1px}
.catalog-entry {display:flex;flex-direction:column;min-width:0;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:white}
.catalog-entry>.food-card {border:0;border-radius:0;flex:1;width:100%}
.catalog-add {border-top:1px solid var(--line);border-radius:0;min-height:40px;padding:4px 12px;justify-content:flex-start}
dialog:has([data-act="choice.review"]),dialog:has(.choice-search) {width:min(720px,calc(100% - 24px));max-width:calc(100% - 24px)}
.choice-context {color:var(--muted);font-weight:500;font-size:.9rem;margin-bottom:10px}
.choice-types {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;background:#f4eeeb;border-radius:16px;padding:3px;margin-bottom:10px}
.choice-types button {background:transparent;border:0;border-radius:13px;padding:5px 2px;min-height:44px;font:inherit;line-height:1.14}
.choice-types [aria-pressed="true"] {background:white;color:var(--wine);font-weight:650;box-shadow:0 1px 4px #51374115}
.choice-finding {position:relative;margin:4px 0 8px}
.choice-search {min-height:46px;margin-right:90px;border:1px solid #e6deda;border-radius:17px;background:#f8f5f2;padding:0 10px;color:var(--muted)}
.choice-filter-menu summary {position:absolute;right:0;top:0;width:82px;display:flex;align-items:center;justify-content:center;gap:5px;min-height:46px;border-radius:16px;background:var(--rose);color:var(--wine);cursor:pointer;font-size:.94rem}
.choice-filter-menu[open] summary {box-shadow:inset 0 0 0 1px #bba4ae}
.choice-filter-fields {margin:8px 0 0;background:#fbf7f5;border:1px solid #eee6e2;border-radius:16px;padding:10px}
.choice-filter-fields .field {min-width:0;margin:0}
.choice-filter-fields .choice-filters {margin:0;align-items:end}
.choice-filter-fields>.field {margin-top:8px}
.choice-search input[name="choiceQuery"][type="search"]:not([type="checkbox"]) {outline:0;border:0;background:transparent;min-width:0}
.date-shortcuts {display:flex;gap:6px;margin:10px 0}
.date-shortcuts [aria-pressed="true"] {background:var(--wine);color:white;border-color:var(--wine)}
.choice-search:focus-within {outline:2px solid var(--wine);outline-offset:1px}
.choice-filters {display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0 13px}
.choice-results {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 8px}
.choice-card {display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;min-width:0;width:100%;font:inherit;text-align:left;padding:7px 5px;border:0;border-radius:14px;background:white}
.choice-card b {font-weight:600;line-height:1.22}
.choice-card:hover {border-color:#ad8795;background:#fcf8fa}
.choice-card>b,.choice-card span,.choice-card b {min-width:0;overflow-wrap:anywhere}
.choice-card small {display:block;margin-top:3px;color:var(--muted)}
.choice-card>svg {color:var(--wine)}
.choice-image {width:66px;height:58px;border-radius:13px;object-fit:cover}
.choice-image.no-photo {background:#f7f1f1}
.choice-current {padding:0;margin-bottom:8px;color:var(--muted);font-size:.875rem}
.choice-extra {padding:0;margin:6px 0;border-top:1px solid var(--line)}
.choice-extra[open] {padding:0 0 8px}
.choice-extra summary {padding:3px 0;color:var(--wine);cursor:pointer;font-weight:700}
.choice-extra[open] summary {margin-bottom:9px}
.chosen-recipe {display:flex;align-items:center;gap:14px;margin-bottom:12px}
.chosen-recipe h3 {margin:3px 0}
.choice-meta span:not(:empty)+span::before {content:' · '}
.chosen-image {flex:0 0 auto;width:106px;height:82px;object-fit:cover;border-radius:17px}
.chosen-ingredients {line-height:1.45;margin-bottom:10px}
.choice-count {display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:6px;color:var(--muted);font-size:.9375rem}
.choice-count .link {min-height:44px}
.choice-count.count-quiet {position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}
.choice-create {margin:12px 0 0;min-height:44px;font-weight:500}
.choice-results>.empty {grid-column:1/-1}
.choice-preparation {margin:0 0 4px}
.choice-preparation p {margin:0 0 6px;color:var(--muted)}
.choice-preparation summary,.choice-extra summary {display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;cursor:pointer;color:var(--wine);font-weight:550;list-style:none}
.choice-preparation summary::-webkit-details-marker,.choice-extra summary::-webkit-details-marker {display:none}
.choice-preparation summary::after,.choice-extra summary::after {content:'';width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin:-3px 5px 0 0;flex:none}
.choice-preparation[open] summary::after,.choice-extra[open] summary::after {transform:rotate(225deg);margin-top:4px}
.choice-preparation p,.chosen-recipe h3,.recipe-layout h3,.food-info>strong {overflow-wrap:anywhere}
.choice-count>div,.week-day-actions,.catalog-matches {display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.week-day-actions {border-top:1px solid var(--line);padding-top:10px;margin-top:10px}
.catalog-controls {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 12px;margin:12px 0}
.catalog-controls .catalog-search {max-width:540px;width:100%;margin:0;padding:0 12px;border:1px solid #c4acb4;border-radius:7px;background:#fff}
.catalog-controls .catalog-search:focus-within {outline:2px solid var(--wine);outline-offset:1px}
.catalog-controls .catalog-search input#dish-search {width:100%!important;min-width:0;min-height:44px;border:none;outline:0}
.catalog-controls .chips {grid-column:1/-1}
.catalog-matches {justify-content:space-between;color:var(--muted);margin-bottom:8px}
@media(max-width:760px){
 .week-day small {display:block;margin:0;flex:none;font-size:.8125rem;line-height:1.2;color:var(--muted)}
 .week-day.selected small {color:white}
 .week-grid>.panel:first-child .week-day {padding-block:6px}
 .catalog-controls {grid-template-columns:minmax(0,1fr)}
 .catalog-controls .catalog-search,.catalog-controls>select {grid-column:1/-1;width:100%;max-width:none}
 .catalog-controls .chips {padding:2px;scroll-padding-inline:2px}
 .choice-count {gap:4px;flex-wrap:wrap}
 .choice-count>div {gap:4px}
 .choice-count>div .link {padding-inline:3px}
}
@media(min-width:320px) and (max-width:354px){
 .week-grid>.panel:first-child {margin-inline:-14px}
 .week-grid>.panel:first-child .panel-body {gap:0;padding-inline:2px}
}
@media(max-width:760px) {
 .day-slots,.choice-results {grid-template-columns:minmax(0,1fr)}
 .owner-day-head {gap:14px 8px}
 .owner-day-head>.periods {justify-self:stretch}
 .day-slot.empty-slot {padding:4px 12px 4px 16px}
 .planned-dish {padding:2px 14px 3px}
 .planned-dish+.planned-dish {padding-top:10px}
 .meal-thumb {width:70px;height:61px}
 .featured-slot>header {position:absolute;inset:7px 8px auto;z-index:1;padding:0;gap:8px;pointer-events:none}
 .featured-slot .slot-label {gap:5px;align-items:center;max-width:calc(100% - 52px);padding:6px 11px;border-radius:16px;background:#fffaf4f5;color:#322326}
 .featured-slot .slot-label h2,.featured-slot .slot-label time {color:inherit;font-size:.8125rem;line-height:1.15;margin:0}
 .featured-slot .slot-label time::before {content:'·';margin-right:5px}
 .featured-slot .slot-settings {pointer-events:auto}
 .featured-slot .slot-settings summary {border-radius:50%;color:#442a34;background:radial-gradient(circle at center,#fffaf4f5 0 15px,transparent 16px)}
 .featured-slot .slot-settings[open] summary {background:radial-gradient(circle at center,#fff 0 16px,transparent 17px)}
 .featured-slot .featured-dish {padding:0}
 .featured-dish .planned-line.dish-link {display:block;border-radius:21px 21px 0 0}
 .featured-dish .meal-visual {display:block;border-radius:21px 21px 0 0;overflow:hidden}
 .featured-dish .meal-thumb {display:block;width:100%;height:clamp(120px,35vw,145px);max-height:none;border-radius:0;aspect-ratio:auto;object-position:50% 47%}
 .featured-dish .planned-copy {display:block;padding:10px 15px 0}
 .featured-dish .planned-copy strong {font-size:1.2rem;font-weight:600;line-height:1.18}
 .featured-bottom {padding:0 7px 2px 15px}
 .choice-filters select {padding:7px 2px 7px 6px;font-size:.9375rem}
 .choice-types button {font-size:.9375rem}
 .choice-card {min-height:60px}
 .catalog-add {min-height:44px}
 .week-grid .mini-photo {width:60px;height:54px;border-radius:13px}
 .week-grid>.panel:first-child .week-day.selected {border-radius:14px}
}
