:root {
  color-scheme: light;
  --ink: #28382f;
  --muted: #79877d;
  --line: #e8ece6;
  --paper: #fff;
  --canvas: #f4f6f2;
  --green: #537f67;
  --green-dark: #3b644f;
  --mint: #e5f1e9;
  --peach: #f8ebe1;
  --lilac: #eeeafa;
  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; background: var(--canvas); color: var(--ink); }
button, a { font: inherit; }
button { color: inherit; }
.skip-link { position: fixed; top: .5rem; left: .5rem; z-index: 20; transform: translateY(-160%); padding: .7rem 1rem; border-radius: .5rem; background: var(--ink); color: white; }
.skip-link:focus { transform: translateY(0); }
.preview-banner { min-height: 38px; display: flex; justify-content: center; align-items: center; gap: .55rem; padding: .45rem 1rem; background: #344d3d; color: #f7fbf7; font-size: .76rem; letter-spacing: .015em; text-align: center; }
.preview-banner__dot { width: .45rem; height: .45rem; border-radius: 50%; background: #a8d7b5; }
.app-shell { display: flex; min-height: calc(100vh - 38px); }
.sidebar { position: sticky; top: 0; width: 248px; height: calc(100vh - 38px); min-height: 620px; flex: 0 0 248px; display: flex; flex-direction: column; padding: 31px 18px 20px; border-right: 1px solid #e5eae4; background: #fbfcfa; }
.brand { display: flex; align-items: center; gap: 11px; margin: 0 8px 52px; padding: 0; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.brand__mark { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 13px 13px 13px 5px; background: #dcebe0; color: var(--green-dark); font-family: Georgia, serif; font-size: 1.4rem; }
.brand__name { font-family: Georgia, "Times New Roman", serif; font-size: 1.34rem; letter-spacing: -.045em; line-height: 1; }
.brand__name span { display: block; margin-top: 6px; color: #8b998f; font: 600 .52rem/1 system-ui, sans-serif; letter-spacing: .15em; }
.nav-label, .eyebrow { margin: 0; color: #8a988f; font-size: .66rem; font-weight: 700; letter-spacing: .13em; }
.nav-label { margin: 0 12px 11px; }
.primary-nav { display: grid; gap: 5px; }
.nav-item { min-height: 46px; display: flex; align-items: center; gap: 12px; padding: 0 13px; border: 0; border-radius: 11px; background: transparent; color: #68766c; text-align: left; cursor: pointer; }
.nav-item:hover { background: #f0f4ef; color: var(--ink); }
.nav-item.is-active { background: #e8f1e9; color: #385d46; font-weight: 650; }
.nav-item:focus-visible, .mobile-nav button:focus-visible, .text-action:focus-visible { outline: 3px solid #8db89a; outline-offset: 2px; }
.nav-icon { width: 20px; color: #78907e; font-size: 1.28rem; text-align: center; }
.nav-count { min-width: 22px; height: 22px; display: grid; place-items: center; margin-left: auto; border-radius: 50%; background: white; color: var(--green-dark); font-size: .7rem; }
.sidebar-bottom { margin-top: auto; }
.week-card { display: flex; gap: 10px; padding: 15px 13px; border: 1px solid #e8eee7; border-radius: 13px; background: #f5f8f4; }
.week-card__icon { color: #73957b; font-size: 1.2rem; }
.week-card p { margin: 0; color: #748177; font-size: .77rem; line-height: 1.55; }
.week-card strong { color: #43594a; font-size: .79rem; }
.sidebar-foot { margin: 18px 5px 0; color: #9aa69c; font-size: .68rem; text-align: center; }
.main-column { min-width: 0; flex: 1; }
.topbar { height: 69px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 4.3vw, 65px); border-bottom: 1px solid #e8ece6; background: rgba(255,255,255,.52); }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #76847a; font-size: .7rem; font-weight: 650; letter-spacing: .07em; }
.breadcrumb span:first-child { color: #a0aaa2; font-size: .62rem; }
.breadcrumb__slash { color: #c5cdc6; }
.topbar__right { display: flex; align-items: center; gap: 15px; }
.preview-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid #e2e9e2; border-radius: 20px; background: #fbfdfb; color: #607566; font-size: .68rem; }
.preview-chip span { color: #72a27e; font-size: .65rem; }
.avatar { width: 33px; height: 33px; display: grid; place-items: center; border: 2px solid white; border-radius: 50%; background: #f1dfd1; color: #785b4a; font-family: Georgia, serif; font-weight: 700; box-shadow: 0 1px 3px #263b2e1a; }
main { width: min(100%, 1160px); margin: 0 auto; padding: 40px clamp(24px, 4.3vw, 65px) 18px; }
.welcome-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 29px; }
.eyebrow { margin-bottom: 10px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; color: #2f4035; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 3vw, 2.65rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.15; }
h1 span { color: #8cab8e; font-family: system-ui, sans-serif; font-size: .7em; }
.intro { margin-bottom: 0; color: #78867d; font-size: .93rem; }
.weather-pill { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; padding: 10px 15px 10px 11px; border: 1px solid #e8ece5; border-radius: 14px; background: #fff; }
.weather-sun { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: #fff4da; color: #d69e3b; font-size: 1.35rem; }
.weather-pill strong, .weather-pill small { display: block; }
.weather-pill strong { margin-bottom: 3px; font-size: .79rem; }
.weather-pill small { color: #89968d; font-size: .68rem; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: 17px; }
.card { min-width: 0; border: 1px solid #e9ede7; border-radius: 17px; background: var(--paper); box-shadow: 0 3px 12px #30493308; }
.morning-card, .day-card, .family-card { padding: 22px 23px 18px; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.card-heading .eyebrow { margin-bottom: 6px; }
h2 { margin-bottom: 0; color: #36483c; font-family: Georgia, "Times New Roman", serif; font-size: 1.33rem; font-weight: 500; letter-spacing: -.025em; }
.soft-icon { width: 38px; height: 38px; display: grid; flex: 0 0 38px; place-items: center; border-radius: 13px; font-size: 1.13rem; }
.sun-icon { background: #fff5df; color: #d7a64e; }
.calendar-icon { background: #f0edfb; color: #9186bd; }
.heart-icon { background: #fbeee9; color: #c18b75; }
.card-copy { margin: 10px 0 14px; color: #839087; font-size: .78rem; }
.routine-list { display: grid; }
.routine-row { min-height: 41px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid #f0f2ee; }
.routine-row:last-child { border-bottom: 0; }
.check-circle, .empty-circle { width: 20px; height: 20px; display: grid; flex: 0 0 20px; place-items: center; border: 1px solid #dce8dc; border-radius: 50%; background: #e8f2e9; color: #598064; font-size: .7rem; font-weight: 700; }
.empty-circle { border: 1.5px solid #cbd6cc; background: white; }
.routine-name { color: #46574b; font-size: .81rem; }
.routine-name.is-done { color: #9aa59b; text-decoration: line-through; text-decoration-color: #bdc9bd; }
.routine-time { margin-left: auto; color: #9aa49c; font-size: .68rem; }
.progress-line { height: 5px; overflow: hidden; margin-top: 14px; border-radius: 9px; background: #eef2ed; }
.progress-line span { display: block; height: 100%; border-radius: inherit; background: #8cb496; }
.progress-line .progress-67 { width: 67%; }
.progress-caption { display: flex; justify-content: space-between; margin-top: 7px; color: #89958c; font-size: .66rem; }
.text-action { min-height: 35px; margin: 12px 0 -6px; padding: 4px 0; border: 0; background: transparent; color: #4c795c; font-size: .76rem; font-weight: 650; cursor: pointer; }
.text-action span { margin-left: 5px; transition: margin-left .15s ease; }
.text-action:hover span { margin-left: 9px; }
.agenda-list { display: grid; gap: 0; margin-top: 17px; }
.agenda-row { min-height: 57px; display: grid; grid-template-columns: 42px 4px minmax(0, 1fr); align-items: center; gap: 10px; border-bottom: 1px solid #f0f2ee; }
.agenda-row:last-child { border-bottom: 0; }
.agenda-row time { color: #89958c; font-size: .71rem; font-variant-numeric: tabular-nums; }
.agenda-mark { width: 4px; height: 30px; border-radius: 6px; }
.agenda-mark.mint { background: #92b99a; }
.agenda-mark.peach { background: #dca984; }
.agenda-mark.lilac { background: #a99bcf; }
.agenda-row strong, .agenda-row small { display: block; }
.agenda-row strong { overflow: hidden; color: #46564b; font-size: .77rem; font-weight: 630; text-overflow: ellipsis; white-space: nowrap; }
.agenda-row small { margin-top: 4px; color: #96a097; font-size: .65rem; }
.family-members { display: grid; margin-top: 14px; }
.member-row { min-height: 48px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #f0f2ee; }
.member-row:last-child { border-bottom: 0; }
.member-row > span:nth-child(2) { min-width: 0; }
.member-row strong, .member-row small { display: block; }
.member-row strong { color: #46564b; font-size: .77rem; font-weight: 630; }
.member-row small { margin-top: 3px; color: #96a097; font-size: .64rem; }
.member-avatar { width: 32px; height: 32px; display: grid; flex: 0 0 32px; place-items: center; border-radius: 50%; font-family: Georgia, serif; font-size: .84rem; font-weight: 700; }
.avatar-jamie { background: #f5e7dc; color: #93684d; }
.avatar-riley { background: #e3edf3; color: #587f91; }
.avatar-morgan { background: #eee8f5; color: #7e6c95; }
.presence-dot { width: 8px; height: 8px; margin-left: auto; border-radius: 50%; background: #77a984; box-shadow: 0 0 0 3px #eaf3eb; }
.presence-dot--away { background: #b9aa7b; box-shadow: 0 0 0 3px #f5f1e5; }
.presence-label { margin-left: auto; padding: 4px 7px; border-radius: 8px; background: #edf3f4; color: #66818a; font-size: .61rem; }
.kind-card { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 21px 23px; background: #f7f5fb; }
.kind-card h2 { margin-bottom: 7px; }
.kind-card p:last-child { max-width: 410px; margin: 7px 0 0; color: #858291; font-size: .77rem; line-height: 1.55; }
.kind-star { width: 43px; height: 43px; display: grid; flex: 0 0 43px; place-items: center; border-radius: 15px; background: white; color: #9a8dbd; font-size: 1.3rem; }
.streak-badge { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; padding: 7px 10px; border: 1px solid #e7e1f1; border-radius: 20px; background: #fff; color: #776a95; font-size: .68rem; }
.streak-badge span { color: #b79d61; }
.data-note { margin: 17px 0 0; color: #99a39a; font-size: .68rem; text-align: center; }
.page-footer { display: flex; justify-content: space-between; gap: 20px; width: min(100%, 1160px); margin: 0 auto; padding: 15px clamp(24px, 4.3vw, 65px) 20px; color: #a0aaa1; font-size: .65rem; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr); align-items: start; gap: 18px; }
.checklist-card, .note-card, .household-card, .schedule-card { padding: 25px; }
.routine-list--large { margin-top: 19px; }
.routine-list--large .routine-row { min-height: 57px; gap: 15px; }
.routine-list--large .routine-name { font-size: .9rem; }
.routine-list--large .check-circle, .routine-list--large .empty-circle { width: 24px; height: 24px; flex-basis: 24px; }
.progress-number { color: #4a7658; font-family: Georgia, serif; font-size: 1.7rem; }
.progress-number span { color: #9aa69c; font-size: 1rem; }
.static-hint { margin: 21px 0 0; padding: 10px 12px; border-radius: 9px; background: #f6f8f5; color: #87938a; font-size: .7rem; }
.note-card { position: relative; min-height: 238px; overflow: hidden; background: #f8f5ef; }
.note-card h2 { max-width: 250px; margin: 20px 0 17px; font-size: 1.55rem; line-height: 1.25; }
.note-card p:last-child { margin: 0; color: #8d8273; font-family: Georgia, serif; font-size: .9rem; }
.note-card p:last-child span { color: #bd8c75; }
.note-illustration { position: absolute; top: 17px; right: 22px; color: #d5b89b; font-size: 2.3rem; }
.date-pill { padding: 10px 15px; border: 1px solid #e8ece5; border-radius: 13px; background: white; color: #879389; font-size: .62rem; letter-spacing: .1em; line-height: 1.65; text-align: center; }
.date-pill strong { color: #44574a; font-size: .9rem; }
.family-overview-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 17px; }
.household-card, .schedule-card { min-height: 280px; }
.member-row--large { min-height: 62px; gap: 13px; }
.status-tag { margin-left: auto; padding: 5px 8px; border-radius: 12px; font-size: .64rem; }
.status-home { background: #e9f3ea; color: #64856a; }
.status-school { background: #edf3f5; color: #69838a; }
.status-away { background: #f5f1e7; color: #998b64; }
.agenda-list--large { margin-top: 12px; }
.agenda-list--large .agenda-row { min-height: 67px; grid-template-columns: 48px 4px minmax(0, 1fr); gap: 13px; }
.agenda-list--large .agenda-row strong { font-size: .83rem; }
.agenda-list--large .agenda-row small { font-size: .69rem; }
.dinner-card { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; padding: 22px 26px; background: #f3f7f2; }
.dinner-icon { width: 48px; height: 48px; display: grid; flex: 0 0 48px; place-items: center; border-radius: 16px; background: white; color: #799b7d; font-size: 1.45rem; }
.dinner-card h2 { margin: 0 0 6px; }
.dinner-card p:last-child { margin: 0; color: #829086; font-size: .76rem; }
.mobile-nav-wrap { display: none; }
[hidden] { display: none !important; }

@media (max-width: 900px) {
  .sidebar { width: 205px; flex-basis: 205px; padding-right: 13px; padding-left: 13px; }
  main { padding-top: 32px; }
  .home-grid { gap: 13px; }
  .morning-card, .day-card, .family-card { padding: 19px 18px 16px; }
  .kind-card { padding: 18px; }
  .kind-card p:last-child { font-size: .72rem; }
}
@media (max-width: 700px) {
  .preview-banner { min-height: 42px; gap: .4rem; font-size: .68rem; }
  .preview-banner span:last-child { max-width: 52vw; }
  .app-shell { min-height: calc(100vh - 42px); }
  .sidebar { display: none; }
  .topbar { height: 58px; padding: 0 18px; }
  .breadcrumb { gap: 7px; font-size: .63rem; }
  .breadcrumb span:first-child { font-size: .55rem; }
  .preview-chip { padding: 6px 8px; font-size: .62rem; }
  .topbar__right { gap: 9px; }
  .avatar { width: 30px; height: 30px; }
  main { padding: 29px 18px 14px; }
  .welcome-row { align-items: flex-start; margin-bottom: 21px; }
  h1 { font-size: clamp(1.85rem, 8vw, 2.4rem); }
  .intro { max-width: 34ch; font-size: .84rem; line-height: 1.5; }
  .weather-pill { gap: 8px; padding: 7px 9px; }
  .weather-sun { width: 29px; height: 29px; font-size: 1rem; }
  .weather-pill strong { font-size: .7rem; }
  .weather-pill small { font-size: .58rem; }
  .home-grid, .family-overview-grid, .detail-layout { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .kind-card, .dinner-card { grid-column: auto; }
  .kind-card { align-items: flex-start; flex-wrap: wrap; }
  .kind-card > div { flex: 1; }
  .streak-badge { margin-left: 58px; }
  .family-overview-grid .dinner-card { grid-column: auto; }
  .page-footer { padding: 12px 18px 82px; font-size: .59rem; }
  .page-footer span:last-child { text-align: right; }
  .mobile-nav-wrap { position: fixed; z-index: 10; right: 0; bottom: 0; left: 0; display: block; padding: 8px 14px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid #e5ebe4; background: rgba(255,255,255,.97); box-shadow: 0 -4px 20px #3148360b; }
  .mobile-nav { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 460px; margin: 0 auto; }
  .mobile-nav button { display: grid; justify-items: center; gap: 3px; min-height: 47px; border: 0; border-radius: 10px; background: transparent; color: #839087; font-size: .62rem; cursor: pointer; }
  .mobile-nav button span { font-size: 1.1rem; line-height: 1; }
  .mobile-nav button.is-active { color: #456d52; font-weight: 700; }
}
@media (max-width: 430px) {
  .preview-banner { flex-wrap: wrap; gap: .25rem .4rem; padding: .35rem .6rem; font-size: .61rem; line-height: 1.35; }
  .preview-banner span:last-child { max-width: calc(100vw - 24px); }
  .topbar { padding-right: 12px; padding-left: 12px; }
  .breadcrumb { min-width: 0; gap: 4px; }
  .breadcrumb span:first-child { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .breadcrumb span:last-child { flex: 0 0 auto; }
  .topbar__right { gap: 6px; }
  .preview-chip { gap: 4px; padding-right: 6px; padding-left: 6px; font-size: .57rem; white-space: nowrap; }
  .avatar { width: 26px; height: 26px; flex: 0 0 26px; }
  .welcome-row { display: block; }
  .weather-pill, .date-pill { display: inline-flex; margin-top: 14px; }
  .date-pill { display: inline-block; }
  .card-heading h2 { font-size: 1.22rem; }
  .morning-card, .day-card, .family-card, .checklist-card, .note-card, .household-card, .schedule-card { padding: 19px; }
  .page-footer { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
