:root {
  color-scheme: light;
  --paper: #f8f5ee;
  --white: #fffdf8;
  --ink: #23362d;
  --muted: #53645b;
  --green: #245a48;
  --deep: #214c3e;
  --sage: #e5efe2;
  --line: #e2e1d6;
  --peach: #f7e6d9;
  --rust: #854829;
  --shadow: 0 4px 18px #30261c06;
  font: 100%/1.5 system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible {
  outline: 3px solid #8a4829;
  outline-offset: 3px;
}
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 600; }
h1 { font-size: 2rem; font-size: clamp(2rem, 5vw, 3.15rem); line-height: 1.06; letter-spacing: -.042em; }
h2 { font-size: 1.45rem; font-size: clamp(1.4rem, 4vw, 1.75rem); letter-spacing: -.025em; line-height: 1.12; }
h3 { font-size: 1.02rem; line-height: 1.35; }
p { overflow-wrap: anywhere; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 5; background: var(--white); padding: .65rem; color: var(--ink); }
.skip:focus { top: .5rem; }
.brandbar {
  position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: .8rem;
  padding: .72rem 1rem;
  padding: .72rem max(1rem, env(safe-area-inset-right)) .72rem max(1rem, env(safe-area-inset-left));
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .58rem; border: 0; color: var(--ink); background: none; text-align: left; font-weight: 790; line-height: 1.13; padding: .2rem 0; }
.brand img { flex: none; }
.brand small { display: block; margin-top: .22rem; color: var(--muted); font-size: .67rem; font-weight: 550; }
.environment { display: inline-flex; align-items: center; gap: .3rem; margin-left: auto; border: 1px solid #e9d8c9; border-radius: 99px; padding: .23rem .55rem; color: #764323; background: #f9ebde; font-size: .65rem; font-weight: 720; white-space: nowrap; }
.environment span, .dot { width: .43rem; height: .43rem; border-radius: 50%; background: currentColor; flex: none; }
.account { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; background: var(--sage); color: var(--deep); font-weight: 800; font-size: .79rem; flex: none; }
.desktop-nav { display: none; }
.mobile-nav {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .1rem; position: fixed; bottom: 0; left: 0; right: 0; z-index: 3;
  padding: .35rem;
  padding: .35rem .35rem max(.32rem, env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line);
}
.nav-item { position: relative; display: flex; align-items: center; justify-content: center; gap: .24rem; flex-direction: column; min-height: 3.25rem; border-radius: .85rem; border: 0; background: none; color: var(--muted); font-weight: 680; font-size: .69rem; padding: .22rem; }
.nav-item[aria-current] { background: var(--sage); color: var(--deep); }
.nav-item .nav-count { position: absolute; top: .12rem; margin-left: 2.5rem; min-width: .98rem; height: .98rem; border-radius: 99px; padding: 0 .16rem; background: #8a4829; color: #fff; font-size: .62rem; }
.icon { display: inline-block; vertical-align: middle; width: 1.26rem; height: 1.26rem; flex: none; }
main { width: 100%; max-width: 68rem; margin: 0 auto; padding: 1.3rem 1rem 5.45rem; outline: none; }
.page { display: grid; gap: 1.15rem; }
.page-heading { display: grid; gap: .42rem; }
.page-heading p { color: var(--muted); }
.eyebrow { font-size: .7rem; font-weight: 780; text-transform: uppercase; letter-spacing: .105em; color: var(--deep); }
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) 5.75rem;
  grid-template-columns: minmax(0, 1fr) clamp(4.65rem, 22vw, 9rem); align-items: center; gap: .15rem;
  min-height: 10rem; border-radius: 1.5rem; background: var(--deep); color: #fff8e7; padding: 1.05rem; padding: clamp(1.03rem, 4vw, 1.65rem);
}
.hero .eyebrow { color: #f4dcaa; margin-bottom: .48rem; }
.hero p:not(.eyebrow) { color: #e3eddf; margin-top: .5rem; font-size: .86rem; }
.kite-art { width: 100%; display: block; }
.panel, .card, .row-card, .event-row { border: 1px solid var(--line); border-radius: 1.13rem; background: var(--white); box-shadow: var(--shadow); }
.panel { padding: 1rem; }
.card { padding: .85rem; }
.section { display: grid; align-content: start; gap: .64rem; min-width: 0; }
.section-title { display: flex; align-items: center; gap: .55rem; justify-content: space-between; }
.section-title h2 { padding-block: .2rem; }
.badge { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; padding: .19rem .53rem; border-radius: 99px; font-size: .69rem; line-height: 1.55; color: var(--deep); background: var(--sage); font-weight: 730; text-align: center; }
.badge.warm { background: var(--peach); color: var(--rust); }
.kita-state { display: flex; gap: .65rem; align-items: center; }
.kita-state > div:nth-child(2) { flex: 1; min-width: 0; }
.kita-state .badge { flex: none; }
.muted { color: var(--muted); }
.small { font-size: .8rem; }
.tile-icon { display: inline-grid; flex: none; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .8rem; background: var(--sage); color: var(--green); }
.tile-icon.warm { color: var(--rust); background: var(--peach); }
.home-grid, .calendar-grid { display: grid; gap: 1.1rem; align-items: start; }
.stack { display: grid; gap: .62rem; min-width: 0; }
.stack.roomy { gap: 1.1rem; }
.quick-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .58rem; }
.action-card { display: grid; gap: .45rem; justify-items: start; text-align: left; border: 1px solid var(--line); border-radius: 1.13rem; padding: .68rem; min-height: 6.75rem; background: var(--white); color: var(--ink); box-shadow: var(--shadow); }
.action-card strong { font-size: .86rem; line-height: 1.24; overflow-wrap: anywhere; }
.action-card small { color: var(--muted); font-size: .72rem; line-height: 1.28; }
.row-card, .event-row { display: flex; align-items: center; gap: .68rem; width: 100%; min-height: 4.25rem; text-align: left; padding: .68rem; color: var(--ink); }
.row-card > .row-copy, .event-row > .row-copy { flex: 1; min-width: 0; }
.row-copy strong, .row-copy small { display: block; overflow-wrap: anywhere; }
.row-copy strong { font-size: .9rem; line-height: 1.32; }
.row-copy small { color: var(--muted); margin-top: .21rem; line-height: 1.32; font-size: .73rem; }
.row-card > .icon, .event-row > .icon { width: 1rem; color: var(--green); }
.event-day { display: grid; place-content: center; flex: none; min-width: 2.58rem; min-height: 2.85rem; padding: .2rem; border-radius: .68rem; color: var(--deep); background: var(--sage); text-align: center; line-height: 1.05; }
.event-day b { font-family: Georgia, serif; font-size: 1.3rem; }
.event-day small { text-transform: uppercase; font-size: .63rem; font-weight: 750; margin-top: .12rem; }
.btn, .icon-button, .text-button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.75rem; border: 1px solid transparent; border-radius: .7rem; padding: .5rem .8rem; background: var(--green); color: #fff; font-weight: 730; font-size: .86rem; text-align: center; }
.btn.secondary, .icon-button { color: var(--deep); background: var(--sage); }
.btn.danger { color: #8b352b; background: #f8e9e4; }
.text-button { padding-inline: .15rem; color: var(--green); background: none; }
.icon-button { width: 2.75rem; padding-inline: .25rem; flex: none; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
button:disabled { opacity: .46; cursor: default; }
@media (hover:hover) {
  .row-card:hover, .event-row:hover, .action-card:hover { border-color: #83a393; }
  .btn:not(:disabled):hover, .icon-button:not(:disabled):hover { filter: brightness(.95); }
  .nav-item:hover { background: #edf1e6; }
}
.segments { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .25rem; padding: .25rem; border-radius: .9rem; background: #eaece0; }
.segments button { min-height: 2.75rem; border: 0; border-radius: .67rem; padding: .23rem; color: var(--muted); background: none; font-size: .79rem; font-weight: 750; overflow-wrap: anywhere; }
.segments button[aria-pressed=true] { background: var(--white); color: var(--deep); box-shadow: var(--shadow); }
.detail { width: 100%; max-width: 45rem; }
.detail .page-heading h1 { font-size: 2rem; font-size: clamp(1.8rem, 5vw, 2.75rem); overflow-wrap: anywhere; }
.detail p, .message p { white-space: pre-wrap; }
.backline { justify-self: start; }
.notice-bar { display: flex; gap: .55rem; align-items: flex-start; border-radius: .78rem; background: var(--sage); color: var(--deep); padding: .75rem; font-size: .8rem; }
.notice-bar .icon { width: 1rem; height: 1rem; margin-top: .12rem; }
form { display: grid; gap: .8rem; }
.field { display: grid; gap: .26rem; min-width: 0; }
.field label { font-weight: 720; font-size: .86rem; }
.field input, .field textarea, .field select {
  width: 100%; min-width: 0; min-height: 2.9rem; padding: .61rem; border-radius: .65rem; border: 1px solid #b7c3b7; color: var(--ink); background: #fff;
}
.field textarea { resize: vertical; min-height: 5.15rem; }
.field [aria-invalid=true] { border-color: #9c362b; }
.error { color: #8b352b; font-size: .82rem; font-weight: 690; }
.error:empty { display: none; }
.form-grid { display: grid; gap: .8rem; }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .15rem; text-align: center; }
.month-title { display: flex; align-items: center; justify-content: space-between; gap: .3rem; }
.month-title h2 { text-align: center; font-size: 1.12rem; font-size: clamp(1rem, 4vw, 1.42rem); }
.weekday { font-size: .65rem; color: var(--muted); font-weight: 750; padding-top: .3rem; }
.day {
  display: grid; align-content: center; justify-items: center; gap: .05rem; min-height: 2.75rem;
  border: 1px solid transparent; border-radius: .64rem; padding: .15rem 0; background: none; color: var(--ink); font-size: .85rem;
}
.day span { height: .27rem; width: .27rem; border-radius: 99px; }
.day .marked { background: currentColor; }
.day[aria-current=date] { border-color: #83a393; font-weight: 800; }
.day[aria-pressed=true] { background: var(--green); color: #fff; font-weight: 800; }
.messages { display: grid; gap: .5rem; max-height: 45vh; max-height: min(45vh, 28rem); overflow: auto; padding: .15rem; }
.message { justify-self: start; width: fit-content; max-width: 92%; padding: .65rem .75rem; border-radius: 1rem 1rem 1rem .25rem; background: #eeece3; }
.message.own { justify-self: end; border-radius: 1rem 1rem .25rem 1rem; background: var(--sage); }
.message strong { display: block; color: var(--deep); font-size: .72rem; margin-bottom: .22rem; }
.message small { display: block; margin-top: .29rem; font-size: .67rem; color: var(--muted); }
.snackbar { position: fixed; z-index: 6; bottom: 4.9rem; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 1.5rem); border-radius: .75rem; background: var(--deep); color: #fff; font-size: .84rem; padding: .6rem .85rem; box-shadow: 0 4px 16px #0003; pointer-events: none; }
.snackbar:empty { display: none; }
footer { color: var(--muted); font-size: .72rem; text-align: center; padding: .5rem 0; }
dialog { width: calc(100% - 2rem); max-width: 28rem; border: 1px solid var(--line); border-radius: 1rem; padding: 1rem; color: var(--ink); background: var(--white); }
dialog::backdrop { background: #13291db0; }
[hidden] { display: none !important; }
@media (max-width: 345px) {
  .brand small { display: none; }
  .brandbar { gap: .35rem; padding-inline: .55rem; }
  .environment { font-size: .61rem; }
  main { padding-inline: .65rem; }
  .kita-state { flex-wrap: wrap; }
}
@media (min-width: 39rem) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 52rem) {
  .brandbar { padding: .85rem max(1.6rem, calc((100vw - 65rem) / 2)); gap: 1rem; }
  .desktop-nav { display: flex; gap: .27rem; margin-left: auto; }
  .desktop-nav .nav-item { flex-direction: row; padding: .5rem .7rem; gap: .4rem; min-height: 2.75rem; font-size: .81rem; }
  .desktop-nav .nav-item .nav-count { position: static; margin-left: 0; }
  .mobile-nav { display: none; }
  .environment { order: 3; margin-left: 0; }
  .account { order: 4; }
  main { padding: 2rem 1.5rem 2.8rem; }
  .page { gap: 1.4rem; }
  .hero { min-height: 12.5rem; padding-inline: 1.8rem; }
  .hero p:not(.eyebrow) { font-size: .98rem; }
  .home-grid { grid-template-columns: 1fr 1fr; gap: 1.4rem; }
  .calendar-grid { grid-template-columns: 1.14fr 1fr; gap: 1.4rem; }
  .panel, .card { padding: 1.1rem; }
  .snackbar { bottom: 1.2rem; }
}

.family-picker { max-width: 26rem; }
.directory-row { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .65rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.directory-row:first-of-type { border-top: 0; }
.directory-row .row-copy { flex: 1 1 11rem; min-width: 0; }
.directory-row .button-row { margin-left: auto; }

@supports not (width: clamp(1rem, 2vw, 3rem)) {
  .brand img, .kita-state > .tile-icon, .row-card > .tile-icon, .event-day { margin-right: .58rem; }
  .account { margin-left: .55rem; }
  .btn .icon, .text-button .icon, .notice-bar .icon { margin-right: .4rem; }
  .button-row > button { margin: .18rem .22rem .18rem 0; }
}

.embedded-demo { scrollbar-width: none; }
.embedded-demo::-webkit-scrollbar { display: none; }

.feature-facts { display: grid; grid-template-columns: minmax(0, 8rem) minmax(0, 1fr); gap: .35rem .75rem; margin: 0; font-size: .92rem; }
.feature-facts dt { font-weight: 700; }
.feature-facts dd { margin: 0; overflow-wrap: anywhere; }
.feature-figure { margin: 0; }
.feature-picture, .feature-video { width: 100%; max-width: 24rem; display: block; border-radius: .75rem; }
.feature-video { aspect-ratio: 16 / 9; background: #eaece1; }
.feature-check { min-height: 2.75rem; display: flex; align-items: center; gap: .5rem; }
.feature-check input { width: 1.1rem; height: 1.1rem; flex: none; accent-color: #245a48; }
.feature-options { border: 1px solid #d6ddd5; border-radius: .7rem; padding: .5rem .75rem; }
.feature-options legend { font-weight: 700; }
.feature-list { padding-left: 1.25rem; margin: 0; }
details summary { min-height: 2.5rem; padding-block: .5rem; cursor: pointer; font-weight: 650; }

.kita-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.kita-shortcuts .action-card { min-height: 6.6rem; background: #eff4eb; }
.kita-shortcuts .action-card:nth-child(even) { background: #fbefe3; }
.kita-shortcuts .action-card:nth-child(3) { background: #edf0f7; }
.kita-shortcuts .action-card strong, .quick-actions .action-card strong { font-size: 1rem; }
.found-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; }
.found-grid .panel { align-content: start; }
.found-photo { max-width: none; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #eeeee7; }
@media (min-width: 38rem) {
  .found-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.quick-actions .action-card:nth-child(1) { background: #fbefe3; }
.quick-actions .action-card:nth-child(2) { background: #edf4e9; }
.quick-actions .action-card:nth-child(3) { background: #edf0f7; }
.quick-actions .action-card:nth-child(4) { background: #fff5dc; }

.fund-camera { border: 0; padding: 0; margin: 0 0 1rem; }
.fund-camera legend { font-weight: 700; padding: 0 0 .35rem; }
.fund-camera img[hidden] { display: none; }
.fund-description { white-space: pre-line; overflow-wrap: anywhere; }
#fund-alerts:not(:empty) { width: min(100% - 2rem, 44rem); margin: .7rem auto 0; }
.fund-alert { background: #fcf0d3; }

.fund-account-list { list-style: none; margin: 0; padding: 0; }
.fund-account-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .55rem; padding: .7rem 0; overflow-wrap: anywhere; }
.fund-account-row + .fund-account-row { border-top: 1px solid var(--line); }

.pilot-notice-text { white-space: pre-line; overflow-wrap: anywhere; }
[data-pilot-unread][hidden] { display: none; }
.pilot-event-text { white-space: pre-line; overflow-wrap: anywhere; }
