/* Family Manager 3 — quiet monobank-like system, eggshell + midnight-navy + vivid blue */
/* Family Manager navy sampled in sRGB from the fm mark. Print reference: PANTONE 282 C (Solid Coated). */
:root{--brand-navy:#091730;--brand-dot:#91B6FA;--ink:var(--brand-navy);--muted:#3F5172;--green:var(--brand-navy);--teal:#EDF2FF;--bg:#FAF8F1;--surface:#FFFEFB;--border:#E1E5EC;--shadow:0 12px 40px rgba(9,22,48,.042);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink)}
body{background:var(--bg);color:var(--ink);font-size:16px}
.brand strong,.crumb b,.page h1,.card h2,.today-panel h2,.task-title{color:var(--ink)}
.brand-mark{background:var(--brand-navy)}.nav-item,.subtitle,.hint,.muted,.meta,.task .meta,.family-footer,.nav-title,.kicker,.section-eyebrow,.date,.sidebar-footer{color:#405271}
.nav-item{min-height:48px;font-size:15px}.nav-item.active,.nav-item:hover{background:#E4EBFF;color:var(--brand-navy)}
.button{font-size:.875rem;min-height:44px;padding:.45rem .85rem;font-weight:640;color:var(--brand-navy);border-color:#C6CBD4;border-radius:8px;background:var(--surface)}
.button.primary,.auth-primary{background:var(--brand-navy);border-color:var(--brand-navy);color:white}
.button.primary:hover,.auth-primary:hover{background:#25354E;border-color:#25354E}
.button:hover{background:#F0F1F4}
.form-control,.search,.filterselect{font-size:16px;min-height:48px;color:var(--ink);border-color:#CAD3E2}
.form-label{color:#13264C;font-size:14px}
.link-button,.tiny-btn{color:var(--brand-navy)}
.tiny-btn{min-width:37px;min-height:37px;font-size:17px}
.pill{min-height:39px;font-size:13px}.pill.active{background:#0B1A37;color:white}
.card{background:var(--surface);border-color:var(--border)}
.page-heading h1{font-size:clamp(27px,3vw,35px)}
.task-title{font-size:16px}.task{padding:15px 12px}.chip{background:#EDF1F9;color:#405271;font-size:12px}
.today-panel{background:var(--brand-navy)}.today-panel h2{color:white}.today-panel .button.primary{background:var(--brand-navy);border-color:#A3B2CB}
.today-panel .section-eyebrow,.today-panel p{color:#D3E0FF}
.fm-avatar{width:39px;height:39px;font-size:15px}
.fm-avatar.lg{width:58px;height:58px;font-size:20px}
.owner-avatars{min-width:40px;justify-content:flex-end}
.cal-weekday{color:#354869}
.sidebar{background:#FFFCF6}
.topbar{background:rgba(250,248,241,.94)}
.side-family{background:#FFF;border-color:#D8E0EB;color:var(--ink)}
.side-family:hover { background:#F0F1F4; }
.side-family #familyLabel { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-align:start; }
.side-family::after { content:""; width:.38rem; height:.38rem; margin-inline-start:auto; flex:none;
  border-top:1px solid; border-right:1px solid; transform:rotate(45deg); }
.bottom-nav{background:#FFFEFC}
.bottom-nav button{font-size:11px;color:#3A4B6A;min-height:56px}
.bottom-nav button.active{color:var(--brand-navy);background:#eef2f8}
.bottom-nav button span{font-size:22px}
.welcome-panel{max-width:670px;margin:26px auto 44px;background:#FFFEFB;border:1px solid #E4E7EC;border-radius:24px;padding:clamp(20px,4vw,42px);box-shadow:0 15px 48px rgba(9,22,48,.035)}
.welcome-panel .welcome-symbol{display:flex;align-items:center;justify-content:center;width:58px;height:58px;background:var(--brand-navy);border-radius:18px;color:#fff;font-size:26px;font-weight:900;margin-bottom:27px}
.welcome-panel .welcome-symbol span{color:#91B6FA}
.welcome-panel h1{font-size:clamp(27px,4vw,38px);margin:8px 0 11px;color:var(--brand-navy)}
.welcome-panel .subtitle{font-size:16px;line-height:1.65}
.welcome-people{padding-top:17px;margin-top:16px;border-top:1px solid #E5E8ED}
.welcome-people h2{margin:0 0 5px;font-size:18px}
.welcome-add{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-top:13px}
.welcome-person{display:flex;align-items:center;gap:10px;border-bottom:1px solid #E6E8ED;padding:8px 0;color:#102347;font-size:15px}
.welcome-person .hint{margin-left:auto}
.welcome-start{width:100%;margin:20px 0 10px;font-size:17px;min-height:53px}
.welcome-privacy{line-height:1.6}
.fm-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-top:1px solid #E1E5ED;border-left:1px solid #E1E5ED}
.fm-cal-day{min-width:0;min-height:100px;padding:7px;border-right:1px solid #E1E5ED;border-bottom:1px solid #E1E5ED;background:#FFFDF9}
.fm-cal-day.other{background:#F8F8F5;opacity:.6}
.fm-cal-day.selected{background:#EBF1FF}
.fm-cal-day.now .fm-cal-date{background:#0B1A37;color:white}
.fm-cal-date{border:0;border-radius:50%;background:transparent;color:#132852;width:32px;height:32px;font-size:15px;font-weight:750}
.fm-cal-entry{border-left:4px solid var(--member-color,#99ADE0);background:#F5F7FC;color:#1D3254;font-size:12px;padding:4px 5px;margin:3px 0;border-radius:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fm-cal-entry.task{background:#F7F9FC;border-radius:4px;display:block;min-height:0;padding:4px 5px;font-size:12px;box-shadow:none}
.fm-cal-more{color:#324976;font-size:11px}
.fm-color-legend{display:flex;gap:14px;flex-wrap:wrap;margin-top:15px}
.fm-color-legend>span{display:flex;align-items:center;gap:5px;font-size:12px;color:#13264B}
.fm-color-legend .fm-avatar{height:26px;width:26px;font-size:10px}
.fm-calendar-details{margin-top:18px;align-items:start}
.fm-day-event{display:flex;align-items:flex-start;gap:12px;padding:13px 0;border-bottom:1px solid #E7EAF0;font-size:14px}
.fm-event-time{font-weight:780;color:#214AC1;min-width:100px}
.fm-event-body{flex:1;min-width:0}
.fm-event-body .owner-avatars{margin-top:7px;justify-content:flex-start}
.fm-member-picks{display:flex;flex-wrap:wrap;gap:9px;margin:14px 0 18px}
.member-pick{display:flex;align-items:center;gap:9px!important;border:1px solid #D9E1ED;border-radius:13px;padding:7px 12px;background:white;color:#14254A;cursor:pointer;min-height:47px;font-size:14px;font-weight:700;margin:0!important}
.member-pick:has(input:checked){background:#EAF0FF;border-color:#AFC4FF}
.member-pick input{height:19px;width:19px;accent-color:#2756F0}
.member-pick .fm-avatar{width:29px;height:29px;font-size:11px}
.fm-slots{display:flex;gap:9px;flex-wrap:wrap;margin:17px 0}
.fm-slot{display:flex;align-items:center;justify-content:space-between;min-height:49px;gap:12px;border-radius:12px;border:1px solid #C9D7F5;background:#F3F6FF;color:#0B2A75;padding:9px 12px;font-weight:770;font-size:14px;cursor:pointer}
.fm-slot:hover{background:#E4EDFF}
.fm-slot small{font-size:11px;color:#2454DB}
.fm-food-action{display:flex;align-items:center;justify-content:space-between;gap:13px;margin-top:15px}
.fm-ingredients{display:flex;gap:7px;flex-wrap:wrap;margin:15px 0}
.fm-recipe-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:12px}
.fm-routine-card .routine-steps{list-style:none;margin:0;padding:0}
.fm-routine-card .routine-steps li{display:flex;align-items:center;gap:10px;padding:8px 0;color:#182B50;font-size:14px}
.fm-routine-card h3{font-size:18px}
.fm-routine-meta{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}
.fm-routine-instances{border-top:1px solid #E7EAF0;margin-top:12px;padding-top:12px}
.fm-routine-instances .task{box-shadow:none;border-radius:10px}
.routine-form-steps, .routine-people, .routine-custom-repeat, .routine-weekdays {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.routine-form-steps, .routine-people, .routine-custom-repeat { grid-column: 1 / -1; }
.routine-form-steps legend, .routine-people legend, .routine-custom-repeat legend, .routine-weekdays legend {
  margin-bottom: .45rem;
  padding: 0;
  font-size: .84rem;
  font-weight: 700;
}
[data-routine-steps] { display: grid; gap: .45rem; margin-bottom: .5rem; }
.routine-step-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .38rem; }
.routine-step-remove { display: grid; place-items: center; min-width: 44px; padding: 0; }
.routine-step-remove .fm-icon { width: 1rem; height: 1rem; }
.routine-all { display: flex; align-items: center; gap: .5rem; min-height: 44px; font-weight: 650; }
.routine-all input { width: 1.15rem; height: 1.15rem; accent-color: #2756F0; }
.routine-people .fm-member-picks { margin: .25rem 0; }
.routine-people .member-pick { min-width: 0; max-width: 100%; }
.routine-people .member-pick input, .routine-people .fm-avatar { flex-shrink: 0; }
.routine-people .member-pick span:last-child { overflow-wrap: anywhere; }
.routine-family-picks { min-width: 0; margin: .55rem 0 0; border: 0; padding: 0; }
.routine-execution-modes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .4rem; }
.routine-execution-modes label { display: grid; position: relative; }
.routine-execution-modes input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.routine-execution-modes span {
  display: grid; place-items: center; min-height: 44px; padding: .25rem;
  border: 1px solid var(--border); border-radius: .65rem; font-size: .8rem; cursor: pointer;
}
.routine-execution-modes input:checked + span { background: #EAF0FF; border-color: #AFC4FF; color: #183DA2; font-weight: 700; }
.routine-execution-modes input:focus-visible + span { outline: 3px solid #2756F0; outline-offset: 2px; }
.routine-coordinator-label { margin-top: .65rem; }
.routine-custom-repeat {
  border: 1px solid var(--border);
  border-radius: .85rem;
  padding: .7rem;
}
.routine-custom-repeat > legend { padding-inline: .25rem; }
.routine-repeat-interval { display: grid; grid-template-columns: 5.5rem minmax(0,1fr); gap: .55rem; }
.routine-repeat-interval label { display: grid; gap: .25rem; font-size: .8rem; }
.routine-weekdays { margin-top: .65rem; }
.routine-weekdays > div { display: flex; flex-wrap: wrap; gap: .28rem; }
.routine-weekdays label { display: grid; position: relative; }
.routine-weekdays input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.routine-weekdays label span { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: .28rem; border: 1px solid var(--border); border-radius: .65rem; cursor: pointer; }
.routine-weekdays input:checked + span { color: #173E9C; background: #E8EEFF; border-color: #AFC4FF; font-weight: 750; }
.routine-weekdays input:focus-visible + span { outline: 3px solid #2756F0; outline-offset: 2px; }
@media(max-width:1050px){.fm-calendar-details{display:grid;grid-template-columns:1fr}}
@media(max-width:780px){.welcome-panel{margin:16px auto}.fm-cal-day{min-height:74px;padding:4px}.fm-cal-date{width:29px;height:29px;font-size:13px}.fm-cal-entry{font-size:10px;padding:4px 2px}.fm-calendar-grid{width:100%}.fm-food-action{flex-direction:column;align-items:stretch}.fm-event-time{min-width:75px}}
@media(max-width:480px){.fm-cal-day{min-height:65px}.fm-cal-entry{font-size:10px}.fm-calendar-grid{grid-template-columns:repeat(7,minmax(0,1fr))}.fm-day-event{gap:7px}.fm-event-time{min-width:66px;font-size:12px}.page{padding-bottom:80px}.card{padding:15px}.fm-member-picks{gap:6px}.member-pick{padding:7px;font-size:12px}.fm-slot{width:100%}}

[hidden] { display: none !important; }
#sync-gate { margin: 5vh auto; width: min(92vw, 34rem); }

#invite-dialog { width: min(90vw, 36rem); border: 0; border-radius: 1rem; padding: 1.5rem; }
#invite-dialog::backdrop { background: rgb(9 22 48 / 55%); }
#sync-status { font-size: 0.875rem; }

.capture-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
#fm-capture label { display: grid; gap: 0.35rem; }
#fm-capture details > div { padding-top: 0.75rem; }

.home-setup { max-width: 58rem; margin: 0 auto; }
.home-setup > header h1 { font-size: clamp(1.625rem, 3vw, 1.875rem); letter-spacing: -.025em; }
.home-setup > .setup-panel > p { font-size: .9375rem; line-height: 1.55; }
.home-setup-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(max-content, 1fr));
  gap: .375rem;
  max-width: 29rem;
  margin-block: .85rem;
  padding: .2rem;
  overflow-x: auto;
}
.home-setup-tabs .button { min-height: 44px; padding: .5rem .3rem; font-size: .8125rem; white-space: nowrap; }
.setup-tabs, .setup-next { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-block: 1rem; }
.setup-next { justify-content: flex-end; margin-bottom: 0; }
.setup-family-actions { justify-content: space-between; }
.setup-panel { padding: clamp(1rem, 4vw, 2rem); }
.setup-panel p { margin-block: 0.6rem 1rem; }
.setup-people { list-style: none; padding: 0; }
.setup-people li { display: flex; gap: 0.75rem; align-items: center; padding-block: 0.45rem; }
.setup-people li > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.setup-people li small { display: block; color: var(--muted); }
.member-photo-button { padding: .3rem 0; }
#fm-home-person label { display: grid; gap: 0.35rem; }
.household-topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: .65rem; }
.household-card { display: grid; min-width: 0; }
.household-card:has(.household-card-controls) { grid-template-rows: 1fr auto; }
.household-topic {
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  justify-items: center;
  gap: .5rem;
  min-width: 0;
  min-height: 6rem;
  padding: .8rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: #FFFDF8;
  color: inherit;
  text-align: center;
  cursor: pointer;
}
.household-topic:focus-visible { outline: 3px solid #2756F0; outline-offset: 2px; }
.household-topic-icon { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .72rem; background: var(--topic-bg); }
.household-topic-icon .fm-icon { width: 1.15rem; height: 1.15rem; }
.household-topic-status { position: absolute; inset-block-start: .65rem; inset-inline-end: .65rem; color: var(--muted); }
.household-topic-status .fm-icon { width: 1rem; height: 1rem; }
.household-topic[aria-pressed="false"] .household-topic-status { visibility: hidden; }
.household-topic[aria-pressed="true"] { border-color: #6689E8; background: #EDF2FF; }
.household-topic[aria-pressed="true"] .household-topic-status { color: #224BCC; }
.household-topic strong { font-size: .94rem; line-height: 1.2; overflow-wrap: anywhere; }
.household-topic-add {
  border: 1px dashed #7896E8;
  background: #F1F5FF;
  color: #183DA2;
}
.household-topic-add .household-topic-icon { background: #DDE8FF; }
@media (hover: hover) {
  .household-topic:hover { border-color: #8EA8F6; background: #F0F4FF; }
  .household-topic-add:hover { background: #E6EEFF; border-color: #2756F0; }
}
.household-extra { margin-top: .8rem; }
.household-custom { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .8rem; }
.household-custom .button { white-space: normal; overflow-wrap: anywhere; }
.household-card-controls { display: flex; justify-content: space-between; padding-inline: .25rem; }
.household-control {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: .65rem;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}
.household-control:hover, .household-control:focus-visible { background: #EAF0FF; }
.household-grip { touch-action: none; user-select: none; cursor: grab; }
.household-card-dragging .household-topic { border-color: #2756F0; background: #EAF0FF; }
.household-card-dragging .household-grip { cursor: grabbing; }
.household-actions .link-button { min-height: 44px; margin-inline-end: auto; text-align: start; }
.household-detail > .link-button { min-height: 44px; padding-inline: 0; margin-top: -.4rem; }
.household-detail-shortcut { margin-top: .75rem; }
.household-more { margin-top: .75rem; }
.household-more > summary { min-height: 44px; align-content: center; }
.household-more > .household-topics { margin-top: .35rem; }
.household-detail > .big-list { margin-top: .75rem; }
.household-action-footer {
  position: sticky;
  z-index: 3;
  bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  margin-top: .8rem;
  padding: .5rem .6rem;
  border: 1px solid var(--border);
  border-radius: .85rem;
  background: #FFFDF8;
  box-shadow: 0 4px 16px #24365a14;
}
.household-action-footer .hint { margin: 0; }
.household-action-footer .button { min-height: 44px; }
@media (max-width: 940px) {
  .household-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .household-action-footer { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
  .household-topic { padding: .62rem; }
  .household-topic strong { font-size: .875rem; }
  .household-actions .button { font-size: .85rem; padding-inline: .65rem; }
}
.member-access-form { max-width: 24rem; margin-block: 0.75rem; }
.member-access-form label { display: grid; gap: 0.35rem; }

.daily-overview { display: grid; gap: 1rem; }
.daily-header, .daily-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; }
.daily-header h1 { margin: 0; }
.daily-actions { justify-content: flex-start; margin-top: 0.8rem; }
.daily-rhythm { max-width: 36rem; }
.rhythm-days { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.35rem; }
.rhythm-days li { display: grid; place-items: center; gap: 0.2rem; }
.rhythm-days li > span[aria-hidden] { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #edf0f6; color: #27395e; }
.rhythm-days .rhythm-done > span[aria-hidden] { background: #d6f0df; color: #14532d; font-weight: 800; }
.rhythm-days [aria-current] small { font-weight: 800; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

#sync-gate [hidden] { display:none!important }

#recovery-dialog, #delete-account-dialog, #child-login-dialog {
  width: min(90vw, 30rem);
  max-height: 85dvh;
  border: 0;
  border-radius: 1rem;
  padding: 1.25rem;
}
#recovery-dialog::backdrop, #delete-account-dialog::backdrop, #child-login-dialog::backdrop { background: rgb(9 22 48 / 55%); }
#recovery-dialog [hidden], #delete-account-dialog [hidden], #child-login-dialog [hidden] { display: none !important; }

.daily-budget { margin-top: 1rem; }
.daily-budget .card-head > div > p { margin: .25rem 0; }
.budget-progress { display: grid; gap: .4rem; margin: 1rem 0; }
.budget-progress progress { width: 100%; height: .8rem; accent-color:var(--brand-navy); }
.budget-shortfall { color: #a23d2e; }
.budget-bill { gap: .6rem; }
.budget-bill label { display: flex; align-items: center; gap: .55rem; flex: 1; min-width: 0; }
.budget-bill label small { display: block; }
.calendar-week { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: .25rem; margin: .7rem 0; }
.calendar-week .button { min-width: 0; padding: .35rem .12rem; display: grid; place-items: center; gap: .15rem; }
.calendar-week small { font-size: .72rem; }

.icon-library { position: absolute; overflow: hidden; pointer-events: none; }
.fm-icon {
  display: inline-block;
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  vertical-align: -.18em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-item .fm-icon { width: 18px; height: 18px; }
.bottom-nav button .fm-icon { display: block; width: 20px; height: 20px; margin: 0 auto 4px; }
.tiny-btn .fm-icon { width: 15px; height: 15px; }
.top-actions .fm-icon { width: 16px; height: 16px; }
.quick-card .fm-icon { width: 23px; height: 23px; color: #345a87; }
.quick-card { min-height: 68px; }
.primary-choices .quick-card { min-height: 76px; }
.intro-board .fm-icon { width: 16px; height: 16px; }

body.phone-preview {
  width:min(100%,410px);
  min-height:100dvh;
  margin-inline:auto;
  position:relative;
  background:#faf8f1;
}
@media(min-width:781px) {
  html:has(body.phone-preview) { background:#e8eef5; }
  .phone-preview .shell { min-height:100dvh; }
  .phone-preview .main { width:100%; margin:0; }
  .phone-preview .page { padding:1rem 1rem 90px; }
  .phone-preview .topbar { height:58px; padding:.65rem .8rem; }
  .phone-preview .sidebar { position:fixed; left:max(0px, calc(50% - 205px)); width:min(82%,17rem); transform:translateX(-120vw); }
  .phone-preview .sidebar.open { transform:none; }
  .phone-preview .menu-toggle { display:inline-grid; place-items:center; }
  .phone-preview .today-tag,.phone-preview .crumb span { display:none; }
  .phone-preview .bottom-nav { display:flex; position:fixed; inset:auto auto 0 50%; width:min(100%,410px); transform:translateX(-50%); z-index:14; }
  .phone-preview .big-list,.phone-preview .two-pane,.phone-preview .content-grid,.phone-preview .form-grid { grid-template-columns:1fr; }
  .phone-preview .household-topics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .phone-preview .modal { max-width:390px; }
  .phone-preview .setup-next { flex-wrap:wrap; }
}

.completion-sound-setting { display: inline-flex; align-items: center; gap: .5rem; margin-block: .4rem; }
.completion-feedback {
  position: fixed;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: .35rem;
  color: #124c3a;
  background: #e1f5ea;
  border: 1px solid #c3e7d5;
  border-radius: 999px;
  padding: .35rem .65rem;
  font-size: .83rem;
  font-weight: 750;
  pointer-events: none;
  animation: completion-float .65s both;
}
.completion-feedback span { font-size: 1rem; }
@keyframes completion-float {
  0% { opacity: 0; transform: translateY(3px) scale(.94); }
  22%, 65% { opacity: 1; transform: translateY(-4px) scale(1); }
  100% { opacity: 0; transform: translateY(-13px) scale(.98); }
}
@media (prefers-reduced-motion: reduce) {
  .completion-feedback { animation: none; }
}

.quick-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .65rem;
  margin-bottom: 1rem;
}
.quick-list .form-label { margin: 0; }
.quick-list textarea { display: block; min-width: 0; line-height: 1.5; resize: vertical; }
.quick-list-category { display: grid; gap: .3rem; justify-items: start; }
.quick-list-category select { width: min(100%, 18rem); }
.quick-list-submit { justify-self: start; margin-top: .2rem; }
.sidebar-close { display:none; }
.sidebar-more { margin-top:.6rem; padding-top:.3rem; }
.sidebar-more > summary.nav-item { margin:0; justify-content:flex-start; align-items:center; color:var(--brand-navy); }
.sidebar-more > summary::after { content:""; width:.38rem; height:.38rem; margin-inline-start:auto;
  border-bottom:1px solid; border-right:1px solid; transform:rotate(45deg); }
.sidebar-more[open] > summary::after { transform:rotate(225deg); }
.sidebar-more > button { padding-inline-start:1.25rem; }
.sidebar-inbox-count { margin-inline-start:auto; min-width:1.2rem; padding:.1rem .4rem; border-radius:1rem;
  background:#E4EBF5; color:var(--brand-navy); text-align:center; font-size:.78rem; }
.shopping-tools { margin-top:.8rem; }
#shoppingOptions > .card { margin:0; }
.phone-preview .sidebar:not(.open) { visibility:hidden; }
.phone-preview .sidebar-close { display:grid; place-items:center; position:absolute; inset:.35rem .35rem auto auto; width:44px; height:44px; }
.phone-preview .sidebar .brand { padding-inline-end:1.8rem; }
@media (max-width: 780px) {
  .topbar { justify-content: flex-start; gap: .55rem; }
  .topbar .crumb { margin-right: auto; min-width: 0; }
  .topbar .crumb b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sidebar:not(.open) { visibility:hidden; }
  .sidebar-close { display:grid; place-items:center; position:absolute; inset:.35rem .35rem auto auto; width:44px; height:44px; }
  .sidebar .brand { padding-inline-end:1.8rem; }
  .quick-list-category select, .quick-list-submit { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .button, .nav-item, .quick-card, .bottom-nav button {
    transition: background-color .18s ease-out, border-color .18s ease-out, color .18s ease-out;
  }
  .modal-backdrop:not(.hidden) { animation: backdrop-appear .18s ease-out; }
  .modal-backdrop:not(.hidden) .modal { animation: dialog-appear .21s ease-out; }
}
@keyframes backdrop-appear { from { background-color: transparent; } }
@keyframes dialog-appear { from { opacity: .6; transform: translateY(12px); } }

.task-compact { align-items: center; gap: .75rem; padding-block: .32rem; }
.task-title-button {
  display: flex;
  flex: 1;
  justify-content: space-between;
  align-items: center;
  gap: .55rem;
  min-width: 0;
  min-height: 44px;
  padding: .35rem .25rem;
  border: 0;
  border-radius: .45rem;
  background: transparent;
  text-align: left;
  overflow-wrap: anywhere;
}
.task-title-button:hover { background: #eff3fb; }
.task-details-arrow { color: #6b7c9b; font-size: 1.1rem; }
.task-detail-list { margin-block: 0 1rem; }
.task-detail-list div { display: flex; justify-content: space-between; gap: 1rem; padding-block: .55rem; border-bottom: 1px solid var(--border); }
.task-detail-list dt { color: var(--muted); }
.task-detail-list dd { margin: 0; font-weight: 650; text-align: right; }
.task-detail-notes { white-space: pre-wrap; overflow-wrap: anywhere; }
.completion-ghost {
  position: fixed;
  z-index: 490;
  margin: 0;
  pointer-events: none;
  background: #fffeff;
  animation: completion-row-away .26s ease-out both;
}
@keyframes completion-row-away { to { opacity: 0; transform: translateX(7px) scale(.985); } }

.task-assignee {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .35rem;
  max-width: 35%;
  color: #354765;
  font-size: .8rem;
}
.task-assignee > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-assignee .fm-avatar { flex-shrink: 0; }
.task-delegation .fm-icon, .fm-cal-task > .fm-icon { width: 16px; height: 16px; flex: none; }
.task-detail-list + .form-actions, .task-detail-notes + .form-actions { flex-wrap: wrap; }
.task-shared-assignees { gap: 0; }
.task-shared-assignees .fm-avatar { width: 24px; height: 24px; font-size: .65rem; border: 1px solid white; }
.task-shared-assignees .fm-avatar + .fm-avatar { margin-inline-start: -5px; }
.task-extra-avatars { padding-inline: .18rem; font-size: .68rem; flex-shrink: 0; }
.calendar-task {
  background: color-mix(in srgb, var(--assignee-color) 47%, white);
  border: 1px solid color-mix(in srgb, var(--assignee-color) 82%, white);
  border-left: 4px solid var(--assignee-color);
  border-radius: .85rem;
  margin-block: .5rem;
  padding-inline: .7rem;
}

.fm-cal-task {
  display: flex;
  align-items: center;
  gap: 3px;
  background: color-mix(in srgb, var(--member-color) 47%, white);
}
.fm-cal-task button {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
}
.fm-cal-task .fm-avatar { width: 14px; height: 14px; font-size: 8px; flex: none; }
.completion-ghost {
  isolation: isolate;
  overflow: visible;
  background: #e2f6e9;
  box-shadow: inset 0 0 0 1px #91cdb0;
  animation: completion-highlight-away .39s ease-out both;
}
.completion-trail { position: absolute; pointer-events: none; left: 14px; top: 50%; }
.completion-trail i {
  position: absolute;
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #319b6f;
  animation: completion-spark .35s ease-out both;
  --direction: calc(var(--i) * 51deg);
}
@keyframes completion-highlight-away {
  0%, 23% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: translateX(9px) scale(.985); }
}
@keyframes completion-spark {
  from { opacity: .8; transform: rotate(var(--direction)) translateX(0); }
  to { opacity: 0; transform: rotate(var(--direction)) translateX(22px) scale(.45); }
}
.completion-feedback { animation-duration: .74s; }

@media (hover: hover) {
  .task-compact:not(.task-completing):hover,
  .task-compact:not(.task-completing):focus-within {
    background: color-mix(in srgb, var(--assignee-color) 28%, white);
    border-color: color-mix(in srgb, var(--assignee-color) 73%, #6b7c9b);
  }
  .calendar-task:not(.task-completing):hover,
  .calendar-task:not(.task-completing):focus-within {
    background: color-mix(in srgb, var(--assignee-color) 72%, white);
  }
  .task-title-button:hover {
    background: transparent;
    text-decoration: underline;
    text-underline-offset: .18em;
  }
}
.task-completing, .task-completing:hover {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  pointer-events: none;
  background: var(--assignee-color);
  border-color: var(--assignee-color);
}
.task-completing > :not(.task-finish-mark) { opacity: 0; }
.task-finish-mark {
  position: absolute;
  display: grid;
  place-items: center;
  top: 50%;
  left: 50%;
  width: 41px;
  height: 41px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  color: white;
  background: color-mix(in srgb, var(--assignee-color) 42%, #0b2543);
}
.task-finish-mark .fm-icon { width: 26px; height: 26px; stroke-width: 2.7; }
@media (prefers-reduced-motion: no-preference) {
  .task-compact { transition: background-color .15s ease-out, border-color .15s ease-out; }
  .task-completing > :not(.task-finish-mark) { transition: opacity .13s ease-out; }
  .task-completing .task-finish-mark { animation: task-finish-check .37s cubic-bezier(.22, .64, .34, 1) both; }
  .task-completing-collapse {
    animation: task-finish-collapse .71s cubic-bezier(.32, .12, .43, 1) both;
    flex-shrink: 0;
    min-height: 0;
  }
}
@keyframes task-finish-check {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.54); }
  62% { opacity: 1; transform: translate(-50%, -50%) scale(1.13); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes task-finish-collapse {
  0%, 66% { height: var(--finish-height); opacity: 1; }
  100% { height: 0; margin-block: 0; padding-block: 0; border-block-width: 0; opacity: 0; }
}

.day-progress { margin: .3rem 0 1rem; }
.day-progress-copy { display: flex; flex-wrap: wrap; gap: .4rem .7rem; justify-content: space-between; font-size: .88rem; }
.day-progress-copy > span { color:var(--brand-navy); font-weight:740; }
.day-progress-copy .fm-icon { width: 16px; height: 16px; }
.day-progress-track { overflow: hidden; height: .48rem; border-radius: 99px; background: #e8eef8; margin-top: .5rem; }
.day-progress-fill { display:block; width:100%; height:100%; border-radius:inherit; background:var(--brand-navy); transform:scaleX(var(--progress)); transform-origin:left; }
.project-progress > div { background:var(--brand-navy); }
progress { accent-color:var(--brand-navy); }
@media(prefers-reduced-motion:no-preference) {
  .day-progress-animate { animation: day-progress-fill .38s ease-out both; }
}
@keyframes day-progress-fill { from { transform: scaleX(var(--previous)); } }
.family-entry { border-color: #d4def3; background: #f3f6ff; margin-bottom: 1rem; }
.family-entry-row { display: flex; gap: .6rem; align-items: center; padding: .4rem 0; }
.family-entry-row p { min-width: 0; flex: 1; margin: 0; }
.family-entry-row .fm-avatar { flex-shrink: 0; }
.family-entry-row small { color: #34597a; }

.daily-header {
  min-height: 108px;
  position: relative;
  flex-wrap: nowrap;
  overflow: hidden;
  padding: .9rem 1.15rem;
  border-radius: 1rem;
  background: linear-gradient(112deg, #f2edfb 2%, #fff3e1 100%);
  border: 1px solid #ece4f5;
}
.daily-header > div { z-index: 1; }
.daily-header .hint { margin: 0 0 .3rem; }
.daily-art {
  flex: 0 0 auto;
  width: clamp(94px, 32%, 152px);
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: .8rem;
}
.today-calendar { border-color: #e4d9f2; }
.today-calendar h2 .fm-icon { color: #7050a3; width: 17px; height: 17px; }
.daily-budget { border-color: #cfe7da; }

#member-alias-dialog { width: min(90vw, 28rem); max-height: 85dvh; border: 0; border-radius: 1rem; padding: 1.25rem; }
#member-alias-dialog::backdrop { background: rgb(9 22 48 / 55%); }
.member-chip small { display: block; color: var(--muted); font-size: .78rem; font-weight: 450; }
.member-alias-button { margin-block: .65rem .15rem; }

.today-switches { margin: .75rem 0; }
.today-overdue { color:var(--ink); margin:.5rem 0; }
.today-grocery { justify-content:flex-start; }
.today-grocery input { flex:none; width:1.15rem; height:1.15rem; }
.today-shopping { margin-bottom:1rem; }
.shopping-section { margin-block:.85rem; }
.shopping-section h3 { margin-bottom:.35rem; }
.capture-preview { min-width:0; overflow-wrap:anywhere; }
.dashboard-links { margin-block:.75rem; }
.inbox-rows { margin-top:1rem; }
.inbox-image { max-width:min(100%,14rem); border-radius:.65rem; }
.family-checklist-item { min-height:3.6rem; text-align:left; display:flex; align-items:center; gap:.65rem; white-space:normal; }
.family-checklist-item[aria-pressed=true] { background:#DDF1E8; }
.task-list + h3 { margin-top:1rem; }

#sync-gate, #legal-sheet, .simple-family-setup {
  --entry-accent:var(--brand-navy);
  --entry-hover:#243f6a;
  --entry-ink:var(--brand-navy);
  --entry-muted:#49586c;
  --entry-line:#7d8fa9;
  --entry-tint:#eef2f8;
  --entry-paper:#fffdf8;
}
#sync-gate {
  display:flex;
  flex-direction:column;
  width:min(calc(100% - 1.3rem),34rem);
  margin: max(.65rem,env(safe-area-inset-top)) auto;
  padding: clamp(1rem,4.5vw,1.8rem);
  background:var(--entry-paper);
  border-color:#eaded5;
  color:var(--entry-ink);
  box-shadow:0 14px 42px rgb(35 53 80 / 7%);
}
#sync-gate[hidden] { display:none; }
#sync-gate:has(#auth-intro:not([hidden])) { min-height:min(calc(100svh - 1.3rem),54rem); }
body:has(#sync-gate:not([hidden])) { background:#fffdf8; }
@media (max-width:780px) {
  #sync-gate:not([hidden]) {
    width:100%; max-width:none; min-height:100svh; margin:0;
    border:0; border-radius:0; box-shadow:none;
  }
}
.phone-preview #sync-gate:not([hidden]) {
  width:100%; max-width:none; min-height:100svh; margin:0;
  border:0; border-radius:0; box-shadow:none;
}
#sync-gate .intro-brand {
  display:flex;
  align-items:center;
  gap:.65rem;
  font-size:1rem;
  font-weight:780;
  color:var(--entry-ink);
}
.intro-brand b {
  display:grid;
  grid-auto-flow:column;
  place-content:center;
  min-width:2.6rem;
  height:2.6rem;
  padding-inline:.38rem;
  border-radius:.76rem;
  background:var(--entry-accent);
  color:white;
  font-size:1.14rem;
  line-height:1;
}
.intro-brand b span { color:var(--brand-dot); }
#auth-intro { display:flex; flex:1; flex-direction:column; }
.intro-main { display:flex; flex:1; flex-direction:column; justify-content:center; padding-block:clamp(.75rem,3svh,1.55rem); }
#sync-gate h1 { color:var(--entry-ink); line-height:1.12; letter-spacing:-.045em; }
#auth-intro h1 { margin:0 0 .38rem; font-size:clamp(1.62rem,6.7vw,2.35rem); }
.intro-purpose { margin:0 0 .85rem; color:var(--entry-muted); line-height:1.45; font-size:.94rem; max-width:34ch; }
.intro-board { display:grid; width:min(100%,19.5rem); margin-inline:auto; gap:.5rem; padding:1.7rem .6rem 1.4rem; isolation:isolate; }
.intro-group { --tile-color:#eae5f8; --label-delay:2.3s; display:grid; gap:.18rem; }
.intro-group:nth-child(2) { --tile-color:#e4edf8; --label-delay:2.46s; }
.intro-group:nth-child(3) { --tile-color:#dceee1; --label-delay:2.62s; }
.intro-group-label { padding-inline:.15rem; font-size:.74rem; font-weight:700; line-height:1.2; color:var(--entry-muted); }
.intro-shelf { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.44rem; }
.intro-tile {
  --from-x:0px; --from-y:0px;
  --tile-x:-15%; --tile-y:74%; --tile-turn:-12deg; --tile-delay:0s;
  display:flex; align-items:center; justify-content:center; gap:.38rem;
  min-height:2.8rem; padding:.35rem .3rem; text-align:center;
  border-radius:.68rem; background:var(--tile-color); color:var(--brand-navy);
  font-size:clamp(.73rem,3.25vw,.93rem); font-weight:680; line-height:1.2;
  box-shadow:0 2px 3px #0917300a;
}
.intro-tile .fm-icon { flex:none; }
.intro-tile:last-child { --tile-x:-36%; --tile-y:-59%; --tile-turn:9deg; --tile-delay:.08s; }
.intro-group:nth-child(2) .intro-tile:first-child { --tile-x:25%; --tile-y:61%; --tile-turn:14deg; --tile-delay:.16s; }
.intro-group:nth-child(2) .intro-tile:last-child { --tile-x:12%; --tile-y:-82%; --tile-turn:-13deg; --tile-delay:.24s; }
.intro-group:nth-child(3) .intro-tile:first-child { --tile-x:39%; --tile-y:-75%; --tile-turn:-8deg; --tile-delay:.32s; }
.intro-group:nth-child(3) .intro-tile:last-child { --tile-x:-31%; --tile-y:64%; --tile-turn:17deg; --tile-delay:.4s; }
.intro-type { display:inline-block; }
@media (prefers-reduced-motion:no-preference) {
  .is-first-visit .intro-tile { animation:family-settle 2.6s ease var(--tile-delay) both; }
  .is-first-visit .intro-group-label { animation:family-label .26s ease-out var(--label-delay) both; }
  .is-first-visit .intro-type { animation:family-type 1.35s steps(20,start) both; }
}
@keyframes family-settle {
  0% { transform:translate(calc(var(--from-x) + var(--tile-x) * .21),calc(var(--from-y) + var(--tile-y) * .25)) rotate(var(--tile-turn)); }
  23% { transform:translate(calc(var(--from-x) * .74 - var(--tile-x) * .47),calc(var(--from-y) * .78 + var(--tile-y) * .55)) rotate(calc(var(--tile-turn) * -.7)); }
  47% { transform:translate(calc(var(--from-x) * .42 + var(--tile-x) * .55),calc(var(--from-y) * .48 - var(--tile-y) * .65)) rotate(var(--tile-turn)); }
  72% { transform:translate(calc(var(--tile-x) * -.22),calc(var(--tile-y) * .3)) rotate(calc(var(--tile-turn) * -.4)); }
  87% { transform:translateY(-3px); }
  94% { transform:translateY(1px) scale(1.015,.98); }
  100% { transform:none; }
}
@keyframes family-label { from { opacity:0; } to { opacity:1; } }
@keyframes family-type { from { clip-path:inset(0 100% 0 0); } to { clip-path:inset(0); } }
#sync-gate .auth-actions { display:flex; flex-wrap:wrap; gap:.54rem; }
#sync-gate .auth-actions .button { flex:1 1 auto; min-height:52px; white-space:normal; }
#auth-intro .auth-actions { margin-top:auto; padding-bottom:env(safe-area-inset-bottom); }
#auth-intro .auth-actions .button { flex:1 0 100%; }
#sync-gate .button,.simple-family-setup .button,#legal-sheet .button {
  color:var(--entry-accent);
  border-color:var(--entry-line);
  background:#fffdf9;
}
#sync-gate .button:hover,.simple-family-setup .button:hover,#legal-sheet .button:hover { background:var(--entry-tint); }
#sync-gate .button.primary,.simple-family-setup .button.primary {
  background:var(--entry-accent);
  border-color:var(--entry-accent);
  color:white;
}
#sync-gate .button.primary:hover,.simple-family-setup .button.primary:hover { background:var(--entry-hover); }
#sync-gate #intro-login { border-color:var(--entry-accent); background:#f0f4fa; }
#sync-gate #intro-login:hover { background:#e7edf6; }
#sync-gate .link-button,#legal-sheet a,.simple-family-setup .link-button { color:var(--entry-accent); }
#auth-title { margin:1.5rem 0 .5rem; }
#auth-caption { margin:0 0 1.15rem; color:var(--entry-muted); line-height:1.5; }
#account-form, #signup-fields { gap:.85rem; }
#sync-gate .auth-field, #signup-fields > label { display:grid; gap:.44rem; }
#sync-gate .auth-field > label, #signup-fields > label { font-size:.94rem; font-weight:720; color:var(--entry-ink); }
#sync-gate .form-control {
  font-size:16px;
  min-height:52px;
  padding:.75rem;
  border-color:var(--entry-line);
  background:#fffcfa;
  color:var(--entry-ink);
}
#sync-gate .form-control:focus { outline:2px solid var(--entry-accent); outline-offset:1px; }
#sync-gate :is(button,a):focus-visible,.simple-family-setup :is(button,a):focus-visible,#legal-sheet :is(button,a):focus-visible {
  outline:2px solid var(--entry-accent);
  outline-offset:2px;
}
#auth-title:focus,#legal-sheet-title:focus { outline:none; }
.auth-password { display:grid; grid-template-columns:minmax(0,1fr) 52px; align-items:stretch; gap:.45rem; }
#password-visibility { padding:0; display:grid; place-items:center; min-height:52px; }
#password-visibility .fm-icon { width:1.3rem; height:1.3rem; }
#registration-consent { display:flex; align-items:center; border:1px solid #d7e0ec; border-radius:.85rem; background:#f2f5f9; padding-inline:.15rem .62rem; font-size:.88rem; line-height:1.45; cursor:pointer; }
#registration-consent label { display:block; flex:1; padding:.65rem 0; min-height:44px; cursor:pointer; }
#registration-consent a { display:inline-block; max-width:100%; overflow-wrap:anywhere; color:var(--entry-accent); font-weight:680; text-underline-offset:.16em; }
.consent-control { display:grid; place-items:center; position:relative; width:44px; height:44px; flex:none; }
.consent-control input { position:absolute; inset:0; width:100%; height:100%; opacity:0; margin:0; cursor:pointer; }
.consent-symbol { display:grid; place-items:center; width:1.42rem; height:1.42rem; border:1.6px solid var(--entry-accent); border-radius:.36rem; background:#fffdf9; color:white; pointer-events:none; }
.consent-symbol .fm-icon { visibility:hidden; width:.96rem; height:.96rem; }
#agree:checked + .consent-symbol { background:var(--entry-accent); }
#agree:checked + .consent-symbol .fm-icon { visibility:visible; }
#agree:focus-visible + .consent-symbol { outline:2px solid var(--entry-accent); outline-offset:2px; }
#sync-gate #recover-password { align-self:start; min-height:44px; padding-inline:0; font-size:.88rem; text-align:start; }
#account-form > [role=status]:empty { display:none; }
#account-form > [role=status] { color:#863c50; margin:0; }
#legal-sheet { width:min(94vw,42rem); max-height:85dvh; padding:0; border:0; border-radius:1.1rem; background:var(--entry-paper); color:var(--entry-ink); }
#legal-sheet::backdrop { background:#1c2a4384; }
#legal-sheet > header { position:sticky; top:0; z-index:1; display:flex; align-items:center; justify-content:space-between; gap:.65rem; padding:.7rem 1rem; border-bottom:1px solid #eaded5; background:var(--entry-paper); }
#legal-sheet > header h2 { margin:0; font-size:1.15rem; }
#legal-sheet > header button { min-height:44px; }
#legal-sheet > article { padding:0 1rem max(1.1rem,env(safe-area-inset-bottom)); line-height:1.6; }
#legal-sheet > article h2 { font-size:1rem; margin-top:1.2rem; }
#legal-sheet > article a { overflow-wrap:anywhere; }
@media (max-width:540px) { #legal-sheet { margin:auto 0 0; width:100%; max-width:none; border-radius:1.15rem 1.15rem 0 0; } }
@media (max-height:680px) {
  .intro-main { padding-block:.65rem; }
}
@media (forced-colors:active) {
  .consent-symbol { border-color:ButtonText; }
  #agree:checked + .consent-symbol { background:Highlight; color:HighlightText; }
}

.simple-family-setup > header { margin-bottom:1rem; }
.simple-family-setup .setup-panel { margin-bottom:.65rem; }
.simple-family-setup .setup-next { display:flex; gap:.65rem; justify-content:flex-start; }
.simple-family-setup .setup-next .button,.simple-family-setup .setup-next .link-button,.today-invite { min-height:44px; }
.daily-more { margin-block:.55rem; }
.daily-more[open] > summary { margin-bottom:.9rem; }
.today-invite { margin-block:.35rem; }

.brand-mark { gap:.12em; letter-spacing:-.09em; }
.brand-mark span {
  margin:0;
  display:block;
  width:.31em;
  height:.31em;
  border-radius:50%;
  background:var(--brand-dot);
  color:transparent;
  font-size:inherit;
  overflow:hidden;
}
.topbar { justify-content:flex-start; gap:.55rem; }
.topbar-brand { width:36px; height:36px; font-size:19px; border-radius:11px; flex:none; }
.top-actions { margin-inline-start:auto; min-width:0; }
.topbar-inbox.icon-btn {
  display:inline-flex; align-items:center; justify-content:center; gap:.3rem;
  flex:none; min-height:44px; width:auto; padding:0 .45rem; color:var(--brand-navy); font-size:.76rem; font-weight:680;
}
.topbar-inbox-count:not([hidden]) {
  display:grid; place-items:center; min-width:1.05rem; height:1.05rem;
  padding-inline:.2rem; border-radius:1rem; background:#E4EBF5; font-size:.68rem;
}

#bottomNav .nav-add-icon {
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  margin:0 auto 2px;
  border-radius:10px;
  color:white;
  background:var(--brand-navy);
}
#bottomNav .nav-add-icon .fm-icon { margin:0; }
@media (min-width:781px) {
  body:not(.phone-preview) .topbar-brand { display:none; }
  body:not(.phone-preview) #bottomNav:not([hidden]) {
    display:flex;
    position:fixed;
    inset:auto auto .75rem calc(50% + 132px);
    transform:translateX(-50%);
    border-radius:14px;
    box-shadow:0 3px 18px rgb(9 23 48 / 14%);
    z-index:14;
  }
  body:not(.phone-preview) #bottomNav button:not(.nav-add) { display:none; }
  body:not(.phone-preview) #bottomNav .nav-add { padding:.35rem .75rem; }
}
.heading-with-info { display:flex; align-items:center; gap:.4rem; }
.screen-info { position:relative; flex:none; align-self:center; }
.screen-info summary {
  list-style:none;
  display:grid;
  place-items:center;
  width:44px;
  min-height:44px;
  font-size:.82rem;
  font-weight:800;
  cursor:pointer;
  position:relative;
}
.screen-info summary::-webkit-details-marker { display:none; }
.screen-info summary::before { content:""; position:absolute; width:21px; height:21px; border:1px solid #91A0B7; border-radius:50%; }
.screen-info > p {
  position:absolute;
  z-index:12;
  inset-block-start:100%;
  inset-inline-end:0;
  width:min(14rem,68vw);
  padding:.65rem .8rem;
  margin:0;
  border:1px solid #BAC6D9;
  border-radius:11px;
  background:var(--surface);
  box-shadow:var(--shadow);
  color:var(--ink);
  font-size:.82rem;
}
.capture-prompt { display:flex; justify-content:space-between; align-items:center; min-height:32px; font-weight:670; }
.capture-prompt .screen-info summary { min-height:34px; }
#fm-capture { gap:.65rem; }
.capture-types { color:var(--brand-navy); font-size:.875rem; }
.capture-types summary { cursor:pointer; min-height:44px; align-content:center; }
.capture-types[open] { border-bottom:1px solid var(--border); }
.capture-types .capture-fields { margin-block:.1rem .5rem; }
.capture-when > label { display:grid; gap:.2rem; }
.daily-header { background:none; border:0; padding:0; min-height:0; }
.today-switches { display:flex; gap:6px; margin:0; }
.today-switches .button,.subnav button {
  position:relative; isolation:isolate; min-height:44px; padding:0 .85rem; font-size:.8125rem;
  font-weight:650; white-space:nowrap; border:0; background:transparent; color:var(--brand-navy);
}
.today-switches .button::before,.subnav button::before {
  content:""; position:absolute; inset:5px 0; z-index:-1; border:1px solid #C6CBD4;
  border-radius:8px; background:var(--surface); transition:background .18s,border-color .18s;
}
.food-toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.5rem; margin-bottom:1rem; }
.food-toolbar .subnav { margin:0; }
.today-switches .button.primary,.subnav button.active { color:#fff; }
.today-switches .button.primary::before,.subnav button.active::before { background:var(--brand-navy); border-color:var(--brand-navy); }
.today-switches .button:hover,.subnav button:hover { background:transparent; }
.today-switches .button:not(.primary):hover::before,.subnav button:not(.active):hover::before { background:#F0F1F4; }
.text-control {
  display:inline-flex; align-items:center; gap:.4rem; min-height:44px; padding:.2rem 0;
  border:0; background:none; color:var(--brand-navy); font-weight:640; font-size:.875rem;
  text-decoration:underline; text-decoration-color:#858D9E; text-underline-offset:.25em;
}
.text-control:hover { text-decoration-color:currentColor; }
.meal-cell { height:100%; background:var(--surface); border-color:var(--border); overflow-wrap:anywhere; }
.meal-cell:hover { background:#F0F1F4; }
.meal-cell .meal-cell-label { color:var(--muted); }
.meal-cell .meal-cell-empty,.meal-cell .meal-cell-variant { text-transform:none; font-size:.73rem; color:var(--ink); }
.meal-cell .meal-cell-variant { display:flex; gap:.28rem; align-items:flex-start; margin:.18rem 0 0; }
.meal-cell .meal-cell-variant span { margin:0; text-transform:none; font-size:inherit; color:inherit; }
.meal-cell .meal-cell-variant .fm-avatar { flex:none; display:inline-grid; place-items:center; width:16px; height:16px; font-size:.55rem; }
.meal-dish-label { display:flex; gap:.4rem; align-items:center; margin-bottom:.2rem; }
.meal-dish-label .fm-avatar { flex:none; width:25px; height:25px; font-size:.68rem; }
.meal-add-variant fieldset { margin-bottom:.65rem; }
.meal-suggestions { margin-bottom:.6rem; }
.meal-suggestion-list { display:grid; gap:.4rem; }
.meal-suggestion { width:100%; display:flex; align-items:center; justify-content:space-between; gap:.65rem; text-align:start; white-space:normal; }
.meal-idea small { color:var(--muted); font-weight:550; white-space:nowrap; }
.meal-manual form { margin-block:.6rem 0; }
.recipe-shopping-requests { display:grid; gap:.55rem; margin-bottom:.75rem; }
.recipe-shopping-request { padding:.85rem 1rem; }
.recipe-shopping-request h2 { font-size:1rem; margin:0 0 .3rem; }
.recipe-shopping-request ul { display:flex; flex-wrap:wrap; gap:.25rem .55rem; padding:0; margin:.45rem 0; list-style:none; }
.recipe-shopping-request li { padding:.23rem .45rem; border-radius:6px; background:#F0F1F4; color:var(--ink); font-size:.83rem; }
.recipe-shopping-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.75rem; }
.inbox-entry { padding:.75rem; }
.inbox-entry-title { display:flex; justify-content:space-between; align-items:center; gap:.5rem; overflow-wrap:anywhere; }
.inbox-entry-title span { display:inline-flex; align-items:center; gap:.35rem; flex:none; font-size:.82rem; }
.inbox-entry-title .fm-avatar { width:28px; height:28px; font-size:.72rem; }
.inbox-entry-actions { display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; }
.inbox-entry-actions .button,.inbox-view .setup-tabs .button,.inbox-date-shortcuts .button { min-height:44px; }
.inbox-date-shortcuts { margin:0; gap:.4rem; }
.inbox-new summary { min-height:44px; align-content:center; cursor:pointer; }
.today-actions-card h3 { margin-bottom:.5rem; }
.today-actions-card .task-list + h3 { margin-top:1.05rem; }
.capture-fields[hidden], #fm-home-person [hidden] { display:none!important; }
.capture-fields legend,.capture-when > label { font-weight:700; font-size:.91rem; }
.capture-choices,.calendar-choices,.calendar-people { display:flex; flex-wrap:wrap; align-items:center; gap:.42rem; }
.capture-fields > .capture-choices { margin-top:.4rem; }
.capture-choice { position:relative; cursor:pointer; }
.capture-choice input { position:absolute; inset:0; opacity:0; width:100%; height:100%; margin:0; cursor:pointer; }
.capture-choice > span {
  white-space:normal;
  min-height:44px;
  padding:.42rem .64rem;
  border:1px solid #A3B2CB;
  border-radius:.65rem;
  display:flex;
  align-items:center;
  gap:.4rem;
  color:var(--brand-navy);
  font-weight:690;
  font-size:.85rem;
}
.capture-choice input:checked + span { background:var(--brand-navy); color:white; border-color:var(--brand-navy); }
.capture-choice input:focus-visible + span { outline:2px solid var(--brand-navy); outline-offset:2px; }
.capture-choice .fm-avatar,.calendar-person .fm-avatar { width:30px; height:30px; font-size:.72rem; flex:none; }
.capture-preview:empty { display:none; }
.calendar-toolbar .calendar-tools-trigger,.calendar-toolbar .arrowgroup .calendar-arrow { min-width:44px; padding:0; }
.calendar-tools-trigger { font-size:1.12rem; letter-spacing:.08em; }
.calendar-picker { margin-bottom:1rem; padding:.65rem .75rem .5rem; }
.calendar-toolbar h2 { font-size:.95rem; margin:0; }
.calendar-day-heading { display:flex; align-items:center; justify-content:space-between; gap:.4rem; }
.calendar-day-heading h3 { margin:0; font-size:.875rem; }
.calendar-day-heading:empty { display:none; }
.calendar-find-head { display:flex; align-items:center; justify-content:space-between; }
.calendar-choices,.calendar-people,.calendar-find,.calendar-week { margin-block:.7rem; }
.calendar-picker .calendar-people,.calendar-picker .calendar-week { margin-block:.22rem; }
.calendar-choices .button,.calendar-people .button { min-height:44px; padding:.35rem .57rem; font-size:.85rem; }
.calendar-week { grid-template-columns:repeat(var(--week-days,7),minmax(0,1fr)); gap:.26rem; }
.calendar-week .button { min-width:0; padding:.2rem .16rem; }
.calendar-week .button small { font-size:.72rem; }
.calendar-toolbar { flex-wrap:wrap; }
.calendar-toolbar .arrowgroup .button { min-height:44px; padding-inline:.65rem; }
.calendar-person { display:grid; place-items:center; width:44px; height:44px; padding:0;
  border:1px solid transparent; border-radius:50%; background:none; color:var(--ink); }
.calendar-person:hover { border-color:#C6CBD4; }
.calendar-person[aria-pressed=true],.calendar-choices .button[aria-pressed=true],.calendar-people .button[aria-pressed=true] {
  background:var(--brand-navy);
  color:white;
  border-color:var(--brand-navy);
}
.calendar-find { border:1px solid var(--border); padding:.55rem .7rem; border-radius:.7rem; }
.calendar-timeline { display:grid; grid-template-columns:3rem minmax(0,1fr); padding-bottom:.45rem; margin-top:.28rem; }
.calendar-hours,.calendar-hours-grid { min-height:calc(var(--calendar-hours) * var(--hour-height)); }
.calendar-hours { display:grid; grid-auto-rows:var(--hour-height); padding-right:.38rem; text-align:right; color:var(--muted); font-variant-numeric:tabular-nums; font-size:.69rem; }
.calendar-hours-grid {
  position:relative;
  border-inline-start:1px solid var(--border);
  background:repeating-linear-gradient(to bottom,#DCE3EF 0 1px,transparent 1px var(--hour-height));
}
.calendar-event,.calendar-free-slot {
  min-width:0;
  border-radius:.45rem;
  padding:.25rem .34rem;
  text-align:start;
  font-size:.75rem;
  color:var(--ink);
}
.calendar-event {
  display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-start;
  background:color-mix(in srgb,var(--event-color) 30%, #fff);
  border:1px solid #D3DCE9;
  border-inline-start:3px solid var(--event-color);
  overflow:hidden;
}
.calendar-event strong,.calendar-event small { display:block; flex:none; max-width:100%; line-height:1.15; overflow:hidden; text-overflow:ellipsis; }
.calendar-event .fm-avatar { display:inline-flex; align-items:center; justify-content:center; height:17px; width:17px; font-size:.53rem; margin-inline-end:.14rem; }
.calendar-hours-grid > .calendar-event,.calendar-free-slot { position:absolute; top:var(--time-top); height:var(--time-height); }
.calendar-hours-grid > .calendar-event { inset-inline-start:var(--time-left); width:calc(var(--time-width) - 3px); min-height:var(--calendar-min-entry-height); z-index:1; }
.calendar-event-compact { flex-direction:row; align-items:center; gap:.22rem; padding-block:0; }
.calendar-event-compact > strong {
  flex:1 1 auto; min-width:0; white-space:normal; overflow-wrap:anywhere;
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2;
}
.calendar-event-compact .fm-avatar { flex:0 0 15px; width:15px; height:15px; margin:0; }
.calendar-event-compact .fm-avatar ~ .fm-avatar,.calendar-event-compact .task-extra-avatars { display:none; }
.calendar-free-slot { width:100%; background:#E4EBF5; border:1px dashed #6A82A5; font-weight:670; }
.calendar-all-day { display:flex; flex-wrap:wrap; gap:.3rem; }
.calendar-all-day .calendar-event { min-height:44px; }
.calendar-all-day + .calendar-all-day { margin-top:.3rem; }
.calendar-event[data-calendar-drag] { cursor:grab; user-select:none; -webkit-touch-callout:none; }
.calendar-event[data-calendar-drag].dragging { cursor:grabbing; opacity:.65; }
.calendar-drop-marker:not([hidden]) {
  position:absolute; inset-inline:0; height:2px; z-index:4; pointer-events:none;
  background:var(--brand-navy); color:var(--brand-navy); text-indent:.25rem; font-size:.75rem; font-weight:750;
}
.fm-cal-day.is-past { border:0; background:transparent; }
.fm-choice-backing { display:none!important; }
.fm-choice-trigger {
  display:inline-flex; align-items:center; justify-content:space-between; gap:.7rem; min-width:0;
  width:100%; white-space:normal; text-align:start;
}
.fm-choice-trigger::after { content:"›"; font-size:1.1rem; color:var(--muted); }
.fm-choice-trigger[aria-invalid=true] { outline:2px solid #8d3329; outline-offset:2px; }
.fm-choice-sheet {
  z-index:60; color:var(--ink); width:min(27rem,calc(100% - 2rem)); max-height:min(70dvh,38rem);
  margin:auto; padding:.85rem; border:1px solid var(--border); border-radius:14px; background:var(--surface);
  box-shadow:0 12px 45px rgb(9 23 48 / 17%);
}
.fm-choice-sheet::backdrop { background:rgb(9 23 48 / 36%); }
.fm-choice-sheet > header { display:flex; justify-content:space-between; align-items:center; gap:.5rem; padding:0 0 .5rem; }
.fm-choice-sheet h2 { font-size:1.1rem; margin:0; }
.fm-choice-sheet header .button { min-width:44px; padding:0; }
.fm-choice-options { display:grid; gap:.25rem; }
.fm-choice-option {
  display:flex; align-items:center; justify-content:space-between; gap:.65rem; min-height:44px;
  border:1px solid transparent; border-radius:8px; background:transparent; color:var(--ink);
  text-align:start; padding:.45rem .65rem; font:inherit; font-size:.9rem;
}
.fm-choice-option:hover,.fm-choice-option[aria-pressed=true] { background:#EBEEF4; }
.fm-choice-option[aria-pressed=true]::after { content:"✓"; font-weight:700; }
.fm-choice-option:disabled { opacity:.45; }
.toolbar > .fm-choice-trigger { width:auto; }
@media (max-width:600px) {
  .fm-choice-sheet { width:100%; max-width:100%; margin:auto 0 0; border-radius:14px 14px 0 0;
    padding:.85rem 1rem max(1rem,env(safe-area-inset-bottom)); }
}
@media (max-width:380px) {
  .calendar-timeline { grid-template-columns:2.4rem minmax(0,1fr); }
  .calendar-toolbar { gap:.4rem; }
  .topbar { gap:.4rem; }
}

.task-list-title { min-width:0; flex:1; }
.task-due { display:flex; gap:.4rem; align-items:center; color:var(--muted); font-weight:550; }
.task-due-overdue { color:#9b2738; }
.task-repeat-mark { font-size:1rem; line-height:1; }
.capture-help-button { width:44px; min-height:44px; padding:0; border:0; background:transparent; color:var(--brand-navy); cursor:pointer; }
.capture-help-button::first-letter { font-weight:800; }
.capture-help-text { margin:0; padding:.55rem .7rem; border-radius:8px; background:#edf1f8; }
.task-edit-grid { gap:.55rem .7rem; }
.task-edit-form .form-group { margin:0; }
.task-edit-form .form-label { margin-bottom:.22rem; }
.task-edit-form .advanced-fields { margin-top:.65rem; }
.task-reminder-custom,.household-routine-review { border:0; padding:0; margin:0; min-width:0; }
.task-reminder-custom:not([hidden]) { display:grid; gap:.6rem; grid-template-columns:1fr 1fr; }
.household-routine-review { padding:.65rem .8rem; border:1px solid var(--line); border-radius:11px; }
.household-routine-review legend { font-weight:700; }

.daily-suggestions { display:grid; gap:.65rem; }
.daily-suggestion { padding-block:.75rem; }
.daily-suggestion p { margin:.25rem 0 .45rem; }
.daily-suggestion-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.45rem; }
.daily-suggestion-actions .button { min-height:44px; }
