@charset "UTF-8";
:root {
  color-scheme: light;
  --forest: #244c3b;
  --forest-deep: #18372b;
  --green-soft: #edf3ee;
  --ink: #23372c;
  --muted: #69756d;
  --canvas: #f6f7f3;
  --line: #e5e9e2;
  --orange: #a65023;
  --orange-soft: #fff2e4;
  --white: #fff;
  --radius: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); line-height: 1.55; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .4; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button, input, select { min-height: 44px; }
button { border: 0; }
:focus-visible { outline: 3px solid #ca8f50; outline-offset: 4px; }
input:focus-visible, select:focus-visible { outline-offset: 1px; }
.icon { display: inline-block; flex-shrink: 0; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 16px; padding: 12px; background: white; border: 2px solid var(--forest); z-index: 20; }
.skip-link:focus { top: 12px; }
.app-shell { display: grid; grid-template-columns: 232px minmax(0,1fr); min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100dvh; padding: 34px 20px 24px; display: flex; flex-direction: column; background: var(--white); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: 1.75rem; font-weight: 700; letter-spacing: -.06em; line-height: 1.2; }
.brand-symbol { display: grid; place-items: center; width: 43px; height: 47px; background: var(--forest); color: #fff; border-radius: 14px 14px 20px 20px; }
.brand-symbol .icon { width: 27px; height: 27px; }
.brand small { display: block; margin-top: 7px; font: 400 .75rem/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--muted); letter-spacing: 0; }
.nav-eyebrow { margin: 58px 13px 16px; color: var(--muted); font-size: .75rem; letter-spacing: .09em; font-weight: 650; }
.main-nav { display: grid; gap: 9px; }
.nav-link { display: flex; align-items: center; gap: 13px; padding: 13px 15px; min-height: 50px; border-radius: 11px; color: var(--muted); font-size: .9375rem; font-weight: 550; }
.nav-link .icon { width: 21px; height: 21px; }
.nav-link:hover { background: var(--canvas); color: var(--forest); }
.nav-link.active { color: white; background: var(--forest); box-shadow: 0 5px 12px #244c3b12; }
.nav-count { margin-left: auto; font-size: .75rem; background: #ffffff25; padding: 1px 7px; border-radius: 5px; }
.sidebar-bottom { margin-top: auto; padding: 24px 9px 0; }
.local-note { display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--muted); }
.local-note .icon { width: 16px; height: 16px; }
.sidebar-bottom p { margin-top: 12px; color: var(--muted); font-size: .75rem; }
.workspace { min-width: 0; }
.topbar { min-height: 84px; padding: 18px 42px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; border-bottom: 1px solid var(--line); }
.topbar-date { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .875rem; }
.topbar-date .icon { width: 17px; height: 17px; }
.preferences { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.preference { position: relative; display: flex; align-items: center; padding: 10px 13px; gap: 11px; border: 1px solid #e0e6dc; background: var(--white); border-radius: 13px; color: var(--forest); box-shadow: 0 2px 4px #18372b04; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.preference:hover { border-color: #9cb49b; box-shadow: 0 3px 10px #18372b09; }
.preference:focus-within { outline: 3px solid #ca8f50; outline-offset: 3px; border-color: var(--forest); }
.preference-logo { width: 38px; height: 38px; display: grid; place-items: center; flex-shrink: 0; border-radius: 11px; }
.language-logo { background: #f4f6f1; }
.language-flag { display: block; box-shadow: 0 1px 3px #22382c16; }
.language-monogram { width: 30px; height: 25px; display: grid; place-items: center; border-radius: 6px; background: #e7edf7; color: #355681; font-size: .8125rem; font-weight: 750; letter-spacing: .035em; }
.currency-logo { background: var(--green-soft); color: var(--forest); font: 600 1.5rem/1 Georgia, serif; }
.preference-content { display: flex; flex-direction: column; align-items: start; gap: 1px; min-width: 0; }
.preference-label { color: var(--muted); font-size: .75rem; line-height: 1.4; }
.preference-value { font-size: .9375rem; font-weight: 650; line-height: 1.4; padding-right: 17px; }
.preference select { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; opacity: 0; border: 0; cursor: pointer; font-size: .9375rem; }
.preference select:focus-visible { outline: 0; }
.preference .preference-chevron { width: 15px; height: 15px; color: #82947f; position: absolute; right: 12px; bottom: 13px; pointer-events: none; }
.preference-language { min-width: 172px; }
.preference-currency { min-width: 125px; }
main { padding: 35px 42px 24px; max-width: 1540px; margin: 0 auto; }
main:focus { outline: 0; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.eyebrow { color: var(--orange); font-size: .75rem; letter-spacing: .1em; font-weight: 700; margin-bottom: 7px; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 2.8vw, 2.75rem); font-weight: 400; letter-spacing: -.045em; line-height: 1.3; color: var(--forest-deep); }
.page-subtitle { color: var(--muted); font-size: .9375rem; margin-top: 9px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 9px; padding: 11px 18px; font-size: .875rem; font-weight: 600; line-height: 1.4; transition: background .15s, transform .15s; text-align: center; }
.button:active:not(:disabled) { transform: translateY(1px); }
.button.primary { background: var(--forest); color: white; box-shadow: 0 3px 5px #18372b08; }
.button.primary:hover { background: var(--forest-deep); }
.button.secondary { background: white; border: 1px solid #d6dfd6; color: var(--forest); }
.button.secondary:hover { background: var(--green-soft); }
.button.soft { background: var(--green-soft); border: 1px solid #dfe8df; color: var(--forest); }
.button.soft:hover { background: #e3eee3; }
.button.danger { background: var(--orange); color: white; }
.button.text-button { background: transparent; color: var(--forest); padding: 6px 0; justify-content: start; }
.icon-button { width: 44px; min-width: 44px; height: 44px; border-radius: 9px; background: transparent; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.icon-button:hover { background: var(--green-soft); color: var(--forest); }
.icon-button.delete-icon { color: #90998f; }
.icon-button.delete-icon:hover { background: var(--orange-soft); color: var(--orange); }
.icon-button .icon { width: 18px; height: 18px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 17px; margin-bottom: 29px; }
.stat-card { padding: 21px 24px; border: 1px solid var(--line); border-radius: 12px; background: white; position: relative; }
.stat-card:first-child { border-top: 3px solid var(--forest); padding-top: 19px; }
.stat-card>span { display: block; color: var(--muted); font-size: .875rem; }
.stat-card>strong { display: block; margin: 7px 0 3px; font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 600; color: var(--forest-deep); font-variant-numeric: tabular-nums; letter-spacing: -.03em; overflow-wrap: anywhere; }
.stat-card>small { color: var(--muted); font-size: .8125rem; }
.stat-warning>strong { color: var(--orange); }
.shopping-layout { display: grid; grid-template-columns: minmax(0,1fr) 316px; gap: 26px; align-items: start; }
.list-panel { min-width: 0; }
.segment { display: flex; gap: 25px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.segment .button { padding: 9px 0 13px; border-radius: 0; color: var(--muted); background: transparent; border-bottom: 2px solid transparent; font-size: .9375rem; gap: 9px; min-height: 48px; }
.segment .button.selected { border-color: var(--forest); color: var(--forest); }
.segment .button span { font-size: .75rem; padding: 1px 7px; border-radius: 5px; background: #e9ece5; min-width: 23px; }
.panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel-heading { padding: 24px 24px 20px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.panel-heading h2 { font-size: 1.0625rem; font-weight: 600; }
.panel-heading p { font-size: .8125rem; color: var(--muted); margin-top: 4px; }
.count-pill { display: inline-flex; align-items: center; min-width: 42px; padding: 4px 9px; background: var(--green-soft); border-radius: 6px; color: var(--forest); font-size: .8125rem; font-variant-numeric: tabular-nums; justify-content: center; }
.shopping-items { padding: 0 21px; }
.item-row { display: grid; grid-template-columns: 25px minmax(0,1fr) auto 38px; gap: 14px; padding: 19px 0; border-top: 1px solid var(--line); align-items: center; }
.check-button { display: inline-flex; width: 24px; height: 24px; min-height: 24px; border: 1.5px solid #bac5b9; border-radius: 7px; background: white; padding: 0; position: relative; align-items: center; justify-content: center; }
.check-button::after { content: ''; position: absolute; inset: -10px; }
.check-button.checked { background: var(--forest); border-color: var(--forest); color: white; }
.check-button .icon { width: 16px; height: 16px; }
.item-info { text-align: left; background: transparent; padding: 0; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.item-info>strong { font-size: 1rem; font-weight: 550; overflow-wrap: anywhere; }
.item-info>span { font-size: .875rem; color: var(--muted); overflow-wrap: anywhere; }
.separator { margin: 0 3px; color: #a4aaa1; }
.is-bought .item-info>strong { text-decoration: line-through; color: var(--muted); }
.item-amount { text-align: right; display: flex; align-items: end; flex-direction: column; gap: 4px; }
.item-amount>strong { font-size: .9375rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.payer-select { width: auto; max-width: 170px; padding: 6px 22px 6px 10px; background: var(--green-soft); border: 1px solid #d8e3d7; border-radius: 7px; color: var(--forest); font-size: .8125rem; cursor: pointer; }
.optimization-status { display: flex; align-items: center; gap: 5px; font-size: .75rem; line-height: 1.45; text-align: left; }
.optimization-status .icon { width: 13px; height: 13px; }
.success { color: var(--forest); }
.warning-text { color: var(--orange); }
.optimization-bar { padding: 13px 22px 20px; }
.optimization-bar .button { width: 100%; }
.finish-bar { border-top: 1px solid var(--line); padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 15px; background: #fbfcf9; }
.finish-bar>span { font-size: .8125rem; color: var(--muted); }
.trip-aside { display: grid; gap: 18px; }
.setup-panel { padding: 22px; }
.setup-panel .panel-heading { padding: 0 0 22px; }
.setup-panel .panel-heading>.icon { color: var(--forest); }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 17px; min-width: 0; }
.field>span, .field>label { display: flex; align-items: center; gap: 7px; font-size: .875rem; font-weight: 550; }
.field>span>.icon { width: 16px; height: 16px; color: var(--muted); }
input, select { padding: 10px 12px; border: 1px solid #dbe1d8; border-radius: 8px; background: #fff; width: 100%; font-size: .9375rem; line-height: 1.4; min-width: 0; }
.unit-entry { display: flex; align-items: stretch; min-width: 0; border: 1px solid #dbe1d8; border-radius: 8px; background: #fff; }
.unit-entry:focus-within { outline: 2px solid var(--forest); outline-offset: 1px; }
.unit-entry input { flex: 1; border: 0; background: transparent; }
.unit-entry input:focus-visible { outline: 0; }
.unit-picker { position: relative; display: grid; place-items: center; flex: 0 0 44px; border-left: 1px solid #dbe1d8; color: var(--forest); }
.unit-picker .icon { width: 17px; height: 17px; pointer-events: none; }
.unit-picker select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
input::placeholder { color: #7b877d; }
input[type=date] { width: 100%; font-size: .875rem; min-width: 0; }
input[aria-invalid=true] { border-color: var(--orange); }
.input-addon { display: flex; align-items: center; background: #fff; border: 1px solid #dbe1d8; border-radius: 8px; overflow: hidden; }
.input-addon input { border: 0; background: transparent; font-variant-numeric: tabular-nums; }
.input-addon>span { padding: 0 12px 0 0; color: var(--muted); font-size: .875rem; }
.field>small { font-size: .8125rem; color: var(--muted); }
.field>small.error-text { color: var(--orange); }
.field>small:empty { display: none; }
.people-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 24px; }
.people-heading h3 { display: flex; align-items: center; gap: 7px; font-size: .875rem; font-weight: 550; }
.people-heading .icon { width: 16px; height: 16px; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper .step { width: 34px; padding: 0; background: var(--green-soft); color: var(--forest); min-height: 40px; }
.stepper>strong { font-size: .9375rem; min-width: 18px; text-align: center; }
.participant-list { display: grid; gap: 9px; margin-top: 10px; max-height: 350px; overflow-y: auto; }
.person-input { display: flex; align-items: center; gap: 9px; min-width: 0; }
.person-input input { font-size: .875rem; }
.avatar { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 27px; height: 27px; border-radius: 50%; background: var(--green-soft); color: var(--forest); font-size: .75rem; font-weight: 600; }
.budget-each { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px; padding-top: 18px; margin-top: 15px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
.budget-each strong { font-size: .875rem; color: var(--forest); }
.progress-card { padding: 22px; border-radius: 13px; background: #eaf0e8; color: var(--forest); }
.progress-card>span { font-size: .875rem; }
.progress-card>strong { display: block; font-size: 2rem; margin-top: 9px; font-weight: 500; letter-spacing: -.025em; }
.progress-card>strong>small { font-size: 1.1875rem; color: #617562; }
progress { width: 100%; height: 6px; border: 0; border-radius: 4px; margin: 8px 0; appearance: none; overflow: hidden; background: #d1dfd0; }
progress::-webkit-progress-bar { background: #d1dfd0; }
progress::-webkit-progress-value { background: var(--forest); border-radius: 4px; }
progress::-moz-progress-bar { background: var(--forest); border-radius: 4px; }
.progress-card p { font-size: .8125rem; color: #5d735e; margin-top: 8px; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px 28px 66px; min-height: 315px; }
.empty-icon { display: grid; place-items: center; background: var(--green-soft); width: 70px; height: 70px; color: var(--forest); border-radius: 22px; transform: rotate(-6deg); margin-bottom: 24px; }
.empty-icon .icon { width: 33px; height: 33px; transform: rotate(6deg); }
.empty-state h3 { font-family: Georgia, "Times New Roman", serif; font-size: 1.625rem; font-weight: 400; letter-spacing: -.02em; }
.empty-state p { color: var(--muted); margin-top: 11px; max-width: 330px; font-size: .9375rem; line-height: 1.7; }
.empty-state .button { margin-top: 25px; }
.page-footer { display: flex; justify-content: space-between; gap: 25px; color: var(--muted); font-size: .75rem; margin-top: 40px; padding-top: 17px; border-top: 1px solid var(--line); }
.page-footer>span:first-child { white-space: nowrap; }
.page-footer>span:last-child { max-width: 500px; text-align: right; }
.mobile-nav { display: none; }
.history-stack { display: grid; gap: 17px; }
.trip-card { padding: 24px; }
.trip-card-top { display: flex; align-items: center; gap: 13px; }
.trip-date-icon { background: var(--green-soft); color: var(--forest); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; }
.trip-card-top h2 { font-size: 1.0625rem; font-weight: 600; }
.trip-card-top>strong { margin-left: auto; font-size: 1.0625rem; white-space: nowrap; }
.status { display: flex; align-items: center; gap: 5px; margin-top: 5px; font-size: .8125rem; }
.status .icon { width: 13px; height: 13px; }
.trip-ingredients { color: var(--muted); font-size: .875rem; margin: 17px 0; overflow-wrap: anywhere; }
.trip-actions { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; gap: 10px; }
.trip-actions>div { display: flex; gap: 8px; }
.dish-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 23px; align-items: start; }
.dish-card { padding: 27px; }
.dish-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.recipe-number { font: italic 1.75rem Georgia, serif; color: #b3c3ad; }
.dish-tools { display: flex; }
.dish-card h2 { font: 400 1.75rem/1.35 Georgia, "Times New Roman", serif; color: var(--forest-deep); letter-spacing: -.03em; overflow-wrap: anywhere; }
.serving-line { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .875rem; margin: 10px 0 22px; }
.serving-line .icon { width: 16px; height: 16px; }
.ingredient-list { display: grid; }
.ingredient-list>div { display: flex; justify-content: space-between; align-items: start; gap: 15px; padding: 11px 0; border-top: 1px solid var(--line); font-size: .9375rem; }
.ingredient-list span:first-child strong { font-weight: 500; }
.ingredient-list span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.ingredient-list small { display: block; font-size: .8125rem; color: var(--muted); margin-top: 3px; }
.dish-estimate { margin-top: 15px; background: var(--green-soft); border-radius: 10px; padding: 16px; display: grid; grid-template-columns: 1fr auto; gap: 5px; font-size: .875rem; color: var(--forest); }
.dish-estimate>strong { font-size: 1rem; }
.dish-estimate>small { grid-column: span 2; font-size: .8125rem; }
.dish-actions { display: flex; flex-direction: column; gap: 9px; margin-top: 20px; }
.calendar-layout { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 27px; align-items: start; }
.calendar-panel { padding: 22px; }
.month-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 5px; }
.month-heading h2 { font: 400 1.375rem/1.4 Georgia, serif; text-transform: capitalize; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 7px; }
.weekday { font-size: .8125rem; color: var(--muted); text-align: center; padding: 6px 0 14px; }
.calendar-day { padding: 10px 0; min-height: 64px; background: transparent; color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 9px; border-radius: 10px; font-size: .9375rem; border: 1px solid transparent; }
.calendar-day:hover { background: var(--green-soft); }
.calendar-day.today { border-color: #c2d5bd; }
.calendar-day.selected { background: var(--forest); color: white; }
.event-dot { width: 5px; height: 5px; border-radius: 50%; display: inline-block; flex-shrink: 0; background: transparent; }
.event-dot.has-event { background: #bf763c; }
.calendar-day.selected .has-event { background: #ffd39a; }
.calendar-legend { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); margin-top: 22px; padding-top: 16px; color: var(--muted); font-size: .8125rem; }
.day-content>.eyebrow { margin-top: 2px; text-transform: uppercase; }
.day-content>h2 { font: 400 1.625rem/1.35 Georgia, serif; margin-bottom: 20px; }
.calendar-trip { padding: 22px; margin-bottom: 17px; }
.calendar-trip .panel-heading { padding: 0 0 15px; }
.calendar-trip h3, .planned-meals h3 { font-size: .9375rem; display: flex; align-items: center; gap: 8px; color: var(--forest); }
.calendar-item { padding: 13px 0; border-top: 1px solid var(--line); }
.calendar-item-top { display: flex; justify-content: space-between; gap: 10px; font-size: .9375rem; }
.calendar-item-top>strong { font-weight: 550; }
.calendar-item p { color: var(--muted); font-size: .8125rem; margin-top: 5px; }
.calendar-status { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 7px; font-size: .8125rem; }
.planned-meals { padding: 22px; margin-bottom: 17px; }
.planned-meals h3 { margin-bottom: 15px; }
.planned-meals>div { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); gap: 10px; }
.planned-meals strong { font-weight: 500; font-size: .9375rem; }
.planned-meals span { font-size: .8125rem; color: var(--muted); }
.prices-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 25px; }
.search-field { display: flex; align-items: center; gap: 8px; padding-left: 14px; background: white; border: 1px solid #dbe1d8; border-radius: 10px; width: 380px; color: var(--muted); }
.search-field input { border: 0; background: transparent; }
.prices-toolbar>span { font-size: .875rem; color: var(--muted); }
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 23px; align-items: start; }
.price-card { padding: 24px; }
.price-name { display: flex; align-items: center; gap: 11px; margin-bottom: 19px; }
.price-name>span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--forest); background: var(--green-soft); flex-shrink: 0; }
.price-name h2 { font-size: 1.125rem; font-weight: 550; overflow-wrap: anywhere; }
.best-prices { background: var(--green-soft); border-radius: 10px; padding: 15px; display: grid; gap: 13px; }
.best-prices>div>span { font-size: .8125rem; color: var(--forest); display: block; margin-bottom: 4px; }
.best-prices strong { font-size: 1.25rem; font-weight: 550; color: var(--forest); font-variant-numeric: tabular-nums; }
.best-prices small { font-size: .8125rem; font-weight: 400; margin-left: 3px; }
.price-history { margin-top: 13px; }
.price-row { display: grid; grid-template-columns: minmax(0,1fr) auto 34px; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.price-row:last-child { border-bottom: 0; padding-bottom: 0; }
.price-row strong { font-size: .9375rem; font-weight: 500; overflow-wrap: anywhere; }
.price-row>div small { display: block; color: var(--muted); font-size: .75rem; margin-top: 4px; }
.price-row>span { font-size: .875rem; white-space: nowrap; }
.price-row>span small { font-size: .75rem; color: var(--muted); }
.price-row .icon-button { min-width: 34px; width: 34px; }
dialog { border: 0; border-radius: 20px; padding: 0; width: min(640px, calc(100% - 36px)); max-height: min(860px, calc(100dvh - 64px)); color: var(--ink); box-shadow: 0 25px 100px #132a2a38; background: var(--canvas); }
dialog::backdrop { background: #1735265c; backdrop-filter: blur(3px); }
.modal-heading { padding: 19px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: white; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1; }
.modal-heading h2 { font: 400 1.625rem/1.4 Georgia, serif; letter-spacing: -.035em; }
.modal-body { padding: 25px; }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 17px 24px; border-top: 1px solid var(--line); background: white; position: sticky; bottom: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 15px; }
.form-help { font-size: .9375rem; color: var(--muted); margin-bottom: 21px; }
.editor-rows { display: grid; gap: 17px; margin-bottom: 17px; }
.editor-row { background: white; padding: 19px; border: 1px solid var(--line); border-radius: 13px; }
.editor-row-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.editor-row-heading h3 { font-size: .9375rem; font-weight: 600; }
.editor-row-heading .icon-button { height: 32px; min-height: 32px; width: 32px; }
.editor-row .field:last-child { margin-bottom: 0; }
.editor-row .form-grid .field { margin-bottom: 12px; }
.draft-summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 0 0; font-size: .875rem; }
.draft-summary strong { color: var(--forest); font-variant-numeric: tabular-nums; }
.money-hint { font-size: .8125rem; color: var(--muted); }
.form-section-title { font-size: 1rem; margin: 2px 0 17px; }
.notice { padding: 15px 17px; border-radius: 9px; font-size: .875rem; margin-bottom: 20px; white-space: pre-line; }
.notice.warning { background: var(--orange-soft); color: #8f401b; border: 1px solid #eac8a4; }
.confirm-icon { display: grid; place-items: center; width: 62px; height: 62px; background: var(--green-soft); color: var(--forest); border-radius: 15px; margin-bottom: 20px; }
.confirm-icon .icon { width: 30px; height: 30px; }
.confirmation-text { font-size: 1rem; line-height: 1.75; }
.split-section { padding: 21px; border: 1px solid var(--line); border-radius: 13px; background: white; margin-bottom: 18px; }
.split-section h3 { font-size: 1rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.split-section .form-help { font-size: .875rem; margin-bottom: 16px; }
.split-person { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.split-person:last-child { margin-bottom: 0; }
.split-person>.person-input { flex: 1; }
.split-person>div { flex-shrink: 0; }
.split-person small { display: block; text-align: right; font-size: .8125rem; color: var(--muted); }
.split-total { background: var(--forest); color: white; border-radius: 13px; padding: 24px; margin-bottom: 18px; }
.split-total>span { font-size: .875rem; opacity: .85; }
.split-total>strong { display: block; font-size: 2.25rem; font-weight: 500; letter-spacing: -.025em; margin: 4px 0 9px; }
.split-total>p { font-size: .875rem; opacity: .9; }
.expense-payer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.expense-payer>div strong { display: block; font-size: .9375rem; font-weight: 500; }
.expense-payer small { display: block; font-size: .8125rem; color: var(--muted); }
.transfer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); font-size: .9375rem; }
.transfer strong { color: var(--forest); }
.completion-section p { font-size: .875rem; color: var(--muted); margin: 0 0 16px; }
.completion-section { margin-bottom: 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 15px); background: var(--forest-deep); color: white; border-radius: 10px; padding: 12px 19px; box-shadow: 0 5px 20px #12291720; font-size: .875rem; max-width: min(520px, calc(100% - 40px)); opacity: 0; pointer-events: none; z-index: 30; transition: opacity .2s, transform .2s; text-align: center; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 1600px) { .shopping-layout { grid-template-columns: minmax(0,1fr) 350px; } }
@media (max-width: 1250px) {
  .app-shell { grid-template-columns: 205px minmax(0,1fr); }
  .sidebar { padding-inline: 14px; }
  main { padding: 30px 28px 24px; }
  .topbar { padding-inline: 28px; }
  .shopping-layout { grid-template-columns: minmax(0,1fr) 282px; gap: 20px; }
  .setup-panel { padding: 18px; }
  .people-heading { flex-wrap: wrap; }
  .item-row { gap: 10px; }
  .item-row>.icon-button { min-width: 34px; width: 34px; }
  .dish-grid, .price-grid { gap: 19px; }
  .price-grid { grid-template-columns: 1fr; }
  .calendar-layout { grid-template-columns: 1fr; }
  .calendar-grid { gap: 9px; }
  .calendar-day { min-height: 73px; }
}
@media (max-width: 1020px) {
  .app-shell { grid-template-columns: 180px minmax(0,1fr); }
  .brand { font-size: 1.5rem; gap: 8px; padding: 0; }
  .brand-symbol { width: 35px; height: 42px; }
  .brand small { font-size: .75rem; max-width: 105px; }
  .nav-link { padding: 12px; gap: 10px; }
  .nav-eyebrow { margin-inline: 10px; font-size: .75rem; }
  .sidebar-bottom { padding-inline: 0; }
  .local-note { align-items: start; }
  .shopping-layout { grid-template-columns: minmax(0,1fr); }
  .trip-aside { grid-template-columns: 1.25fr 1fr; align-items: start; }
  .list-panel { order: 1; }
  .trip-aside { order: 0; }
  .stat-card { padding: 17px 16px; }
  .stat-card:first-child { padding-top: 15px; }
  .stat-card>strong { font-size: 1.4375rem; }
  .dish-grid { grid-template-columns: 1fr; }
  .page-heading { align-items: start; }
  .page-heading>.button { flex-shrink: 0; margin-top: 27px; }
  .page-footer { flex-direction: column; gap: 8px; }
  .page-footer>span:last-child { text-align: left; }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .topbar { min-height: 72px; padding: 17px 21px; background: white; flex-wrap: wrap; gap: 16px; }
  .topbar-date { font: 700 1.375rem Georgia, serif; color: var(--forest); }
  .topbar-date>span { display: none; }
  .topbar-date::after { content: 'MarCook'; letter-spacing: -.045em; }
  .topbar-date .icon { width: 24px; height: 24px; }
  .preferences { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 10px; width: 100%; }
  .preference { min-width: 0; padding: 10px 12px; gap: 10px; background: #fafbf8; }
  .preference-value { font-size: .875rem; }
  .preference .preference-chevron { right: 11px; }
  main { padding: 26px 21px 106px; }
  .page-heading { gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
  h1 { font-size: 2.0625rem; }
  .page-subtitle { font-size: .9375rem; }
  .page-heading>.button { margin-top: 0; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 24px; }
  .stat-card { padding: 14px 12px; border-radius: 10px; }
  .stat-card:first-child { padding-top: 12px; }
  .stat-card>span { font-size: .8125rem; }
  .stat-card>strong { font-size: clamp(.95rem, 4vw, 1.25rem); margin-top: 7px; }
  .stat-card>small { font-size: .75rem; display: block; }
  .stat-card:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; }
  .stat-card:last-child>span { grid-column: 1; grid-row: 1; }
  .stat-card:last-child>strong { grid-column: 2; grid-row: 1 / span 2; min-width: 0; margin: 0; text-align: right; }
  .stat-card:last-child>small { grid-column: 1; grid-row: 2; }
  .shopping-layout { gap: 23px; }
  .trip-aside { grid-template-columns: 1fr; }
  .setup-panel { padding: 20px; }
  .setup-panel .field { margin-bottom: 16px; }
  .progress-card { display: none; }
  .setup-panel .participant-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .people-heading { flex-wrap: nowrap; margin-top: 14px; padding-top: 12px; }
  .budget-each { margin-top: 12px; padding-top: 13px; }
  .segment { gap: 22px; margin-bottom: 17px; }
  .panel-heading { padding: 20px; }
  .shopping-items { padding: 0 17px; }
  .item-row { grid-template-columns: 24px minmax(0,1fr) auto 32px; gap: 8px; padding: 17px 0; }
  .item-info>strong { font-size: .9375rem; }
  .item-info>span { font-size: .8125rem; }
  .item-amount>strong { font-size: .875rem; }
  .item-row>.icon-button { min-width: 32px; width: 32px; }
  .payer-select { max-width: 120px; padding-inline: 7px; font-size: .75rem; }
  .finish-bar { flex-direction: column; align-items: stretch; padding: 17px; gap: 11px; }
  .finish-bar>span { text-align: center; }
  .optimization-bar { padding: 12px 17px 19px; }
  .optimization-bar .button { padding-inline: 10px; }
  .empty-state { padding: 42px 24px 47px; min-height: 300px; }
  .empty-state h3 { font-size: 1.5rem; }
  .page-footer { margin-top: 28px; }
  .mobile-nav { position: fixed; bottom: 0; left: 0; right: 0; background: #fffffff5; backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; z-index: 10; }
  .mobile-nav>a { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 6px; color: var(--muted); font-size: .75rem; border-radius: 8px; min-height: 50px; }
  .mobile-nav>a.active { color: var(--forest); background: var(--green-soft); }
  .mobile-nav .icon { width: 21px; height: 21px; }
  .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
  .trip-card { padding: 19px; }
  .trip-card-top { gap: 9px; }
  .trip-card-top h2 { font-size: .9375rem; }
  .trip-card-top>strong { font-size: .9375rem; }
  .trip-actions .button { padding: 10px 13px; font-size: .8125rem; }
  .trip-actions .button .icon { display: none; }
  .dish-card { padding: 22px; }
  .calendar-panel { padding: 17px; }
  .calendar-grid { gap: 3px; }
  .calendar-day { min-height: 55px; font-size: .875rem; }
  .weekday { font-size: .75rem; }
  .month-heading { margin-bottom: 15px; }
  .day-content>.eyebrow { margin-top: 5px; }
  .prices-toolbar { flex-direction: column; align-items: stretch; gap: 12px; }
  .search-field { width: 100%; }
  .price-card { padding: 20px; }
  .price-row { gap: 4px; }
  dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 15px; }
  .modal-heading { padding: 14px 17px; }
  .modal-heading h2 { font-size: 1.5rem; }
  .modal-body { padding: 20px 17px; }
  .modal-footer { padding: 15px 17px; }
  .editor-row { padding: 16px; }
  .form-grid { gap: 0 10px; }
  .form-grid .field>span { font-size: .8125rem; }
  .split-section { padding: 17px; }
  .split-person { flex-direction: column; align-items: stretch; }
  .split-person>div { display: flex; gap: 15px; padding-left: 36px; }
}
@media (max-width: 380px) {
  main { padding-inline: 15px; }
  .topbar { padding-inline: 15px; }
  .topbar-date { font-size: 1.125rem; gap: 5px; }
  .preferences { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 8px; }
  .preference { padding-inline: 8px; gap: 6px; }
  .preference-logo { width: 30px; height: 34px; }
  .preference-value { padding-right: 12px; font-size: .8125rem; white-space: nowrap; }
  .preference .preference-chevron { right: 7px; width: 12px; }
  .stat-card { padding-inline: 9px; }
  .stat-card>strong { font-size: .95rem; }
  .stat-card>span { font-size: .75rem; }
  .item-row { grid-template-columns: 23px minmax(0,1fr) 30px; }
  .item-amount { grid-column: 2; align-items: start; flex-direction: row; align-items: center; gap: 8px; }
  .item-row>.icon-button { grid-column: 3; grid-row: 1 / span 2; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; } }
