:root {
  font-family:
    ui-rounded, "SF Pro Rounded", "Avenir Next", Avenir, system-ui, sans-serif;
  color: #243b50;
  background: #f2f6fa;
  font-synthesis: none;
  --ink: #23445c;
  --line: #dce4eb;
  --muted: #617183;
  --rob: #dceafa;
  --paneet: #eee2f4;
  --sage: #deeee6;
  --gold: #fff1d0;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
  min-height: 44px;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #247caa;
  outline-offset: 3px;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(29px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -1.3px;
  font-weight: 750;
  margin-bottom: 0;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.45px;
  margin-bottom: 8px;
}
h3 {
  font-size: 17px;
  letter-spacing: -0.2px;
}
p {
  line-height: 1.55;
}
small {
  font-size: 12px;
}
strong {
  font-weight: 700;
}
.topbar {
  height: 80px;
  max-width: 1100px;
  margin: auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -0.8px;
}
.brand-mark {
  height: 68px;
  width: 68px;
  border-radius: 21px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 55px;
  font-weight: 700;
  line-height: 1;
  padding-bottom: 5px;
  box-shadow: 8px 8px 0 #d5e6e0;
}
.brand-mark.small {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  font-size: 31px;
  box-shadow: none;
  padding-bottom: 3px;
}
.identity {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.main {
  max-width: 1100px;
  margin: auto;
  padding: 24px 28px 120px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin: 0 0 28px;
}
.household {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 9px;
}
.sync {
  font-size: 12px;
  text-align: right;
  color: #675337;
  max-width: 180px;
  flex-shrink: 0;
}
.sync.online {
  color: #356651;
}
.sync.online:before {
  content: "●";
  font-size: 8px;
  margin-right: 6px;
}
.week-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.week-toolbar > div {
  min-width: 200px;
}
.week-toolbar strong {
  display: block;
  font-size: 16px;
}
.week-toolbar span {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}
.icon-button {
  width: 42px;
  min-width: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 27px;
  display: grid;
  place-items: center;
  background: #fff;
  line-height: 1;
}
.today {
  margin-left: auto;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 12px;
}
.board {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 20px 16px;
}
.board-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.board-top h2 {
  margin: 0;
  font-size: 17px;
}
.board-top p {
  font-size: 12px;
  margin: 0;
  color: var(--muted);
}
.week-grid {
  border-collapse: separate;
  border-spacing: 5px 5px;
  width: 100%;
  table-layout: fixed;
}
.week-grid th {
  font-weight: 600;
}
.week-grid .row-label {
  width: 70px;
  text-align: left;
  padding: 0 6px 0 0;
  font-size: 12px;
}
.row-label strong {
  display: block;
  font-size: 14px;
}
.row-label span {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 3px;
}
.week-grid thead > .row-label {
  vertical-align: bottom;
}
.week-grid th:not(.row-label),
.week-grid td {
  padding: 0;
}
.day-heading {
  border-radius: 9px;
  width: 100%;
  padding: 9px 2px;
  background: #f0f4f7;
}
.day-heading strong {
  display: inline;
  margin-right: 6px;
  font-size: 13px;
}
.day-heading span {
  font-size: 12px;
  font-weight: 400;
}
.day-heading.away {
  box-shadow: inset 0 -3px #8a709a;
}
.day-heading.home {
  box-shadow: inset 0 -3px #71a794;
}
.day-heading.mixed {
  box-shadow: inset 0 -3px #82a6c6;
}
.day-heading.off {
  box-shadow: inset 0 -3px #bea66e;
}
.rob {
  background: var(--rob);
  color: #244f7b;
}
.paneet {
  background: var(--paneet);
  color: #6d3f7d;
}
.katie {
  background: #d5eeeb;
  color: #215f59;
}
.both {
  background: var(--sage);
  color: #35614d;
}
.other {
  background: #e9e9f0;
  color: #545471;
}
.unassigned {
  background: var(--gold);
  color: #715413;
}
.home {
  background: #f0f5f2;
  color: #426856;
}
.board-legend {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 11px;
  margin: 18px 5px 0;
  color: var(--muted);
}
.board-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.board-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.week-summary {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 18px 3px;
  color: #52677a;
}
.week-summary strong {
  font-size: 18px;
  color: var(--ink);
  margin-right: 3px;
}
.week-summary span {
  font-size: 11px;
  color: var(--muted);
}
.combination-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 28px;
}
.combination-strip > div {
  border-left: 3px solid #c6d5df;
  padding: 8px 10px;
  background: transparent;
}
.combination-strip > div.away {
  border-color: #bba5c7;
}
.combination-strip > div.home {
  border-color: #9ac0b1;
}
.combination-strip > div.off {
  border-color: #d8c391;
}
.combination-strip span {
  font-size: 11px;
  color: var(--muted);
}
.combination-strip strong {
  display: block;
  font-size: 12px;
  line-height: 1.3;
  margin: 6px 0;
}
.combination-strip small {
  font-size: 11px;
  line-height: 1.3;
  display: block;
  color: var(--muted);
}
.checks {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}
.section-heading h2 {
  margin: 0;
}
.section-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.count {
  border: 1px solid #d5dfe7;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.checks ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 26px;
}
.checks li {
  display: flex;
  align-items: start;
  gap: 12px;
  padding: 10px 0;
}
.checks li p {
  font-size: 13px;
  line-height: 1.4;
  margin: 2px 0 0;
  color: #586b7b;
}
.checks li strong {
  font-size: 12px;
}
.check-dot {
  display: grid;
  place-items: center;
  flex: 0 0 27px;
  height: 27px;
  border-radius: 50%;
  background: #ffedc7;
  color: #725b24;
  font-size: 12px;
}
.check-dot.timing {
  background: #e2eaf2;
  color: #45637c;
}
.text-button {
  min-height: 24px;
  padding: 0;
  color: var(--ink);
  font-weight: 650;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.quiet-note {
  font-size: 12px;
  color: var(--muted);
  margin: 24px 0 0;
  max-width: 630px;
}
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  padding: 7px 15px max(9px, env(safe-area-inset-bottom));
  z-index: 10;
  gap: 8px;
}
.bottom-nav button {
  width: 130px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  font-size: 12px;
  color: #63798b;
}
.bottom-nav button > span {
  font-size: 22px;
}
.bottom-nav button[aria-current] {
  color: var(--ink);
  background: #e8eff5;
  font-weight: 700;
}
.primary,
.secondary {
  min-height: 44px;
  border-radius: 11px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}
.primary {
  background: var(--ink);
  color: #fff;
}
.secondary {
  background: white;
  border: 1px solid #ccd8e1;
  color: var(--ink);
}
.wide {
  width: 100%;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.day-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 24px;
}
.day-tabs button {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 10px;
  font-size: 13px;
}
.day-tabs span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
}
.day-tabs button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.day-detail {
  margin: 0 0 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}
.work-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 16px 0 24px;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.work-pair span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.work-pair strong {
  font-size: 15px;
}
.day-care-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 26px;
}
.day-care-grid h3 small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  margin-top: 6px;
}
.handover {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 14px 0;
  font-size: 13px;
}
.handover small {
  color: var(--muted);
  font-size: 11px;
}
.person {
  padding: 7px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
}
.note {
  background: #f2f6fa;
  padding: 16px;
  border-radius: 10px;
  font-size: 13px;
  margin-top: 16px;
}
.note p {
  margin: 5px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.compare-intro {
  max-width: 690px;
  margin: 30px 0 24px;
}
.compare-intro p {
  color: var(--muted);
  font-size: 14px;
}
.compare-key {
  display: flex;
  gap: 20px;
  font-size: 12px;
}
.pattern-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.pattern {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 20px;
}
.pattern.selected {
  border: 2px solid #446c83;
  padding: 19px;
}
.pattern-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 30px;
}
.pattern-title h3 {
  font-size: 15px;
  margin: 0;
}
.badge {
  font-size: 10px;
  color: #36604e;
  background: var(--sage);
  padding: 5px 7px;
  border-radius: 8px;
}
.pattern-week {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin: 20px 0;
  font-size: 19px;
  text-align: center;
  color: var(--ink);
}
.pattern-week span {
  padding: 5px 1px;
  border-radius: 7px;
  background: #f0f5f7;
}
.pattern-week span.office {
  background: #dfe9f2;
}
.pattern-week small {
  display: block;
  font-size: 10px;
  margin-bottom: 4px;
  color: var(--muted);
}
.pattern p {
  font-size: 12px;
  margin: 5px 0;
}
.pattern .pattern-check {
  color: var(--muted);
  font-size: 11px;
  min-height: 30px;
}
.pattern > button {
  width: 100%;
  margin-top: 12px;
}
.plan-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
}
.plan-panel > p {
  font-size: 14px;
  color: var(--muted);
  max-width: 710px;
}
.plan-panel .small-note {
  font-size: 12px;
  margin: 16px 0 0;
}
.auth,
.loading {
  max-width: 440px;
  padding: 55px 24px;
  margin: auto;
}
.brand-word {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin: 22px 0 34px;
}
.auth h1 {
  font-size: 40px;
  margin-bottom: 18px;
}
.lead {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.auth form {
  background: white;
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 18px;
  margin-top: 28px;
}
.auth form h2 {
  font-size: 19px;
}
.auth form p {
  font-size: 13px;
  color: var(--muted);
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  border: 1px solid #bfced9;
  border-radius: 9px;
  background: white;
  color: #243b50;
  min-height: 46px;
  padding: 10px 11px;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 400;
  max-width: 100%;
}
textarea {
  resize: vertical;
}
.password-wrap {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
}
.password-wrap input {
  margin: 0;
  min-width: 0;
}
.auth form input#confirm-password {
  margin-bottom: 20px;
}
.auth form label {
  margin-bottom: 8px;
}
.auth-foot {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  margin-top: 28px;
}
.auth form .error,
.error {
  color: #a13338;
  font-size: 13px;
  line-height: 1.4;
  margin: 15px 0 0;
}
.error:empty {
  display: none;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0;
  max-height: 90dvh;
  width: min(600px, calc(100% - 28px));
  color: #243b50;
  box-shadow: 0 20px 80px #243b502d;
}
dialog::backdrop {
  background: #1b324d77;
  backdrop-filter: blur(3px);
}
dialog form {
  display: flex;
  flex-direction: column;
  max-height: 88dvh;
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.dialog-header p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.dialog-header h2 {
  font-size: 26px;
  margin: 0;
}
.dialog-body {
  padding: 22px 24px;
  overflow: auto;
}
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #fff;
  flex-shrink: 0;
}
.dialog-footer .primary {
  min-width: 140px;
}
fieldset {
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 0 14px;
  margin: 0 0 22px;
  min-width: 0;
}
legend {
  font-size: 17px;
  font-weight: 700;
  padding: 0 0 16px;
}
.form-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-pair label {
  min-width: 0;
}
.field-help {
  font-size: 12px;
  color: var(--muted);
  margin-top: -4px;
}
.confirm-box {
  padding: 28px;
}
.confirm-box p {
  color: var(--muted);
  font-size: 14px;
}
.confirm-box .button-row {
  margin-top: 24px;
}
#toast {
  position: fixed;
  bottom: 94px;
  left: 50%;
  transform: translate(-50%, 10px);
  width: max-content;
  max-width: min(560px, calc(100% - 28px));
  color: white;
  background: #23445c;
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.15s,
    transform 0.15s;
  box-shadow: 0 8px 20px #243b5020;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
@media (min-width: 900px) {
  .plan-panel {
    padding: 28px;
  }
  .pattern-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 700px) {
  .topbar {
    height: 65px;
    padding: 0 18px;
  }
  .main {
    padding: 18px 14px 110px;
  }
  .page-heading {
    display: block;
    margin-bottom: 24px;
  }
  .household {
    font-size: 12px;
    margin-bottom: 7px;
  }
  h1 {
    font-size: 31px;
    letter-spacing: -1px;
  }
  .sync {
    display: block;
    text-align: left;
    max-width: 100%;
    margin-top: 10px;
    font-size: 11px;
  }
  .week-toolbar {
    gap: 8px;
    margin-bottom: 16px;
  }
  .week-toolbar > div {
    min-width: 0;
    flex: 1;
  }
  .week-toolbar strong {
    font-size: 14px;
  }
  .week-toolbar span {
    font-size: 10px;
  }
  .week-toolbar .icon-button {
    min-width: 34px;
    width: 34px;
    min-height: 40px;
    border-radius: 10px;
  }
  .today {
    padding: 0 9px;
    font-size: 10px;
    min-height: 40px;
    margin-left: 0;
  }
  .board {
    padding: 15px 7px 13px;
    border-radius: 15px;
    margin: 0 -3px;
  }
  .board-top {
    display: block;
    padding: 0 7px;
    margin-bottom: 9px;
  }
  .board-top h2 {
    font-size: 15px;
  }
  .board-top p {
    font-size: 10px;
    margin-top: 5px;
  }
  .week-grid {
    border-spacing: 3px 4px;
  }
  .week-grid .row-label {
    width: 32px;
    font-size: 9px;
    padding: 0 2px;
  }
  .row-label strong {
    font-size: 10px;
    letter-spacing: -0.2px;
  }
  .row-label span {
    font-size: 9px;
    margin-top: 3px;
  }
  .day-heading {
    padding: 8px 0;
  }
  .day-heading strong {
    display: block;
    font-size: 11px;
    margin: 0 0 2px;
  }
  .day-heading span {
    font-size: 10px;
  }
  .board-legend {
    font-size: 10px;
    gap: 12px;
    margin: 13px 4px 0;
    justify-content: center;
  }
  .week-summary {
    font-size: 11px;
    padding: 16px 1px;
  }
  .week-summary strong {
    font-size: 16px;
  }
  .week-summary span {
    display: none;
  }
  .combination-strip {
    gap: 3px;
    margin-bottom: 24px;
  }
  .combination-strip > div {
    padding: 4px 5px;
    border-left-width: 2px;
  }
  .combination-strip span {
    font-size: 9px;
  }
  .combination-strip strong {
    font-size: 10px;
    line-height: 1.35;
    margin: 5px 0;
  }
  .combination-strip small {
    font-size: 9px;
  }
  .checks {
    padding-top: 20px;
  }
  .checks h2 {
    font-size: 18px;
  }
  .checks ul {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .checks li p {
    font-size: 12px;
  }
  .checks li {
    gap: 10px;
  }
  .quiet-note {
    font-size: 11px;
  }
  .bottom-nav {
    gap: 0;
    padding-top: 5px;
  }
  .bottom-nav button {
    flex: 1;
    max-width: 135px;
    flex-direction: column;
    gap: 2px;
    font-size: 10px;
    min-height: 52px;
  }
  .bottom-nav button > span {
    font-size: 21px;
    line-height: 24px;
  }
  .day-detail {
    padding: 18px;
  }
  .day-detail .section-heading h2 {
    font-size: 18px;
  }
  .day-detail .primary {
    padding: 10px 12px;
    font-size: 12px;
  }
  .day-care-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .day-care-grid article + article {
    border-top: 1px solid var(--line);
    padding-top: 22px;
  }
  .work-pair {
    gap: 12px;
  }
  .work-pair strong {
    font-size: 13px;
  }
  .day-tabs {
    gap: 6px;
    margin-bottom: 18px;
  }
  .day-tabs button {
    padding: 8px;
    font-size: 12px;
  }
  .pattern-list {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .pattern {
    padding: 13px;
    border-radius: 12px;
  }
  .pattern.selected {
    padding: 12px;
  }
  .pattern-title {
    display: block;
    min-height: 43px;
  }
  .pattern-title h3 {
    font-size: 13px;
  }
  .badge {
    display: inline-block;
    margin-top: 5px;
    padding: 2px 6px;
    font-size: 9px;
  }
  .pattern-week {
    gap: 3px;
    margin: 12px 0;
    font-size: 16px;
  }
  .pattern-week small {
    font-size: 9px;
  }
  .pattern p {
    font-size: 11px;
  }
  .pattern .pattern-check {
    font-size: 10px;
    min-height: 32px;
  }
  .pattern button {
    padding: 10px 6px;
    font-size: 11px;
  }
  .compare-intro h2 {
    font-size: 18px;
  }
  .compare-intro p {
    font-size: 13px;
  }
  .plan-panel {
    padding: 20px;
  }
  .plan-panel h2 {
    font-size: 18px;
  }
  .plan-panel > p {
    font-size: 13px;
  }
  .plan-panel .button-row {
    flex-direction: column;
  }
  .form-pair {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .dialog-header {
    padding: 20px 20px 14px;
  }
  .dialog-body {
    padding: 20px;
  }
  .dialog-footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  dialog {
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: none;
    max-height: 93dvh;
    margin: auto 0 0;
    border-bottom: 0;
  }
  dialog form {
    max-height: 91dvh;
  }
  .auth {
    padding-top: 42px;
  }
  .auth h1 {
    font-size: 36px;
  }
  .auth form {
    padding: 22px;
  }
  .brand-word {
    margin-bottom: 28px;
  }
}
@media (max-width: 360px) {
  .main {
    padding-left: 10px;
    padding-right: 10px;
  }
  .board-legend {
    gap: 9px;
  }
  .week-grid .row-label {
    width: 44px;
  }
  .week-toolbar strong {
    font-size: 12px;
  }
  .week-toolbar span {
    font-size: 9px;
  }
  .today {
    padding: 0 6px;
  }
  .pattern-title h3 {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .topbar,
  .bottom-nav,
  .week-toolbar button,
  .identity,
  .sync {
    display: none;
  }
  .main {
    padding: 0;
  }
  .board {
    break-inside: avoid;
  }
  .checks {
    break-inside: avoid;
  }
  body {
    background: white;
  }
  button {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}

/* All-day work rows sit above the two half-day care rows. */
.work-row .row-label {
  vertical-align: middle;
}
.work-row[data-person="rob"] .row-label strong {
  color: #244f7b;
}
.work-row[data-person="paneet"] .row-label strong {
  color: #6d3f7d;
}
.work-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  width: 100%;
  min-height: 55px;
  padding: 8px 3px;
  border: 1px solid transparent;
  border-radius: 9px;
  line-height: 1.3;
}
.work-summary strong {
  font-size: 12px;
  font-weight: 600;
}
.work-summary span {
  font-size: 10px;
}
.work-summary.wfh {
  background: #edf5f0;
  color: #35614d;
}
.work-summary.office {
  background: #eaf0f7;
  color: #31526e;
}
.work-summary.off {
  background: #faf2df;
  color: #715413;
}
.work-summary:hover {
  border-color: currentColor;
}
.work-row + .period-row > * {
  border-top: 18px solid transparent;
}
.week-grid .period-cell {
  vertical-align: top;
}
.period-row > .row-label {
  vertical-align: top;
  padding-top: 16px;
}
.period-row + .period-row > * {
  border-top: 15px solid transparent;
}
.person-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.person-block {
  border-radius: 10px;
  padding: 2px 6px;
  overflow: hidden;
}
.person-heading {
  width: 100%;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 6px 4px;
  text-align: left;
  line-height: 1.3;
}
.person-heading strong {
  font-size: 13px;
}
.duty {
  width: 100%;
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 8px 4px;
  text-align: left;
  border-top: 1px solid #23445c20;
  line-height: 1.3;
}
.duty strong {
  font-size: 12px;
  font-weight: 600;
}
.duty span {
  font-size: 11px;
}
.duty:hover {
  background: #ffffff35;
}
.duty:focus-visible {
  outline-offset: -3px;
  border-radius: 6px;
}
.care-context {
  display: block;
  width: 100%;
  padding: 6px 2px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
  min-height: 36px;
}
.board .board-legend {
  justify-content: flex-start;
  margin: 0 5px 16px;
}
.board-help {
  margin: 10px 5px 0;
  font-size: 11px;
  color: var(--muted);
}
.untimed {
  margin: 18px 5px 0;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.untimed h3 {
  font-size: 12px;
  margin-bottom: 8px;
}
.untimed > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.untimed button {
  background: var(--gold);
  color: #715413;
  border-radius: 9px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  min-height: 44px;
}
.untimed button span {
  font-size: 11px;
}
@media (max-width: 700px) {
  .week-grid .row-label {
    width: 45px;
  }
  .work-row .row-label strong {
    font-size: 11px;
    letter-spacing: -0.2px;
  }
  .work-row .row-label span {
    font-size: 9px;
  }
  .work-summary {
    min-height: 53px;
    padding: 6px 2px;
    border-radius: 7px;
  }
  .work-summary strong {
    font-size: 10px;
  }
  .work-summary span {
    font-size: 9px;
  }
  .work-row + .period-row > * {
    border-top-width: 14px;
  }
  .period-row > .row-label {
    padding-top: 12px;
  }
  .period-row > .row-label strong {
    font-size: 12px;
    letter-spacing: 0;
  }
  .period-row > .row-label span {
    display: none;
  }
  .period-row + .period-row > * {
    border-top-width: 12px;
  }
  .person-stack {
    gap: 6px;
  }
  .person-block {
    border-radius: 7px;
    padding: 1px 2px;
  }
  .person-heading,
  .duty {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 6px 1px;
    gap: 3px;
    min-height: 46px;
  }
  .person-heading strong {
    font-size: 10px;
    letter-spacing: -0.2px;
  }
  .person-heading {
    min-height: 28px;
    padding: 5px 1px;
  }
  .duty strong {
    font-size: 10px;
  }
  .duty span {
    font-size: 9px;
  }
  .care-context {
    font-size: 9px;
    padding: 6px 1px;
    min-height: 44px;
  }
  .board .board-legend {
    margin: 12px 7px;
    gap: 12px;
    justify-content: flex-start;
  }
  .board-help {
    font-size: 10px;
  }
  .untimed {
    margin-top: 13px;
    padding-top: 12px;
  }
  .untimed h3 {
    font-size: 11px;
  }
  .untimed button {
    padding: 7px 10px;
    gap: 7px;
    font-size: 11px;
  }
  .untimed button span {
    font-size: 10px;
  }
}

/* Focused editing keeps one task and its choices together. */
dialog.quick-editor {
  width: min(420px, calc(100% - 28px));
}
.quick-editor .dialog-header {
  border-bottom: 0;
  align-items: flex-start;
  padding-bottom: 4px;
}
.quick-editor .dialog-header h2 {
  font-size: 23px;
}
.quick-editor .dialog-header .icon-button {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}
.quick-editor .dialog-body {
  padding-top: 16px;
  padding-bottom: 16px;
}
.quick-field {
  border: 0;
  padding: 0;
  margin: 0 0 18px;
}
.quick-field legend {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  padding-bottom: 9px;
}
.quick-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.quick-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 12px 10px;
  border: 2px solid transparent;
  border-radius: 11px;
  background: #f0f4f8;
  min-height: 50px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.quick-choice:has(input:checked) {
  border-color: currentColor;
}
.quick-choice:has(input:focus-visible) {
  outline: 3px solid #4380b8;
  outline-offset: 2px;
}
.quick-choice input {
  appearance: auto;
  flex: 0 0 16px;
  min-height: 0;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  accent-color: #23445c;
}
.quick-choice.rob {
  background: var(--rob);
}
.quick-choice.paneet {
  background: var(--paneet);
}
.quick-choice.katie {
  background: #d5eeeb;
}
.quick-choice.both {
  background: var(--sage);
}
.quick-choice.other {
  background: #e9e9f0;
}
.quick-choice.unassigned {
  background: var(--gold);
}
.quick-field:disabled .quick-choice {
  cursor: default;
}
.quick-help {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 0 0 12px;
}
.quick-help:empty {
  display: none;
}
.more-options {
  min-height: 44px;
  font-size: 12px;
}
.quick-editor .dialog-footer .primary {
  min-width: 128px;
}
#toast {
  display: flex;
  align-items: center;
  gap: 16px;
}
#toast.show {
  pointer-events: auto;
}
#toast button {
  color: white;
  text-decoration: underline;
  font-weight: 700;
  min-height: 44px;
  padding: 0 8px;
  flex-shrink: 0;
}
.drag-hint {
  display: none;
}
.assignment-tray {
  position: fixed;
  z-index: 110;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%);
  width: min(700px, calc(100% - 32px));
  padding: 18px 22px 14px;
  background: white;
  box-shadow: 0 8px 40px #23445c33;
  border: 1px solid var(--line);
  border-radius: 18px;
  text-align: center;
}
.assignment-tray p {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 6px;
}
.assignment-tray strong {
  font-size: 15px;
}
.assignment-tray > div {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 14px 0 10px;
}
.assignment-tray button {
  border: 2px dashed transparent;
  border-radius: 10px;
  min-height: 65px;
  font-weight: 600;
  font-size: 13px;
}
.assignment-tray button.drop-hover {
  border-color: currentColor;
  transform: translateY(-4px);
}
.duty.dragging {
  opacity: 0.4;
}
@media (hover: hover) and (pointer: fine) {
  .drag-hint {
    display: inline;
  }
  .duty[draggable="true"] {
    cursor: grab;
  }
  .duty[draggable="true"]:active {
    cursor: grabbing;
  }
}
@media (max-width: 700px) {
  dialog.quick-editor {
    width: 100%;
  }
  .quick-editor .dialog-header h2 {
    font-size: 22px;
  }
}

/* At-home days remain visible without suggesting an assigned care duty. */
.care-context.home-care {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 12px 10px;
  min-height: 60px;
  border: 1px solid #dce2e8;
  border-radius: 10px;
  background: #edf0f3;
  color: #5b6775;
  text-align: left;
}
.home-care strong {
  font-size: 12px;
  font-weight: 600;
}
.home-care span {
  font-size: 11px;
}
.care-context.home-care:hover {
  background: #e3e8ed;
}
@media (max-width: 700px) {
  .care-context.home-care {
    flex-direction: column;
    justify-content: center;
    padding: 8px 2px;
    gap: 4px;
    min-height: 58px;
    border-radius: 7px;
    text-align: center;
  }
  .home-care strong {
    font-size: 10px;
  }
  .home-care span {
    font-size: 9px;
  }
}

/* Moving work days keeps the row and the resulting care arrangements visible. */
.work-swap-link {
  display: block;
  font-size: 13px;
  min-height: 44px;
  margin-bottom: 4px;
}
.swap-preview {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.swap-preview:empty {
  display: none;
}
.swap-preview > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 3px solid #8aa7bd;
  padding: 5px 10px;
}
.swap-preview strong {
  font-size: 13px;
}
.swap-preview span {
  font-size: 13px;
}
.swap-preview small {
  font-size: 11px;
  color: var(--muted);
}
.work-summary.work-drop-target {
  outline: 2px dashed #738da3;
  outline-offset: -3px;
}
.work-summary.drop-hover {
  outline: 3px solid #23445c;
  box-shadow: 0 0 0 3px #c9d9e8;
}
.work-summary.dragging {
  opacity: 0.45;
}
.work-drag-notice {
  position: fixed;
  z-index: 110;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 16px 20px;
  border-radius: 12px;
  background: #23445c;
  color: white;
  font-size: 13px;
  box-shadow: 0 8px 30px #23445c33;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .work-summary[draggable="true"] {
    cursor: grab;
  }
  .work-summary[draggable="true"]:active {
    cursor: grabbing;
  }
}
