:root {
  color-scheme: light;
  --ink: #202b46;
  --muted: #62708a;
  --green: #5558d9;
  --paper: #f5f6fb;
  --line: #e1e5ef;
  --forest: #28305b;
  --mint: #e7f1e6;
  --gold: #f8ecd3;
  --rose: #f9e9df;
  --lavender: #ede8f8;
  font: 16px/1.5 "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; opacity: .55; }
a { color: inherit; }
:focus-visible { outline: 3px solid #5b9678; outline-offset: 3px; }
svg { width: 20px; height: 20px; flex: none; vertical-align: middle; }
h1,h2,h3,p { margin: 0; }
h1,h2 { letter-spacing: -.045em; line-height: 1.04; }
h1 { font-size: clamp(2.25rem, 4vw, 3.65rem); font-weight: 700; }
h2 { font-size: 1.7rem; }
.muted, small { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 750; }
.loading { padding: 4rem; }
.shell { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: #eef2eb; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 34px; padding: 29px 21px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: var(--forest); box-shadow: 0 3px 8px #183c3025; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.12rem; letter-spacing: -.035em; }
.brand small { font-size: .76rem; }
.nav-title { color: #60746a; margin: 0 10px 10px; }
.nav { display: grid; gap: 5px; }
.nav button { display: flex; align-items: center; gap: 9px; border: 0; background: transparent; text-align: left; padding: 10px 11px; border-radius: 10px; font-weight: 650; }
.nav button:hover { background: #e1eadf; }
.nav button.active { color: #1e5038; background: #dceadd; }
.families { display: grid; gap: 12px; padding: 1px 10px; font-size: .88rem; }
.families span { display: flex; align-items: center; gap: 9px; }
.dot { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--dot, #778c7b); }
.dot.needed { --dot: #bc734d; }
.dot.event { --dot: #6487b2; }
.dot.nursery { --dot: #a1aaa2; }
.lawrence { --dot: #448065; --tint: #e3f0e6; --label: #244f3c; }
.goldsworthy { --dot: #af7d26; --tint: #f8ebd1; --label: #6b4611; }
.parents { --dot: #8062af; --tint: #eee7f8; --label: #553e7a; }
.identity { margin-top: auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--label); font-weight: 800; flex: none; }
.identity .who { flex: 1; min-width: 0; }
.who strong, .who small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn { display: inline-grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 9px; width: 36px; height: 36px; padding: 0; }
.icon-btn:hover, .button.light:hover { background: #edf3ec; }
.workspace { min-width: 0; padding: 23px clamp(16px, 3vw, 45px) 35px; max-width: 1650px; width: 100%; margin-inline: auto; }
.topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 32px; margin-bottom: 18px; }
.mode { display: inline-flex; gap: 7px; align-items: center; font-size: .76rem; font-weight: 700; border-radius: 100px; padding: 5px 10px; background: #e9eee6; color: #3c594a; }
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; justify-content: space-between; align-items: end; gap: 24px; background: var(--forest); color: #fff; border-radius: 22px; padding: clamp(21px, 3vw, 38px); }
.hero::before, .hero::after { content: ""; z-index: -1; position: absolute; border: 1px solid #d6eed62a; border-radius: 50%; width: 310px; height: 310px; right: 3%; bottom: -232px; box-shadow: 0 0 0 24px #d6eed616, 0 0 0 53px #d6eed610, 0 0 0 84px #d6eed60b, 0 0 0 120px #d6eed608; }
.hero::after { width: 5px; height: 5px; border: 0; background: #d7e7a3; right: 21%; bottom: 72%; box-shadow: 48px 42px #cee3c377, 123px -12px #dcebac88, -52px 23px #dcebac66; }
.hero .eyebrow { color: #bed6bd; margin-bottom: 9px; }
.hero p:last-child { color: #d4e6d8; margin-top: 10px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; border-radius: 10px; border: 1px solid transparent; font-weight: 700; padding: 9px 13px; text-decoration: none; white-space: nowrap; }
.button.primary { background: var(--green); color: white; }
.button.primary:hover { background: #32654f; }
.button.light { background: #fff; border-color: var(--line); }
.button.hero-button { background: #edf2d7; color: #213d30; }
.button.hero-button:hover { background: #fff; }
.button.danger { color: #8e382b; background: #fae8e0; }
.dashboard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 275px); gap: 17px; margin-top: 20px; align-items: start; }
.card { border: 1px solid var(--line); border-radius: 17px; background: #fff; min-width: 0; box-shadow: 0 2px 3px #244e3e05; }
.cal-head { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding: 17px; }
.cal-head h2 { font-size: 1.65rem; }
.actions { display: flex; align-items: center; gap: 6px; }
.actions .button { min-height: 36px; padding: 5px 11px; font-size: .85rem; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.weekday { border-top: 1px solid var(--line); background: #f5f6fb; padding: 10px 5px; text-align: center; color: #526079; font-size: .87rem; font-weight: 750; }
.day { display: block; text-align: left; position: relative; min-height: 90px; border: 0; border-top: 1px solid var(--line); border-right: 1px solid var(--line); background: #fff; padding: 6px 5px; min-width: 0; }
.day:nth-child(7n) { border-right: 0; }
.day:hover { background: #f2f7ef; }
.day:focus-visible { outline-offset: -3px; z-index: 1; }
.day.outside { background: #f6f8f5; }
.day.nursery-day { background: #e6e8e7; }
.day.nursery-day:hover { background: #dcdedc; }
.nursery-label { display: block; font-size: .85rem; font-weight: 650; color: #515b6a; white-space: normal; }
.day.selected { background: #eef5e9; box-shadow: inset 0 0 0 2px #8caa91; }
.day.family-day { background-image: linear-gradient(var(--wash), var(--wash)); }
.day.family-day.lawrence { --wash: #44806522; }
.day.family-day.goldsworthy { --wash: #af7d2624; }
.day.family-day.parents { --wash: #8062af20; }
.day.family-day .tag { display: block; }
.day .tag.needed { white-space: normal; line-height: 1.25; }
.day-inner { display: flex; flex-direction: column; justify-content: start; align-items: flex-start; gap: 4px; height: 100%; }
.number { display: grid; place-items: center; min-width: 30px; height: 30px; font-size: 1rem; font-weight: 750; }
.day.outside .number { color: #75847b; }
.day.today .number { background: var(--green); color: #fff; border-radius: 50%; }
.tag { display: block; max-width: 100%; overflow-wrap: anywhere; white-space: normal; border-radius: 6px; padding: 4px 5px; font-size: .85rem; line-height: 1.3; font-weight: 650; color: var(--label, #3d574a); background: var(--tint, #edf3ec); }
.tag.held { outline: 1px dashed var(--dot); outline-offset: -1px; }
.tag.needed { background: var(--rose); color: #7d472e; }
.tag.event { background: #e8eff8; color: #3d5677; }
.tag.nursery { color: #5b6862; background: #eff1ed; }
.day .dots { display: none; }
.day { padding: 9px 7px 43px; min-height: 133px; }
.shift-track { position: absolute; left: 0; right: 0; bottom: 4px; display: block; pointer-events: none; }
.shift-track svg { display: block; width: 100%; height: 24px; }
.time-ticks { display: flex; justify-content: space-between; padding: 0 4px; font-size: 10px; line-height: 12px; color: #59647a; }
.shift-day-key { color: #34758a; }
.shift-night-key { color: #7064a5; }
.shift-detail { margin: 8px 0; color: #416477; }
.calendar-key { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: .75rem; color: var(--muted); }
.calendar-key .dot { margin-right: 4px; }
.sidecards { display: grid; gap: 13px; }
.panel { padding: 16px; }
.panel h3 { font-size: 1.03rem; letter-spacing: -.02em; margin-bottom: 2px; }
.panel p { font-size: .82rem; }
.panel-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.panel-icon { padding: 7px; background: #ecf3e9; border-radius: 9px; }
.panel-icon svg { width: 16px; height: 16px; }
.need-list, .receipt-list { display: grid; gap: 5px; padding: 0; margin: 10px 0 0; list-style: none; }
.need { display: flex; align-items: center; width: 100%; text-align: left; border: 0; border-radius: 8px; background: #f6f8f4; gap: 9px; padding: 7px; }
.need:hover { background: #eaf1e8; }
.date-chip { min-width: 35px; padding: 3px 4px; text-align: center; background: #e9efe5; border-radius: 7px; display: grid; font-weight: 800; line-height: 1.1; }
.date-chip small { text-transform: uppercase; font-size: .58rem; margin-bottom: 2px; }
.need-copy { display: grid; min-width: 0; flex: 1; font-size: .81rem; }
.need-copy small { font-size: .71rem; }
.selections { background: #f0f5ea; }
.selections .button, .details .button { width: 100%; margin-top: 10px; }
.selected-date { display: flex; justify-content: space-between; align-items: center; gap: 4px; font-size: .82rem; margin-top: 6px; }
.selected-date .icon-btn { width: 26px; height: 26px; }
.selected-date svg { width: 14px; height: 14px; }
.details .row { border-top: 1px solid var(--line); padding-top: 7px; margin-top: 7px; font-size: .84rem; }
.details .row button { background: transparent; border: 0; padding: 0; color: var(--green); text-decoration: underline; }
.footer { margin-top: 13px; font-size: .75rem; color: var(--muted); }
.footer button { border: 0; background: transparent; text-decoration: underline; padding: 0 3px; }
.receipt { max-width: 800px; margin: 20px auto 0; }
.receipt .hero { margin: 12px 0 18px; }
.receipt .panel { margin-bottom: 12px; }
.receipt-list li { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; border-top: 1px solid var(--line); padding: 9px 0; }
.receipt-list .links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.receipt-list a { font-size: .78rem; }
.receipt-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 18px; background: radial-gradient(ellipse at top left, #dfeadb, transparent 55%), var(--paper); }
.login article { width: min(460px, 100%); padding: clamp(21px, 5vw, 38px); }
.login h1 { margin-top: 22px; }
.login p { margin-top: 9px; }
.form { display: grid; gap: 13px; margin-top: 15px; }
.form label { display: grid; gap: 4px; font-weight: 650; }
.form input, .form select { min-width: 0; padding: 9px 10px; border-radius: 9px; border: 1px solid #a9bcb0; color: var(--ink); background: #fff; }
.form .actions { flex-wrap: wrap; }
.error { color: #963d2c; }
dialog { width: min(430px, calc(100% - 30px)); padding: 22px; border: 1px solid var(--line); border-radius: 17px; color: var(--ink); }
dialog::backdrop { background: #182e25a0; }
#notice:not(:empty) { position: fixed; right: 16px; bottom: 16px; z-index: 2; max-width: min(420px, calc(100vw - 32px)); border-radius: 10px; color: white; background: var(--forest); padding: 10px 14px; box-shadow: 0 3px 14px #20382e40; }
@media (max-width: 1160px) {
  .shell { grid-template-columns: 176px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .dashboard { grid-template-columns: minmax(0, 1fr) 230px; }
}
@media (max-width: 1000px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { flex-direction: row; align-items: center; justify-content: space-between; gap: 9px; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar .nav-title, .families, .brand small { display: none; }
  .nav { display: flex; }
  .nav button { padding: 6px; font-size: .82rem; }
  .identity { margin: 0; }
  .workspace { padding-top: 12px; }
}
@media (max-width: 730px) {
  .dashboard { grid-template-columns: 1fr; }
  .sidecards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidecards .details { grid-column: 1 / -1; grid-row: 1; }
  .hero { align-items: flex-start; flex-direction: column; gap: 13px; }
  .hero p:last-child { margin-top: 5px; }
  .day { min-height: 91px; padding: 4px 4px 41px; }
  .day .tag { display: none; }
  .day .dots { display: flex; gap: 3px; flex-wrap: wrap; }
  .day .dot { width: 6px; height: 6px; }
  .identity .who, .identity .avatar, .nav svg { display: none; }
  .brand-mark { width: 33px; height: 33px; border-radius: 9px; }
}
@media (max-width: 400px) {
  .sidecards { grid-template-columns: 1fr; }
  .sidebar { padding-inline: 10px; }
  .nav button { font-size: .72rem; }
  .hero { border-radius: 15px; }
}
.sidebar { background: #f0f2f9; }
.nav button.active { color: #4546b8; background: #e5e7fc; }
.nav button:hover { background: #e7eaf5; }
.hero { background: linear-gradient(120deg, #273056, #454b97); }
.hero .eyebrow { color: #c6cef9; }
.hero p:last-child { color: #e0e5fc; }
.button.hero-button { background: #eef0ff; color: #353c78; }
.button.primary:hover { background: #4346ba; }
.button.light:hover, .icon-btn:hover { background: #eef0fb; }
.day:hover { background-color: #f1f3fc; }
.day.selected { background-color: #edf0ff; box-shadow: inset 0 0 0 2px #7c83d5; }
.day.nursery-day { background-color: #e7e9ef; }
.day.nursery-day:hover { background-color: #dde1ea; }
.day.nursery-day.selected { background-color: #e0e3f2; }
.selections { background: #f0f2ff; }
.panel-icon, .date-chip { background: #e9ecf9; }
.need { background: #f6f7fb; }
.need:hover { background: #eceffa; }
.mode { background: #e9ecf8; color: #4d5b82; }
.card { box-shadow: 0 4px 18px #26315b05; }
.calendar-scroll { overflow-x: auto; border-radius: 0 0 12px 12px; }
.calendar-grid { min-width: 680px; }
.login { background: radial-gradient(ellipse at 15% 10%, #dfe4ff, transparent 55%), radial-gradient(ellipse at 90% 90%, #e9ddff, transparent 55%), #f5f6fb; }
.login article.onboarding { width: min(650px, 100%); padding: clamp(24px, 5vw, 44px); }
.onboarding h1 { font-size: clamp(2rem, 4vw, 2.7rem); margin: 14px 0; line-height: 1.12; }
.onboarding .eyebrow { margin-top: 25px; color: #6b72a4; }
.onboarding > .button { margin-top: 16px; }
.onboarding .form { margin-bottom: 15px; }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0 5px; }
.person { display: flex; text-align: left; gap: 10px; align-items: center; padding: 14px 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.person:hover:not(:disabled) { border-color: #8589dc; background: #f4f5ff; }
.person strong { display: block; font-size: .88rem; }
.person small { display: block; font-size: .76rem; }
.person-state { margin-left: auto; color: #79809c; font-size: .7rem; }
.person:disabled { opacity: .5; }
.code-input { text-align: center; letter-spacing: .35em; font-size: 1.8rem; font-weight: 700; }
.preview-email { background: #f1f3fb; border: 1px dashed #acb3d7; padding: 13px; border-radius: 10px; margin: 15px 0; }
.preview-email p { margin-top: 3px; }
.welcome-check { display: block; font-size: 2.4rem; color: #5558d9; margin-top: 24px; }
.approval-list { margin-top: 20px; }
.approval-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.approval-row p { overflow-wrap: anywhere; }
.approval-row:last-child { border-bottom: 0; }
:focus-visible { outline-color: #7b83df; }
@media (max-width: 730px) {
  .day { min-height: 125px; padding: 7px 6px 43px; }
  .day .tag { display: block; }
  .day .dots { display: none; }
}
@media (max-width: 480px) {
  .people { grid-template-columns: 1fr; }
}

.code-fields{border:0;padding:0;margin:0;min-width:0}.code-fields legend{font-weight:600;margin-bottom:12px}.code-boxes{display:flex;gap:clamp(6px,2vw,12px)}.code-boxes .code-digit{width:0;flex:1;min-width:0;max-width:64px;height:66px;padding:0;text-align:center;font-size:1.8rem;font-weight:700;border-radius:12px;border:2px solid #dce0ee;background:#f8f9ff;caret-color:#635bcd}.code-digit:focus{outline:3px solid #dedbff;border-color:#7366d6;background:white}.calendar-blank{background:#f4f5fa;border-right:1px solid #e6e8f0;border-bottom:1px solid #e6e8f0;min-height:125px}

