:root {
  color-scheme: light;
  --ink: #24312a;
  --muted: #718078;
  --green: #527760;
  --green-dark: #3c6149;
  --pale: #e8efe9;
  --line: #e6ebe6;
  --paper: #fff;
  --bg: #f6f8f4;
  --rose: #a94e46;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--bg); min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.topbar { height: 68px; padding: 0 max(24px, calc((100vw - 1060px)/2)); display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.88); border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); font-weight: 750; letter-spacing: -.5px; display: flex; gap: 10px; align-items: center; text-decoration: none; font-size: 18px; }
.brand-mark { width: 31px; height: 31px; display: grid; place-items: center; color: white; border-radius: 10px; background: var(--green); font-size: 21px; font-weight: 800; }
.account-button { border: 1px solid var(--line); border-radius: 12px; padding: 8px 15px; background: white; color: var(--ink); font-weight: 650; }
.page { width: min(100% - 40px, 850px); margin: 42px auto 80px; }
.welcome { display: flex; justify-content: space-between; gap: 28px; align-items: start; margin-bottom: 32px; }
.eyebrow { color: var(--green); font-size: 11px; letter-spacing: 1.4px; font-weight: 800; margin: 0 0 9px; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(27px, 5vw, 38px); letter-spacing: -1.2px; line-height: 1.16; max-width: 590px; margin-bottom: 9px; }
.subheading { color: var(--muted); margin-bottom: 0; }
.mode-banner { flex: 0 0 auto; max-width: 255px; border: 1px solid #e5e9d7; background: #fafbee; color: #5e644a; border-radius: 12px; padding: 11px 13px; font-size: 12px; line-height: 1.45; }
.mode-banner.online { background: #eef7ef; border-color: #d8e8d9; color: #406348; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 27px; overflow-x: auto; }
.tab { border: 0; background: transparent; color: var(--muted); padding: 12px 16px 14px; font-weight: 650; white-space: nowrap; border-bottom: 2px solid transparent; }
.tab.active { color: var(--green-dark); border-color: var(--green); }
.nav-icon { display: none; }
.home-section-heading { margin: 32px 0 14px; }
.home-section-heading h2 { margin: 0; font-size: 22px; letter-spacing: -.55px; }
.home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.home-card { position: relative; display: flex; align-items: center; gap: 14px; min-width: 0; min-height: 125px; padding: 18px; text-align: left; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 3px 14px rgba(27,45,32,.035); transition: transform .16s ease, box-shadow .16s ease; }
.home-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(27,45,32,.08); }
.home-card:active { transform: scale(.985); }
.home-card-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 15px; }
.home-card-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.calendar-icon { color: #55765e; background: #edf3ec; }
.dinner-icon { color: #ad7950; background: #faf0e5; }
.shopping-icon { color: #5b7890; background: #edf3f7; }
.chores-icon { color: #8771a1; background: #f2eef7; }
.home-card-copy { display: grid; gap: 5px; min-width: 0; }
.home-card-label { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 1.15px; }
.home-card-copy strong { overflow-wrap: anywhere; font-size: 15px; line-height: 1.3; }
.home-card-detail { overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.home-card-chevron { margin-left: auto; color: #a3ada5; font-size: 25px; font-weight: 400; }
.home-quick-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.quick-action { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 13px; border: 1px solid #dfe8df; border-radius: 22px; background: #edf3ec; color: var(--green-dark); font-size: 13px; font-weight: 700; }
.quick-action span { font-size: 18px; line-height: 1; }
.home-footnote { margin: 30px 0 0; color: var(--muted); text-align: center; font-size: 12px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.section-heading h2, .dialog h2 { font-size: 23px; letter-spacing: -.5px; margin: 0; }
.section-heading .eyebrow, .dialog .eyebrow { margin-bottom: 5px; }
.secondary-heading { margin-top: 33px; }
.primary-button, .secondary-button { border: 0; border-radius: 11px; padding: 11px 15px; font-weight: 700; }
.primary-button { background: var(--green); color: white; }
.primary-button:hover { background: var(--green-dark); }
.secondary-button { background: var(--pale); color: var(--green-dark); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: 0 2px 10px rgba(27,45,32,.025); }
.item-list { display: flex; flex-direction: column; }
.item-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.item-row:last-child { border-bottom: 0; }
.item-main { min-width: 0; }
.item-title { font-weight: 650; overflow-wrap: anywhere; margin: 0 0 3px; }
.item-meta { font-size: 12px; color: var(--muted); margin: 0; }
.empty-state { color: var(--muted); text-align: center; padding: 30px 20px; }
.icon-button, .remove-button { border: 0; background: transparent; color: var(--muted); padding: 6px; font-size: 17px; }
.icon-button:hover, .remove-button:hover { color: var(--rose); }
.inline-form { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
input, select, textarea { width: 100%; border: 1px solid #dce4dd; background: white; color: var(--ink); border-radius: 10px; padding: 11px 12px; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 3px solid #e2ede3; border-color: #85a38b; }
textarea { resize: vertical; }
label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 650; color: #435149; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; background: #f2f5f1; border-radius: 20px; padding: 7px 8px 7px 12px; color: #46584a; font-size: 13px; }
.chip button { border: 0; background: none; color: #7d8c80; padding: 0 3px; font-size: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 5px; }
.form-actions { display: flex; align-items: center; gap: 14px; }
.full-width { grid-column: 1 / -1; }
.text-button { color: var(--green-dark); border: 0; background: transparent; padding: 8px 0; font-weight: 650; }
.hidden { display: none !important; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.shopping-card { padding: 18px 20px; }
.shopping-card-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.shopping-actions { display: flex; align-items: center; gap: 4px; }
.shopping-card-heading h3 { font-size: 18px; margin: 0 0 3px; }
.shopping-card-heading .item-meta { margin-bottom: 12px; }
.quick-item-form { display: flex; gap: 10px; margin: 0 0 16px; padding: 12px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.quick-item-form input { min-height: 48px; }
.quick-item-form button { min-width: 100px; }
.small-button { border: 0; border-radius: 9px; background: var(--pale); color: var(--green-dark); padding: 8px 12px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.shopping-item { display: flex; align-items: center; gap: 9px; min-height: 52px; padding: 6px 2px; border-bottom: 1px solid #f0f2ef; font-size: 15px; }
.shopping-item > label { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; min-height: 44px; cursor: pointer; }
.shopping-item input { accent-color: var(--green); width: 22px; height: 22px; flex: 0 0 22px; }
.shopping-item-text { display: flex; flex-direction: column; gap: 2px; }
.shopping-item-text .item-meta { font-size: 11px; font-weight: 500; }
.shopping-item.done span { color: #89948b; text-decoration: line-through; }
.checked-toggle { width: 100%; border: 0; background: #f7f9f6; color: var(--muted); border-radius: 9px; margin-top: 6px; padding: 12px; text-align: left; font-size: 13px; }
.checked-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.dinner-today-card { margin-bottom: 28px; }
.dinner-card { padding: 14px 0; border-bottom: 1px solid var(--line); }
.dinner-card:last-child { border-bottom: 0; }
.dinner-card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.dinner-card-heading h3 { margin: 0; font-size: 17px; }
.dinner-actions { display: flex; align-items: center; gap: 4px; }
.ingredient-list { margin: 10px 0 0; padding-left: 20px; color: #59685e; font-size: 13px; line-height: 1.7; }
.week-navigation { display: flex; align-items: center; gap: 6px; }
.week-list { display: grid; gap: 10px; }
.week-day { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.week-day-title { color: var(--green-dark); font-size: 14px; text-transform: capitalize; margin: 0 0 6px; }
.week-day > .item-meta { margin: 0; }
.dinner-shopping-form { display: grid; gap: 14px; }
.ingredient-pick-list { display: grid; gap: 4px; }
.ingredient-pick { display: flex; flex-direction: row; align-items: center; min-height: 46px; gap: 11px; padding: 5px 8px; border-bottom: 1px solid var(--line); cursor: pointer; }
.ingredient-pick input { width: 20px; height: 20px; accent-color: var(--green); }
.reminder-area { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.reminder-area summary { cursor: pointer; color: var(--green-dark); font-size: 13px; font-weight: 700; }
.reminder-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin: 11px 0; align-items: end; }
.reminder-form label { font-size: 11px; }
.reminder-form input, .reminder-form select { padding: 9px; font-size: 13px; }
.reminder-note { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 8px 0 0; }
.reminder-row { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 12px; border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 8px; }
.check-row { display: flex; align-items: center; gap: 11px; }
.check-row input { width: 18px; height: 18px; accent-color: var(--green); }
.check-row.done .item-title { text-decoration: line-through; color: #89948b; }
.dialog { width: min(100% - 30px, 460px); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: 0 22px 80px rgba(24,40,28,.2); color: var(--ink); }
.dialog:has(#account-content), .dialog:has(#dinner-shopping-content) { max-height: min(88vh, 760px); overflow-y: auto; }
.dialog::backdrop { background: rgba(25,39,29,.34); backdrop-filter: blur(2px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: start; margin-bottom: 20px; }
.dialog-actions { display: flex; justify-content: end; gap: 17px; align-items: center; margin-top: 20px; }
.account-copy { color: var(--muted); line-height: 1.5; font-size: 14px; }
.remember-choice { flex-direction: row; align-items: center; gap: 9px; font-weight: 500; }
.remember-choice input { width: 18px; height: 18px; accent-color: var(--green); }
.account-actions { display: grid; gap: 10px; margin: 16px 0; }
.provider-button { width: 100%; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--ink); padding: 12px; font-weight: 700; }
.provider-button:disabled { opacity: .45; cursor: not-allowed; }
.push-button { width: 100%; text-align: left; }
.toast { position: fixed; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; transform: translate(-50%, 16px); background: #26352b; color: white; border-radius: 11px; padding: 12px 17px; font-size: 13px; opacity: 0; pointer-events: none; transition: .2s; max-width: calc(100% - 30px); z-index: 5; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.profile-section-title { margin: 24px 0 12px; font-size: 17px; letter-spacing: -.3px; }
.profile-reminder-form { display: grid; gap: 14px; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: #fbfcfa; }
.profile-switch { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
.profile-switch span { display: grid; gap: 4px; }
.profile-switch strong { font-size: 14px; }
.profile-switch small { color: var(--muted); font-size: 12px; font-weight: 400; }
.profile-switch input { appearance: none; position: relative; width: 48px; height: 29px; flex: 0 0 48px; margin: 0; padding: 0; border: 0; border-radius: 99px; background: #d9dfda; transition: background .18s ease; }
.profile-switch input::before { position: absolute; top: 3px; left: 3px; width: 23px; height: 23px; border-radius: 50%; background: white; box-shadow: 0 1px 3px #0003; content: ""; transition: transform .18s ease; }
.profile-switch input:checked { background: #34c759; }
.profile-switch input:checked::before { transform: translateX(19px); }
.install-screen { display: none; }
body.install-required { min-height: 100dvh; background: #f6f8f4; }
body.install-required .topbar, body.install-required .page, body.install-required dialog, body.install-required .toast { display: none !important; }
body.install-required .install-screen:not(.hidden) { display: flex; flex-direction: column; min-height: 100dvh; justify-content: center; padding: max(32px, env(safe-area-inset-top)) 27px max(32px, env(safe-area-inset-bottom)); }
.install-logo { width: 84px; height: 84px; overflow: hidden; margin-bottom: 28px; border-radius: 23px; box-shadow: 0 8px 25px #26352b24; }
.install-logo img { display: block; width: 100%; height: 100%; }
.install-screen .eyebrow { margin-bottom: 10px; }
.install-screen h1 { max-width: 350px; margin-bottom: 11px; font-size: 34px; letter-spacing: -1.2px; }
.install-copy { max-width: 430px; margin-bottom: 25px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.install-step { display: flex; align-items: flex-start; gap: 13px; margin: 0 0 15px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.install-step > span:first-child { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 27px; border-radius: 50%; background: #e8efe9; color: var(--green-dark); font-weight: 800; }
.install-step p { margin: 2px 0 0; color: var(--ink); font-size: 14px; line-height: 1.5; }
.install-hint { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
@media (max-width: 900px) {
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .topbar { position: sticky; top: 0; z-index: 8; height: 58px; padding: 0 18px; background: rgba(246,248,244,.92); border-bottom-color: transparent; backdrop-filter: blur(16px); }
  .brand { font-size: 17px; }
  .brand-mark { width: 30px; height: 30px; }
  .account-button { padding: 8px 12px; border-radius: 20px; background: #fff; }
  .page { width: min(100% - 30px, 850px); margin-top: 23px; }
  .welcome { display: block; margin-bottom: 0; }
  .welcome h1 { font-size: 31px; letter-spacing: -1px; margin-bottom: 6px; }
  .welcome .subheading { font-size: 14px; }
  .mode-banner { max-width: none; margin-top: 15px; padding: 9px 11px; }
  .tabs { position: fixed; inset: auto 0 0; z-index: 10; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 0; padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); border: 0; border-top: 1px solid rgba(225,232,225,.9); background: rgba(255,255,255,.94); box-shadow: 0 -5px 22px rgba(28,45,32,.06); backdrop-filter: blur(18px); }
  .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 52px; padding: 3px 1px; border: 0; border-radius: 13px; color: #78847c; font-size: 10px; font-weight: 650; }
  .tab.active { color: var(--green-dark); background: #edf3ec; }
  .nav-icon { display: block; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .home-section-heading { margin-top: 27px; }
  .home-section-heading h2 { font-size: 21px; }
  .home-grid { gap: 10px; }
  .home-card { min-height: 127px; flex-direction: column; align-items: flex-start; gap: 9px; padding: 13px; border-radius: 17px; }
  .home-card-icon { width: 36px; height: 36px; flex-basis: 36px; border-radius: 12px; }
  .home-card-icon svg { width: 20px; height: 20px; }
  .home-card-copy { width: 100%; gap: 3px; }
  .home-card-copy strong { font-size: 14px; }
  .home-card-detail { max-width: 100%; font-size: 11px; }
  .home-card-chevron { position: absolute; top: 16px; right: 12px; font-size: 21px; }
  .home-quick-actions { gap: 7px; margin-top: 17px; }
  .quick-action { min-height: 40px; padding: 7px 10px; font-size: 12px; }
  .home-footnote { margin-top: 23px; }
  .card { padding: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .reminder-form { grid-template-columns: 1fr; }
  .section-heading h2 { font-size: 21px; }
  .quick-item-form { padding: 9px; gap: 7px; }
  .quick-item-form button { min-width: 82px; padding-left: 10px; padding-right: 10px; }
  .dinner-card-heading { display: block; }
  .dinner-actions { margin-top: 10px; justify-content: space-between; }
  .week-navigation .small-button { padding: 8px; }
  .full-width { grid-column: auto; }
  input, select, textarea { font-size: 16px; }
  .dialog { position: fixed; inset: auto 0 0; width: 100%; max-width: none; max-height: min(90dvh, 800px); margin: 0; padding: 24px 20px calc(22px + env(safe-area-inset-bottom)); border: 0; border-radius: 22px 22px 0 0; }
  .toast { bottom: calc(78px + env(safe-area-inset-bottom)); }
}
@media (max-width: 900px) {
  body { background: #f2f2f7; color: #1c1c1e; }
  .topbar { top: 0; height: calc(55px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 18px 0; background: rgba(242,242,247,.9); }
  .brand { color: #1c1c1e; font-weight: 760; letter-spacing: -.6px; }
  .brand-mark { background: #54765e; }
  .account-button { border: 0; color: #527760; background: #e5ebe5; font-weight: 700; }
  .page { margin-top: 19px; }
  .welcome .eyebrow, .home-card-label { letter-spacing: 1px; }
  .welcome h1 { color: #1c1c1e; }
  .mode-banner { border-color: #e7dfbd; background: #fff9e8; color: #6f6031; }
  .home-section-heading h2, .section-heading h2 { color: #1c1c1e; }
  .home-card, .card, .week-day { border-color: rgba(60,60,67,.09); background: #fff; box-shadow: 0 2px 8px rgba(30,30,45,.035); }
  .home-card { border-radius: 17px; }
  .primary-button { background: #527760; }
  .secondary-button, .small-button { background: #edf3ec; color: #3c6149; }
  .quick-item-form { border-color: rgba(60,60,67,.1); border-radius: 17px; background: white; box-shadow: 0 2px 8px rgba(30,30,45,.035); }
  .tabs { padding-top: 7px; border-top-color: rgba(60,60,67,.16); background: rgba(250,250,252,.94); }
  .tab.active { color: #3c6149; background: #e9f0e9; }
  .dialog { color: #1c1c1e; background: #f8f8fa; }
  .profile-reminder-form { border-color: rgba(60,60,67,.1); background: white; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
.auth-screen { display: none; }
body.auth-required { min-height: 100dvh; background: #e9ebea; }
body.auth-required .auth-screen {
  display: flex;
  flex-direction: column;
  width: min(100%, 460px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(28px, calc(env(safe-area-inset-top) + 18px)) 25px max(28px, env(safe-area-inset-bottom));
  background: #fff;
}
.auth-brand { display: flex; align-items: center; gap: 10px; color: #1c1c1e; font-size: 19px; font-weight: 760; letter-spacing: -.5px; }
.auth-brand .brand-mark { width: 42px; height: 42px; border-radius: 14px; font-size: 26px; }
.auth-intro { margin: 52px 0 24px; }
.auth-intro .eyebrow { margin-bottom: 11px; font-size: 10px; }
.auth-intro h1 { margin: 0 0 10px; color: #1c1c1e; font-size: 32px; letter-spacing: -1.1px; }
.auth-intro > p:last-child { max-width: 310px; margin: 0; color: #737980; font-size: 15px; line-height: 1.5; }
.auth-service-status:not(:empty) { margin: 0 0 16px; padding: 12px 14px; border: 1px solid #efd7d4; border-radius: 13px; background: #fff5f4; color: #9a4038; font-size: 13px; line-height: 1.45; }
.auth-content { width: 100%; }
.auth-copy { margin-bottom: 16px; font-size: 13px; }
.auth-mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 21px; padding: 4px; border-radius: 13px; background: #f1f2f4; }
.auth-mode { min-height: 42px; border: 0; border-radius: 10px; background: transparent; color: #70777e; font-size: 14px; font-weight: 700; }
.auth-mode.active { background: #fff; color: #2c4734; box-shadow: 0 1px 4px #00000012; }
.auth-panel h3 { margin: 0 0 15px; color: #1c1c1e; font-size: 20px; letter-spacing: -.3px; }
.auth-form { display: grid; gap: 15px; }
.auth-form label { gap: 7px; color: #41484e; font-size: 13px; font-weight: 650; }
.auth-form input { min-height: 52px; padding: 13px 14px; border-color: #d9dde1; border-radius: 13px; background: #fbfbfc; font-size: 16px; }
.auth-form input:focus { outline-color: #e4eee5; border-color: #7f9c85; }
.auth-form .remember-choice { flex-direction: row; align-items: center; gap: 10px; margin: 1px 0 2px; color: #555d63; font-size: 13px; font-weight: 500; }
.auth-form .remember-choice input { width: 20px; min-height: 20px; height: 20px; accent-color: #527760; }
.auth-submit { width: 100%; min-height: 53px; border-radius: 14px; font-size: 16px; }
.auth-help { margin: 19px 0 0; color: #737980; font-size: 12px; line-height: 1.55; }
.auth-privacy { margin: auto 0 0; padding-top: 35px; color: #888f95; text-align: center; font-size: 11px; line-height: 1.45; }
.app-shell { position: relative; width: min(100%, 460px); min-height: 100dvh; margin: 0 auto; padding-bottom: calc(78px + env(safe-area-inset-bottom)); background: #f2f2f7; box-shadow: 0 0 38px #1d2a2314; }
.app-shell .topbar { position: sticky; top: 0; z-index: 8; height: calc(55px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 18px 0; background: #f2f2f7ed; border-bottom-color: transparent; backdrop-filter: blur(16px); }
.app-shell .brand { color: #1c1c1e; font-size: 17px; font-weight: 760; letter-spacing: -.6px; }
.app-shell .brand-mark { background: #54765e; }
.app-shell .account-button { border: 0; color: #527760; background: #e5ebe5; font-weight: 700; }
.app-shell .page { width: calc(100% - 30px); max-width: 430px; margin: 19px auto 0; }
.app-shell .welcome { display: block; margin-bottom: 0; }
.app-shell .welcome h1 { color: #1c1c1e; font-size: 31px; letter-spacing: -1px; }
.app-shell .welcome .subheading { font-size: 14px; }
.app-shell .mode-banner { max-width: none; margin-top: 15px; padding: 9px 11px; }
.app-shell .home-section-heading { margin-top: 27px; }
.app-shell .home-section-heading h2, .app-shell .section-heading h2 { color: #1c1c1e; }
.app-shell .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.app-shell .home-card { min-height: 127px; flex-direction: column; align-items: flex-start; gap: 9px; padding: 13px; border-color: #3c3c430f; border-radius: 17px; background: #fff; box-shadow: 0 2px 8px #1e1e2d09; }
.app-shell .home-card-icon { width: 36px; height: 36px; flex-basis: 36px; border-radius: 12px; }
.app-shell .home-card-icon svg { width: 20px; height: 20px; }
.app-shell .home-card-copy { width: 100%; gap: 3px; }
.app-shell .home-card-copy strong { font-size: 14px; }
.app-shell .home-card-detail { max-width: 100%; font-size: 11px; }
.app-shell .home-card-chevron { position: absolute; top: 16px; right: 12px; font-size: 21px; }
.app-shell .home-quick-actions { gap: 7px; margin-top: 17px; }
.app-shell .quick-action { min-height: 40px; padding: 7px 10px; font-size: 12px; }
.app-shell .home-footnote { margin-top: 23px; }
.app-shell .card, .app-shell .week-day { border-color: #3c3c430f; background: #fff; box-shadow: 0 2px 8px #1e1e2d09; }
.app-shell .primary-button { background: #527760; }
.app-shell .secondary-button, .app-shell .small-button { background: #edf3ec; color: #3c6149; }
.app-shell .tabs { position: fixed; inset: auto auto 0 50%; z-index: 10; display: grid; width: min(100%, 460px); grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 0; padding: 7px 6px calc(8px + env(safe-area-inset-bottom)); transform: translateX(-50%); border: 0; border-top: 1px solid #3c3c4329; background: #fafafcf0; box-shadow: 0 -5px 22px #1c2d200f; backdrop-filter: blur(18px); }
.app-shell .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 52px; padding: 3px 1px; border: 0; border-radius: 13px; color: #78847c; font-size: 10px; font-weight: 650; }
.app-shell .tab.active { color: #3c6149; background: #e9f0e9; }
.app-shell .nav-icon { display: block; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.app-shell .dialog { position: fixed; inset: auto auto 0 50%; width: min(100%, 460px); max-width: none; max-height: min(90dvh, 800px); margin: 0; padding: 24px 20px calc(22px + env(safe-area-inset-bottom)); transform: translateX(-50%); border: 0; border-radius: 22px 22px 0 0; background: #f8f8fa; color: #1c1c1e; }
.app-shell .toast { bottom: calc(78px + env(safe-area-inset-bottom)); }
.app-shell .page, .app-shell .view, .app-shell .card, .app-shell .week-day { min-width: 0; }
.app-shell .section-heading { align-items: center; gap: 12px; min-width: 0; }
.app-shell .section-heading > div:first-child { min-width: 0; }
.app-shell .section-heading > .primary-button { flex: 0 0 auto; max-width: 48%; white-space: normal; }
.app-shell .form-grid > *, .app-shell .form-grid label, .app-shell .form-actions { min-width: 0; }
.app-shell .inline-form { min-width: 0; }
.app-shell .inline-form > label { flex: 1; min-width: 0; }
.app-shell .inline-form > button { flex: 0 0 auto; }
.app-shell .quick-item-form { align-items: center; min-width: 0; }
.app-shell .quick-item-form input { flex: 1 1 auto; min-width: 0; }
.app-shell .quick-item-form button { flex: 0 0 auto; }
.app-shell .shopping-card { padding: 16px 14px; }
.app-shell .shopping-card-heading { align-items: center; }
.app-shell .shopping-item > label { overflow-wrap: anywhere; }
.app-shell .shopping-item-text { min-width: 0; overflow-wrap: anywhere; }
.app-shell .week-day { padding: 13px 14px; }
.app-shell .week-day-title { padding-bottom: 8px; border-bottom: 1px solid #3c3c430f; }
.app-shell .dinner-card { padding: 13px 0; }
.app-shell .dinner-card-heading { min-width: 0; align-items: center; }
.app-shell .dinner-card-heading > div:first-child { min-width: 0; }
.app-shell .dinner-card-heading h3 { overflow-wrap: anywhere; color: #1c1c1e; font-size: 16px; line-height: 1.35; }
.app-shell .dinner-actions { flex: 0 0 auto; gap: 5px; }
.app-shell .dinner-actions .small-button { padding: 8px 10px; font-size: 12px; }
.app-shell .ingredient-list { display: grid; gap: 3px; margin-top: 9px; color: #636a70; }
.app-shell .chore-form { margin-bottom: 5px; padding-bottom: 14px; border-bottom: 1px solid #3c3c430f; }
.app-shell .chore-form input { min-height: 48px; border-radius: 13px; background: #f8f8fa; }
.app-shell .chore-form button { min-height: 46px; padding: 10px 14px; border-radius: 13px; white-space: nowrap; }
.app-shell .chore-row { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 5px 0; border-bottom: 1px solid #3c3c430f; }
.app-shell .chore-row:last-child { border-bottom: 0; }
.app-shell .chore-row .check-row { flex: 1; min-width: 0; min-height: 44px; cursor: pointer; }
.app-shell .chore-row .check-row input { flex: 0 0 22px; width: 22px; height: 22px; margin: 0; accent-color: #527760; }
.app-shell .chore-row .item-title { margin: 0; overflow-wrap: anywhere; }
.app-shell .chore-completed .item-title { color: #8a9094; text-decoration: line-through; }
.app-shell .completed-chores { margin-top: 10px; padding-top: 10px; border-top: 1px solid #3c3c430f; }
.app-shell .completed-chores summary { padding: 9px 2px; color: #737980; font-size: 13px; font-weight: 650; cursor: pointer; list-style: none; }
.app-shell .completed-chores summary::-webkit-details-marker { display: none; }
.app-shell .completed-chores summary::after { content: "Vis"; float: right; color: #527760; }
.app-shell .completed-chores[open] summary::after { content: "Skjul"; }
.app-shell .completed-chores .chore-row:last-child { border-bottom: 0; }
@media (max-width: 380px) {
  .app-shell .section-heading { align-items: flex-start; }
  .app-shell .section-heading > .primary-button { max-width: 44%; padding: 9px 10px; font-size: 12px; }
  .app-shell .dinner-card-heading { align-items: flex-start; flex-direction: column; }
  .app-shell .dinner-actions { width: 100%; justify-content: space-between; }
  .app-shell .week-navigation { gap: 3px; }
  .app-shell .week-navigation .small-button { padding: 7px; font-size: 11px; }
  .app-shell .quick-item-form button { min-width: 74px; }
}
.app-shell .quick-item-form {
  margin: 0 0 16px;
  padding: 6px;
  gap: 6px;
  border: 1px solid #dfe4e0;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 3px 12px #1e1e2d08;
}
.app-shell .quick-item-form input {
  min-height: 50px;
  padding: 12px 13px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.app-shell .quick-item-form input:focus { outline: 0; }
.app-shell .quick-item-form:focus-within {
  border-color: #91ab96;
  box-shadow: 0 0 0 3px #5277601c;
}
.app-shell .quick-item-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 46px;
  padding: 9px 13px;
  border-radius: 13px;
  white-space: nowrap;
}
.app-shell .quick-item-form button > span:first-child { font-size: 19px; line-height: 1; }
.app-shell .shopping-card { padding: 15px 15px 8px; }
.app-shell .shopping-card-heading { align-items: center; margin-bottom: 7px; }
.app-shell .shopping-card-heading h3 { margin-bottom: 4px; font-size: 17px; }
.app-shell .shopping-card-heading .item-meta { margin: 0; font-size: 12px; }
.app-shell .count-badge {
  display: inline-grid;
  min-width: 31px;
  height: 31px;
  place-items: center;
  padding: 0 9px;
  border-radius: 16px;
  background: #eff1f0;
  color: #6f7872;
  font-size: 13px;
  font-weight: 750;
}
.app-shell .count-badge-active { background: #e8f1e9; color: #386246; }
.app-shell .shopping-items { display: grid; gap: 0; }
.app-shell .shopping-item {
  min-height: 58px;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid #3c3c430d;
  font-size: 16px;
}
.app-shell .shopping-item:last-child { border-bottom: 0; }
.app-shell .shopping-item > label { flex-direction: row; align-items: center; justify-content: flex-start; min-height: 48px; gap: 13px; }
.app-shell .shopping-item input {
  appearance: none;
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  place-content: center;
  margin: 0;
  border: 1.7px solid #b9c4bc;
  border-radius: 50%;
  background: #fff;
  accent-color: #527760;
}
.app-shell .shopping-item input::before {
  width: 7px;
  height: 11px;
  transform: rotate(45deg) scale(0);
  border: solid white;
  border-width: 0 2px 2px 0;
  content: "";
}
.app-shell .shopping-item input:checked { border-color: #527760; background: #527760; }
.app-shell .shopping-item input:checked::before { transform: rotate(45deg) scale(1); }
.app-shell .shopping-item-text { gap: 4px; line-height: 1.35; }
.app-shell .shopping-item-text .item-meta { color: #858c87; }
.app-shell .shopping-item.done .shopping-item-text { color: #929994; }
.app-shell .shopping-item.done .shopping-item-text > span:first-child { text-decoration: line-through; }
.app-shell .shopping-item .remove-button {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  background: #f3f4f5;
  color: #868c91;
  font-size: 19px;
}
.app-shell .shopping-list-empty { margin: 12px 0 15px; color: #858c87; font-size: 13px; }
.app-shell .checked-items { margin: 5px -15px 0; border-top: 1px solid #3c3c430d; }
.app-shell .checked-items summary {
  display: flex;
  min-height: 49px;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  color: #737980;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.app-shell .checked-items summary::-webkit-details-marker { display: none; }
.app-shell .checked-chevron { color: #878e93; font-size: 17px; transition: transform .16s ease; }
.app-shell .checked-items[open] .checked-chevron { transform: rotate(180deg); }
.app-shell .checked-items-list { padding: 0 15px 8px; }
.app-shell .checked-items-list .text-button { margin: 3px 0 4px; color: #777f84; font-size: 12px; }
.app-shell .shopping-empty {
  display: grid;
  justify-items: center;
  gap: 7px;
  margin: 0;
  padding: 28px 18px;
  border-radius: 17px;
  background: #fff;
}
.app-shell .shopping-empty strong { color: #303a33; font-size: 15px; }
.app-shell .shopping-empty > span:last-child { color: #858c87; font-size: 13px; }
.app-shell .empty-icon, .app-shell .chore-empty-check {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 3px;
  border-radius: 50%;
  background: #eaf2eb;
  color: #527760;
  font-size: 19px;
  font-weight: 750;
}
.app-shell #chores-view > .card { padding: 14px 15px 10px; }
.app-shell .chore-form {
  gap: 7px;
  margin: 0 0 14px;
  padding: 0 0 13px;
  border-bottom: 1px solid #3c3c4310;
}
.app-shell .chore-form input {
  min-height: 49px;
  padding: 11px 13px;
  border: 1px solid #e0e4e1;
  border-radius: 13px;
  background: #f8f9f8;
  font-size: 15px;
}
.app-shell .chore-form button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 13px;
  border-radius: 13px;
}
.app-shell .chore-form button > span:first-child { font-size: 18px; }
.app-shell .chores-list-heading { display: flex; align-items: center; gap: 9px; margin: 0 1px 4px; }
.app-shell .chores-list-heading h3 { margin: 0; color: #3e4942; font-size: 13px; font-weight: 700; }
.app-shell .chores-list-heading .count-badge { min-width: 25px; height: 25px; font-size: 12px; }
.app-shell .chore-row {
  gap: 8px;
  min-height: 60px;
  padding: 4px 0;
  border-bottom-color: #3c3c430d;
}
.app-shell .chore-row .check-row { flex-direction: row; align-items: center; justify-content: flex-start; gap: 13px; min-height: 50px; }
.app-shell .chore-row .check-row input {
  appearance: none;
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  place-content: center;
  margin: 0;
  border: 1.7px solid #b9c4bc;
  border-radius: 50%;
  background: #fff;
}
.app-shell .chore-row .check-row input::before {
  width: 7px;
  height: 11px;
  transform: rotate(45deg) scale(0);
  border: solid white;
  border-width: 0 2px 2px 0;
  content: "";
}
.app-shell .chore-row .check-row input:checked { border-color: #527760; background: #527760; }
.app-shell .chore-row .check-row input:checked::before { transform: rotate(45deg) scale(1); }
.app-shell .chore-row .item-title { color: #303a33; font-size: 15px; font-weight: 550; line-height: 1.4; }
.app-shell .chore-row .remove-button {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  background: #f3f4f5;
  color: #868c91;
  font-size: 19px;
}
.app-shell .chore-empty {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 22px 10px;
  text-align: center;
}
.app-shell .chore-empty strong { color: #303a33; font-size: 15px; }
.app-shell .chore-empty > span:last-child { color: #858c87; font-size: 13px; }
.app-shell .completed-chores { margin: 7px -15px 0; padding: 3px 15px 0; border-top: 1px solid #3c3c430d; }
.app-shell .completed-chores summary { display: flex; min-height: 44px; align-items: center; color: #737980; font-size: 13px; }
.app-shell .completed-chores .chore-row { min-height: 50px; }
