:root {
  color-scheme: light;
  --paper: #f4f1ea;
  --paper-strong: #fffaf0;
  --ink: #20201c;
  --muted: #69685f;
  --line: #d7d0c2;
  --teal: #2f6f73;
  --brick: #b4493c;
  --danger: #b4493c;
  --success: #2f7d55;
  --gold: #d7a44a;
  --plum: #5c5377;
  --leaf: #75895b;
  --white: #ffffff;
  --shadow: 0 20px 60px rgb(32 32 28 / 12%);
  --app-touch-target-min: 48px;
  --font-body: "Aptos", "Segoe UI", sans-serif;
  --font-sans: var(--font-body);
  --font-label: var(--font-body);
  font-family: var(--font-body);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgb(32 32 28 / 4%) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(0deg, rgb(32 32 28 / 3%) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--paper);
}

body.is-auth-booting {
  min-height: 100vh;
}

body.is-auth-booting .auth-gate,
body.is-auth-booting .native-compatibility-gate,
body.is-auth-booting .app-shell {
  display: none !important;
}

.native-compatibility-gate {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(20px, 6vw, 64px);
  background:
    radial-gradient(circle at 16% 18%, rgb(215 164 74 / 20%), transparent 30%),
    linear-gradient(145deg, rgb(47 111 115 / 14%), transparent 45%),
    var(--paper);
}

.native-compatibility-card {
  width: min(100%, 560px);
  display: grid;
  gap: 18px;
  border: 1px solid rgb(32 32 28 / 12%);
  border-radius: 28px;
  padding: clamp(26px, 6vw, 48px);
  background: rgb(255 250 240 / 94%);
  box-shadow: 0 24px 70px rgb(32 32 28 / 14%);
}

.native-compatibility-card img {
  width: min(100%, 250px);
  height: auto;
}

.native-compatibility-card h1,
.native-compatibility-card p {
  margin: 0;
}

.native-compatibility-card > p:not(.eyebrow):not(.form-note) {
  color: var(--muted);
  line-height: 1.65;
}

.native-compatibility-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.native-compatibility-actions > * {
  flex: 1 1 180px;
  text-align: center;
}

body.is-auth-booting::before {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  content: "PerheInbox";
}

button,
textarea,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

#codex-browser-sidebar-comments-root {
  pointer-events: none !important;
}

.auth-gate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: clamp(28px, 4vw, 54px);
  align-items: start;
  min-height: 100vh;
  padding: clamp(18px, 4vw, 54px);
  background:
    radial-gradient(circle at 12% 14%, rgb(215 164 74 / 18%), transparent 28%),
    linear-gradient(135deg, rgb(47 111 115 / 10%), transparent 36%),
    var(--paper);
}

.landing-shell {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  min-width: 0;
}

.landing-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.landing-login-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: rgb(255 250 240 / 72%);
  color: var(--teal);
  font-weight: 700;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(320px, .72fr);
  gap: clamp(24px, 4vw, 42px);
  align-items: center;
}

.auth-copy {
  max-width: 780px;
}

.auth-brand {
  gap: 8px;
}

.brand-lockup {
  flex-direction: column;
  align-items: flex-start;
}

.brand-logo-image {
  display: block;
  width: 260px;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.auth-brand .brand-logo-image {
  width: min(100%, 360px);
}

.mobile-auth-brand {
  display: none;
}

.brand.auth-brand .brand-tagline {
  margin-top: -17px;
  margin-left: clamp(97px, 28%, 113px);
}

.brand-tagline {
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.auth-copy h1 {
  max-width: 720px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5.8vw, 74px);
  line-height: .96;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.auth-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.auth-proof span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgb(255 250 240 / 70%);
  font-size: 13px;
  font-weight: 700;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.landing-preview {
  display: grid;
  gap: 12px;
  border: 1px solid rgb(32 32 28 / 18%);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgb(255 250 240 / 94%), rgb(255 255 255 / 82%)),
    var(--white);
  box-shadow: 0 24px 70px rgb(32 32 28 / 14%);
}

.preview-toolbar,
.preview-day,
.preview-chore {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgb(255 255 255 / 72%);
}

.preview-toolbar {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  background: #25251f;
  color: #f8f1df;
}

.preview-toolbar span,
.preview-day small,
.preview-chore span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.preview-toolbar span {
  color: #d9cba9;
}

.preview-day.is-today {
  border-color: rgb(180 73 60 / 36%);
  background: rgb(180 73 60 / 8%);
}

.preview-day strong,
.preview-chore strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.preview-day span {
  color: var(--muted);
  line-height: 1.35;
}

.preview-chore {
  border-color: rgb(47 111 115 / 32%);
  background: rgb(47 111 115 / 10%);
}

.landing-problem,
.landing-family-flow,
.landing-chore-section,
.landing-trust {
  display: grid;
  gap: 18px;
}

.landing-problem {
  scroll-margin-top: 112px;
}

.landing-problem h2,
.landing-family-flow h2,
.landing-chore-section h2 {
  max-width: 780px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
  letter-spacing: 0;
}

.landing-card-grid,
.family-flow-grid,
.landing-trust {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-card-grid,
.family-flow-grid {
  display: grid;
  gap: 14px;
}

.landing-card-grid article,
.family-flow-grid article,
.landing-trust article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgb(255 250 240 / 72%);
  box-shadow: 0 14px 34px rgb(58 45 26 / 7%);
}

.landing-card-grid article > span {
  color: var(--brick);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 700;
}

.feature-card-visual {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 238px;
  margin-top: 12px;
  margin-bottom: 16px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, white);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(155deg, rgb(255 255 255 / 88%), rgb(255 250 240 / 64%)),
    rgb(255 255 255 / 72%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 78%);
}

.feature-visual-top,
.feature-message-row,
.feature-week-row,
.feature-child-day-head,
.is-child-day-visual li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.feature-visual-top {
  justify-content: space-between;
}

.feature-visual-top small,
.feature-week-row small,
.feature-child-day-head small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.feature-visual-top small {
  color: var(--teal);
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.feature-visual-top b,
.feature-message-row em,
.feature-child-chip,
.feature-week-row b,
.is-child-day-visual li b {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 8px;
  background: rgb(47 111 115 / 11%);
  color: var(--teal);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.feature-child-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  max-width: 72px;
  white-space: nowrap;
}

.feature-child-chip.is-luca {
  background: rgb(38 195 99 / 14%);
  color: #138446;
}

.feature-child-chip.is-jennica {
  background: rgb(218 67 169 / 13%);
  color: #b72b8d;
}

.feature-message-row,
.feature-week-row,
.is-child-day-visual li {
  border-radius: 8px;
  padding: 8px;
  background: rgb(255 250 240 / 72%);
}

.feature-message-row {
  align-items: flex-start;
}

.feature-message-row.is-important {
  background: rgb(180 73 60 / 8%);
}

.feature-message-row.is-important em {
  background: rgb(180 73 60 / 12%);
  color: var(--brick);
}

.feature-message-row strong,
.feature-week-copy strong,
.feature-child-day-head strong,
.is-child-day-visual li span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.feature-message-row div,
.feature-week-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.feature-message-row small,
.feature-week-copy small {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.feature-week-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: flex-start;
}

.feature-week-copy strong {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.feature-child-day-head img {
  width: 42px;
  height: 42px;
  border: 2px solid white;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgb(35 28 18 / 12%);
}

.feature-school-day-card,
.feature-daycare-mini {
  display: grid;
  gap: 8px;
  border-left: 4px solid rgb(47 111 115 / 30%);
  border-radius: 8px;
  padding: 8px;
  background: rgb(255 255 255 / 50%);
}

.feature-school-day-card.is-jennica {
  border-color: rgb(218 67 169 / 72%);
  background: linear-gradient(120deg, rgb(218 67 169 / 8%), rgb(255 255 255 / 56%));
}

.feature-daycare-mini.is-luca {
  border-color: rgb(38 195 99 / 72%);
  background: linear-gradient(120deg, rgb(38 195 99 / 9%), rgb(255 255 255 / 56%));
}

.feature-school-day-head {
  display: grid;
  grid-template-columns: auto 34px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-width: 0;
}

.feature-school-day-head > b {
  align-self: start;
  border-radius: 999px;
  padding: 5px 7px;
  background: rgb(218 67 169 / 13%);
  color: #b72b8d;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.feature-daycare-mini .feature-school-day-head > b {
  background: rgb(38 195 99 / 14%);
  color: #138446;
}

.feature-school-day-head img {
  width: 34px;
  height: 34px;
  border: 2px solid white;
  border-radius: 999px;
  object-fit: cover;
}

.feature-school-day-head div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.feature-school-day-head strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.15;
}

.feature-school-day-head small,
.feature-school-timetable small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
}

.feature-school-timetable {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-school-timetable li {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  border-left: 3px solid rgb(218 67 169 / 58%);
  border-radius: 0 8px 8px 0;
  padding: 5px 7px;
}

.feature-school-timetable li b {
  padding: 0;
  background: transparent;
  color: #b72b8d;
  font-size: 10px;
  line-height: 1.2;
}

.feature-school-timetable li span {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.feature-school-timetable li strong {
  font-size: 12px;
  line-height: 1.15;
}

.feature-child-day-card {
  display: grid;
  gap: 8px;
  border-left: 4px solid rgb(47 111 115 / 30%);
  border-radius: 8px;
  padding: 8px;
  background: rgb(255 255 255 / 50%);
}

.feature-child-day-card.is-luca {
  border-color: rgb(38 195 99 / 72%);
  background: linear-gradient(120deg, rgb(38 195 99 / 9%), rgb(255 255 255 / 50%));
}

.feature-child-day-card.is-jennica {
  border-color: rgb(218 67 169 / 72%);
  background: linear-gradient(120deg, rgb(218 67 169 / 8%), rgb(255 255 255 / 50%));
}

.is-child-day-visual ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.is-child-day-visual li {
  justify-content: flex-start;
}

.landing-card-grid article > strong,
.family-flow-grid article strong,
.landing-trust article strong {
  display: block;
  margin-top: 0;
  font-size: 18px;
}

.landing-card-grid article > p,
.family-flow-grid article p,
.landing-trust article p,
.landing-chore-section p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.52;
}

.landing-chore-section {
  grid-template-columns: minmax(0, .78fr) minmax(420px, .95fr);
  align-items: center;
  scroll-margin-top: 112px;
  border: 1px solid rgb(47 111 115 / 22%);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 34px);
  background:
    linear-gradient(135deg, rgb(47 111 115 / 12%), rgb(215 164 74 / 10%)),
    rgb(255 250 240 / 78%);
}

.chore-progress-preview {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid rgb(32 32 28 / 14%);
  border-radius: 8px;
  padding: clamp(14px, 2vw, 18px);
  background:
    linear-gradient(155deg, rgb(255 255 255 / 92%), rgb(255 250 240 / 76%)),
    rgb(255 255 255 / 86%);
  box-shadow: 0 20px 42px rgb(58 45 26 / 10%);
}

.chore-preview-topline,
.chore-child-head,
.chore-progress-label,
.chore-chart-head,
.chore-chart-legend,
.chore-preview-tasks li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chore-preview-topline span,
.chore-preview-tasks > span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.chore-preview-topline strong,
.chore-chart-head span {
  color: var(--muted);
  font-size: 12px;
}

.chore-child-progress-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.chore-child-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--child-accent) 28%, var(--line));
  border-left: 5px solid var(--child-accent);
  border-radius: 8px;
  padding: 12px;
  background: color-mix(in srgb, var(--child-accent) 7%, white);
}

.chore-child-card.is-luca {
  --child-accent: #22c55e;
}

.chore-child-card.is-jennica {
  --child-accent: #dd4ca8;
}

.chore-child-head {
  align-items: flex-start;
}

.chore-child-head > div {
  min-width: 0;
}

.chore-child-head strong,
.chore-child-head small,
.chore-child-card > small {
  display: block;
}

.chore-child-head strong {
  font-size: 17px;
}

.chore-child-head small,
.chore-child-card > small,
.chore-progress-label span {
  color: var(--muted);
  font-size: 12px;
}

.chore-child-head b {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 9px;
  background: color-mix(in srgb, var(--child-accent) 12%, white);
  color: color-mix(in srgb, var(--child-accent) 70%, var(--ink));
  font-size: 12px;
}

.chore-avatar {
  display: block;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border: 2px solid white;
  border-radius: 999px;
  background: color-mix(in srgb, var(--child-accent) 10%, white);
  box-shadow: 0 8px 18px rgb(35 28 18 / 14%);
  object-fit: cover;
}

.chore-progress-label strong {
  color: var(--ink);
  font-size: 12px;
}

.chore-progress-bar {
  overflow: hidden;
  width: 100%;
  height: 9px;
  border-radius: 999px;
  background: rgb(32 32 28 / 10%);
}

.chore-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--child-accent);
}

.chore-chart-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgb(255 250 240 / 78%);
}

.chore-chart-head strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.chore-mini-chart {
  display: block;
  width: 100%;
  height: 124px;
}

.chore-mini-chart line {
  stroke: rgb(32 32 28 / 10%);
  stroke-width: 1;
}

.chore-mini-chart polyline {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.chore-mini-chart .is-luca-line {
  stroke: #22c55e;
}

.chore-mini-chart .is-jennica-line {
  stroke: #dd4ca8;
}

.chore-mini-chart circle {
  fill: white;
  stroke-width: 4;
}

.chore-mini-chart .is-luca-dot,
.chore-chart-legend .is-luca-dot {
  stroke: #22c55e;
  background: #22c55e;
}

.chore-mini-chart .is-jennica-dot,
.chore-chart-legend .is-jennica-dot {
  stroke: #dd4ca8;
  background: #dd4ca8;
}

.chore-chart-legend {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.chore-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  background: white;
  font-size: 12px;
  font-weight: 800;
}

.chore-chart-legend i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.chore-preview-tasks {
  display: grid;
  gap: 9px;
}

.chore-preview-tasks ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chore-preview-tasks li {
  border-radius: 8px;
  padding: 10px 11px;
  background: rgb(215 164 74 / 14%);
  color: var(--ink);
  font-weight: 700;
}

.chore-preview-tasks li b {
  flex: 0 0 auto;
  color: var(--teal);
}

.auth-panel {
  position: sticky;
  top: clamp(18px, 4vw, 54px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: rgb(255 250 240 / 90%);
  box-shadow: var(--shadow);
}

#signup.auth-panel {
  position: static;
  width: min(calc(100% - 32px), 760px);
  max-width: 760px;
  margin: clamp(28px, 5vw, 64px) auto;
}

.auth-panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
}

.auth-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
  background: rgb(255 255 255 / 55%);
}

.auth-mode button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.auth-mode button.is-active {
  background: var(--ink);
  color: var(--paper-strong);
}

.account-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.account-form :where(label),
.session-switcher {
  display: grid;
  gap: 7px;
}

/* Form captions are not decorative eyebrows or choice descriptions. */
.account-form label > span,
.session-switcher > span,
.input-label,
.input-label > span,
.field-label,
.week-filter > span,
.week-layout-toggle > span {
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: normal;
  text-transform: none;
}

.consent-option {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid rgb(47 111 115 / 20%);
  border-radius: 8px;
  padding: 12px;
  background: rgb(47 111 115 / 7%);
}

.consent-option input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--teal);
}

.consent-option span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: none;
}

.password-visibility-option {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  justify-content: start;
}

.password-visibility-option input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--teal);
}

.password-visibility-option span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-transform: none;
}

.auth-gate {
  display: block;
  min-height: 100svh;
  padding: 0;
  background:
    linear-gradient(180deg, rgb(255 250 240 / 86%), rgb(244 241 234 / 96%)),
    var(--paper);
}

.marketing-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(190px, auto) minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  min-height: 76px;
  border-bottom: 1px solid rgb(32 32 28 / 10%);
  padding: 12px clamp(18px, 4vw, 54px);
  background: rgb(255 250 240 / 88%);
  backdrop-filter: blur(18px);
}

.marketing-header .auth-brand {
  margin: 0;
}

.marketing-header .brand-logo-image {
  width: 188px;
}

.marketing-header .brand.auth-brand .brand-tagline {
  margin-top: -12px;
  margin-left: 70px;
}

.marketing-nav,
.marketing-header-actions,
.marketing-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.marketing-nav {
  justify-content: center;
}

.marketing-nav a,
.marketing-footer a {
  min-height: 38px;
  border-radius: 8px;
  padding: 9px 11px;
  color: #45443e;
  font-size: 14px;
  font-weight: 700;
}

.marketing-nav a.is-active,
.marketing-nav a:hover,
.marketing-footer a:hover {
  background: rgb(47 111 115 / 10%);
  color: var(--teal);
}

.marketing-header-actions {
  justify-content: flex-end;
}

.marketing-header-actions .primary-button,
.marketing-header-actions .ghost-button {
  min-height: 42px;
  white-space: nowrap;
}

.public-menu-button {
  display: none;
}

.public-menu-dialog {
  position: fixed;
  inset: 84px 12px auto;
  z-index: 90;
  width: min(420px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 100px);
  margin: 0 auto;
  border: 1px solid rgb(53 73 63 / 24%);
  border-radius: 20px;
  padding: 0;
  overflow: auto;
  background: var(--paper-strong);
  color: var(--ink);
  box-shadow: 0 24px 70px rgb(18 28 23 / 36%);
}

.public-menu-dialog::backdrop {
  background: rgb(11 24 19 / 48%);
  backdrop-filter: blur(2px);
}

.public-menu-sheet {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.public-menu-links {
  display: grid;
  gap: 8px;
}

.public-menu-links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 14px;
  background: rgb(255 255 255 / 58%);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.public-menu-links a:hover,
.public-menu-links a:focus-visible,
.public-menu-links a.is-active {
  border-color: color-mix(in srgb, var(--teal) 55%, var(--line));
  background: color-mix(in srgb, var(--teal) 10%, var(--paper-strong));
}

.public-menu-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.public-menu-actions a {
  min-height: 46px;
}

.marketing-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 70px) clamp(18px, 4vw, 54px);
  animation: none !important;
  opacity: 1;
}

.landing-shell.marketing-page {
  max-width: none;
  padding-top: clamp(18px, 3vw, 30px);
}

.landing-shell .landing-header {
  display: none;
}

.landing-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(760px, calc(100svh - 96px));
  border-radius: 0 0 8px 8px;
  padding: clamp(28px, 6vw, 78px);
  background:
    linear-gradient(90deg, rgb(255 250 240 / 95%) 0%, rgb(255 250 240 / 80%) 42%, rgb(255 250 240 / 16%) 72%),
    url("/assets/landing-family-command.png") center / cover no-repeat;
  background:
    linear-gradient(90deg, rgb(255 250 240 / 95%) 0%, rgb(255 250 240 / 80%) 42%, rgb(255 250 240 / 16%) 72%),
    image-set(url("/assets/landing-family-command.webp") type("image/webp"), url("/assets/landing-family-command.png") type("image/png")) center / cover no-repeat;
  box-shadow: 0 28px 80px rgb(32 32 28 / 12%);
}

.landing-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 38%;
  background: linear-gradient(0deg, rgb(32 32 28 / 18%), transparent);
  pointer-events: none;
}

.landing-hero .auth-copy {
  max-width: 640px;
  padding-top: clamp(14px, 4vw, 48px);
}

.landing-hero .auth-copy h1 {
  color: #171713;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.04;
  text-wrap: balance;
}

.landing-hero .lead {
  max-width: 590px;
  color: #4f4b42;
  font-size: clamp(17px, 2vw, 21px);
}

.landing-hero .landing-preview {
  align-self: end;
  max-width: 410px;
  margin-left: auto;
  background: rgb(255 250 240 / 86%);
  backdrop-filter: blur(16px);
}

.landing-actions .primary-button,
.landing-actions .ghost-button {
  min-width: 178px;
}

.landing-problem,
.landing-family-flow,
.landing-chore-section,
.landing-trust {
  max-width: 1180px;
  margin: 0 auto;
}

.landing-card-grid article,
.family-flow-grid article,
.landing-trust article,
.price-card,
.pricing-note,
.contact-form,
.contact-aside {
  border-color: rgb(32 32 28 / 12%);
  background: rgb(255 250 240 / 86%);
}

/* Public AI examples use fictional, readable text and expandable source excerpts. */
.landing-ai {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(22px, 3.6vw, 44px);
  border: 1px solid #d8d8c8;
  border-radius: 16px;
  color: #29392f;
  background: linear-gradient(125deg, #f7f1e3, #eef3ea);
}
.landing-ai-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
}
.landing-ai .landing-ai-heading .eyebrow { color: #42665b; margin: 0 0 12px; }
.landing-ai h2 {
  max-width: 700px;
  margin: 0;
  color: #29392f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.12;
  text-wrap: balance;
}
.landing-ai-heading > div > p:last-child {
  max-width: 700px;
  margin: 18px 0 0;
  color: #596257;
  font-size: 16px;
  line-height: 1.6;
}
.landing-ai-rhythm { display: flex; align-items: center; gap: 8px; }
.landing-ai-rhythm img { width: 72px; height: 72px; object-fit: contain; }
.landing-ai-rhythm span { font-size: 13px; line-height: 1.5; white-space: nowrap; color: #596257; }
.landing-ai-rhythm strong { color: #29392f; font-size: 16px; }
.landing-ai-example-label { margin: 30px 0 12px; color: #596257; font-size: 12px; line-height: 1.5; }
.landing-ai-examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.landing-ai-example {
  min-width: 0;
  border: 1px solid #c7d8ce;
  border-radius: 12px;
  overflow: hidden;
  background: #fffaf0;
  color: #292c27;
}
.landing-ai-example-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 22px;
  border-bottom: 1px solid #d8dfd4;
  background: #eaf1e9;
}
.landing-ai-example-heading > div { min-width: 0; }
.landing-ai-example-heading img { flex: 0 0 56px; width: 56px; height: 56px; object-fit: contain; border-radius: 50%; }
.landing-ai-example-heading p { margin: 0 0 4px; color: #42665b; font-size: 12px; font-weight: 700; }
.landing-ai-example h3 { margin: 0; font-size: 20px; line-height: 1.2; color: #253b32; }
.landing-ai .is-child-example .landing-ai-example-heading { background: #f8edda; border-color: #e4d8bf; }
.landing-ai .is-child-example .landing-ai-example-heading p { color: #78603b; }
.landing-ai-sample { padding: 22px; font-size: 14px; line-height: 1.6; }
.landing-ai-child { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; align-items: baseline; }
.landing-ai-child strong { font-size: 18px; }
.landing-ai-child span { color: #69685f; font-size: 12px; }
.landing-ai-sample p { margin: 12px 0 18px; }
.landing-ai-sample h4 { margin: 18px 0 6px; font-size: 14px; }
.landing-ai-sample ul { padding-left: 20px; margin: 0; }
.landing-ai-sample li + li { margin-top: 8px; }
.landing-ai-sample li::marker { color: #49786b; }
.landing-ai-sources { border-top: 1px solid #dedbd0; background: #f3f1e8; font-size: 13px; line-height: 1.5; }
.landing-ai-sources summary { padding: 14px 22px; min-height: 48px; cursor: pointer; color: #355a4f; font-weight: 700; }
.landing-ai-sources summary:hover { background: #e7ece2; }
.landing-ai-sources summary:focus-visible { outline: 2px solid #2f6f73; outline-offset: -4px; }
.landing-ai-sources > ul { padding: 0 22px 20px; margin: 0; list-style: none; }
.landing-ai-sources li + li { margin-top: 12px; }
.landing-ai-sources strong, .landing-ai-sources span { display: block; overflow-wrap: anywhere; }
.landing-ai-sources span { color: #616459; margin-top: 3px; }
.landing-ai-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; }
.landing-ai-footer p { max-width: 650px; margin: 0; color: #596257; font-size: 13px; line-height: 1.6; }
.landing-ai-footer strong { display: block; margin-bottom: 3px; color: #29392f; font-size: 14px; }
.landing-ai-footer > .primary-button { flex-shrink: 0; text-align: center; white-space: normal; }
@media (max-width: 900px) {
  .landing-ai-heading { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .landing-ai-rhythm img { width: 48px; height: 48px; }
  .landing-ai-rhythm br { display: none; }
  .landing-ai-rhythm strong { margin-left: 4px; }
  .landing-ai-example-heading { padding: 18px; gap: 8px; }
  .landing-ai-example h3 { font-size: 18px; }
  .landing-ai-sample { padding: 18px; }
  .landing-ai-footer { flex-direction: column; align-items: flex-start; gap: 18px; }
}
@media (max-width: 680px) {
  .landing-ai { padding: 22px 16px; border-radius: 12px; }
  .landing-ai-examples { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .landing-ai-example-label { margin-top: 20px; }
  .landing-ai-heading > div > p:last-child { font-size: 15px; }
  .landing-ai-example-heading img { flex-basis: 48px; width: 48px; height: 48px; }
  .landing-ai-sources summary { padding-inline: 18px; }
  .landing-ai-sources > ul { padding-inline: 18px; }
  .landing-ai-footer > .primary-button { width: 100%; }
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid rgb(32 32 28 / 12%);
  border-radius: 8px;
  padding: clamp(20px, 3vw, 30px);
  box-shadow: 0 18px 48px rgb(32 32 28 / 9%);
}

.price-card.is-featured {
  border-color: rgb(47 111 115 / 38%);
  background:
    linear-gradient(180deg, rgb(47 111 115 / 9%), rgb(255 250 240 / 96%)),
    var(--paper-strong);
}

.price-card > .full-button {
  margin-top: auto;
}

.price-card .price-regular,
.billing-price-option .price-regular {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.price-card .price-plan-label,
.public-page-heading .eyebrow {
  color: var(--brick);
}

.price-card .price-plan-label {
  margin: 0;
  line-height: inherit;
}

.price-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price-label-row > strong {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.price-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4vw, 48px);
  line-height: 1;
}

.price-card h2 small {
  white-space: nowrap;
  color: var(--muted);
  font-family: inherit;
  font-size: 18px;
}

.price-tax-note {
  display: block;
  margin-top: -10px;
  color: var(--muted);
  font-size: 13px;
}

.price-card p,
.pricing-note p,
.legal-content p,
.contact-aside p,
.contact-aside span {
  color: var(--muted);
  line-height: 1.58;
}

.price-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-card li {
  position: relative;
  padding-left: 22px;
  line-height: 1.45;
}

.price-card li::before {
  content: "";
  position: absolute;
  top: .55em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.pricing-note {
  margin-top: 20px;
  border: 1px solid rgb(215 164 74 / 28%);
  border-radius: 8px;
  padding: 18px;
}

.pricing-includes {
  margin-top: 0;
  margin-bottom: 20px;
}

.public-page-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.public-page-heading h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 72px);
  line-height: .97;
}

.public-page-heading p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.58;
}

.legal-content {
  display: grid;
  gap: 18px;
  max-width: 860px;
}

.legal-content h2 {
  margin: 16px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
}

.legal-content p {
  margin: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(280px, .28fr);
  gap: 20px;
  align-items: start;
}

.contact-form,
.contact-aside {
  display: grid;
  gap: 14px;
  border: 1px solid rgb(32 32 28 / 12%);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
}

.contact-form label {
  display: grid;
  gap: 7px;
}

.contact-form label span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.45;
}

.contact-form textarea {
  width: 100%;
  border: 1px solid #c9bead;
  border-radius: 8px;
  padding: 12px;
  background: var(--white);
  color: var(--ink);
  resize: vertical;
}

.marketing-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgb(32 32 28 / 10%);
  padding: 24px clamp(18px, 4vw, 54px);
  color: var(--muted);
}

.marketing-footer > span {
  color: var(--ink);
  font-weight: 700;
}

@media (prefers-reduced-motion: no-preference) {
  .marketing-page:not([hidden]) {
    animation: none;
  }

  @keyframes public-page-in {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

.auth-gate:not([hidden]) ~ .mobile-nav {
  display: none !important;
}

input:where(:not([type="checkbox"], [type="radio"], [type="hidden"], [type="range"], [type="color"], [type="file"], [type="button"], [type="submit"], [type="reset"], [type="image"])),
select {
  width: 100%;
  min-height: 46px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  border: 1px solid #c9bead;
  border-radius: 8px;
  padding: 0 12px;
  background: var(--white);
  color: var(--ink);
}

select {
  appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 18px, calc(100% - 12px) 18px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.full-button {
  width: 100%;
  justify-content: center;
}

.form-note,
.empty-state {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.form-error {
  color: var(--brick);
}

.demo-feature-note {
  border: 1px solid rgb(180 73 60 / 28%);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgb(180 73 60 / 8%);
  color: #7a3028;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.rail {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: 100vh;
  padding: 28px;
  background: #25251f;
  color: #f8f1df;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand.brand-lockup {
  flex-direction: column;
  align-items: flex-start;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1;
}

.brand small {
  margin-top: 3px;
  color: #d9cba9;
  font-size: 12px;
}

.brand .brand-tagline {
  margin-top: 0;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.app-brand {
  width: 100%;
}

.rail .app-brand {
  border: 0;
  border-radius: 8px;
  padding: 0 0 4px;
  background: transparent;
  color: #f8f1df;
}

.rail .app-brand .brand-logo-image {
  width: 100%;
  max-width: 222px;
  filter: drop-shadow(0 10px 18px rgb(0 0 0 / 28%));
}

.rail .brand-tagline {
  margin-top: -20px;
  margin-left: 70px;
  padding-left: 0;
  color: #86c9c5;
  font-size: 12px;
  text-shadow: 0 1px 8px rgb(0 0 0 / 35%);
}

.rail-nav {
  display: grid;
  gap: 6px;
}

.rail-nav a {
  --nav-icon: url("/assets/nav/dashboard.png");
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 3px;
  align-items: center;
  border-radius: 8px;
  padding: 10px 12px 10px 10px;
  color: #ded6c5;
}

.rail-nav a::before {
  content: "";
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgb(255 250 240 / 14%);
  border-radius: 8px;
  background-color: rgb(255 250 240 / 82%);
  background-image: var(--nav-icon);
  background-position: center;
  background-size: cover;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 10%);
}

.rail-nav a[data-route-link="dashboard"]::before {
  --nav-icon: url("/assets/nav/dashboard.png");
}

.rail-nav a[data-route-link="week"]::before {
  --nav-icon: url("/assets/nav/week.png");
}

.rail-nav a[data-route-link="inboxmessages"]::before {
  --nav-icon: url("/assets/nav/inboxmessages.png");
}

.rail-nav a[data-route-link="chores"]::before {
  --nav-icon: url("/assets/nav/chores.png");
}

.rail-nav a[data-route-link="help"]::before {
  --nav-icon: url("/assets/nav/help.png");
}

.rail-nav a[data-route-link="family"]::before {
  --nav-icon: url("/assets/nav/family.png");
}

.rail-nav a[data-route-link="settings"]::before {
  --nav-icon: url("/assets/nav/settings.png");
}

.rail-nav a > span,
.rail-nav a small {
  grid-column: 2;
}

.rail-nav a small {
  color: #d7a44a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.rail-nav a small:empty {
  display: none;
}

.rail-nav .nav-section-label {
  margin: 2px 12px 0;
  color: #a89d86;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rail-nav .nav-section-label.nav-section-break {
  margin-top: 24px;
  border-top: 1px solid rgb(255 250 240 / 12%);
  padding-top: 18px;
}

.rail-nav a:hover,
.rail-nav a.is-active {
  background: rgb(255 250 240 / 10%);
  color: #fffaf0;
}

.rail-nav a:hover::before,
.rail-nav a.is-active::before {
  border-color: color-mix(in srgb, var(--teal) 62%, white);
  background-color: #fffaf0;
  box-shadow: 0 8px 18px rgb(18 112 105 / 24%);
}

.rail-nav a.nav-section-break {
  margin-top: 12px;
}

.rail-card {
  margin-top: auto;
  border: 1px solid rgb(255 250 240 / 16%);
  border-radius: 8px;
  padding: 16px;
  background: rgb(255 250 240 / 7%);
}

.rail-card p {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin: 8px 0 0;
  color: #efe6d0;
  line-height: 1.45;
}

.rail-card p > span:last-child {
  min-width: 0;
}

.rail-card p strong,
.rail-card p small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-card p small {
  color: #d9cba9;
  font-size: 12px;
}

.rail-button {
  width: 100%;
  margin-top: 14px;
}

.logout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  border: 1px solid rgb(255 250 240 / 24%);
  border-radius: 8px;
  background: #b4493c;
  color: #fffaf0;
  box-shadow: 0 8px 18px rgb(0 0 0 / 22%);
  font-weight: 700;
}

.logout-button:hover {
  background: #c75a4d;
  transform: translateY(-1px);
}

.logout-button:focus-visible {
  outline: 3px solid #d7a44a;
  outline-offset: 3px;
}

.logout-button-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgb(255 250 240 / 18%);
  font-size: 16px;
  line-height: 1;
}

.workspace {
  display: grid;
  align-content: start;
  gap: 24px;
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 28px 28px 96px;
}

.app-page {
  display: grid;
  gap: 24px;
  animation: page-in .22s ease-out both;
}

.app-page[hidden] {
  display: none !important;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.topbar,
.panel-header,
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.topbar h1,
.panel h2,
.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.topbar h1 {
  font-size: clamp(34px, 4vw, 58px);
}

#pageTitle[tabindex="-1"]:focus,
#childCommandHero h2[tabindex="-1"]:focus,
#childChoreDashboard h2[tabindex="-1"]:focus {
  outline: none;
}

.panel h2,
.section-heading h2 {
  font-size: 28px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.topbar-actions,
.toolbar,
.card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.danger-button {
  color: var(--danger);
}

.primary-button.danger-button {
  border-color: var(--danger);
  background: var(--danger);
  color: white;
}

.session-switcher {
  min-width: 220px;
}

.topbar .session-switcher {
  width: min(100%, 360px);
  min-width: 360px;
}

.topbar .session-switcher select {
  font-size: 13px;
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 700;
}

.primary-button {
  background: var(--ink);
  color: var(--paper-strong);
}

.secondary-button {
  background: var(--gold);
  color: #2c2514;
}

.ghost-button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.icon-button {
  width: 42px;
  padding: 0;
  background: var(--teal);
  color: white;
  font-size: 24px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.page-intro {
  max-width: 820px;
}

.page-intro h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 4vw, 48px);
  line-height: 1.04;
}

.page-intro p:last-child {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.52;
}

.metric-strip article,
.panel,
.suggestion-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 250 240 / 82%);
  box-shadow: var(--shadow);
}

.metric-strip article {
  padding: 16px;
}

.metric-strip span,
.metric-strip small {
  display: block;
  color: var(--muted);
}

.metric-strip strong {
  display: block;
  margin: 8px 0 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 24px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 24px;
}

.dashboard-grid.three-col {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.family-command-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 22px;
  align-items: stretch;
  border: 1px solid color-mix(in srgb, var(--teal) 24%, var(--line));
  border-radius: 8px;
  padding: clamp(22px, 3vw, 32px);
  background:
    linear-gradient(135deg, rgb(255 250 240 / 94%), rgb(236 228 207 / 72%)),
    repeating-linear-gradient(90deg, rgb(47 111 115 / 5%) 0 1px, transparent 1px 28px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.family-command-hero h2 {
  margin: 8px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 64px);
  line-height: .96;
  letter-spacing: 0;
}

.family-command-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.family-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.family-hero-stats span {
  display: grid;
  align-content: center;
  min-height: 104px;
  border: 1px solid rgb(47 111 115 / 18%);
  border-radius: 8px;
  padding: 16px;
  background: rgb(255 250 240 / 76%);
}

body.is-native-app .family-hero-stats span {
  grid-template-columns: max-content minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: center;
  column-gap: 8px;
}

.family-hero-stats strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  line-height: 1;
}

.family-hero-stats small {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 800;
}

body.is-native-app .family-hero-stats strong,
body.is-native-app .family-hero-stats small {
  grid-row: 1;
  min-width: 0;
}

body.is-native-app .family-hero-stats small {
  margin-top: 0;
  overflow-wrap: anywhere;
}

.family-day-tabs {
  margin: -2px 0 18px;
}

.family-day-tabs.child-day-tabs {
  align-items: stretch;
}

.family-section-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.family-section-heading strong {
  font-family: Georgia, "Times New Roman", serif;
  max-width: 780px;
  text-align: right;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.08;
}

.family-child-command-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 16px;
}

.family-child-card {
  display: grid;
  gap: 14px;
  border: 1px solid color-mix(in srgb, var(--child-color) 28%, var(--line));
  border-top: 5px solid var(--child-color);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(145deg, rgb(255 250 240 / 92%), rgb(255 255 255 / 70%)),
    linear-gradient(90deg, color-mix(in srgb, var(--child-color) 9%, transparent), transparent 45%);
  box-shadow: var(--shadow);
}

.family-child-card header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.child-card-avatar {
  width: 62px;
  height: 62px;
}

.family-child-card header span,
.family-child-card header strong {
  display: block;
}

.family-child-card header span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.family-child-card header strong {
  margin-top: 3px;
  font-size: 21px;
  line-height: 1.1;
}

.family-child-card header b {
  border-radius: 999px;
  padding: 8px 10px;
  background: color-mix(in srgb, var(--child-color) 14%, white);
  color: color-mix(in srgb, var(--child-color) 70%, var(--ink));
  white-space: nowrap;
}

.family-child-card.is-quiet {
  background:
    linear-gradient(145deg, rgb(255 250 240 / 92%), rgb(255 255 255 / 74%)),
    linear-gradient(90deg, color-mix(in srgb, var(--child-color) 6%, transparent), transparent 45%);
}

.family-child-rows {
  display: grid;
  gap: 8px;
}

.family-child-rows article {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 6px 12px;
  align-items: baseline;
  border: 1px solid rgb(37 37 31 / 9%);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgb(255 255 255 / 56%);
}

.family-child-rows span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.family-child-rows strong,
.family-child-rows small {
  display: block;
  min-width: 0;
}

.family-child-rows strong {
  line-height: 1.2;
}

.family-child-rows small {
  grid-column: 2;
  color: var(--muted);
  line-height: 1.35;
}

.family-child-rows .family-child-quiet {
  grid-template-columns: 1fr;
  align-items: start;
  padding: 15px 14px;
  background: color-mix(in srgb, var(--child-color) 8%, white);
}

.family-child-rows .family-child-quiet small {
  grid-column: 1;
}

.family-child-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid rgb(37 37 31 / 10%);
  padding-top: 12px;
}

.family-child-card footer span {
  border: 1px solid color-mix(in srgb, var(--child-color) 22%, var(--line));
  border-radius: 999px;
  padding: 6px 9px;
  background: rgb(255 255 255 / 60%);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.family-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
  gap: 18px;
}

.family-reminder-stack,
.family-dashboard-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.family-reminder-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-left: 5px solid var(--child-color);
  border-radius: 8px;
  padding: 12px;
  background: color-mix(in srgb, var(--child-color) 8%, white);
}

.family-reminder-item span,
.family-reminder-item strong,
.family-reminder-item small {
  display: block;
}

.family-reminder-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.family-reminder-item strong {
  margin-top: 3px;
  line-height: 1.25;
}

.family-reminder-item small {
  margin-top: 3px;
  color: var(--muted);
}

.family-dashboard-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.phone-reminder-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.phone-reminder-card-copy,
.phone-reminder-card .full-field,
.phone-reminder-kind,
.phone-reminder-severity {
  grid-column: 1 / -1;
}

.phone-reminder-card-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.phone-reminder-card-copy::before {
  content: "";
  display: block;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  color: #0b7871;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M21.8 3.2 2.7 10.7c-.9.4-.9 1.7.1 2l4.8 1.5 1.8 5.7c.3.9 1.5 1 2 .2l2.7-3.8 4.7 3.4c.7.5 1.7.1 1.9-.8l2.7-14.5c.2-.8-.7-1.5-1.6-1.2ZM9 13.2l8.5-5.6-6.7 7.4-.3 2.6-1.5-4.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M21.8 3.2 2.7 10.7c-.9.4-.9 1.7.1 2l4.8 1.5 1.8 5.7c.3.9 1.5 1 2 .2l2.7-3.8 4.7 3.4c.7.5 1.7.1 1.9-.8l2.7-14.5c.2-.8-.7-1.5-1.6-1.2ZM9 13.2l8.5-5.6-6.7 7.4-.3 2.6-1.5-4.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.phone-reminder-card-copy .eyebrow,
.phone-reminder-card-copy h3,
.phone-reminder-card-copy p:not(.eyebrow) {
  grid-column: 1;
}

.phone-reminder-card h3 {
  margin: 4px 0 6px;
  font-size: 24px;
}

.phone-reminder-card p {
  margin: 0;
  color: var(--muted);
}

.phone-reminder-card label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.phone-reminder-card .phone-reminder-kind,
.phone-reminder-card .phone-reminder-severity {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 10px;
  margin: 0;
  border: 0;
  padding: 0;
}

.phone-reminder-card .phone-reminder-kind .field-label,
.phone-reminder-card .phone-reminder-severity .field-label {
  grid-column: 1 / -1;
}

.phone-reminder-card .phone-reminder-kind label,
.phone-reminder-card .phone-reminder-severity label {
  min-height: 58px;
  justify-content: center;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
}

.phone-reminder-card .phone-reminder-kind label:has(input:checked),
.phone-reminder-card .phone-reminder-severity label:has(input:checked) {
  box-shadow: 0 10px 22px rgb(47 111 115 / 12%);
}

.phone-reminder-recipients {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0;
}

.phone-reminder-recipient-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 10px;
}

.phone-reminder-recipient {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
  min-height: 118px;
  padding: 10px 8px;
  border: 1px solid color-mix(in srgb, var(--recipient-color, var(--teal)) 18%, var(--line));
  border-radius: 8px;
  background: rgb(255 255 255 / 78%);
  box-shadow: 0 10px 24px rgb(26 40 35 / 8%);
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.phone-reminder-recipient:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--recipient-color, var(--teal)) 46%, var(--line));
}

.phone-reminder-recipient.is-selected {
  border-color: var(--recipient-color, var(--teal));
  background: color-mix(in srgb, var(--recipient-color, var(--teal)) 10%, white);
  box-shadow: 0 14px 30px rgb(26 40 35 / 12%);
}

.phone-reminder-recipient input {
  position: absolute;
  inset: 8px auto auto 8px;
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  accent-color: var(--recipient-color, var(--teal));
}

.phone-reminder-recipient-avatar {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 999px;
  overflow: hidden;
  background: color-mix(in srgb, var(--recipient-color, var(--teal)) 12%, white);
  border: 2px solid color-mix(in srgb, var(--recipient-color, var(--teal)) 42%, white);
  box-shadow: 0 8px 18px rgb(26 40 35 / 14%);
}

.phone-reminder-recipient-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-reminder-recipient-avatar .avatar-mark {
  font-size: 14px;
}

.phone-reminder-recipient-name,
.phone-reminder-recipient-role {
  max-width: 100%;
  text-align: center;
  overflow-wrap: anywhere;
}

.phone-reminder-recipient-name {
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
}

.phone-reminder-recipient-role {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.2;
}

.phone-reminder-recipient-device {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  max-width: 100%;
  padding: 3px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--recipient-color, var(--teal)) 10%, white);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
}

.phone-reminder-recipient.has-mobile-device .phone-reminder-recipient-device {
  background: color-mix(in srgb, var(--success) 14%, white);
  color: var(--teal-dark);
}

.phone-reminder-recipient.has-no-mobile-device .phone-reminder-recipient-device {
  background: color-mix(in srgb, var(--warning) 18%, white);
  color: color-mix(in srgb, var(--ink) 70%, var(--warning));
}

.phone-reminder-empty {
  grid-column: 1 / -1;
}

.phone-reminder-card textarea {
  min-height: 92px;
  resize: vertical;
}

.phone-reminder-card .form-note.is-error {
  color: var(--brick);
}

.phone-reminder-card .form-note.is-success {
  color: var(--teal);
}

.child-phone-push-list {
  display: grid;
  gap: 10px;
}

.child-phone-push-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.child-phone-push-heading strong {
  font-size: 18px;
}

.child-phone-push-item {
  display: grid;
  gap: 5px;
  border: 1px solid color-mix(in srgb, var(--teal) 22%, var(--line));
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  padding: 13px 14px;
  background: rgb(255 255 255 / 72%);
  box-shadow: 0 12px 28px rgb(26 40 35 / 8%);
}

.child-phone-push-item.is-reminder {
  border-left-color: var(--gold);
}

.child-phone-push-item span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.child-phone-push-item strong {
  font-size: 18px;
}

.child-phone-push-item small {
  color: var(--muted);
  font-weight: 800;
}

.child-command-center {
  display: grid;
  gap: 18px;
  min-width: 0;
}

#dashboard.is-child-dashboard {
  display: grid;
  gap: 18px;
}

.child-command-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 280px);
  gap: 18px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--teal) 24%, var(--line));
  border-radius: 8px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgb(255 250 240 / 94%) 0%, rgb(255 250 240 / 72%) 54%, rgb(215 164 74 / 16%) 100%),
    repeating-linear-gradient(90deg, rgb(47 111 115 / 9%) 0 1px, transparent 1px 22px);
  box-shadow: var(--shadow);
}

.child-hero-copy {
  display: grid;
  align-content: center;
  gap: 10px;
  min-width: 0;
}

.child-hero-copy h2 {
  max-width: 780px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1;
}

.child-hero-copy p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}

.child-hero-avatar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  justify-items: start;
  align-content: center;
  gap: 4px 14px;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 8px;
  padding: 16px;
  background: rgb(255 253 248 / 78%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 72%);
  text-align: left;
}

.child-hero-avatar .child-command-avatar {
  grid-row: 1 / span 4;
  width: 104px;
  height: 104px;
  border-width: 2px;
  box-shadow: 0 12px 26px rgb(32 32 28 / 14%), inset 0 -8px 14px rgb(0 0 0 / 5%);
  font-size: 30px;
}

.child-hero-name {
  align-self: end;
  overflow: hidden;
  max-width: 100%;
  color: color-mix(in srgb, var(--teal) 78%, var(--ink));
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.child-hero-avatar span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
}

.child-hero-avatar small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.25;
}

.child-hero-avatar .child-hero-earned-label {
  align-self: end;
  font-family: inherit;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.child-hero-avatar .child-hero-earned {
  font-size: 22px;
}

.child-hero-avatar .child-hero-earned.is-positive {
  color: #13824d;
}

.child-day-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.child-day-tabs button {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--teal) 18%, var(--line));
  border-radius: 8px;
  padding: 10px 8px;
  background: rgb(255 253 248 / 78%);
  color: var(--ink);
  text-align: center;
  cursor: pointer;
}

.child-day-tabs button.is-active {
  border-color: color-mix(in srgb, var(--teal) 58%, var(--line));
  background: linear-gradient(180deg, color-mix(in srgb, var(--teal) 13%, white), rgb(255 253 248 / 92%));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--teal) 18%, transparent);
}

.child-day-tabs span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.child-day-tabs strong {
  font-size: 17px;
}

.child-week-summary {
  min-width: 0;
}

.child-week-card {
  display: grid;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--ink) 12%, var(--line));
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgb(255 253 248 / 90%), rgb(246 235 212 / 62%)),
    var(--paper-strong);
  box-shadow: 0 14px 30px rgb(32 32 28 / 8%);
}

.child-week-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 6px;
  padding: 12px 14px;
  background: var(--ink);
  color: var(--paper-strong);
}

.child-week-card header span,
.child-week-card header strong {
  font-size: 14px;
  font-weight: 900;
}

.child-week-card header span {
  text-transform: uppercase;
}

.child-week-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.child-week-item {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--week-accent, var(--teal)) 24%, var(--line));
  border-radius: 8px;
  padding: 13px;
  background: color-mix(in srgb, var(--week-accent, var(--teal)) 8%, white);
}

.child-week-item.is-task {
  --week-accent: #c8513f;
}

.child-week-item.is-reminder {
  --week-accent: #6f5c9b;
}

.child-week-item.is-event {
  --week-accent: #2f7bf5;
}

.child-week-item.is-meal,
.child-week-item.is-school {
  --week-accent: #2f6f73;
}

.child-week-item.is-chores {
  --week-accent: #d7a44a;
}

.child-week-day-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.child-week-item strong {
  overflow-wrap: anywhere;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
}

.child-week-item small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.child-week-entries {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.child-week-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  min-width: 0;
}

.child-week-entry + .child-week-entry {
  border-top: 1px solid color-mix(in srgb, var(--teal) 12%, transparent);
  padding-top: 7px;
}

.child-week-entry-label {
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.child-week-entry.is-school {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.child-week-entry.is-school .child-week-entry-label {
  font-size: 13px;
}

.child-week-entry.is-task .child-week-entry-label,
.child-week-entry.is-exam .child-week-entry-label {
  color: #a3392d;
}

.child-today-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 12px;
}

.child-today-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-content: start;
  gap: 12px;
  min-width: 0;
  min-height: 228px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--card-color, var(--teal)) 26%, var(--line));
  border-radius: 8px;
  padding: 14px 14px 16px;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--card-color, var(--teal)) 12%, white), rgb(255 250 240 / 92%)),
    var(--paper-strong);
  box-shadow: 0 18px 38px rgb(32 32 28 / 10%);
}

.child-today-card.is-school {
  --card-color: #2f7bf5;
}

.child-today-card.is-meal {
  --card-color: #2f6f73;
}

.child-today-card.is-hobby {
  --card-color: #c8513f;
}

.child-today-card.is-remember {
  --card-color: #6f5c9b;
}

.child-today-card.is-chores {
  --card-color: #d7a44a;
}

.child-today-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--card-color);
}

.child-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.child-card-icon {
  display: inline-grid;
  justify-self: start;
  width: fit-content;
  min-width: 0;
  min-height: 32px;
  padding: 7px 12px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--card-color) 26%, white);
  border-radius: 999px;
  background: color-mix(in srgb, var(--card-color) 12%, white);
  color: color-mix(in srgb, var(--card-color) 82%, var(--ink));
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.child-card-art {
  display: block;
  flex: 0 0 auto;
  width: 82px;
  height: 82px;
  margin: 0;
}

.child-card-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.child-today-card > div:not(.child-card-top) {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.child-today-card span:not(.child-card-icon):not(.child-card-art),
.child-today-card small,
.child-today-card li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.child-today-card strong {
  overflow-wrap: break-word;
  font-size: 18px;
  line-height: 1.14;
}

.child-today-card ul {
  display: grid;
  gap: 4px;
  margin: 2px 0 0;
  padding-left: 18px;
}

.child-card-progress {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgb(105 104 95 / 14%);
}

.child-card-progress i {
  display: block;
  width: var(--card-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--card-color), color-mix(in srgb, var(--card-color) 48%, var(--teal)));
}

.child-dashboard-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 18px;
  align-items: start;
}

.child-chore-graph,
.child-chore-preview {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 250 240 / 82%);
  box-shadow: var(--shadow);
}

.child-chore-graph {
  padding: 0 0 2px;
}

.child-chore-graph .chore-line-chart-card {
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.child-chore-preview {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.child-chore-preview .chart-header {
  margin-bottom: 0;
}

.child-chore-preview .chart-header h3 {
  font-size: 24px;
}

.child-chore-mini-list {
  display: grid;
  gap: 10px;
}

.child-chore-mini-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--gold) 22%, var(--line));
  border-radius: 8px;
  padding: 10px;
  background: rgb(255 253 248 / 78%);
}

.child-chore-mini-list strong,
.child-chore-mini-list small {
  display: block;
}

.child-chore-mini-list small,
.child-done-strip {
  color: var(--muted);
  font-size: 13px;
}

.child-chore-clear {
  grid-template-columns: 1fr;
}

.child-done-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.child-done-strip span {
  border: 1px solid color-mix(in srgb, var(--teal) 20%, var(--line));
  border-radius: 999px;
  padding: 7px 10px;
  background: color-mix(in srgb, var(--teal) 8%, white);
}

.child-reward-goals {
  display: grid;
  gap: 10px;
  border-top: 1px solid color-mix(in srgb, var(--gold) 28%, var(--line));
  padding-top: 14px;
}

.child-reward-goal,
.child-reward-empty {
  border: 1px solid color-mix(in srgb, var(--goal-color, var(--teal)) 22%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--goal-color, var(--teal)) 9%, white), rgb(255 253 248 / 92%));
}

.child-reward-goal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 11px;
}

.child-reward-goal div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.child-reward-goal strong,
.child-reward-empty strong {
  overflow-wrap: break-word;
  font-size: 14px;
}

.child-reward-goal small,
.child-reward-empty small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.child-reward-goal > span {
  border-radius: 999px;
  padding: 6px 9px;
  background: color-mix(in srgb, var(--goal-color, var(--teal)) 14%, white);
  color: color-mix(in srgb, var(--goal-color, var(--teal)) 76%, var(--ink));
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.child-reward-goal i {
  grid-column: 1 / -1;
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgb(105 104 95 / 14%);
}

.child-reward-goal i::before {
  content: "";
  display: block;
  width: var(--goal-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--goal-color, var(--teal)), color-mix(in srgb, var(--goal-color, var(--teal)) 48%, var(--gold)));
}

.child-reward-goal.is-unlocked {
  border-color: color-mix(in srgb, var(--goal-color, var(--teal)) 42%, var(--line));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--goal-color, var(--teal)) 18%, transparent);
}

.child-reward-empty {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.layout-grid.wide-left {
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr);
}

.week-page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  align-items: start;
  gap: 12px;
}

.week-panel {
  min-width: 0;
}

.workspace:has(#week:not([hidden])) {
  gap: 14px;
  padding-top: 18px;
}

.workspace:has(#week:not([hidden])) .topbar h1 {
  font-size: clamp(30px, 3.1vw, 46px);
}

.week-panel.panel {
  padding: 18px;
}

.week-panel .panel-header {
  align-items: center;
}

.week-panel .panel-header h2 {
  font-size: 24px;
}

.week-panel-actions {
  display: flex;
  justify-content: flex-end;
}

.reminder-queue-panel {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 12px;
}

.reminder-queue-panel h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.05;
}

.reminder-queue-panel p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.reminder-queue-list {
  display: grid;
  gap: 8px;
}

.reminder-queue-item {
  display: grid;
  gap: 3px;
  border: 1px solid color-mix(in srgb, var(--gold) 52%, var(--line));
  border-left: 5px solid var(--calendar-item-color, var(--gold));
  border-radius: 8px;
  padding: 10px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--calendar-item-color, var(--gold)) 6%, transparent), transparent 44%),
    color-mix(in srgb, var(--gold) 14%, white);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 18%, transparent);
}

.reminder-queue-item span,
.reminder-queue-item small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.reminder-queue-item strong {
  overflow-wrap: anywhere;
}

.account-grid,
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.settings-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.settings-tabs {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 245, .72);
}

.settings-tabs button {
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
  padding: 10px 14px;
}

.settings-tabs button:hover,
.settings-tabs button:focus-visible {
  border-color: var(--line-strong);
  color: var(--ink);
}

.settings-tabs button.is-active {
  background: var(--ink);
  color: var(--paper-strong);
}

.inbox-settings-tabs {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 5px;
  border: 1px solid rgb(33 31 26 / 10%);
  border-radius: 8px;
  background: rgb(255 255 255 / 48%);
}

.inbox-settings-tabs button {
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
}

.inbox-settings-tabs button:hover,
.inbox-settings-tabs button:focus-visible {
  border-color: var(--line-strong);
  color: var(--ink);
}

.inbox-settings-tabs button.is-active {
  background: color-mix(in srgb, var(--teal) 14%, white);
  border-color: color-mix(in srgb, var(--teal) 32%, transparent);
  color: var(--teal-dark);
}

.settings-tab-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  min-width: 0;
}

.settings-tab-panel[hidden] {
  display: none !important;
}

.inbox-settings-subpanel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  min-width: 0;
}

.inbox-settings-subpanel[hidden] {
  display: none !important;
}

.profile-settings-card {
  grid-column: 1 / -1;
}

.user-edit-panel {
  grid-column: span 6;
}

.settings-brand-card {
  grid-column: 1 / -1;
}

.settings-billing-card {
  grid-column: 1 / -1;
}

.audit-card {
  grid-column: 1 / -1;
}

.settings-calendar-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 18px;
}

.settings-calendar-intro {
  max-width: 760px;
}

.settings-calendar-intro p:last-child {
  margin: 0;
}

.calendar-settings-stack {
  display: grid;
  gap: 16px;
}

.calendar-settings-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .5);
  padding: 18px;
}

.calendar-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.calendar-section-heading-inline {
  align-items: start;
}

.calendar-section-heading h3 {
  margin: 2px 0 5px;
  font-size: 20px;
}

.calendar-section-heading p {
  margin: 0;
  color: var(--muted);
}

.calendar-export-subscription {
  display: grid;
  grid-template-columns: minmax(210px, .55fr) minmax(300px, 1fr) minmax(168px, auto);
  gap: 16px;
  align-items: start;
  border: 1px solid color-mix(in srgb, var(--teal) 28%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--teal) 8%, white), rgb(255 255 255 / 56%));
}

.calendar-export-subscription h3 {
  margin-bottom: 5px;
}

.calendar-export-link {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.calendar-export-link > span,
.preset-calendar-feed > div > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.calendar-export-link code {
  display: block;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgb(255 255 255 / 74%);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  padding: 10px 12px;
}

.calendar-export-actions {
  display: grid;
  gap: 8px;
  min-width: 180px;
}

.calendar-export-actions .ghost-button,
.calendar-export-actions .secondary-button {
  text-align: center;
}

.calendar-export-actions a[aria-disabled="true"] {
  opacity: .55;
  pointer-events: none;
}

.calendar-feed-create {
  display: grid;
  gap: 14px;
}

.calendar-feed-create-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, .32fr);
  gap: 14px;
  align-items: start;
}

.calendar-feed-form {
  grid-template-columns: minmax(168px, .8fr) minmax(260px, 1.4fr) minmax(190px, .9fr);
  gap: 12px;
  margin-top: 0;
  align-items: start;
}

.calendar-feed-color-control {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
}

.calendar-feed-color-control .color-field {
  align-items: start;
}

.calendar-feed-color-control .custom-color-picker {
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 42px;
  padding: 5px;
}

.calendar-feed-color-control .custom-color-current {
  width: 34px;
  min-height: 30px;
}

.calendar-feed-color-control .custom-color-options {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 5px;
}

.calendar-feed-form label small {
  color: var(--muted);
  line-height: 1.45;
  margin-top: 5px;
}

.calendar-feed-submit-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 2px;
}

.calendar-feed-submit-row .secondary-button {
  min-width: 210px;
}

.preset-calendar-feed {
  display: grid;
  gap: 12px;
  align-content: start;
  border: 1px dashed color-mix(in srgb, var(--gold) 58%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--gold) 9%, white);
  padding: 14px;
}

.preset-calendar-feed strong,
.calendar-feed-row strong {
  display: block;
}

.preset-calendar-feed small,
.calendar-feed-row small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.calendar-feed-library {
  display: grid;
  gap: 14px;
}

.calendar-feed-count {
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--teal) 25%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--teal) 8%, white);
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  padding: 9px 12px;
  white-space: nowrap;
}

.calendar-feed-list {
  display: grid;
  gap: 10px;
}

.calendar-feed-list .empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .42);
  padding: 14px 16px;
}

.calendar-feed-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-left: 4px solid var(--feed-color, var(--teal));
  border-radius: 8px;
  background: rgba(255, 255, 255, .58);
  padding: 14px 16px 14px 14px;
}

.calendar-feed-row-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.calendar-feed-row-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.calendar-feed-source {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 72%);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 5px 8px;
}

.calendar-feed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.calendar-feed-color-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid color-mix(in srgb, var(--feed-color, var(--teal)) 34%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--feed-color, var(--teal)) 10%, white);
  color: var(--ink);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1;
  padding: 7px 10px;
}

.calendar-feed-color-pill::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--feed-color, var(--teal));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--feed-color, var(--teal)) 18%, transparent);
}

@media (max-width: 1320px) {
  .calendar-feed-create-grid {
    grid-template-columns: 1fr;
  }

  .preset-calendar-feed {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

@media (max-width: 1040px) {
  .calendar-export-subscription,
  .calendar-feed-form {
    grid-template-columns: 1fr;
  }

  .calendar-feed-submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .calendar-feed-submit-row .secondary-button {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 620px) {
  .calendar-settings-section {
    padding: 14px;
  }

  .calendar-section-heading,
  .calendar-section-heading-inline {
    display: grid;
  }

  .calendar-feed-row {
    grid-template-columns: 1fr;
  }

  .preset-calendar-feed {
    grid-template-columns: 1fr;
  }

  .calendar-feed-row .ghost-button {
    width: 100%;
  }
}

.settings-brand-card {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(320px, 1.1fr);
  gap: 22px 28px;
  align-items: start;
}

.settings-brand-card .eyebrow,
.settings-brand-card h2 {
  grid-column: 1 / -1;
}

.settings-brand-card .eyebrow {
  margin-bottom: 0;
}

.household-brand-form {
  grid-template-columns: 1fr;
}

.household-facts {
  display: grid;
  gap: 10px;
  margin-top: 0;
}

.household-facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgb(255 255 255 / 48%);
}

.household-facts span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.household-facts strong {
  text-align: right;
}

.form-success {
  min-height: 20px;
}

.form-success.is-success {
  color: var(--teal);
  font-weight: 700;
}

.form-success.is-error {
  color: var(--brick);
  font-weight: 700;
}

.family-page {
  grid-template-columns: 1fr;
}

.family-page > * {
  grid-column: 1 / -1;
  min-width: 0;
}

.family-overview {
  grid-template-columns: 1fr;
}

.family-account-grid {
  grid-template-columns: minmax(420px, 1fr) minmax(360px, .9fr);
  align-items: stretch;
}

.family-account-grid .panel {
  min-width: 0;
}

.family-account-notice {
  margin: 0 0 18px;
  border: 1px solid color-mix(in srgb, var(--teal) 30%, var(--line));
  border-left: 6px solid var(--teal);
  border-radius: 8px;
  background: color-mix(in srgb, var(--teal) 9%, var(--paper-strong));
  color: var(--teal);
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  box-shadow: 0 12px 32px rgb(32 32 28 / 7%);
}

.family-account-notice[data-tone="success"] {
  border-color: color-mix(in srgb, var(--success) 36%, var(--line));
  border-left-color: var(--success);
  background: color-mix(in srgb, var(--success) 11%, var(--paper-strong));
  color: #1f6848;
}

.family-account-notice[data-tone="error"] {
  border-color: color-mix(in srgb, var(--danger) 34%, var(--line));
  border-left-color: var(--danger);
  background: color-mix(in srgb, var(--danger) 10%, var(--paper-strong));
  color: var(--danger);
}

.family-account-notice[data-tone="neutral"] {
  border-color: color-mix(in srgb, var(--gold) 42%, var(--line));
  border-left-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 12%, var(--paper-strong));
  color: #74571b;
}

.panel {
  padding: 22px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.route-card {
  display: grid;
  gap: 7px;
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--white);
  color: var(--ink);
  text-align: left;
}

.route-card strong,
.route-card span {
  display: block;
}

.route-card strong {
  font-size: 18px;
}

.route-card span {
  color: var(--muted);
  line-height: 1.4;
}

.route-card:hover {
  border-color: rgb(47 111 115 / 45%);
  box-shadow: 0 12px 30px rgb(47 111 115 / 11%);
  transform: translateY(-1px);
}

.status-pill {
  border-radius: 999px;
  padding: 7px 10px;
  background: rgb(47 111 115 / 12%);
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-dot {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--leaf);
  box-shadow: 0 0 0 8px rgb(117 137 91 / 15%);
}

.input-label {
  display: block;
  margin: 22px 0 8px;
}

textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  min-height: 210px;
  resize: vertical;
  border: 1px solid #c9bead;
  border-radius: 8px;
  padding: 16px;
  background: var(--white);
  color: var(--ink);
  line-height: 1.5;
}

.compact-textarea {
  min-height: 150px;
}

textarea:focus,
input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgb(215 164 74 / 65%);
  outline-offset: 2px;
}

input.is-invalid {
  border-color: #c8513f;
  box-shadow: 0 0 0 3px rgb(200 81 63 / 14%);
}

.field-error {
  display: block;
  color: #9f3327;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.field-error[hidden] {
  display: none;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.onboarding-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.compact-button {
  min-height: 34px;
  padding: 7px 11px;
}

.check-item {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: rgb(255 255 255 / 52%);
}

.check-item span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgb(105 104 95 / 12%);
  color: var(--muted);
  font-weight: 900;
}

.check-item.is-done {
  border-color: rgb(117 137 91 / 45%);
  background: rgb(117 137 91 / 10%);
}

.check-item.is-done span {
  background: var(--leaf);
  color: white;
}

.toolbar {
  justify-content: flex-end;
  margin-top: 12px;
}

.focus-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.focus-list article {
  border-left: 5px solid var(--brick);
  padding: 14px 0 14px 14px;
  background: rgb(180 73 60 / 8%);
}

.focus-list span,
.focus-list strong {
  display: block;
}

.focus-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.focus-list strong {
  margin-top: 5px;
  line-height: 1.35;
}

.approval-board {
  display: grid;
  gap: 18px;
}

.section-heading p:last-child {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.approval-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.suggestion-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
}

.suggestion-card h3 {
  margin: 8px 0;
  font-size: 20px;
  line-height: 1.18;
}

.suggestion-card p {
  margin: 0 0 8px;
  color: var(--ink);
  line-height: 1.4;
}

.suggestion-card small {
  color: var(--muted);
}

.suggestion-card.is-approved {
  border-color: rgb(117 137 91 / 60%);
  background: rgb(117 137 91 / 10%);
}

.card-type {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgb(92 83 119 / 12%);
  color: var(--plum);
  font-size: 12px;
  font-weight: 800;
}

.attention-card {
  background: rgb(180 73 60 / 8%);
}

.attention-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.inbox-ticket-list {
  display: grid;
  gap: 12px;
}

.inbox-date-separator {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 0;
  color: var(--teal);
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.inbox-date-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: color-mix(in srgb, var(--teal) 18%, var(--line));
}

.inbox-date-separator span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgb(47 111 115 / 10%);
}

.inbox-page-summary {
  max-width: 560px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.inbox-ticket-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 24px;
  align-items: flex-end;
  margin: 0 0 14px;
}

.inbox-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.inbox-tag-filters {
  display: grid;
  gap: 7px;
  min-width: 0;
  justify-self: start;
}

.inbox-filter-label {
  color: var(--teal);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 1;
  text-transform: none;
}

.inbox-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}

.inbox-filter-tools {
  display: grid;
  gap: 8px;
  justify-items: end;
  align-self: end;
  min-width: max-content;
}

.inbox-date-filters {
  justify-content: flex-end;
  margin-left: 0;
  padding-left: 0;
  border-left: 0;
}

.inbox-visibility-filters {
  justify-content: flex-end;
}

.inbox-visibility-filters [data-inbox-visibility-filter="hidden"] {
  --tag-color: #6f5c9b;
}

.inbox-ticket-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid color-mix(in srgb, var(--tag-color, var(--teal)) 34%, var(--line));
  border-radius: 999px;
  padding: 7px 11px;
  background: rgb(255 255 255 / 72%);
  color: color-mix(in srgb, var(--tag-color, var(--teal)) 70%, var(--ink));
  font-size: 13px;
  font-weight: 800;
}

.inbox-ticket-filter .filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  min-height: 20px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tag-color, var(--teal)) 13%, white);
  color: color-mix(in srgb, var(--tag-color, var(--teal)) 74%, var(--ink));
  font-size: 11px;
  line-height: 1;
  padding: 2px 6px;
}

.inbox-ticket-filter .filter-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.inbox-ticket-filter.is-wilma-tag .filter-check {
  background: white;
  color: #00447c;
}

.inbox-ticket-filter.is-active {
  background: color-mix(in srgb, var(--tag-color, var(--teal)) 16%, white);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tag-color, var(--teal)) 42%, transparent);
}

.inbox-ticket-filter.is-wilma-tag,
.inbox-ticket-filter.is-wilma-tag.is-active {
  border-color: #00447c;
  background: #00447c;
  color: white;
  box-shadow: 0 0 0 3px rgb(0 68 124 / 20%);
}

.inbox-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.inbox-pagination-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.inbox-page-button {
  min-width: 34px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 9px;
  background: rgb(255 255 255 / 72%);
  color: var(--ink);
  font-weight: 700;
}

.inbox-page-button.is-active {
  border-color: var(--teal);
  background: var(--teal);
  color: white;
}

.wilma-message-ticket {
  position: relative;
  max-height: 1600px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 6px solid var(--inbox-ticket-border-color, var(--wilma-child-color));
  border-radius: 8px;
  padding: 16px;
  padding-bottom: 8px;
  background: rgb(255 255 255 / 74%);
  box-shadow: 0 18px 40px rgb(58 45 26 / 8%);
  transition:
    opacity .24s ease,
    transform .24s ease,
    max-height .28s ease,
    padding .28s ease,
    margin .28s ease,
    border-width .28s ease;
}

.wilma-message-ticket.is-multi-child-ticket {
  border-left-color: var(--inbox-ticket-border-color, var(--teal));
}

.wilma-message-ticket.is-hiding-inbox-ticket {
  max-height: 0;
  margin-top: -8px;
  margin-bottom: -8px;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
}

.inbox-new-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--gold);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.wilma-message-ticket.is-new-inbox-ticket {
  animation: inboxTicketFadeIn 900ms ease-out both;
}

.wilma-message-ticket.is-linked-inbox-ticket {
  outline: 3px solid rgb(201 54 47 / 34%);
  outline-offset: 4px;
}

@keyframes inboxTicketFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wilma-ticket-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.wilma-ticket-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.wilma-ticket-header > div {
  min-width: 0;
}

.wilma-color-rails {
  display: inline-flex;
  gap: 4px;
  align-self: stretch;
}

.wilma-color-rail {
  width: 12px;
  min-width: 12px;
  align-self: stretch;
  border-radius: 999px;
  background: var(--rail-color, var(--wilma-child-color));
}

.wilma-ticket-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.inbox-ticket-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid color-mix(in srgb, var(--tag-color, var(--wilma-child-color)) 34%, var(--line));
  border-radius: 999px;
  padding: 7px 11px;
  background: rgb(255 255 255 / 72%);
  color: color-mix(in srgb, var(--tag-color, var(--wilma-child-color)) 70%, var(--ink));
  font-size: 13px;
  font-weight: 800;
}

.inbox-ticket-tag.is-wilma-tag {
  border-color: #00447c;
  background: #00447c;
  color: white;
  box-shadow: 0 0 0 3px rgb(0 68 124 / 20%);
}

.inbox-ticket-tag.is-severe-tag {
  border-color: color-mix(in srgb, #c9362f 34%, var(--line));
  background: rgb(255 255 255 / 72%);
  color: color-mix(in srgb, #c9362f 70%, var(--ink));
}

.wilma-message-ticket h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.14;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.wilma-ticket-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
  margin: 0;
}

.wilma-ticket-meta div {
  display: grid;
  gap: 4px;
}

.wilma-ticket-meta dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.wilma-ticket-meta dd {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.wilma-ticket-meta dd.inbox-ticket-sender-with-email {
  display: grid;
  align-items: start;
  gap: 2px;
}

.inbox-ticket-sender-email {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.inbox-ticket-child-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.inbox-ticket-child {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.inbox-ticket-target-button {
  min-width: 0;
  min-height: 32px;
  border: 0;
  border-radius: 4px;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.inbox-ticket-target-button:hover {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inbox-ticket-target-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--wilma-child-color) 48%, white);
  outline-offset: 3px;
}

.inbox-ticket-target-avatars {
  position: relative;
  display: flex;
  width: 68px;
  height: 68px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.inbox-ticket-target-avatars.is-single .inbox-ticket-target-avatar {
  width: 64px;
  height: 64px;
  border-width: 2px;
  box-shadow: 0 10px 22px rgb(37 37 31 / 14%);
}

.inbox-ticket-target-avatars.is-single .inbox-ticket-target-avatar.is-initials-avatar {
  --avatar-initial-size: 22px;
}

.inbox-ticket-target-avatars.is-multiple {
  flex-wrap: wrap;
  align-content: center;
}

.inbox-ticket-target-avatars.is-multiple .inbox-ticket-target-avatar {
  width: 40px;
  height: 40px;
  margin: -4px;
  border: 2px solid white;
  box-shadow: 0 7px 16px rgb(37 37 31 / 14%);
}

.inbox-ticket-target-avatars.is-multiple .inbox-ticket-target-avatar.is-initials-avatar {
  --avatar-initial-size: 15px;
}

.inbox-ticket-target-avatars.is-pair .inbox-ticket-target-avatar {
  width: 50px;
  height: 50px;
  margin: -8px;
}

.inbox-ticket-target-avatars.is-pair .inbox-ticket-target-avatar.is-initials-avatar {
  --avatar-initial-size: 19px;
}

.inbox-ticket-target-placeholder,
.inbox-ticket-target-overflow {
  display: inline-grid;
  place-items: center;
  border: 2px solid white;
  border-radius: 999px;
  background: color-mix(in srgb, var(--wilma-child-color) 18%, white);
  color: var(--ink);
  font-weight: 800;
}

.inbox-ticket-target-placeholder {
  width: 54px;
  height: 54px;
  font-size: 24px;
}

.inbox-ticket-target-overflow {
  position: absolute;
  right: -2px;
  bottom: -2px;
  z-index: 2;
  width: 32px;
  height: 32px;
  font-size: 11px;
}

.inbox-merge-note {
  width: max-content;
  max-width: 100%;
  margin: -2px 0 0;
  border: 1px solid color-mix(in srgb, var(--wilma-child-color) 22%, var(--line));
  border-radius: 999px;
  padding: 5px 9px;
  background: color-mix(in srgb, var(--wilma-child-color) 8%, white);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.wilma-ticket-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
}

.wilma-ticket-footer {
  display: grid;
}

.wilma-ticket-footer > .inbox-conversation {
  margin-top: 12px;
}

.wilma-ticket-footer > .inbox-reply-shell.is-open {
  margin-top: 12px;
}

.wilma-ticket-actions .primary-button.compact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(37 37 31 / 16%);
  background: rgb(37 37 31 / 7%);
  color: var(--ink);
  box-shadow: none;
  font-size: 14px;
  font-weight: 700;
}

.wilma-ticket-actions .primary-button.compact-button:hover {
  background: rgb(255 250 240 / 86%);
}

.inbox-original-message {
  display: grid;
  gap: 8px;
  border-top: 1px solid color-mix(in srgb, var(--wilma-child-color) 18%, var(--line));
  padding-top: 12px;
}

.inbox-original-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.inbox-original-toggle {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border: 1px solid rgb(37 37 31 / 14%);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgb(255 255 255 / 68%);
  color: var(--teal);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-transform: none;
}

.inbox-original-message .open-label {
  display: none;
}

.inbox-original-message.is-expanded .closed-label {
  display: none;
}

.inbox-original-message.is-expanded .open-label {
  display: inline;
}

.inbox-original-body {
  box-sizing: border-box;
  max-height: calc(1.5em * 4 + 26px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgb(37 37 31 / 12%);
  border-radius: 8px;
  padding: 12px;
  background: rgb(255 255 255 / 70%);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.inbox-original-message.is-collapsed .inbox-original-body {
  mask-image: linear-gradient(180deg, #000 72%, transparent);
}

.inbox-original-message.is-expanded .inbox-original-body {
  max-height: none;
  overflow: visible;
  mask-image: none;
}

.inbox-suggestion-list {
  display: grid;
  gap: 9px;
  border-top: 1px solid color-mix(in srgb, var(--wilma-child-color) 18%, var(--line));
  padding-top: 12px;
}

.inbox-suggestion-list > strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.inbox-suggestion-items {
  display: grid;
  gap: 8px;
}

.inbox-suggestion-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--wilma-child-color) 18%, var(--line));
  border-left: 3px solid color-mix(in srgb, var(--wilma-child-color) 72%, var(--teal));
  border-radius: 8px;
  padding: 10px 12px;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--wilma-child-color) 4%, var(--paper-strong)) 0%,
    color-mix(in srgb, var(--wilma-child-color) 2%, var(--paper-strong)) 58%,
    rgb(255 255 255 / 0) 100%
  );
}

.inbox-suggestion-item h4,
.inbox-suggestion-item p {
  margin: 0;
}

.inbox-suggestion-item h4 {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.3;
}

.inbox-suggestion-item p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.inbox-suggestion-schedule {
  display: block;
  margin-top: 5px;
  color: color-mix(in srgb, var(--wilma-child-color) 62%, var(--teal));
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.inbox-suggestion-meta {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}

.inbox-suggestion-action {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid rgb(37 37 31 / 12%);
  border-radius: 999px;
  padding: 4px 9px;
  background: rgb(47 111 115 / 9%);
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

button.inbox-suggestion-action {
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
}

button.inbox-suggestion-action:hover,
button.inbox-suggestion-action:focus-visible {
  border-color: color-mix(in srgb, var(--wilma-child-color) 46%, var(--teal));
  background: color-mix(in srgb, var(--wilma-child-color) 16%, rgb(47 111 115 / 9%));
  color: var(--ink);
  outline: none;
}

.inbox-conversation {
  display: grid;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--wilma-child-color) 28%, var(--line));
  border-radius: 8px;
  padding: 12px;
  background: rgb(255 255 255 / 64%);
}

.inbox-conversation.is-empty-thread {
  gap: 8px;
  padding: 8px 10px;
}

.inbox-reply-summary {
  display: inline-flex;
  width: max-content;
  min-height: 32px;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
}

.inbox-reply-summary::before {
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg) translate(-1px, -1px);
  transform-origin: center;
  transition: transform 180ms ease;
}

.inbox-reply-summary[aria-expanded="true"]::before {
  transform: rotate(225deg) translate(-1px, -1px);
}

.wilma-ticket-actions .inbox-reply-summary {
  margin-left: auto;
}

.inbox-reply-panel {
  display: grid;
}

.inbox-conversation:has(.inbox-reply-panel) {
  gap: 0;
}

.inbox-reply-panel.is-open:not(:first-child) {
  margin-top: 12px;
}

.inbox-reply-disclosure {
  display: grid;
  grid-template-rows: 0fr;
  min-height: 0;
  margin-top: 0;
  opacity: 0;
  pointer-events: none;
  transition:
    grid-template-rows 280ms cubic-bezier(0.4, 0, 0.2, 1),
    margin-top 280ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 180ms ease;
}

.inbox-reply-disclosure.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  pointer-events: auto;
}

.inbox-reply-disclosure-clip {
  min-height: 0;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .inbox-reply-disclosure {
    transition: none;
  }
}

.inbox-share-summary {
  display: grid;
  gap: 8px;
}

.inbox-share-summary > strong {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.inbox-share-people {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.inbox-share-person {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 9px 4px 5px;
  background: rgb(255 255 255 / 70%);
  font-weight: 800;
}

.inbox-chat-list {
  display: grid;
  gap: 10px;
  border-top: 1px solid color-mix(in srgb, var(--wilma-child-color) 20%, var(--line));
  padding-top: 10px;
}

.inbox-conversation > .inbox-chat-list:first-child {
  border-top: 0;
  padding-top: 0;
}

.inbox-chat-message {
  display: block;
}

.inbox-chat-message > div {
  display: grid;
  gap: 3px;
  border-radius: 8px;
  padding: 6px 10px;
  background: rgb(255 255 255 / 78%);
}

.inbox-chat-message.is-child-hidden > div {
  border: 1px dashed color-mix(in srgb, var(--gold) 72%, var(--line));
  background: color-mix(in srgb, var(--gold) 13%, white);
}

.inbox-chat-message.is-new-chat-message > div {
  animation: inboxChatMessageFadeIn 900ms ease-out both;
}

@keyframes inboxChatMessageFadeIn {
  from {
    opacity: 0;
    background: color-mix(in srgb, var(--teal) 12%, white);
  }

  to {
    opacity: 1;
    background: rgb(255 255 255 / 78%);
  }
}

.inbox-chat-author {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-height: 24px;
}

.inbox-chat-author .inline-avatar {
  margin-right: 2px;
}

.inbox-chat-author span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.relative-time {
  color: #5b5b5b;
  font-size: 14px;
  font-weight: 500;
}

.inbox-chat-author .inbox-chat-scope {
  border-radius: 999px;
  padding: 3px 8px;
  background: color-mix(in srgb, var(--gold) 22%, white);
  color: var(--ink);
  text-transform: uppercase;
}

.inbox-chat-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}

.inbox-chat-actions .compact-button {
  min-height: 30px;
  padding: 6px 9px;
  font-size: 12px;
}

.inbox-chat-message p {
  margin: 0 0 0 34px;
  color: var(--ink);
}

.inbox-chat-form {
  display: grid;
  gap: 6px;
  border-top: 0;
  padding-top: 0;
}

.inbox-chat-private-toggle {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
}

.inbox-chat-private-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
}

.inbox-chat-private-toggle input:focus,
.inbox-chat-private-toggle input:focus-visible {
  outline: 0;
}

.inbox-chat-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.inbox-chat-submit {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.inbox-chat-submit .primary-button.compact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.inbox-chat-form textarea {
  min-height: 44px;
  resize: vertical;
}

.inbox-chat-edit-form textarea {
  min-height: 120px;
  resize: vertical;
}

.inbox-chat-edit-form .full-field {
  display: grid;
  gap: 10px;
}

.inbox-share-dialog {
  width: min(620px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 28px 80px rgb(33 30 24 / 24%);
}

.inbox-share-dialog::backdrop {
  background: rgb(33 30 24 / 42%);
}

.inbox-share-form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.inbox-share-form > * {
  min-width: 0;
}

.inbox-share-form .modal-header h2 {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 520px) {
  .inbox-share-form .modal-header h2 {
    font-size: 24px;
    line-height: 1.12;
    overflow-wrap: break-word;
    hyphens: auto;
  }
}

.calendar-entry-dialog {
  width: min(680px, calc(100vw - 32px));
}

.calendar-entry-dialog .calendar-entry-form {
  margin-top: 0;
  padding: 22px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.modal-header .icon-button {
  flex: 0 0 46px;
  min-width: 46px;
}

.modal-header h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.inbox-chat-delete-form {
  gap: 16px;
  padding: 24px;
}

.inbox-chat-delete-form .modal-header {
  align-items: center;
  border-bottom: 1px solid color-mix(in srgb, var(--danger) 16%, var(--line));
  padding-bottom: 14px;
}

.inbox-chat-delete-form .modal-header h2 {
  font-size: 28px;
}

.inbox-chat-delete-form .icon-button {
  width: 38px;
  height: 38px;
  border-color: color-mix(in srgb, var(--danger) 18%, var(--line));
  background: color-mix(in srgb, var(--danger) 9%, white);
  color: var(--danger);
  font-size: 18px;
  font-weight: 700;
}

.inbox-chat-delete-form .form-note {
  margin: 0;
  color: var(--muted);
}

.inbox-chat-delete-form blockquote {
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--danger) 20%, var(--line));
  border-left: 5px solid var(--danger);
  border-radius: 8px;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--danger) 7%, white);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.45;
  max-height: 130px;
  overflow: auto;
}

.inbox-chat-delete-form .modal-actions {
  align-items: center;
  justify-content: space-between;
  padding-top: 2px;
}

.inbox-chat-delete-form .modal-actions button {
  min-height: 44px;
}

.inbox-chat-delete-form .delete-confirm-button {
  min-width: 158px;
  border-color: var(--danger);
  background: var(--danger);
  color: white;
  box-shadow: 0 8px 18px rgb(165 62 48 / 22%);
}

.inbox-chat-delete-form .delete-confirm-button:hover {
  border-color: color-mix(in srgb, var(--danger) 86%, black);
  background: color-mix(in srgb, var(--danger) 86%, black);
}

.inbox-share-recipients {
  display: grid;
  gap: 8px;
}

.inbox-share-recipient-group {
  display: grid;
  gap: 8px;
}

.inbox-share-recipient-group + .inbox-share-recipient-group {
  margin-top: 8px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.inbox-share-recipient-group-title {
  margin: 0 0 2px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}

.inbox-share-recipient-group.is-supporting .inbox-share-recipient {
  background: rgb(255 255 255 / 48%);
}

.inbox-correction-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.inbox-correction-fields label {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.inbox-correction-fields .calendar-picker-panel {
  left: 0;
  right: auto;
  width: min(320px, 100%);
  max-width: 100%;
}

@media (max-width: 640px) {
  .inbox-correction-fields {
    grid-template-columns: 1fr;
  }
}

.inbox-share-recipient {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid color-mix(in srgb, var(--recipient-color) 28%, var(--line));
  border-radius: 8px;
  padding: 10px 12px;
  background: rgb(255 255 255 / 68%);
}

.inbox-share-recipient input {
  margin: 0;
  width: 18px;
  height: 18px;
  align-self: center;
  flex: 0 0 auto;
  accent-color: var(--recipient-color);
}

.inbox-share-recipient input:focus,
.inbox-share-recipient input:focus-visible {
  outline: 0;
}

.inbox-share-recipient:has(input:focus-visible) {
  border-color: color-mix(in srgb, var(--recipient-color) 52%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--recipient-color) 18%, transparent);
}

.inbox-share-recipient > span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  line-height: 1;
}

.inbox-share-recipient .inline-avatar {
  margin-right: 0;
}

.inbox-share-recipient small {
  color: var(--muted);
  font-weight: 700;
}

#inboxShareMessage[data-tone="error"] {
  color: var(--danger);
}

meter {
  width: 100%;
  height: 12px;
}

.timeline {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.calendar-conflict-summary {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  border: 1px solid color-mix(in srgb, var(--gold) 58%, var(--line));
  border-radius: 16px;
  padding: 14px;
  background: color-mix(in srgb, var(--gold) 10%, white);
}

.calendar-conflict-summary[hidden] {
  display: none;
}

.calendar-conflict-summary header strong,
.calendar-conflict-summary header span {
  display: block;
}

.calendar-conflict-summary header span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.calendar-conflict-list {
  display: grid;
  gap: 8px;
}

.calendar-conflict-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--line));
  border-radius: 12px;
  padding: 11px;
  background: rgb(255 255 255 / 76%);
}

.calendar-conflict-entry {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.calendar-conflict-source {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.calendar-conflict-card strong {
  overflow-wrap: anywhere;
}

.calendar-conflict-schedule,
.calendar-conflict-detail {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.calendar-conflict-detail {
  color: var(--muted);
}

.calendar-conflict-source-link {
  justify-self: start;
  margin-top: 3px;
  color: var(--accent-deep, #6f5318);
  font-size: 13px;
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.calendar-conflict-source-link:hover {
  text-decoration-thickness: 2px;
}

.calendar-conflict-versus {
  color: var(--gold-dark, #8b6517);
  font-weight: 900;
}

.calendar-conflict-actions {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 680px) {
  .calendar-conflict-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .calendar-conflict-versus {
    transform: rotate(90deg);
    justify-self: start;
  }

  .calendar-conflict-actions,
  .calendar-conflict-actions button {
    width: 100%;
  }
}

.timeline.week-columns {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  overflow: visible;
  padding-bottom: 0;
}

.week-column {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 6px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px;
  background: rgb(255 255 255 / 44%);
}

.week-column.is-past {
  border-color: color-mix(in srgb, var(--line) 62%, transparent);
  background: rgb(255 250 240 / 24%);
}

.week-column.is-past header {
  opacity: .58;
}

.week-column header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}

.week-column header div {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.week-column header strong {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.week-column header span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.week-day-add-button {
  display: inline-grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--teal) 36%, var(--line));
  border-radius: 999px;
  background: rgb(255 255 255 / 72%);
  color: var(--teal);
  font-weight: 700;
  cursor: pointer;
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 17px;
  line-height: 1;
}

.week-day-add-button:hover {
  background: color-mix(in srgb, var(--teal) 16%, white);
  transform: translateY(-1px);
}

.week-column-items {
  display: grid;
  align-content: start;
  gap: 5px;
}

.week-column-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 9px 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.week-column-card {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: rgb(255 255 255 / 56%);
  font-size: 11px;
  line-height: 1.24;
}

.week-column-card.is-manual-calendar-item {
  border-color: color-mix(in srgb, var(--calendar-item-color, var(--teal)) 32%, var(--line));
  border-left: 5px solid var(--calendar-item-color, var(--teal));
  background: color-mix(in srgb, var(--calendar-item-color, var(--teal)) 9%, white);
}

.week-column-card.is-manual-reminder {
  border-color: color-mix(in srgb, var(--gold) 58%, var(--line));
  border-left-width: 6px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--calendar-item-color, var(--gold)) 6%, transparent), transparent 42%),
    color-mix(in srgb, var(--gold) 16%, white);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 20%, transparent);
}

.week-column-card.is-editable,
.timeline-item.is-editable {
  cursor: pointer;
}

.week-column-card.is-editable:hover,
.timeline-item.is-editable:hover {
  border-color: color-mix(in srgb, var(--calendar-item-color, var(--teal)) 48%, var(--line));
  background: color-mix(in srgb, var(--calendar-item-color, var(--teal)) 13%, white);
}

.week-column-card.is-manual-reminder.is-editable:hover,
.timeline-item.is-manual-reminder.is-editable:hover {
  border-color: color-mix(in srgb, var(--gold) 68%, var(--line));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--calendar-item-color, var(--gold)) 7%, transparent), transparent 42%),
    color-mix(in srgb, var(--gold) 19%, white);
}

.week-column-card.is-editable:focus-visible,
.timeline-item.is-editable:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--calendar-item-color, var(--teal)) 32%, transparent);
  outline-offset: 2px;
}

.timeline-item.is-past,
.week-column-card.is-past {
  opacity: .54;
  filter: saturate(.58);
}

.timeline-item.is-past:hover,
.week-column-card.is-past:hover {
  opacity: .72;
}

.week-column-card strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.2;
}

.week-column-card small {
  display: block;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.22;
}

.wilma-column-card {
  border-color: color-mix(in srgb, var(--school-color) 36%, var(--line));
  border-left: 5px solid var(--school-color);
  background: color-mix(in srgb, var(--school-color) 12%, transparent);
}

.week-column-card .school-meal-compact {
  display: -webkit-box;
  overflow: hidden;
  color: color-mix(in srgb, var(--school-color) 68%, var(--ink));
  font-size: 10.5px;
  line-height: 1.22;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.week-column-card .wilma-attendance-summary {
  display: flex;
  margin-top: 1px;
}

.week-column-card .wilma-attendance-notice {
  max-width: 100%;
  padding: 1px 5px;
  font-size: 9px;
  white-space: nowrap;
}

.week-column-card .wilma-attendance-notice span {
  width: 11px;
  height: 11px;
  font-size: 8px;
}

.week-toolbar {
  display: grid;
  grid-template-columns: minmax(342px, 1fr) minmax(164px, max-content);
  grid-template-areas:
    "nav view"
    "filter view";
  gap: 10px;
  align-items: end;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgb(255 255 255 / 58%);
}

.week-nav {
  grid-area: nav;
  display: grid;
  grid-template-columns: minmax(94px, auto) minmax(138px, max-content) minmax(94px, auto);
  gap: 4px 8px;
  align-items: stretch;
  justify-content: center;
}

.week-toolbar .ghost-button,
.week-toolbar .secondary-button,
.week-panel-actions .secondary-button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

.week-nav #weekPrevButton {
  grid-column: 1;
  grid-row: 2;
  justify-self: end;
  align-self: stretch;
}

.week-nav #weekNextButton {
  grid-column: 3;
  grid-row: 2;
  justify-self: start;
  align-self: stretch;
}

.week-nav #weekTodayButton {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  border-color: rgb(47 111 115 / 24%);
  background: rgb(255 255 255 / 62%);
  color: var(--teal);
  padding: 4px 9px;
  min-height: 0;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: none;
}

.week-range-card {
  grid-column: 2;
  grid-row: 2;
  min-width: 138px;
  border-radius: 8px;
  padding: 7px 10px 8px;
  background: rgb(47 111 115 / 10%);
  color: var(--teal);
  text-align: center;
  display: grid;
  gap: 2px;
}

.week-range-card small {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
}

.week-range-card strong {
  font-size: .9rem;
}

.week-filter {
  grid-area: filter;
  display: grid;
  gap: 6px;
  width: 100%;
  max-width: 220px;
  justify-self: center;
  align-self: end;
}

.week-filter span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
}

.week-layout-toggle {
  grid-area: view;
  display: grid;
  gap: 6px;
  justify-self: end;
  align-self: center;
}

.week-layout-toggle > span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
}

.week-layout-toggle > div {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(78px, 1fr));
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
  background: rgb(255 255 255 / 64%);
}

.week-layout-toggle .ghost-button {
  min-height: 34px;
  border: 0;
  padding: 0 12px;
  font-size: 13px;
}

.week-layout-toggle .ghost-button.is-active {
  background: var(--teal);
  color: white;
}

.week-summary {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.timeline-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.timeline-item.is-manual-calendar-item {
  border-top: 1px solid color-mix(in srgb, var(--calendar-item-color, var(--teal)) 24%, var(--line));
  border-left: 5px solid var(--calendar-item-color, var(--teal));
  border-radius: 8px;
  padding: 14px 14px 14px 12px;
  background: color-mix(in srgb, var(--calendar-item-color, var(--teal)) 8%, transparent);
}

.timeline-item.is-manual-reminder {
  border-top-color: color-mix(in srgb, var(--gold) 58%, var(--line));
  border-left-width: 6px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--calendar-item-color, var(--gold)) 6%, transparent), transparent 42%),
    color-mix(in srgb, var(--gold) 16%, white);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 20%, transparent);
}

.timeline-item > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.timeline-item strong,
.timeline-item small {
  display: block;
}

.timeline-item small {
  margin-top: 4px;
  color: var(--muted);
}

.wilma-school-day {
  display: block;
  border: 1px solid color-mix(in srgb, var(--school-color) 42%, var(--line));
  border-left: 6px solid var(--school-color);
  border-radius: 8px;
  padding: 0;
  background: color-mix(in srgb, var(--school-color) 13%, var(--paper, #fffaf0));
}

.wilma-school-day[open] {
  padding-bottom: 12px;
}

.wilma-school-day summary {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border: 0;
  border-radius: inherit;
  padding: 12px 14px;
  background: transparent;
  cursor: pointer;
  list-style: none;
}

.wilma-school-day summary::-webkit-details-marker {
  display: none;
}

.wilma-school-day summary > span {
  color: color-mix(in srgb, var(--school-color) 72%, var(--ink));
  font-size: 13px;
  font-weight: 900;
}

.wilma-school-summary {
  position: relative;
  min-width: 0;
  padding-right: 28px;
}

.school-meal-compact {
  margin-top: 6px;
  color: color-mix(in srgb, var(--school-color) 72%, var(--ink));
  font-weight: 400;
}

.school-meal-notice {
  color: var(--muted);
  font-weight: 400;
}

.wilma-school-summary::after {
  content: "⌄";
  position: absolute;
  top: 1px;
  right: 0;
  color: color-mix(in srgb, var(--school-color) 68%, var(--ink));
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.wilma-school-homework {
  min-width: 0;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid color-mix(in srgb, var(--school-color) 30%, var(--line));
}

.wilma-school-homework > strong {
  color: color-mix(in srgb, var(--school-color) 72%, var(--ink));
  font-size: 13px;
}

.wilma-school-homework-list {
  display: grid;
  gap: 5px;
  min-width: 0;
  margin: 5px 0 0;
  padding: 0;
  list-style: none;
}

.wilma-school-homework-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 7px;
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
}

.wilma-school-homework-list li > b {
  color: color-mix(in srgb, var(--school-color) 80%, var(--ink));
}

.wilma-school-homework-list li > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.wilma-school-homework-list li > small {
  flex-basis: 100%;
  margin: 0;
  font-size: 11px;
}

.wilma-school-day:not([open]) .wilma-school-homework.has-overflow .wilma-school-homework-list {
  max-height: 3em;
  overflow: hidden;
}

.wilma-school-homework-more {
  margin-top: 5px;
  color: color-mix(in srgb, var(--school-color) 78%, var(--ink));
  font-weight: 800;
}

.wilma-school-exams {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin-top: 10px;
}

.wilma-school-exam {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--gold) 42%, var(--line));
  border-radius: 12px;
  padding: 8px 12px 8px 8px;
  background: color-mix(in srgb, var(--gold) 13%, var(--paper, #fffaf0));
  box-shadow: inset 4px 0 0 color-mix(in srgb, var(--gold) 82%, #bd7b00);
}

.wilma-school-exam img {
  display: block;
  width: 48px;
  height: 48px;
  background: center / contain no-repeat url("/assets/reference-redesign/exam-paper-pencil-v1.png?v=1");
  object-fit: contain;
}

.wilma-school-exam div {
  min-width: 0;
}

.wilma-school-exam div > span {
  display: block;
  color: color-mix(in srgb, var(--gold) 58%, var(--ink));
  font-size: 12px;
  font-weight: 900;
}

.wilma-school-exam strong,
.wilma-school-exam small {
  overflow-wrap: anywhere;
}

.wilma-school-exam strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.wilma-school-exam small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.wilma-column-exams {
  display: grid;
  gap: 5px;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid color-mix(in srgb, var(--gold) 44%, var(--line));
}

.wilma-column-exams > span {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  align-items: start;
  border: 1px solid color-mix(in srgb, var(--gold) 38%, var(--line));
  border-radius: 8px;
  padding: 5px;
  background: color-mix(in srgb, var(--gold) 11%, var(--paper, #fffaf0));
  color: var(--ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.wilma-column-exams > span > span {
  min-width: 0;
  line-height: 1.25;
}

.wilma-column-exams img {
  display: block;
  width: 28px;
  height: 28px;
  background: center / contain no-repeat url("/assets/reference-redesign/exam-paper-pencil-v1.png?v=1");
  object-fit: contain;
}

.wilma-column-exams b {
  color: color-mix(in srgb, var(--gold) 58%, var(--ink));
}

.wilma-school-day[open] .wilma-school-homework-more {
  display: none;
}

.wilma-column-homework {
  display: grid;
  gap: 2px;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid color-mix(in srgb, var(--school-color) 30%, var(--line));
}

.wilma-column-homework b {
  color: color-mix(in srgb, var(--school-color) 78%, var(--ink));
}

.wilma-column-homework span {
  overflow-wrap: anywhere;
}

.wilma-school-day-attendance {
  min-width: 0;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid color-mix(in srgb, var(--school-color) 30%, var(--line));
}

.wilma-school-day-attendance > strong,
.wilma-column-attendance > b {
  color: color-mix(in srgb, var(--school-color) 76%, var(--ink));
  font-size: 12px;
}

.wilma-school-day-attendance ul,
.wilma-column-attendance > span {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 5px 0 0;
  padding: 0;
}

.wilma-school-day-attendance li,
.wilma-column-attendance-mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--attendance-color, var(--cartoon-teal-dark)) 35%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--attendance-color, var(--cartoon-teal-dark)) 8%, var(--paper, #fffaf0));
}

.wilma-school-day-attendance li {
  padding: 5px 8px;
  list-style: none;
}

.wilma-school-day-attendance li > span:last-child {
  display: grid;
  gap: 1px;
}

.wilma-school-day-attendance li b {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
}

.wilma-school-day-attendance li small {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
}

.wilma-column-attendance {
  min-width: 0;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid color-mix(in srgb, var(--school-color) 30%, var(--line));
}

.wilma-column-attendance-mark {
  padding: 3px 6px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.wilma-column-attendance-mark i {
  display: block;
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border: 1px solid rgb(25 32 27 / 28%);
  border-radius: 50%;
  background: var(--attendance-color, var(--cartoon-teal-dark));
}

.wilma-column-attendance-mark small {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1;
}

.wilma-school-day[open] .wilma-school-summary::after {
  transform: rotate(180deg);
}

.wilma-lesson-list {
  display: grid;
  gap: 6px;
  margin: 8px 0 0 152px;
  padding: 0 14px 4px 0;
}

.wilma-lesson-list article {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 8px 12px;
  align-items: baseline;
  border-left: 2px solid color-mix(in srgb, var(--school-color) 38%, var(--line));
  padding: 4px 0 4px 10px;
  font-size: 12px;
}

.wilma-lesson-list article.is-past {
  opacity: 0.48;
  filter: saturate(0.55);
}

.wilma-lesson-list article.is-past:hover {
  opacity: 0.72;
}

.wilma-lesson-list b {
  color: color-mix(in srgb, var(--school-color) 78%, var(--ink));
  font-weight: 900;
}

.wilma-lesson-list span {
  min-width: 0;
  font-weight: 700;
}

.wilma-attendance-summary,
.wilma-attendance-notices {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.wilma-attendance-summary {
  margin-top: 6px;
}

.wilma-attendance-notices {
  margin-left: 8px;
  vertical-align: middle;
}

.wilma-attendance-notice {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 2px 7px;
  background: rgb(201 54 47 / 12%);
  color: #9f2a25;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
}

.wilma-attendance-notice span {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #c9362f;
  color: white;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

a.wilma-attendance-notice:hover {
  background: rgb(201 54 47 / 18%);
  color: #7f211d;
}

.school-meal-details {
  display: grid;
  gap: 8px;
  margin: 10px 0 0 152px;
  padding: 10px 14px 4px 0;
}

.school-meal-details > strong {
  color: color-mix(in srgb, var(--school-color) 72%, var(--ink));
  font-size: 13px;
}

.school-meal-details article {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 8px 12px;
  border-left: 2px solid color-mix(in srgb, var(--school-color) 30%, var(--line));
  padding-left: 10px;
  font-size: 12px;
}

.school-meal-details b {
  color: var(--muted);
}

.school-meal-details span {
  font-weight: 600;
}

.wilma-lesson-list small {
  grid-column: 2;
  margin-top: -5px;
  color: var(--muted);
}

.member-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.member-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.member-row strong,
.member-row small {
  display: block;
}

.member-row small {
  color: var(--muted);
}

.member-avatar {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgb(0 0 0 / 8%);
  background: color-mix(in srgb, var(--member-color) 24%, white);
  box-shadow: inset 0 -8px 14px rgb(0 0 0 / 5%);
  overflow: hidden;
  font-size: 12px;
  font-weight: 900;
}

.member-avatar.avatar-style-teal,
.member-avatar.avatar-style-violet {
  background: linear-gradient(135deg, var(--member-color), color-mix(in srgb, var(--member-color) 34%, white));
}

.member-avatar.is-initials-avatar {
  border: 2px solid color-mix(in srgb, var(--member-color) 46%, white);
  background: color-mix(in srgb, var(--member-color) 12%, white);
  box-shadow: 0 4px 12px rgb(37 37 31 / 10%), inset 0 0 0 2px rgb(255 255 255 / 72%);
}

.member-avatar img,
.avatar-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rail-avatar {
  width: 28px;
  height: 28px;
  font-size: 10px;
}

.inline-avatar {
  width: 24px;
  height: 24px;
  margin-right: 6px;
  font-size: 13px;
  vertical-align: middle;
}

.score-avatar {
  float: right;
  width: 42px;
  height: 42px;
  margin-left: 8px;
  font-size: 21px;
}

.tab-avatar {
  width: 22px;
  height: 22px;
  margin-right: 5px;
  font-size: 12px;
}

.large-avatar {
  width: 86px;
  height: 86px;
  font-size: 20px;
}

.avatar-glow {
  position: absolute;
  inset: 8%;
  border-radius: inherit;
  background: radial-gradient(circle at 35% 25%, rgb(255 255 255 / 70%), transparent 35%);
}

.avatar-visor {
  position: absolute;
  top: 28%;
  left: 22%;
  width: 56%;
  height: 20%;
  border-radius: 999px;
  background: rgb(255 250 240 / 72%);
  box-shadow: 0 5px 0 rgb(0 0 0 / 12%);
}

.avatar-mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 54%;
  height: 38%;
  padding: 0 4px;
  margin-top: 24%;
  border-radius: 8px;
  background: var(--avatar-mark-bg, rgb(0 0 0 / 24%));
  color: var(--avatar-ink, #fffaf0);
  letter-spacing: 0;
}

.avatar-initials-artwork {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--member-color, #2f6f73) 12%, white);
}

.avatar-initials-artwork .avatar-mark {
  min-width: 0;
  height: auto;
  padding: 0;
  margin: 0;
  background: transparent;
  color: color-mix(in srgb, var(--member-color, #2f6f73) 76%, #25251f);
  font-size: var(--avatar-initial-size, 13px);
  line-height: 1;
}

.avatar-option-thumb[data-avatar-trigger-thumb] .avatar-mark {
  margin-top: 0;
}

.avatar-style-pixel {
  background: linear-gradient(135deg, #27666c, #d7a44a);
}

.avatar-style-neon {
  background: linear-gradient(135deg, #24232a, #1fb7a6 48%, #d85f72);
}

.avatar-style-block {
  background: linear-gradient(135deg, #d7a44a, #75895b);
}

.avatar-style-racing {
  background: linear-gradient(135deg, #b4493c, #25251f 54%, #fffaf0);
}

.avatar-style-portal {
  background: radial-gradient(circle at 50% 50%, #fffaf0 0 14%, #6f5c9b 15% 42%, #2f6f73 43%);
}

.avatar-style-rhythm {
  background: linear-gradient(145deg, #6f5c9b, #d7a44a 52%, #b4493c);
}

.avatar-style-space {
  background: radial-gradient(circle at 68% 22%, #fffaf0 0 7%, transparent 8%), linear-gradient(135deg, #25251f, #3f5f8f);
}

.avatar-style-crystal {
  background: linear-gradient(135deg, #93c6ba, #6f5c9b);
}

.avatar-style-storm {
  background: linear-gradient(135deg, #3f5f8f, #25251f 48%, #d7a44a);
}

.avatar-style-lava {
  background: linear-gradient(135deg, #eb4f37, #2b272a 54%, #ff9f45);
}

.avatar-style-forest {
  background: linear-gradient(135deg, #2f7d48, #b8793b 58%, #cce49a);
}

.avatar-style-ice {
  background: linear-gradient(135deg, #d9f7ff, #4bbddd 46%, #b7c4cf);
}

.avatar-style-solar {
  background: linear-gradient(135deg, #f6c342, #22a6a1 54%, #fff0a8);
}

.avatar-style-berry {
  background: linear-gradient(135deg, #d82f7d, #1f2749 56%, #ff9cc8);
}

.avatar-style-ocean {
  background: linear-gradient(135deg, #32d1ca, #eef8f6 48%, #168aa0);
}

.avatar-style-teal {
  background: linear-gradient(135deg, #2f6f73, #93c6ba);
}

.avatar-style-violet {
  background: linear-gradient(135deg, #6f5c9b, #d9cba9);
}

.permission-note {
  display: grid;
  gap: 5px;
  margin-top: 20px;
  border: 1px solid rgb(47 111 115 / 22%);
  border-radius: 8px;
  padding: 14px;
  background: rgb(47 111 115 / 8%);
}

.permission-note span {
  color: var(--muted);
  line-height: 1.45;
}

.compact-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-form .full-button,
.compact-form .form-note {
  grid-column: 1 / -1;
}

.invite-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.user-editor-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 18px;
}

.user-edit-card {
  --user-field-height: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgb(255 255 255 / 56%);
}

.user-edit-heading,
.user-edit-card .full-button,
.user-edit-card .full-field:not(.password-field),
.avatar-picker {
  grid-column: 1 / -1;
}

.user-edit-message {
  justify-self: center;
  min-height: 20px;
  color: var(--teal);
  font-weight: 800;
  text-align: center;
}

.user-edit-message.is-error {
  color: var(--brick);
}

.user-edit-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.user-edit-actions .secondary-button {
  width: 100%;
}

.user-edit-heading {
  display: flex;
  align-items: center;
  gap: 9px;
}

.user-edit-heading span {
  display: grid;
  gap: 2px;
}

.user-edit-heading small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.user-profile-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px;
  background: rgb(255 255 255 / 54%);
}

.user-profile-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.user-profile-tabs button.is-active {
  background: var(--ink);
  color: white;
}

.user-edit-card .child-push-history {
  display: none;
}

.user-edit-card.is-push-tab-active .avatar-picker,
.user-edit-card.is-push-tab-active .color-field,
.user-edit-card.is-push-tab-active label,
.user-edit-card.is-push-tab-active .user-edit-actions,
.user-edit-card.is-push-tab-active .user-edit-message {
  display: none;
}

.user-edit-card.is-push-tab-active .child-push-history {
  display: grid;
  gap: 10px;
}

.child-push-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgb(255 255 255 / 68%);
}

.child-push-history-item div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.child-push-history-item span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.child-push-history-item strong {
  line-height: 1.22;
}

.child-push-history-item small {
  color: var(--muted);
  font-weight: 800;
}

.child-push-history-item b {
  border-radius: 999px;
  padding: 8px 10px;
  background: rgb(47 111 115 / 10%);
  color: var(--teal);
  white-space: nowrap;
}

.user-edit-card label,
.file-drop {
  display: grid;
  gap: 7px;
  align-content: start;
  min-width: 0;
}

.user-edit-card input:not([type="hidden"]):not([type="file"]):not([type="color"]),
.user-edit-card .avatar-select-trigger,
.user-edit-card .school-menu-search-row input,
.user-edit-card .school-menu-open-button {
  height: var(--user-field-height);
  min-height: var(--user-field-height);
}

.profile-settings-card .account-form {
  --user-field-height: 48px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-settings-card .account-form.is-child-profile-form {
  grid-template-columns: minmax(0, 1fr);
}

.profile-settings-card .profile-avatar-picker {
  grid-column: 1 / -1;
}

.profile-settings-card .account-form.is-child-profile-form .profile-avatar-picker,
.profile-settings-card .account-form.is-child-profile-form .color-field {
  grid-column: 1 / -1;
}

.profile-settings-card .color-field {
  grid-column: 1;
}

.color-field {
  display: grid;
  gap: 7px;
  align-content: start;
  min-width: 0;
}

.profile-settings-card .full-button,
.profile-settings-card .form-note {
  grid-column: 1 / -1;
}

.profile-settings-card input:not([type="hidden"]):not([type="file"]):not([type="color"]) {
  min-height: var(--user-field-height);
}

.custom-color-picker {
  display: grid;
  grid-template-columns: minmax(112px, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: var(--user-field-height, 48px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  background: rgb(255 255 255 / 82%);
}

.custom-color-current {
  display: block;
  height: 100%;
  min-height: calc(var(--user-field-height, 48px) - 14px);
  border-radius: 6px;
  background: var(--selected-color);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 8%);
}

.custom-color-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.custom-color-option {
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  flex: 0 0 48px;
  border: 1px solid rgb(33 31 26 / 18%);
  border-radius: 999px;
  padding: 0;
  background: var(--option-color);
  cursor: pointer;
}

.custom-color-option.is-selected {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--gold);
}

.custom-color-option:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.custom-color-option:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.profile-avatar-picker:empty {
  display: none;
}

.profile-avatar-panel {
  display: grid;
  grid-template-columns: minmax(220px, .9fr) minmax(260px, 1.1fr);
  align-items: center;
  gap: 18px;
  border: 1px solid color-mix(in srgb, var(--teal) 18%, var(--line));
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(135deg, rgb(255 255 255 / 72%), rgb(244 241 234 / 54%));
}

.profile-avatar-current {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.profile-avatar-current span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-avatar-current strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.profile-avatar-current small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.profile-avatar-action {
  min-width: 0;
}

.avatar-picker {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.avatar-select-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.avatar-combobox {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.avatar-combobox > span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
}

.avatar-select-trigger {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 54px;
  border: 1px solid #cbbfab;
  border-radius: 7px;
  padding: 6px 10px 6px 7px;
  background: rgb(255 255 255 / 72%);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.avatar-select-trigger:focus-visible,
.avatar-select-trigger[aria-expanded="true"] {
  outline: 2px solid rgb(47 111 115 / 34%);
  border-color: var(--teal);
  background: var(--white);
}

.avatar-trigger-label {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar-select-caret {
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  text-align: center;
}

.avatar-option-thumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
  box-shadow: inset 0 -8px 16px rgb(0 0 0 / 9%);
}

.avatar-option-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-option-thumb b {
  color: var(--teal);
  font-size: 18px;
}

.avatar-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 30;
  display: grid;
  max-height: 280px;
  border: 1px solid #cbbfab;
  border-radius: 8px;
  padding: 6px;
  overflow: auto;
  background: #fffaf0;
  box-shadow: 0 18px 36px rgb(37 37 31 / 18%);
}

.avatar-select-menu[hidden] {
  display: none;
}

.avatar-select-option {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 0;
  border-radius: 7px;
  padding: 7px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.avatar-select-option:hover,
.avatar-select-option.is-selected {
  background: rgb(47 111 115 / 12%);
}

.avatar-select-option.is-selected {
  font-weight: 700;
}

.avatar-option-group {
  padding: 10px 8px 6px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
}

.avatar-choice {
  position: relative;
  display: grid;
  gap: 6px;
  cursor: pointer;
}

.avatar-card {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 100px);
  max-width: 100px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
  box-shadow: inset 0 -18px 34px rgb(0 0 0 / 14%);
}

.avatar-card > img {
  position: absolute;
  inset: 0;
}

.avatar-card small {
  position: absolute;
  right: 6px;
  bottom: 6px;
  left: 6px;
  border-radius: 999px;
  padding: 4px 5px;
  background: rgb(37 37 31 / 74%);
  color: #fffaf0;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.avatar-choice.is-selected .avatar-card,
.avatar-choice:has(input[name="avatar"]:checked) .avatar-card {
  border-color: rgb(47 111 115 / 48%);
  background: rgb(47 111 115 / 12%);
  box-shadow: 0 0 0 3px rgb(47 111 115 / 12%);
}

.avatar-picker input[name="avatar"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.user-edit-card label span,
.file-drop span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.45;
}

.file-drop {
  margin: 15px 0 10px;
  border: 1px dashed #b9ae9e;
  border-radius: 8px;
  padding: 14px;
  background: rgb(255 255 255 / 52%);
}

.attachment-list,
.audit-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.attachment-row,
.audit-row,
.rejected-sender-row {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding: 10px 0 0;
}

.attachment-row small,
.audit-row small,
.rejected-sender-row small {
  color: var(--muted);
}

.allowed-senders-form {
  margin-top: 18px;
}

.inbox-address-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  border: 1px solid rgb(47 111 115 / 20%);
  border-radius: 8px;
  padding: 12px;
  background: rgb(47 111 115 / 7%);
}

.inbox-address-strip span,
.inbox-section-heading span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.inbox-address-strip strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
  font-size: 18px;
}

.inbox-settings-section {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.inbox-settings-section + .inbox-settings-section {
  margin-top: 18px;
}

.inbox-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.inbox-section-heading strong {
  display: block;
  font-size: 17px;
}

.settings-inbox-senders-card .inbox-section-heading span,
.settings-inbox-senders-card .allowed-senders-form label > span,
.settings-inbox-senders-card .allowed-sender-color-control .color-field > span {
  letter-spacing: 0;
  text-transform: none;
}

.allowed-service-add-card {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: end;
  gap: 12px;
  border: 1px solid rgb(47 111 115 / 20%);
  border-radius: 8px;
  padding: 12px;
  background: rgb(47 111 115 / 5%);
}

.allowed-service-add-card > * {
  min-width: 0;
}

.allowed-service-add-card .secondary-button {
  min-height: 43px;
  white-space: nowrap;
}

.allowed-sender-add-card {
  display: grid;
  grid-template-columns: minmax(210px, 1.25fr) minmax(180px, 1fr) minmax(230px, 1fr) auto;
  align-items: end;
  gap: 12px;
  border: 1px solid rgb(215 164 74 / 30%);
  border-radius: 8px;
  padding: 12px;
  background: rgb(255 255 255 / 64%);
}

.allowed-sender-add-card.is-targeting-user {
  grid-template-columns: minmax(210px, 1.25fr) minmax(220px, 1fr) auto;
}

.allowed-sender-add-card > * {
  min-width: 0;
}

.allowed-sender-add-card .secondary-button {
  min-height: 43px;
  white-space: nowrap;
}

.allowed-sender-color-control {
  min-width: 0;
}

.allowed-sender-color-control .color-field {
  gap: 7px;
}

.allowed-sender-color-control .custom-color-picker {
  grid-template-columns: minmax(64px, 1fr) auto;
  min-width: 0;
}

.allowed-sender-color-control .custom-color-options {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.allowed-sender-list {
  display: grid;
  gap: 10px;
}

.allowed-sender-group-header {
  display: grid;
  gap: 2px;
  margin-top: 6px;
  padding: 4px 2px;
}

.allowed-sender-group-header:first-child {
  margin-top: 0;
}

.allowed-sender-group-header strong,
.allowed-sender-group-header small {
  display: block;
}

.allowed-sender-group-header strong {
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.allowed-sender-group-header small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.allowed-sender-list-section {
  gap: 14px;
  margin-top: 30px;
  border: 1px solid rgb(47 111 115 / 18%);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgb(47 111 115 / 5%), rgb(255 255 255 / 58%)),
    rgb(255 255 255 / 38%);
}

.allowed-sender-list-section .inbox-section-heading {
  border-bottom: 1px solid rgb(47 111 115 / 14%);
  padding-bottom: 12px;
}

.allowed-sender-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgb(255 255 255 / 62%);
}

.allowed-sender-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sender-color-bar {
  width: 5px;
  height: 42px;
  border-radius: 999px;
  background: var(--sender-color);
}

.allowed-sender-row strong,
.allowed-sender-row small {
  display: block;
}

.allowed-sender-row strong {
  overflow-wrap: anywhere;
}

.allowed-sender-row small {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.sender-color-swatch {
  width: 14px;
  height: 14px;
  border: 1px solid rgb(33 31 26 / 18%);
  border-radius: 999px;
  background: var(--sender-color);
}

.allowed-user-sender-row {
  background: rgb(47 111 115 / 5%);
}

.allowed-sender-row.is-disabled {
  opacity: .64;
  background: rgb(255 255 255 / 34%);
}

.allowed-sender-row.is-disabled .sender-color-bar {
  background: #9f9789;
}

.allowed-user-sender-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 36px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.allowed-user-sender-toggle input {
  width: 18px;
  height: 18px;
  accent-color: #2f6f73;
}

.rejected-senders {
  gap: 8px;
  margin-top: 24px;
  border: 1px solid rgb(33 31 26 / 12%);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgb(255 255 255 / 36%);
}

.inbox-filter-log .rejected-senders {
  margin-top: 0;
}

.filter-log-section {
  gap: 8px;
  border-top: 1px solid rgb(33 31 26 / 10%);
  padding-top: 14px;
}

.inbox-filter-log .filter-log-section {
  margin-top: 0;
  border: 1px solid rgb(33 31 26 / 12%);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgb(255 255 255 / 36%);
}

.mini-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-top: 0;
  padding-top: 0;
}

.mini-section-header span {
  color: var(--muted);
  font-size: 12px;
}

.rejected-sender-list {
  display: grid;
  gap: 6px;
  margin-top: 2px;
}

.filter-log-list {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.rejected-sender-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-top-color: rgb(33 31 26 / 9%);
  padding: 7px 0;
}

.filter-log-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgb(33 31 26 / 10%);
  border-left: 3px solid color-mix(in srgb, var(--teal) 56%, transparent);
  border-radius: 8px;
  padding: 10px 12px;
  background: linear-gradient(90deg, rgb(47 111 115 / 8%), rgb(255 255 255 / 42%) 58%, rgb(255 255 255 / 14%));
}

.filter-log-row.is-filtered {
  border-left-color: color-mix(in srgb, var(--gold) 78%, var(--teal));
  background: linear-gradient(90deg, rgb(215 164 74 / 11%), rgb(255 255 255 / 44%) 58%, rgb(255 255 255 / 14%));
}

.filter-log-row.is-accepted {
  border-left-color: color-mix(in srgb, var(--success) 72%, var(--teal));
  background: linear-gradient(90deg, rgb(49 233 93 / 8%), rgb(255 255 255 / 44%) 58%, rgb(255 255 255 / 14%));
}

.filter-log-row-main {
  min-width: 0;
}

.filter-log-row-main strong,
.filter-log-row-main small {
  display: block;
}

.filter-log-row-main strong {
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 700;
}

.filter-log-row-main small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.filter-log-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.filter-log-actions .compact-button {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 12px;
  white-space: normal;
}

.inbox-filter-help {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--gold) 34%, transparent);
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(90deg, rgb(215 164 74 / 13%), rgb(255 252 245 / 54%) 62%, rgb(255 252 245 / 18%));
}

.inbox-filter-help strong {
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.rejected-sender-row strong,
.rejected-sender-row small {
  display: block;
}

.rejected-sender-row strong {
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 600;
}

.rejected-sender-row small {
  font-size: 12px;
  line-height: 1.25;
}

.rejected-sender-row .compact-button {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 12px;
}

.invite-row,
.feature-row {
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 13px 0;
}

.invite-row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 10px;
}

.feature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.invite-row-info {
  min-width: 0;
}

.invite-row strong,
.invite-row small {
  display: block;
}

.invite-row strong {
  overflow-wrap: anywhere;
}

.invite-row-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 6px;
  white-space: nowrap;
}

.invite-row-actions .ghost-button {
  min-height: 38px;
  padding: 8px 11px;
  font-size: 13px;
  line-height: 1.1;
}

.invite-row small,
.product-card p {
  color: var(--muted);
}

@media (max-width: 620px) {
  .invite-row-actions {
    justify-content: flex-start;
    width: 100%;
  }
}

.product-card h2 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
}

.calendar-entry-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
  position: relative;
}

.calendar-entry-form .full-field,
.calendar-entry-form .full-button,
.calendar-entry-form .form-note {
  grid-column: 1 / -1;
}

.calendar-entry-type {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.picker-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: stretch;
  position: relative;
}

.picker-input-row input {
  min-width: 0;
}

.picker-trigger {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 255 255 / 72%);
  color: var(--teal);
  cursor: pointer;
}

.picker-trigger:hover,
.picker-trigger:focus-visible {
  border-color: color-mix(in srgb, var(--teal) 44%, var(--line));
  background: color-mix(in srgb, var(--teal) 10%, white);
}

.picker-glyph {
  display: block;
  position: relative;
  width: 20px;
  height: 20px;
}

.picker-glyph,
.picker-glyph::before,
.picker-glyph::after {
  box-sizing: border-box;
}

.calendar-glyph {
  border: 2px solid currentColor;
  border-radius: 4px;
}

.calendar-glyph::before {
  content: "";
  position: absolute;
  top: 5px;
  right: 0;
  left: 0;
  border-top: 2px solid currentColor;
}

.calendar-glyph::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 10px;
  height: 6px;
  border-left: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateX(-50%);
}

.time-glyph {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.time-glyph::before,
.time-glyph::after {
  content: "";
  position: absolute;
  left: 8px;
  bottom: 8px;
  width: 2px;
  background: currentColor;
  transform-origin: bottom center;
}

.time-glyph::before {
  height: 6px;
}

.time-glyph::after {
  height: 5px;
  transform: rotate(50deg);
}

.calendar-picker-panel {
  position: absolute;
  z-index: 9;
  top: calc(100% + 6px);
  right: 0;
  width: min(320px, calc(100vw - 40px));
  max-width: calc(100vw - 40px);
  border: 1px solid color-mix(in srgb, var(--teal) 28%, var(--line));
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 18px 36px rgb(31 28 24 / 18%);
}

.calendar-picker-panel[hidden] {
  display: none;
}

.calendar-picker-header {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.calendar-picker-header strong {
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.calendar-picker-header button,
.calendar-picker-days button,
.time-stepper-panel button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 255 255 / 74%);
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
}

.calendar-picker-header button {
  min-height: 36px;
  color: var(--teal);
  font-size: 21px;
}

.calendar-picker-weekdays,
.calendar-picker-days > [role="row"] {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.calendar-picker-days {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
}

.calendar-picker-weekdays span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.calendar-picker-days button {
  min-height: 34px;
  padding: 0;
}

.calendar-picker-days button.is-muted {
  color: color-mix(in srgb, var(--muted) 56%, white);
}

.calendar-picker-days button.is-today {
  border-color: color-mix(in srgb, var(--teal) 48%, var(--line));
}

.calendar-picker-days button.is-selected {
  border-color: var(--teal);
  background: var(--teal);
  color: #fffaf0;
}

.calendar-picker-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.calendar-picker-footer button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: rgb(255 255 255 / 74%);
  color: var(--teal);
  cursor: pointer;
  font-weight: 700;
}

.time-stepper-panel {
  position: absolute;
  z-index: 7;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  display: grid;
  gap: 10px;
  border: 1px solid color-mix(in srgb, var(--teal) 26%, var(--line));
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 14px 28px rgb(31 28 24 / 16%);
}

.time-stepper-panel[hidden] {
  display: none;
}

.time-stepper-title {
  color: var(--teal);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}

.time-stepper-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.time-stepper-column {
  display: grid;
  justify-items: center;
  gap: 5px;
}

.time-stepper-column button {
  width: 100%;
  min-height: 30px;
  padding: 2px 8px;
  font-size: 0;
  line-height: 1;
}

.time-stepper-column button::before {
  content: "\25B2";
  font-size: 13px;
}

.time-stepper-column button[data-time-direction="-1"]::before {
  content: "\25BC";
}

.time-stepper-value {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 38px;
  border: 1px solid color-mix(in srgb, var(--teal) 28%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--teal) 9%, white);
  color: var(--ink);
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}

.time-stepper-column small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
}

.time-stepper-separator {
  align-self: center;
  color: var(--teal);
  font-size: 24px;
  font-weight: 950;
}

.time-stepper-done {
  min-height: 34px;
  background: var(--teal) !important;
  color: #fffaf0 !important;
}

.calendar-target-picker {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgb(255 255 255 / 46%);
}

.calendar-target-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.calendar-target-option {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgb(255 255 255 / 64%);
  color: var(--ink);
  font-weight: 800;
}

.calendar-target-option.is-family {
  grid-template-columns: auto minmax(0, 1fr);
  grid-column: 1 / -1;
}

.calendar-target-option input {
  width: 18px;
  height: 18px;
}

.calendar-target-option .mini-avatar {
  width: 26px;
  height: 26px;
  font-size: 10px;
}

.calendar-reminder-custom {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.calendar-reminder-custom[hidden] {
  display: none;
}

.feature-row strong {
  border-radius: 999px;
  padding: 5px 9px;
  background: rgb(47 111 115 / 12%);
  color: var(--teal);
  font-size: 12px;
}

.billing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.billing-actions > button {
  min-width: min(260px, 100%);
}

.billing-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.billing-hero h2 {
  margin-bottom: 8px;
}

.billing-hero p {
  max-width: 720px;
}

.billing-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgb(47 111 115 / 12%);
  color: var(--teal);
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.billing-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.billing-plan-grid section {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  background: rgb(255 255 255 / 48%);
}

.billing-plan-grid strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
}

.billing-plan-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.billing-price-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 14px;
  margin-top: 18px;
}

.billing-price-option {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgb(255 255 255 / 56%);
}

.billing-price-option.is-featured {
  border-color: rgb(215 164 74 / 54%);
  background: linear-gradient(180deg, rgb(215 164 74 / 16%), rgb(255 250 240 / 92%));
}

.billing-price-option > span {
  color: var(--brick);
}

.billing-price-option h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
}

.billing-price-option h3 small {
  color: var(--muted);
  font-size: 16px;
}

.billing-price-option p {
  margin: 0 0 4px;
  color: var(--muted);
  line-height: 1.45;
}

.stripe-billing-status {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 255 255 / 62%);
  padding: 16px;
}

.stripe-billing-status .form-note {
  margin: 0;
}

.stripe-billing-status .form-note[data-tone="success"] {
  color: var(--success);
}

.stripe-billing-status .form-note[data-tone="error"] {
  color: var(--danger);
}

.stripe-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.stripe-detail-grid div {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.stripe-detail-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.stripe-detail-grid strong {
  overflow-wrap: anywhere;
}

.stripe-billing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stripe-invoice-list {
  display: grid;
  gap: 10px;
}

.stripe-invoice-header {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
}

.stripe-invoice-header h3,
.stripe-invoice-header p {
  margin: 0;
}

.stripe-invoice-header p {
  color: var(--muted);
}

.stripe-invoice-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.stripe-invoice-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.stripe-invoice-row > span {
  font-weight: 700;
  white-space: nowrap;
}

.stripe-invoice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.stripe-invoice-actions a {
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  padding: 7px 10px;
}

.help-page {
  gap: 24px;
}

.help-guide {
  position: relative;
  overflow: hidden;
}

.help-topic {
  padding: 0;
}

.help-topic [id^="help-"] {
  scroll-margin-top: 96px;
}

.help-topic::details-content {
  block-size: 0;
  overflow: clip;
  transition:
    block-size .24s ease,
    content-visibility .24s allow-discrete;
}

.help-topic[open]::details-content {
  block-size: auto;
}

.help-topic-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 14px;
  align-items: center;
  min-height: 92px;
  padding: 18px 22px;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  list-style: none;
  transition: background .18s ease, border-color .18s ease;
}

.help-topic-summary::-webkit-details-marker {
  display: none;
}

.help-topic-summary::marker {
  content: "";
}

.help-topic-toggle {
  justify-self: end;
  grid-column: 2;
  grid-row: 1;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgb(47 111 115 / 10%);
  color: var(--teal);
  font-size: 0;
  font-weight: 700;
  line-height: 1;
  transform: translateZ(0);
  transition: background .18s ease, border-color .18s ease, transform .22s ease;
}

.help-topic-toggle::before,
.help-topic-toggle::after {
  content: "";
  grid-area: 1 / 1;
  width: 13px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.help-topic-toggle::after {
  transform: rotate(90deg);
  transition: transform .22s ease, opacity .18s ease;
}

.help-topic-summary:hover .help-topic-toggle {
  border-color: rgb(47 111 115 / 34%);
  background: rgb(47 111 115 / 15%);
}

.help-topic[open] > .help-topic-summary {
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 34%);
}

.help-topic[open] > .help-topic-summary .help-topic-toggle {
  transform: rotate(180deg);
}

.help-topic[open] > .help-topic-summary .help-topic-toggle::after {
  opacity: 0;
  transform: rotate(0deg);
}

.help-topic-heading {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.help-topic-subtopics {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px 22px 18px;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 28%);
  cursor: default;
}

.help-subtopic-panel {
  border: 1px solid rgb(47 111 115 / 18%);
  border-radius: 8px;
  background: rgb(255 255 255 / 70%);
  overflow: clip;
}

.help-subtopic-panel[open] {
  border-color: rgb(47 111 115 / 34%);
  background: rgb(255 255 255 / 84%);
}

.help-subtopic-panel::details-content {
  block-size: 0;
  overflow: clip;
  transition:
    block-size .22s ease,
    content-visibility .22s allow-discrete;
}

.help-subtopic-panel[open]::details-content {
  block-size: auto;
}

.help-topic-subtopic {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  gap: 12px;
  align-items: center;
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: 10px 10px 10px 14px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  list-style: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.help-topic-subtopic::-webkit-details-marker {
  display: none;
}

.help-topic-subtopic::marker {
  content: "";
}

.help-topic-subtopic:hover,
.help-topic-subtopic:focus-visible {
  background: rgb(47 111 115 / 8%);
}

.help-topic-subtopic:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.help-subtopic-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.help-topic-subtopic strong {
  color: var(--ink);
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.help-topic-subtopic small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.help-subtopic-toggle {
  justify-self: end;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgb(47 111 115 / 8%);
  color: var(--teal);
  font-size: 0;
  transition: background .18s ease, border-color .18s ease, transform .22s ease;
}

.help-subtopic-toggle::before,
.help-subtopic-toggle::after {
  content: "";
  grid-area: 1 / 1;
  width: 11px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.help-subtopic-toggle::after {
  transform: rotate(90deg);
  transition: opacity .18s ease, transform .22s ease;
}

.help-topic-subtopic:hover .help-subtopic-toggle,
.help-topic-subtopic:focus-visible .help-subtopic-toggle,
.help-topic-subtopic.is-active .help-subtopic-toggle {
  border-color: rgb(47 111 115 / 38%);
  background: rgb(47 111 115 / 14%);
}

.help-topic-subtopic.is-active,
.help-subtopic-panel[open] > .help-topic-subtopic {
  background: rgb(47 111 115 / 10%);
}

.help-topic-subtopic.is-active .help-subtopic-toggle,
.help-subtopic-panel[open] > .help-topic-subtopic .help-subtopic-toggle {
  transform: rotate(180deg);
}

.help-topic-subtopic.is-active .help-subtopic-toggle::after,
.help-subtopic-panel[open] > .help-topic-subtopic .help-subtopic-toggle::after {
  opacity: 0;
  transform: rotate(0deg);
}

.help-topic-body {
  padding: 22px;
  transform-origin: top;
}

.help-topic:not(.has-active-subtopic) > .help-topic-body {
  display: none;
}

.help-subtopic-panel[open] > .help-topic-body {
  display: block;
  border-top: 1px solid rgb(47 111 115 / 14%);
}

.help-topic[open] > .help-topic-body {
  animation: helpTopicOpen .24s ease-out both;
}

.help-subtopic-panel[open] > .help-topic-body {
  animation: helpTopicOpen .24s ease-out both;
}

.help-topic.is-closing > .help-topic-body {
  animation: helpTopicClose .18s ease-in both;
}

@keyframes helpTopicOpen {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes helpTopicClose {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.help-topic-heading > strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.help-topic-description {
  color: var(--muted);
  line-height: 1.45;
}

.help-topic-summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.anchor-target {
  position: absolute;
  top: -24px;
}

.help-lead {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.inbox-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.inbox-benefit-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  background: rgb(255 255 255 / 74%);
}

.inbox-benefit-grid strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
}

.inbox-benefit-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.inbox-option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.inbox-option-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  background: rgb(255 255 255 / 66%);
}

.inbox-option-grid article.is-recommended {
  border-color: rgb(215 164 74 / 66%);
  background: rgb(215 164 74 / 12%);
}

.inbox-option-grid span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--teal);
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.inbox-option-grid strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
}

.inbox-option-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.inbox-allowlist-guide {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, .72fr);
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  border: 1px solid rgb(47 111 115 / 24%);
  border-radius: 8px;
  padding: 18px;
  background: rgb(47 111 115 / 7%);
}

.inbox-allowlist-guide h3 {
  margin: 4px 0 8px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.inbox-allowlist-guide p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.mock-allowlist-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgb(255 255 255 / 78%);
}

.mock-allowlist-card strong {
  color: var(--ink);
}

.mock-allowlist-card span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--muted);
}

.mock-allowlist-card small {
  color: var(--teal);
  font-weight: 800;
}

.child-forwarding-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.child-message-guide .status-pill {
  border-color: rgb(92 83 119 / 28%);
  background: rgb(92 83 119 / 10%);
  color: var(--plum);
}

.child-forwarding-flow article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  background: rgb(255 255 255 / 70%);
}

.child-forwarding-flow article > span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: rgb(47 111 115 / 12%);
  color: var(--teal);
  font-weight: 900;
}

.child-forwarding-flow strong {
  display: block;
  color: var(--ink);
  line-height: 1.25;
}

.child-forwarding-flow p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.48;
}

.help-step-grid {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.help-step {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(360px, 1.28fr);
  gap: 18px;
  align-items: stretch;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--white);
}

.help-step-copy {
  display: grid;
  align-content: start;
  gap: 9px;
}

.help-step-copy > span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper-strong);
  font-weight: 900;
}

.help-step h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.help-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.help-visual {
  min-width: 0;
  min-height: 240px;
  border: 1px solid #c9bead;
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(90deg, rgb(47 111 115 / 6%) 1px, transparent 1px) 0 0 / 28px 28px,
    #f9f4e8;
}

.mock-browser-bar,
.mock-wilma-nav,
.mock-calendar-top,
.mock-week,
.mock-lessons,
.mock-popover,
.mock-perheinbox-card,
.mock-perheinbox-inbox,
.mock-gmail-shell,
.mock-gmail-tabs,
.mock-inbox-ticket,
.mock-forwarding-choice,
.mock-gmail-filter-page,
.mock-filter-dialog,
.mock-filter-actions {
  border-radius: 8px;
}

.mock-browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 8px 10px;
  background: #25251f;
  color: #fffaf0;
}

.mock-browser-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}

.mock-browser-bar strong {
  margin-left: 8px;
  font-size: 12px;
}

.mock-wilma-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  padding: 10px;
  background: #fffaf0;
}

.mock-wilma-nav b {
  margin-right: auto;
}

.mock-wilma-nav span {
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mock-wilma-nav .is-selected {
  background: rgb(47 111 115 / 14%);
  color: var(--teal);
}

.mock-calendar {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.mock-calendar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mock-calendar-top button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--teal);
  border-radius: 8px;
  background: rgb(47 111 115 / 10%);
  color: var(--teal);
  font-weight: 700;
}

.mock-week {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  margin-top: 12px;
}

.mock-week span,
.mock-lessons i {
  display: block;
  border-radius: 6px;
  padding: 8px;
  background: #f4f1ea;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-align: center;
}

.mock-lessons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.mock-popover,
.mock-perheinbox-card,
.mock-perheinbox-inbox,
.mock-inbox-ticket,
.mock-forwarding-choice {
  display: grid;
  gap: 12px;
  max-width: 440px;
  margin: 18px auto 0;
  border: 1px solid var(--line);
  padding: 18px;
  background: #fff;
  box-shadow: 0 18px 36px rgb(32 32 28 / 12%);
}

.mock-perheinbox-inbox code,
.mock-perheinbox-inbox small,
.mock-inbox-ticket p,
.mock-forwarding-choice code,
.mock-child-forwarding-flow code,
.mock-child-forwarding-meta span {
  overflow-wrap: anywhere;
}

.mock-perheinbox-inbox small {
  color: var(--teal);
  font-weight: 800;
}

.mock-perheinbox-inbox button,
.mock-inbox-ticket button,
.mock-forwarding-choice button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
}

.gmail-mock {
  background:
    linear-gradient(90deg, rgb(43 103 180 / 6%) 1px, transparent 1px) 0 0 / 28px 28px,
    #f7f4ee;
}

.mock-gmail-shell {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  margin-top: 12px;
}

.mock-gmail-shell aside,
.mock-gmail-shell main {
  border: 1px solid var(--line);
  background: #fff;
}

.mock-gmail-shell aside {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 14px;
}

.mock-gmail-shell aside span {
  border-radius: 999px;
  padding: 7px 9px;
  background: #f4f1ea;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mock-gmail-shell main {
  display: grid;
  gap: 16px;
  padding: 14px;
}

.mock-gmail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mock-gmail-tabs span {
  border-bottom: 3px solid transparent;
  padding: 7px 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mock-gmail-tabs .is-selected {
  border-color: #2b67b4;
  color: #2b67b4;
}

.mock-gmail-shell main button {
  justify-self: start;
  min-height: 38px;
  border: 1px solid #b8c7de;
  border-radius: 8px;
  background: #eef5ff;
  color: #244c83;
  font-weight: 700;
}

.mock-gmail-filter-page {
  display: grid;
  gap: 18px;
  margin-top: 12px;
  border: 1px solid var(--line);
  padding: 16px;
  background: #fff;
}

.mock-gmail-filter-page button {
  justify-self: start;
  min-height: 38px;
  border: 1px solid #b8c7de;
  border-radius: 8px;
  background: #eef5ff;
  color: #244c83;
  font-weight: 700;
}

.mock-filter-dialog,
.mock-filter-actions {
  display: grid;
  gap: 12px;
  max-width: 460px;
  margin: 18px auto 0;
  border: 1px solid var(--line);
  padding: 18px;
  background: #fff;
  box-shadow: 0 18px 36px rgb(32 32 28 / 12%);
}

.mock-filter-dialog label,
.mock-filter-actions label {
  display: grid;
  gap: 6px;
}

.mock-filter-actions label {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.mock-filter-dialog span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.mock-filter-dialog code,
.mock-filter-actions code {
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #f8f1df;
}

.mock-filter-dialog button,
.mock-filter-actions button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
}

.mock-child-forwarding-flow,
.mock-child-forwarding-meta {
  display: grid;
  gap: 10px;
  width: 100%;
  min-width: 0;
  max-width: 440px;
  margin: 18px auto 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 18px 36px rgb(32 32 28 / 12%);
}

.mock-child-forwarding-flow > span,
.mock-child-forwarding-meta small {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.mock-child-forwarding-flow strong,
.mock-child-forwarding-meta strong {
  color: var(--ink);
}

.mock-child-forwarding-flow code,
.mock-child-forwarding-meta span {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #f8f1df;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.mock-child-forwarding-meta span {
  display: grid;
  gap: 3px;
}

.mock-inbox-ticket small {
  color: var(--teal);
  font-weight: 900;
  text-transform: uppercase;
}

.mock-forwarding-choice label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 900;
}

.mock-forwarding-choice code,
.mock-forwarding-choice select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.mock-forwarding-choice code {
  background: #f8f1df;
}

.mock-forwarding-choice select {
  background-color: #f8f1df;
}

.mock-popover label,
.mock-perheinbox-card label {
  display: grid;
  gap: 6px;
}

.mock-popover span,
.mock-perheinbox-card span,
.mock-perheinbox-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.mock-popover code,
.mock-perheinbox-card code {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: #f8f1df;
  color: var(--teal);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-popover button,
.mock-perheinbox-card button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper-strong);
  font-weight: 700;
}

.secret-note {
  margin-top: 18px;
  border: 1px solid rgb(180 73 60 / 28%);
  border-radius: 8px;
  padding: 16px;
  background: rgb(180 73 60 / 8%);
  color: #7a3028;
}

.secret-note p {
  margin: 7px 0 0;
  line-height: 1.5;
}

.inbox-forward-note code {
  border-radius: 5px;
  padding: 2px 5px;
  background: rgb(255 255 255 / 72%);
}

.help-important-guide {
  margin-top: 18px;
  border: 1px solid rgb(180 73 60 / 28%);
  border-radius: 8px;
  padding: 18px;
  background: rgb(180 73 60 / 5%);
}

.help-important-guide .panel-header {
  margin-bottom: 4px;
}

.help-important-guide h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
}

.help-important-guide .help-lead {
  margin-top: 10px;
}

.compact-help-steps .help-step {
  grid-template-columns: minmax(220px, .66fr) minmax(340px, 1fr);
}

.field-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.field-title-row > span {
  min-width: 0;
}

.field-help-link {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgb(47 111 115 / 10%);
  color: var(--teal);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-transform: none;
}

.field-help-link:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.wilma-refresh-button {
  align-self: stretch;
  min-width: 112px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.school-menu-field small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.school-menu-combobox {
  position: relative;
  display: grid;
  gap: 6px;
}

.school-menu-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: stretch;
}

.school-menu-search-row input {
  border-radius: 8px 0 0 8px;
  border-right: 0;
}

.school-menu-open-button {
  border: 1px solid var(--line);
  border-radius: 0 8px 8px 0;
  background: rgb(255 255 255 / 82%);
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.school-menu-open-button:hover,
.school-menu-open-button:focus-visible {
  color: var(--teal);
}

.school-menu-results {
  position: fixed;
  z-index: 30;
  box-sizing: border-box;
  max-height: 310px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 0;
  background: #fffdf8;
  box-shadow: 0 18px 44px rgb(33 30 24 / 18%);
}

.school-menu-city {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.school-menu-city-count {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--ink);
  font-size: 12px;
}

.school-menu-option {
  display: grid;
  width: 100%;
  gap: 2px;
  border: 0;
  border-radius: 0;
  padding: 10px 12px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.school-menu-option span {
  min-width: 0;
  font-weight: 700;
}

.school-menu-option small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.school-menu-option:hover,
.school-menu-option.is-active,
.school-menu-option.is-selected {
  background: color-mix(in srgb, var(--teal) 14%, white);
}

.school-menu-empty {
  margin: 0;
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.phone-card {
  display: grid;
  gap: 5px;
  border-radius: 8px;
  padding: 13px;
  background: #25251f;
  color: #fffaf0;
}

.phone-card span,
.phone-card small {
  color: #ded6c5;
}

.muted-card {
  background: var(--plum);
}

.mobile-nav {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 20;
  display: none;
  grid-template-columns: repeat(8, 1fr);
  border: 1px solid rgb(255 250 240 / 22%);
  border-radius: 8px;
  padding: 6px;
  background: rgb(37 37 31 / 92%);
  color: #fffaf0;
  box-shadow: 0 18px 44px rgb(0 0 0 / 22%);
  backdrop-filter: blur(14px);
}

.mobile-nav.is-scroll-hidden {
  transform: translate3d(0, calc(100% + 28px), 0);
  opacity: 0;
  pointer-events: none;
}

.mobile-nav.is-nav-animating {
  will-change: transform, opacity;
}

.mobile-nav a {
  border-radius: 6px;
  padding: 10px 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

.mobile-nav a:hover {
  background: rgb(255 250 240 / 10%);
}

.mobile-nav a.is-active {
  background: rgb(255 250 240 / 16%);
}

.mobile-nav a.nav-section-break {
  margin-left: 10px;
  box-shadow: -10px 0 0 rgb(255 250 240 / 8%);
}

.mobile-nav button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.mobile-more-dialog {
  position: fixed;
  inset: auto 12px calc(98px + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  width: min(420px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 126px - env(safe-area-inset-bottom, 0px));
  margin: 0 auto;
  border: 1px solid rgb(53 73 63 / 24%);
  border-radius: 20px;
  padding: 0;
  overflow: auto;
  background: var(--paper-strong);
  color: var(--ink);
  box-shadow: 0 24px 70px rgb(18 28 23 / 36%);
}

.mobile-more-dialog::backdrop {
  background: rgb(11 24 19 / 48%);
  backdrop-filter: blur(2px);
}

.mobile-more-sheet {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.mobile-more-links {
  display: grid;
  gap: 10px;
}

.mobile-more-links a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 14px;
  background: rgb(255 255 255 / 58%);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.mobile-more-links a:hover,
.mobile-more-links a:focus-visible,
.mobile-more-links a.is-active {
  border-color: color-mix(in srgb, var(--teal) 55%, var(--line));
  background: color-mix(in srgb, var(--teal) 10%, var(--paper-strong));
}

.mobile-more-links .ref-nav-icon {
  width: 36px;
  height: 36px;
}

.chores-page {
  gap: 26px;
}

.child-chore-dashboard {
  display: grid;
  gap: 16px;
}

.child-chore-dashboard[hidden] {
  display: none !important;
}

.child-chore-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--child-color, var(--teal)) 42%, var(--line));
  border-radius: 8px;
  padding: 16px;
  background:
    radial-gradient(circle at 8% 24%, color-mix(in srgb, var(--child-color, var(--teal)) 28%, transparent), transparent 28%),
    linear-gradient(135deg, var(--teal), #177b76 48%, #12655f);
  color: #fffaf0;
  box-shadow: 0 18px 42px rgb(25 92 86 / 18%);
}

.child-chore-hero-person {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-width: 0;
}

.child-chore-hero-avatar {
  width: 88px;
  height: 88px;
  border: 4px solid rgb(255 250 240 / 86%);
  box-shadow: 0 18px 32px rgb(0 0 0 / 18%);
}

.child-chore-hero .eyebrow,
.child-chore-hero p,
.child-chore-rank span,
.child-chore-rank small {
  color: rgb(255 250 240 / 82%);
}

.child-chore-hero h2 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.02;
}

.child-chore-hero p {
  margin: 8px 0 0;
  font-weight: 700;
}

.child-chore-rank {
  display: grid;
  gap: 2px;
  min-width: 108px;
  border: 1px solid rgb(255 250 240 / 26%);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgb(255 250 240 / 12%);
  text-align: center;
}

.child-chore-rank strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1;
}

.child-chore-glance {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, .7fr)) minmax(360px, 1.35fr);
  gap: 12px;
  align-items: stretch;
}

.child-chore-stat,
.child-chore-glance .chore-line-chart-card,
.child-chore-reward-path,
.child-chore-streak-bonuses,
.child-action-chore-card {
  border: 1px solid color-mix(in srgb, var(--stat-color, var(--teal)) 24%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--stat-color, var(--teal)) 10%, white), rgb(255 253 248 / 92%)),
    var(--paper-strong);
  box-shadow: 0 14px 34px rgb(32 32 28 / 8%);
}

.child-chore-stat {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 112px;
  padding: 14px;
}

.child-chore-stat.is-points {
  --stat-color: #39a968;
}

.child-chore-stat.is-today {
  --stat-color: var(--teal);
}

.child-chore-stat.is-streak {
  --stat-color: #e06d45;
}

.child-chore-stat.is-reward {
  --stat-color: var(--gold);
}

.child-stat-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--stat-color, var(--teal)) 16%, white);
  color: color-mix(in srgb, var(--stat-color, var(--teal)) 78%, var(--ink));
  font-weight: 900;
}

.child-chore-stat div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.child-chore-stat span:not(.child-stat-icon),
.child-chore-stat small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.child-chore-stat strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1;
}

.child-chore-stat i {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgb(105 104 95 / 14%);
}

.child-chore-stat i::before {
  content: "";
  display: block;
  width: var(--stat-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--stat-color), color-mix(in srgb, var(--stat-color) 46%, var(--teal)));
}

.child-chore-glance .chore-line-chart-card {
  grid-column: 3;
  grid-row: 1 / span 2;
  margin: 0;
  padding: 14px;
}

.child-chore-glance .chart-header {
  margin-bottom: 8px;
}

.child-chore-glance .chart-header h3 {
  font-size: 22px;
}

.child-chore-glance .chore-line-chart-plot {
  height: 124px;
}

.child-chore-glance .chart-axis {
  margin-top: 4px;
}

.child-chore-progress-board {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 12px;
  align-items: stretch;
}

.child-chore-reward-path,
.child-chore-streak-bonuses {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.child-chore-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.child-chore-section-heading h3 {
  margin: 2px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.7vw, 34px);
  line-height: 1.04;
}

.child-chore-section-heading strong {
  display: grid;
  place-items: center;
  min-width: 52px;
  min-height: 52px;
  border-radius: 8px;
  padding: 6px 10px;
  background: color-mix(in srgb, var(--teal) 12%, white);
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.child-reward-path-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 14px;
  align-items: start;
  padding-top: 10px;
}

.child-reward-path-track > i {
  position: absolute;
  z-index: 0;
  left: 12px;
  right: 12px;
  top: 32px;
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgb(105 104 95 / 14%);
}

.child-reward-path-track > i::before {
  content: "";
  display: block;
  width: var(--reward-path-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #39a968, var(--gold));
}

.child-reward-path-track span {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  justify-items: center;
  min-width: 0;
  text-align: center;
}

.child-reward-path-track b {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 2px solid color-mix(in srgb, var(--goal-color, var(--gold)) 38%, var(--line));
  border-radius: 999px;
  background: rgb(255 253 248);
  color: color-mix(in srgb, var(--goal-color, var(--gold)) 76%, var(--ink));
  font-size: 17px;
}

.child-reward-path-track .is-unlocked b {
  background: #39a968;
  border-color: #39a968;
  color: white;
}

.child-reward-path-track small,
.child-chore-reward-path p,
.child-chore-streak-bonuses p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.child-streak-meter {
  display: grid;
  gap: 7px;
}

.child-streak-meter i {
  overflow: hidden;
  height: 11px;
  border-radius: 999px;
  background: rgb(105 104 95 / 14%);
}

.child-streak-meter i::before {
  content: "";
  display: block;
  width: var(--streak-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), #e06d45);
}

.child-streak-meter span {
  color: color-mix(in srgb, #e06d45 72%, var(--ink));
  font-size: 12px;
  font-weight: 900;
}

.child-streak-bonus-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.child-streak-bonus-chips span {
  display: grid;
  gap: 3px;
  place-items: center;
  min-height: 78px;
  border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--gold) 10%, white);
}

.child-streak-bonus-chips .is-unlocked {
  border-color: color-mix(in srgb, #39a968 44%, var(--line));
  background: color-mix(in srgb, #39a968 12%, white);
}

.child-streak-bonus-chips b {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.child-streak-bonus-chips small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.child-chore-actions {
  display: grid;
  gap: 14px;
}

.child-action-chore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.child-action-chore-card {
  display: grid;
  align-content: start;
  gap: 13px;
  min-width: 0;
  padding: 14px;
}

.child-action-visual {
  display: grid;
  place-items: center;
  min-height: 104px;
  border-radius: 8px;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--gold) 20%, white) 0 34%, transparent 35%),
    linear-gradient(135deg, color-mix(in srgb, var(--teal) 8%, white), rgb(255 250 240 / 84%));
}

.child-action-visual .chore-token {
  width: 62px;
  height: 62px;
  font-size: 30px;
}

.child-action-chore-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
}

.child-action-chore-card p {
  min-height: 38px;
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.child-action-chore-card .chore-reward-pill {
  width: fit-content;
}

.child-action-done {
  justify-self: stretch;
  justify-content: center;
  border-radius: 8px;
  padding-right: 12px;
  background: linear-gradient(135deg, var(--teal), #147b74);
  color: white;
}

.child-action-done small {
  color: rgb(255 250 240 / 84%);
}

.child-chore-done-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border: 1px solid color-mix(in srgb, #39a968 22%, var(--line));
  border-radius: 8px;
  padding: 10px;
  background: color-mix(in srgb, #39a968 8%, white);
}

.child-chore-done-strip > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.child-chore-done-strip b {
  border-radius: 999px;
  padding: 7px 10px;
  background: rgb(255 253 248 / 82%);
  font-size: 13px;
}

.child-chore-done-strip small {
  color: var(--teal);
  font-weight: 800;
}

.chores-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 20px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: linear-gradient(135deg, rgb(255 250 240 / 92%), rgb(244 241 234 / 86%));
  color: var(--ink);
  box-shadow: 0 12px 30px rgb(32 32 28 / 7%);
}

.chores-hero .eyebrow,
.chores-hero p {
  color: var(--muted);
}

.chores-hero h2 {
  max-width: 820px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.04;
}

.chores-hero p:last-child {
  max-width: 680px;
  margin: 14px 0 0;
  line-height: 1.5;
}

.mode-switch {
  display: grid;
  gap: 10px;
  border: 1px solid color-mix(in srgb, var(--teal) 24%, var(--line));
  border-radius: 8px;
  padding: 16px;
  background: rgb(255 250 240 / 72%);
}

.mode-switch span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
}

.mode-switch div,
.child-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chores-hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.chores-hero-metrics article {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--metric-color, var(--teal)) 24%, var(--line));
  border-radius: 8px;
  padding: 12px 13px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--metric-color, var(--teal)) 10%, white), rgb(255 250 240 / 90%)),
    var(--paper-strong);
  box-shadow: 0 12px 28px rgb(32 32 28 / 8%);
}

.chores-hero-metrics article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--metric-color, var(--teal));
}

.chores-hero-metrics article.is-points {
  --metric-color: #39ce70;
  grid-column: 1 / -1;
  min-height: 92px;
}

.chores-hero-metrics article.is-streak {
  --metric-color: var(--gold);
}

.chores-hero-metrics article.is-today {
  --metric-color: var(--teal);
}

.chores-hero-metrics article > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.chores-hero-metrics .metric-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid color-mix(in srgb, var(--metric-color, var(--teal)) 28%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--metric-color, var(--teal)) 14%, white);
  color: color-mix(in srgb, var(--metric-color, var(--teal)) 74%, var(--ink));
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.chores-hero-metrics span,
.chores-hero-metrics small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.chores-hero-metrics strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  line-height: 1;
}

.chore-streak-spotlight {
  --streak-accent: var(--gold);
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--streak-accent) 18%, white), rgb(255 253 248 / 92%)),
    var(--paper-strong);
}

.chore-streak-spotlight.is-empty,
.chore-streak-spotlight.is-started {
  --streak-accent: var(--teal);
}

.chore-streak-spotlight.is-warm {
  --streak-accent: var(--gold);
}

.chore-streak-spotlight.is-strong,
.chore-streak-spotlight.is-epic,
.chore-streak-spotlight.is-legend {
  --streak-accent: #e06d45;
}

.streak-medal {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid color-mix(in srgb, var(--streak-accent) 45%, white);
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 26%, white 0 18%, transparent 19%),
    color-mix(in srgb, var(--streak-accent) 28%, white);
  color: color-mix(in srgb, var(--streak-accent) 70%, var(--ink));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--streak-accent) 22%, transparent);
}

.streak-medal span {
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 900;
}

.streak-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.streak-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1;
}

.streak-copy p,
.streak-copy small {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.streak-progress-bar {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
}

.streak-progress-bar i {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgb(105 104 95 / 14%);
}

.streak-progress-bar i::before {
  content: "";
  display: block;
  width: var(--streak-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--streak-accent));
  transition: width .24s ease;
}

.streak-progress-bar span {
  color: color-mix(in srgb, var(--streak-accent) 68%, var(--ink));
  font-size: 12px;
  font-weight: 900;
}

.chores-tabs,
.chore-stats-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}

.chore-stats-panel {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.chores-tabs button,
.chore-stats-tabs button {
  min-height: 40px;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 0 14px 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.chores-tabs button.is-active,
.chore-stats-tabs button.is-active {
  border-color: var(--teal);
  color: var(--ink);
}

.chores-tab-panel {
  display: grid;
  gap: 22px;
}

.chores-tab-panel[hidden] {
  display: none !important;
}

.chores-tab-panel[data-chore-panel="all"] .panel {
  border-color: color-mix(in srgb, var(--line) 82%, white);
  background:
    linear-gradient(180deg, rgb(255 253 248 / 94%), rgb(255 250 240 / 84%)),
    var(--paper-strong);
  box-shadow: 0 16px 42px rgb(32 32 28 / 7%);
}

.all-chores-panel {
  gap: 16px;
}

.all-chore-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.chore-edit-page[hidden],
#choreFormHome[hidden],
#allChoresPanel[hidden] {
  display: none !important;
}

.chore-edit-page {
  gap: 18px;
}

.chore-edit-page-header {
  align-items: start;
}

.chore-edit-page #choreFormPanel {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.chore-edit-page #choreFormPanel > .panel-header {
  display: none;
}

.panel-lead {
  max-width: 780px;
  margin: -4px 0 10px;
  color: var(--muted);
  line-height: 1.5;
}

.all-chore-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.all-chore-summary-card {
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 108px;
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--teal) 18%, var(--line));
  border-radius: 8px;
  padding: 13px;
  background: rgb(255 255 255 / 62%);
  color: var(--ink);
  text-align: left;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.all-chore-summary-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgb(32 32 28 / 8%);
}

.all-chore-summary-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--gold) 55%, white);
  outline-offset: 2px;
}

.all-chore-summary-card.is-actionable {
  border-color: color-mix(in srgb, #2f7d55 52%, var(--line));
  background: linear-gradient(145deg, rgb(232 247 237 / 92%), rgb(255 255 255 / 72%));
}

.all-chore-summary-card.is-upcoming {
  border-color: color-mix(in srgb, var(--gold) 58%, var(--line));
  background: linear-gradient(145deg, rgb(255 247 221 / 94%), rgb(255 255 255 / 72%));
}

.all-chore-summary-card.is-inactive {
  border-color: color-mix(in srgb, #77756d 42%, var(--line));
  background: linear-gradient(145deg, rgb(242 240 235 / 96%), rgb(255 255 255 / 70%));
}

.all-chore-summary-card.is-approvals {
  border-color: color-mix(in srgb, var(--brick) 45%, var(--line));
  background: linear-gradient(145deg, rgb(252 237 233 / 92%), rgb(255 255 255 / 72%));
}

.all-chore-summary span,
.all-chore-summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.all-chore-summary strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  line-height: 1.05;
}

.all-chore-list {
  display: grid;
  gap: 18px;
  margin-top: 12px;
}

.all-chore-group {
  min-width: 0;
  scroll-margin-top: 20px;
  border: 1px solid color-mix(in srgb, var(--line) 84%, white);
  border-radius: 10px;
  background: rgb(255 255 255 / 42%);
}

.all-chore-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 15px 16px;
}

.all-chore-group > summary {
  cursor: pointer;
  list-style: none;
}

.all-chore-group > summary::-webkit-details-marker {
  display: none;
}

.all-chore-group > summary::after {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg) translateY(-3px);
  transition: transform .16s ease;
}

.all-chore-group[open] > summary::after {
  transform: rotate(225deg) translate(-2px, -1px);
}

.all-chore-group-title {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.all-chore-group-title > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.all-chore-group-title strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.1;
}

.all-chore-group-title small {
  color: var(--muted);
  line-height: 1.35;
}

.all-chore-group-mark {
  width: 13px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #77756d;
}

.all-chore-group.is-actionable .all-chore-group-mark {
  background: #2f7d55;
}

.all-chore-group.is-upcoming .all-chore-group-mark {
  background: var(--gold);
}

.all-chore-group-count {
  display: inline-grid;
  min-width: 38px;
  min-height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: rgb(37 37 31 / 7%);
  font-size: 16px;
}

.all-chore-group-body {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.all-chore-group-empty {
  margin: 0;
  border: 1px dashed color-mix(in srgb, var(--line) 82%, white);
  border-radius: 8px;
  padding: 14px;
  color: var(--muted);
  background: rgb(255 255 255 / 44%);
}

.all-chore-card {
  --chore-state-color: #77756d;
  overflow: hidden;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--chore-state-color) 42%, var(--line));
  border-left: 5px solid var(--chore-state-color);
  border-radius: 8px;
  background: rgb(255 255 255 / 70%);
}

.all-chore-card.is-actionable {
  --chore-state-color: #2f7d55;
  background: linear-gradient(110deg, rgb(235 248 239 / 92%), rgb(255 255 255 / 76%));
}

.all-chore-card.is-upcoming {
  --chore-state-color: #bc8125;
  background: linear-gradient(110deg, rgb(255 247 222 / 94%), rgb(255 255 255 / 76%));
}

.all-chore-card.is-inactive {
  --chore-state-color: #77756d;
  background: linear-gradient(110deg, rgb(241 239 234 / 96%), rgb(255 255 255 / 76%));
}

.all-chore-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px;
}

.all-chore-title {
  display: grid;
  gap: 8px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.all-chore-title-line,
.all-chore-state-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.all-chore-title strong {
  font-size: 19px;
  line-height: 1.2;
}

.all-chore-points,
.chore-state-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 500;
}

.all-chore-points {
  background: rgb(215 164 74 / 14%);
  color: #7e5819;
}

.chore-state-pill {
  border: 1px solid color-mix(in srgb, currentColor 24%, var(--line));
  background: rgb(255 255 255 / 66%);
}

.chore-state-pill.is-enabled,
.chore-state-pill.is-actionable {
  color: #276c49;
}

.chore-state-pill.is-upcoming {
  color: #8a5f1c;
}

.chore-state-pill.is-disabled,
.chore-state-pill.is-inactive {
  color: #5f5d57;
}

.all-chore-availability {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
}

.all-chore-progress-note {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}

.all-chore-schedule {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.all-chore-schedule span {
  border-radius: 999px;
  padding: 5px 8px;
  background: rgb(37 37 31 / 6%);
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.all-chore-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.all-chore-actions button {
  min-height: 42px;
}

.all-chore-details {
  border-top: 1px solid color-mix(in srgb, var(--line) 72%, white);
}

.all-chore-details summary {
  padding: 11px 14px;
  color: var(--teal);
  font-weight: 500;
  cursor: pointer;
}

.all-chore-detail-grid {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
}

.all-chore-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.all-chore-child-stats {
  display: grid;
  gap: 8px;
  align-content: start;
}

.all-chore-child-stats article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--teal) 18%, var(--line));
  border-radius: 8px;
  padding: 9px;
  background: rgb(255 255 255 / 58%);
}

.all-chore-child-stats strong,
.all-chore-child-stats small {
  display: block;
}

.all-chore-child-stats small,
.all-chore-child-stats p {
  color: var(--muted);
}

.all-chore-child-stats article span {
  display: block;
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold) var(--child-score-width), rgb(37 37 31 / 8%) var(--child-score-width));
}

.all-chore-danger-actions {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid color-mix(in srgb, var(--line) 72%, white);
  padding-top: 10px;
}

.chore-form {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.chore-form-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 13px;
}

.chore-form-top .reward-title-field {
  grid-column: 1 / -1;
}

.chore-form input {
  border-color: color-mix(in srgb, var(--line) 78%, white);
  background: rgb(255 255 255 / 78%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 82%);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.chore-form input:focus {
  outline: 3px solid color-mix(in srgb, var(--gold) 24%, transparent);
  outline-offset: 1px;
  border-color: color-mix(in srgb, var(--teal) 54%, var(--line));
  background: white;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--teal) 12%, transparent);
}

.chore-points-field {
  display: grid;
  gap: 10px;
  max-width: 420px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, white);
  border-radius: 8px;
  padding: 13px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 70%), rgb(255 250 240 / 52%)),
    var(--paper-strong);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 76%);
}

.chore-points-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.chore-points-label span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.45;
}

.chore-points-label small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.chore-points-control {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  min-height: 54px;
  border: 1px solid color-mix(in srgb, var(--line) 86%, white);
  border-radius: 8px;
  background: rgb(255 255 255 / 76%);
}

.chore-points-control button {
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 24px;
  font-weight: 400;
}

.chore-points-control button:hover {
  color: var(--teal);
}

.chore-points-control label {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  border-inline: 1px solid color-mix(in srgb, var(--line) 62%, white);
}

.chore-points-control input {
  width: 66px;
  min-height: 42px;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  text-align: center;
}

.chore-points-control input::-webkit-outer-spin-button,
.chore-points-control input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.chore-points-control input:focus {
  outline: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.chore-points-control label span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  text-transform: none;
}

.chore-point-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chore-point-presets button {
  min-width: 44px;
  min-height: 32px;
  border: 1px solid color-mix(in srgb, var(--line) 84%, white);
  border-radius: 999px;
  padding: 0 12px;
  background: rgb(255 255 255 / 68%);
  color: color-mix(in srgb, var(--muted) 82%, white);
  font-weight: 400;
}

.chore-point-presets button:hover {
  border-color: color-mix(in srgb, var(--gold) 58%, var(--line));
  color: var(--ink);
}

.chore-point-presets button.is-active {
  border-color: color-mix(in srgb, var(--gold) 88%, var(--line));
  background: color-mix(in srgb, var(--gold) 12%, white);
  color: var(--ink);
  box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--gold) 82%, white);
  font-weight: 700;
}

.chore-accordion {
  display: grid;
  gap: 12px;
}

.chore-accordion-section {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 82%, white);
  border-radius: 8px;
  background: rgb(255 253 248 / 82%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 70%);
}

.chore-accordion-section summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-height: 62px;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgb(255 255 255 / 60%), rgb(255 250 240 / 38%));
  cursor: pointer;
}

.chore-accordion-section summary::-webkit-details-marker {
  display: none;
}

.chore-accordion-section summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--gold) 34%, transparent);
  outline-offset: -3px;
}

.chore-accordion-section summary > span:last-child {
  min-width: 0;
}

.chore-accordion-section summary strong {
  font-size: 12px;
  letter-spacing: .02em;
}

.chore-accordion-section summary small,
.inline-help {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.chore-accordion-section summary small {
  color: color-mix(in srgb, var(--teal) 78%, var(--muted));
  font-weight: 700;
}

.chore-section-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--teal) 11%, white);
  color: var(--teal);
  font-size: 0;
  font-weight: 900;
}

.chore-section-icon::before,
.chore-section-icon::after {
  content: "";
  position: absolute;
  display: block;
}

.chore-accordion-section:first-child .chore-section-icon::before {
  width: 15px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.chore-accordion-section:first-child .chore-section-icon::after {
  top: 13px;
  width: 15px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.chore-accordion-section:nth-child(2) .chore-section-icon::before {
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.chore-accordion-section:nth-child(2) .chore-section-icon::after {
  bottom: 11px;
  width: 18px;
  height: 9px;
  border-radius: 999px 999px 4px 4px;
  background: currentColor;
  opacity: .72;
}

.chore-section-body {
  display: grid;
  gap: 12px;
  border-top: 1px solid color-mix(in srgb, var(--line) 78%, white);
  padding: 16px 15px 17px;
  background: rgb(255 255 255 / 54%);
}

.field-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
}

.segmented-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 9px;
}

.segmented-pill-grid label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, white);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgb(255 253 248 / 82%);
  box-shadow: 0 1px 0 rgb(255 255 255 / 76%);
  font-size: 14px;
  font-weight: 700;
  transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.segmented-pill-grid label:hover {
  border-color: color-mix(in srgb, var(--teal) 34%, var(--line));
  background: white;
}

.segmented-pill-grid label:has(input:checked) {
  border-color: color-mix(in srgb, var(--teal) 72%, var(--line));
  background: color-mix(in srgb, var(--teal) 10%, white);
  color: var(--teal);
  box-shadow: 0 5px 14px rgb(47 111 115 / 9%);
}

.segmented-pill-grid input,
.child-picker input {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  min-height: 13px;
  margin: 0;
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--muted) 42%, white);
  border-radius: 999px;
  padding: 0;
  background: white;
  box-shadow: inset 0 0 0 3px white;
}

.segmented-pill-grid input[type="checkbox"],
.child-picker input[type="checkbox"] {
  border-radius: 4px;
}

.segmented-pill-grid input:checked,
.child-picker input:checked {
  border-color: var(--teal);
  background: var(--teal);
}

.segmented-pill-grid input:focus-visible,
.child-picker input:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--gold) 44%, transparent);
  outline-offset: 2px;
}

.chore-person-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.compact-button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.mini-avatar {
  width: 24px;
  height: 24px;
  font-size: 10px;
}

.chore-done-state {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  border: 1px solid color-mix(in srgb, var(--leaf) 32%, var(--line));
  border-radius: 8px;
  padding: 28px;
  background: color-mix(in srgb, var(--leaf) 10%, white);
  color: var(--leaf);
  text-align: center;
}

.child-chore-panel > .panel-header {
  margin-bottom: 10px;
}

.chore-achievements-panel > .panel-header {
  margin-bottom: 10px;
}

.chore-done-state strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
}

.completed-chore-list,
.completed-chore-section,
.chore-achievements {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.mini-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 28px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgb(105 104 95 / 10%);
  color: var(--leaf);
  font-weight: 900;
}

.mini-section-title b {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--leaf) 12%, white);
}

.completed-chore-section > .mini-section-title {
  margin-top: 10px;
}

.completed-chore-card,
.chore-achievement-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--white);
}

.completed-chore-card strong {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: color-mix(in srgb, var(--leaf) 70%, transparent);
}

.completed-chore-card small,
.chore-achievement-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.completed-chore-card.is-pending {
  background: color-mix(in srgb, var(--gold) 10%, white);
}

.completed-chore-card.is-pending strong {
  text-decoration: none;
}

.chore-achievement-card {
  grid-template-columns: auto minmax(0, 1fr);
}

.chore-achievement-card > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--gold) 18%, white);
  color: var(--gold);
  font-weight: 900;
}

.chore-achievement-card.is-earned {
  border-color: color-mix(in srgb, var(--teal) 36%, var(--line));
  background: color-mix(in srgb, var(--teal) 8%, white);
}

.compact-field {
  display: grid;
  gap: 6px;
}

.weekday-picker {
  display: grid;
  grid-column: 1 / -1;
  gap: 9px;
  border: 0;
  padding: 0;
}

.weekday-picker[hidden] {
  display: none !important;
}

.weekday-picker legend {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.45;
}

.weekday-options {
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.weekday-picker label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  min-width: 46px;
  min-height: 34px;
  width: auto;
  border: 1px solid color-mix(in srgb, var(--line) 82%, white);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgb(255 253 248 / 84%);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 1px 0 rgb(255 255 255 / 76%);
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.weekday-picker input {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  min-height: 13px;
  margin: 0;
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--muted) 42%, white);
  border-radius: 4px;
  padding: 0;
  background: white;
  box-shadow: inset 0 0 0 3px white;
}

.weekday-picker label:has(input:checked) {
  border-color: color-mix(in srgb, var(--teal) 60%, var(--line));
  background: color-mix(in srgb, var(--teal) 8%, white);
  color: var(--teal);
}

.weekday-picker input:checked {
  border-color: var(--teal);
  background: var(--teal);
}

.weekday-picker input:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--gold) 44%, transparent);
  outline-offset: 2px;
}

.compact-field input {
  min-height: 40px;
  border-color: rgb(255 250 240 / 22%);
  background: rgb(255 250 240 / 92%);
}

.chore-scoreboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.score-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgb(255 250 240 / 86%);
  box-shadow: var(--shadow);
}

.score-card b {
  grid-column: 1 / -1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
}

.score-card small {
  color: var(--muted);
}

.rank-badge {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--gold);
  font-weight: 700;
}

.point-orbs {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.point-orbs span {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--gold) calc(55% + var(--orb-index) * 4%), var(--brick));
  box-shadow: 0 3px 9px rgb(180 73 60 / 18%);
}

.child-tabs {
  margin: 16px 0;
}

.child-tabs button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: transparent;
  font-weight: 700;
}

.child-tabs button.is-active {
  background: var(--ink);
  color: var(--paper-strong);
}

.child-chore-list,
.chore-approval-list,
.reward-progress,
.allowance-panel {
  display: grid;
  gap: 12px;
}

.available-chore-section {
  display: grid;
  gap: 10px;
}

.available-chore-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  border: 1px solid color-mix(in srgb, var(--teal) 22%, var(--line));
  border-radius: 14px;
  padding: 9px 12px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--teal) 10%, white), rgb(255 253 248 / 72%));
}

.available-chore-heading div {
  display: grid;
  gap: 2px;
}

.available-chore-heading span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.available-chore-heading strong {
  color: var(--ink);
  font-size: 14px;
}

.available-chore-heading b {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--teal);
  color: white;
  font-size: 14px;
}

.available-chore-list {
  display: grid;
  gap: 10px;
}

.chore-approval-card,
.allowance-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--white);
}

.child-chore-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.child-chore-card[open] {
  border-color: color-mix(in srgb, var(--teal) 38%, var(--line));
  background: linear-gradient(180deg, color-mix(in srgb, var(--teal) 5%, white), var(--white) 58%);
  box-shadow: 0 14px 28px rgb(39 121 126 / 10%);
}

.child-chore-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  cursor: pointer;
  list-style: none;
}

.child-chore-summary::-webkit-details-marker {
  display: none;
}

.child-chore-summary:hover {
  background: color-mix(in srgb, var(--teal) 4%, transparent);
}

.child-chore-summary:focus {
  outline: none;
}

.child-chore-summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--teal) 36%, transparent);
  outline-offset: 2px;
}

.chore-reward-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 30px;
  border: 1px solid color-mix(in srgb, var(--gold) 44%, var(--line));
  border-radius: 999px;
  padding: 0 11px;
  background: color-mix(in srgb, var(--gold) 18%, white);
  color: color-mix(in srgb, var(--ink) 78%, var(--gold));
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.child-chore-card[open] .child-chore-summary {
  border-bottom: 1px solid color-mix(in srgb, var(--teal) 22%, var(--line));
}

.chore-open-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  min-height: 34px;
  border: 1px solid color-mix(in srgb, var(--teal) 30%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--teal) 8%, white);
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
}

.child-chore-card[open] .chore-open-indicator {
  background: var(--teal);
  color: white;
}

.child-chore-card[open] .chore-open-indicator::before {
  content: "Auki";
}

.child-chore-card[open] .chore-open-indicator {
  font-size: 0;
}

.child-chore-card[open] .chore-open-indicator::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100%;
  font-size: 12px;
  line-height: 1;
}

.child-chore-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px 14px 18px 72px;
}

.child-chore-detail p {
  max-width: 72ch;
  margin: 0;
  color: var(--ink);
}

.child-chore-detail small {
  margin: 0;
}

.chore-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.chore-detail-actions .chore-person-actions {
  margin-top: 0;
}

.chore-done-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  border: 1px solid color-mix(in srgb, var(--teal) 28%, var(--line));
  border-radius: 999px;
  padding: 6px 18px 6px 8px;
  background: linear-gradient(135deg, white, color-mix(in srgb, var(--teal) 8%, white));
  color: var(--ink);
  box-shadow: 0 10px 22px rgb(39 121 126 / 10%);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.chore-done-button:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--teal) 54%, var(--line));
  background: linear-gradient(135deg, white, color-mix(in srgb, var(--teal) 13%, white));
  box-shadow: 0 16px 28px rgb(39 121 126 / 15%);
}

.chore-done-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--teal) 42%, transparent);
  outline-offset: 3px;
}

.chore-done-button img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 5px 8px rgb(37 37 31 / 18%));
}

.chore-done-button span,
.chore-done-button strong,
.chore-done-button small {
  display: block;
}

.chore-done-button strong {
  font-size: 17px;
  line-height: 1;
}

.chore-done-button small {
  margin-top: 3px;
  color: color-mix(in srgb, var(--ink) 78%, var(--teal));
  font-size: 12px;
  font-weight: 700;
}

.chore-completion-dialog {
  width: min(420px, calc(100vw - 32px));
  border-radius: 20px;
  overflow-x: hidden;
}

.chore-completion-form {
  box-sizing: border-box;
  display: grid;
  gap: 16px;
  width: 100%;
  padding: 24px;
  overflow-x: hidden;
}

.chore-completion-form * {
  box-sizing: border-box;
}

.chore-completion-form .modal-header {
  align-items: flex-start;
}

.chore-completion-form .modal-header h2 {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 700;
}

.chore-completion-children {
  display: grid;
  gap: 10px;
}

.chore-completion-child-option {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-width: 0;
  border: 2px solid color-mix(in srgb, var(--teal) 34%, var(--line));
  border-radius: 14px;
  padding: 14px;
  background: color-mix(in srgb, var(--teal) 8%, white);
  cursor: pointer;
}

.chore-completion-child-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chore-completion-child-option:has(input:focus-visible) {
  outline: 3px solid color-mix(in srgb, var(--teal) 36%, transparent);
  outline-offset: 2px;
}

.chore-completion-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--teal) 18%, white);
  color: transparent;
  font-weight: 700;
}

.chore-completion-child-option:has(input:checked) {
  border-color: var(--teal);
  background: color-mix(in srgb, var(--teal) 12%, white);
}

.chore-completion-child-option:has(input:checked) .chore-completion-check {
  background: var(--teal);
  color: white;
}

.chore-completion-hint {
  margin: -4px 0 0;
  border-radius: 10px;
  padding: 10px 12px;
  background: rgb(37 37 31 / 8%);
  color: var(--muted);
  font-size: 13px;
}

.chore-completion-form .modal-actions {
  align-items: center;
  justify-content: space-between;
}

.chore-completion-form .modal-actions .secondary-button {
  border-color: transparent;
  background: transparent;
  color: var(--teal);
  box-shadow: none;
}

.chore-completion-form .modal-actions .primary-button {
  border-color: var(--teal);
  background: var(--teal);
  color: white;
  box-shadow: 0 12px 24px rgb(39 121 126 / 18%);
}

.app-confirm-dialog {
  width: min(460px, calc(100vw - 32px));
  border-radius: 18px;
  overflow: hidden;
}

.app-confirm-form {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.app-confirm-form .modal-header {
  align-items: flex-start;
}

.app-confirm-form .modal-header h2 {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 700;
}

.app-confirm-form .form-note {
  margin: -2px 0 0;
  border-radius: 12px;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--teal) 8%, white);
  color: color-mix(in srgb, var(--ink) 72%, var(--teal));
}

.app-confirm-input-wrap {
  display: grid;
  gap: 7px;
}

.app-confirm-reminder-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(120px, .9fr);
  gap: 12px;
}

.app-confirm-reminder-fields[hidden] {
  display: none;
}

.app-confirm-reminder-fields label {
  display: grid;
  gap: 7px;
}

.app-confirm-input-wrap span,
.app-confirm-reminder-fields span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.45;
}

.app-confirm-input-wrap input,
.app-confirm-reminder-fields input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 13px;
  background: white;
  color: var(--ink);
  font: inherit;
}

.app-confirm-input-wrap input:focus,
.app-confirm-reminder-fields input:focus {
  border-color: var(--teal);
  outline: 3px solid color-mix(in srgb, var(--teal) 18%, transparent);
}

.app-confirm-form .modal-actions {
  align-items: center;
  justify-content: flex-end;
}

.app-confirm-form .secondary-button {
  border-color: transparent;
  background: transparent;
  color: var(--teal);
  box-shadow: none;
}

.app-confirm-form .primary-button {
  border-color: var(--teal);
  background: var(--teal);
  color: white;
  box-shadow: 0 12px 24px rgb(39 121 126 / 18%);
}

.app-confirm-form.is-danger-confirm .form-note {
  background: color-mix(in srgb, var(--danger) 8%, white);
  color: color-mix(in srgb, var(--ink) 76%, var(--danger));
}

.app-confirm-form.is-danger-confirm .primary-button {
  border-color: var(--danger);
  background: var(--danger);
  box-shadow: 0 12px 24px rgb(201 54 47 / 18%);
}

.child-chore-card small,
.chore-approval-card small,
.allowance-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.chore-token {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--teal);
  color: white;
  font-weight: 900;
}

.chore-form {
  grid-template-columns: minmax(0, 1fr);
}

.chore-form .full-button,
.chore-form .form-note,
.child-picker,
.reward-level-form .form-note {
  grid-column: 1 / -1;
}

.chore-form .primary-button.full-button {
  justify-self: start;
  width: auto;
  min-height: 44px;
  border: 1px solid color-mix(in srgb, var(--gold) 62%, var(--line));
  border-radius: 999px;
  padding: 0 22px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 92%, white), var(--gold));
  color: #2c2514;
  box-shadow: 0 10px 22px rgb(215 164 74 / 18%);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.chore-form .primary-button.full-button:hover {
  border-color: color-mix(in srgb, var(--gold) 84%, var(--ink));
  box-shadow: 0 14px 26px rgb(215 164 74 / 22%);
  transform: translateY(-1px);
}

.chore-form .primary-button.full-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--teal) 24%, transparent);
  outline-offset: 3px;
}

.chore-form .form-note {
  margin-top: -4px;
  padding-left: 2px;
}

.reward-level-form {
  grid-template-columns: minmax(220px, 1fr) minmax(92px, 120px);
  margin-top: 14px;
}

.reward-level-form .reward-title-field {
  grid-column: 1 / -1;
}

.child-picker {
  display: grid;
  gap: 9px;
  border: 1px dashed color-mix(in srgb, var(--line) 90%, white);
  border-radius: 8px;
  padding: 12px;
  background: rgb(255 253 248 / 62%);
}

.child-picker > span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.45;
}

.child-picker div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.child-picker label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, white);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgb(255 255 255 / 86%);
  font-size: 14px;
  font-weight: 700;
}

.child-picker label:has(input:checked) {
  border-color: color-mix(in srgb, var(--teal) 62%, var(--line));
  background: color-mix(in srgb, var(--teal) 9%, white);
  color: var(--teal);
}

.chore-form-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.chore-form-sections {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.chore-form-section {
  overflow: hidden;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--line) 82%, white);
  border-radius: 10px;
  background: rgb(255 253 248 / 88%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 78%);
}

.chore-form-section-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 15px 16px;
  background: linear-gradient(120deg, rgb(47 111 115 / 7%), rgb(255 255 255 / 58%));
}

.chore-form-section-heading h3,
.chore-form-section-heading p {
  margin: 0;
}

.chore-form-section-heading h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.15;
}

.chore-form-section-heading p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.chore-form-step {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: var(--teal);
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 700;
  box-shadow: 0 7px 16px rgb(47 111 115 / 16%);
}

.chore-form-section-body {
  display: grid;
  gap: 16px;
  border-top: 1px solid color-mix(in srgb, var(--line) 72%, white);
  padding: 16px;
}

.chore-form-field {
  display: grid;
  min-width: 0;
  gap: 7px;
  margin: 0;
  border: 0;
  padding: 0;
}

.chore-form-field > label,
.chore-form-field > legend {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.chore-form-field > label small {
  color: var(--muted);
  font-weight: 400;
}

.chore-form :is(input[type="text"], input[type="date"], input[type="time"], input[type="number"], textarea) {
  width: 100%;
  min-width: 0;
  border-color: color-mix(in srgb, var(--line) 82%, white);
  background: rgb(255 255 255 / 82%);
}

.chore-form textarea {
  min-height: 88px;
  resize: vertical;
}

.chore-form-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  min-width: 0;
}

.chore-form-choice-grid.is-compact {
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
}

.chore-form-choice {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  min-height: 68px;
  border: 1px solid color-mix(in srgb, var(--line) 84%, white);
  border-radius: 8px;
  padding: 10px 11px;
  background: rgb(255 255 255 / 68%);
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.chore-form-choice:hover {
  border-color: color-mix(in srgb, var(--teal) 38%, var(--line));
  background: white;
}

.chore-form-choice:has(input:checked) {
  border-color: color-mix(in srgb, var(--teal) 72%, var(--line));
  background: color-mix(in srgb, var(--teal) 9%, white);
  box-shadow: 0 7px 16px rgb(47 111 115 / 8%);
}

.chore-form-choice input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  flex: 0 0 18px;
  margin: 0;
  accent-color: var(--teal);
  box-shadow: none;
}

.chore-form-choice > span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  display: grid;
  gap: 2px;
  min-width: 0;
}

.chore-form-choice strong,
.chore-form-choice small {
  overflow-wrap: anywhere;
}

.chore-form-choice strong {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.25;
}

.chore-form-choice small {
  color: var(--muted);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.3;
}

.chore-form .weekday-picker {
  gap: 8px;
}

.chore-form .weekday-options {
  flex-wrap: wrap;
  overflow: visible;
}

.chore-form .weekday-picker label,
.chore-form .child-picker label {
  min-height: 44px;
}

.chore-form .child-picker {
  margin-top: 4px;
}

.chore-field-error {
  min-height: 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.chore-field-error:empty {
  display: none;
}

.chore-form-field.is-invalid {
  border-radius: 8px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 13%, transparent);
}

.chore-form-field.is-invalid :is(input, textarea, .chore-form-choice, .weekday-options, .child-picker) {
  border-color: color-mix(in srgb, var(--danger) 72%, var(--line));
}

.chore-form-review {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--teal) 42%, var(--line));
  border-radius: 10px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgb(233 247 244 / 94%), rgb(255 253 248 / 94%)),
    var(--paper-strong);
  box-shadow: 0 16px 34px rgb(32 32 28 / 9%);
}

.chore-form-review h3,
.chore-form-review p {
  margin: 0;
}

.chore-form-review h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.chore-form-live-summary {
  display: grid;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px 20px;
  background: rgb(255 255 255 / 72%);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.chore-review-section {
  display: grid;
  grid-template-columns: minmax(100px, 0.28fr) minmax(0, 1fr);
  gap: 12px 24px;
  padding: 18px 0;
  min-width: 0;
}
.chore-review-section + .chore-review-section { border-top: 1px solid var(--line); }
.chore-review-section h4 {
  margin: 0;
  color: var(--teal);
  font: 700 17px/1.45 var(--font-body, sans-serif);
  text-transform: none;
  letter-spacing: normal;
}
.chore-review-section dl { display: grid; gap: 10px; margin: 0; min-width: 0; }
.chore-review-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 4px 16px; }
.chore-review-row dt { color: var(--muted); font-weight: 400; }
.chore-review-row dd { margin: 0; font-weight: 500; white-space: pre-wrap; min-width: 0; }
@media (max-width: 600px) {
  .chore-form-live-summary { padding: 0 16px; }
  .chore-review-section { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .chore-review-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

.chore-form-actions {
  display: grid;
  gap: 8px;
}

.chore-form-actions .primary-button.full-button {
  width: 100%;
  min-height: 48px;
  justify-self: stretch;
}

.all-chore-announcement {
  min-height: 20px;
  margin: 0;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
}

.all-chore-card.is-just-saved {
  outline: 4px solid color-mix(in srgb, var(--gold) 72%, white);
  outline-offset: 3px;
}

.all-chore-card[data-created-chore-id] {
  animation: chore-created-highlight 1.1s ease-in-out 2;
}

@keyframes chore-created-highlight {
  50% {
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--gold) 24%, transparent), 0 16px 30px rgb(32 32 28 / 11%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .chore-form-choice,
  .all-chore-card[data-created-chore-id] {
    transition: none;
    animation: none;
  }
}

.history-graph {
  display: grid;
  gap: 12px;
}

.history-graph article {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
}

.history-graph span,
.history-graph strong {
  font-size: 13px;
}

.history-graph div {
  overflow: hidden;
  height: 16px;
  border-radius: 999px;
  background: rgb(105 104 95 / 13%);
}

.history-graph i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}

.ledger-timeline {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.ledger-timeline article {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--white);
}

.ledger-timeline b {
  color: var(--teal);
}

.chores-tab-panel[data-chore-panel="stats"] .panel {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.chores-tab-panel[data-chore-panel="stats"] .panel > .panel-header h2 {
  padding-bottom: 20px;
}

.chores-tab-panel[data-chore-panel="stats"] .chore-stats-tabs {
  margin-top: -6px;
  margin-bottom: 2px;
}

.chores-tab-panel[data-chore-panel="stats"] .chore-scoreboard {
  margin-top: 8px;
}

.chore-scoreboard {
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 16px;
}

.score-card {
  position: relative;
  align-content: start;
  grid-template-columns: 1fr;
  gap: 14px;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--score-color, var(--teal)) 24%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--score-color, var(--teal)) 10%, white), rgb(255 250 240 / 88%)),
    var(--paper-strong);
  box-shadow: 0 14px 34px rgb(32 32 28 / 9%);
}

.score-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--score-color, var(--teal));
}

.score-card-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.score-avatar {
  width: 48px;
  height: 48px;
}

.score-card-top strong {
  display: block;
  font-size: 18px;
}

.score-card-top small,
.score-card p,
.score-card-points span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.score-card p {
  margin: 0;
}

.rank-badge {
  width: auto;
  height: 28px;
  border: 1px solid color-mix(in srgb, var(--score-color, var(--teal)) 36%, var(--line));
  padding: 0 10px;
  background: color-mix(in srgb, var(--score-color, var(--teal)) 13%, white);
  color: color-mix(in srgb, var(--score-color, var(--teal)) 80%, var(--ink));
  font-size: 12px;
  white-space: nowrap;
}

.score-card-points {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.score-card .score-card-points b {
  grid-column: auto;
  font-size: 34px;
}

.score-progress {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: rgb(105 104 95 / 13%);
}

.score-progress i {
  display: block;
  width: max(var(--score-progress), 7%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--score-color, var(--teal)), color-mix(in srgb, var(--score-color, var(--teal)) 48%, var(--gold)));
}

.history-graph {
  gap: 18px;
  margin-top: 2px;
}

.chore-line-chart-card,
.period-comparison-card,
.ledger-timeline {
  border: 1px solid color-mix(in srgb, var(--line) 84%, white);
  border-radius: 8px;
  padding: 16px;
  background: rgb(255 253 248 / 78%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 70%);
}

.chore-line-chart-card {
  --chart-avatar-size: 34px;
  min-width: 0;
  margin-top: 20px;
}

.chore-line-chart-card div,
.chore-line-chart-card .chart-header,
.chore-line-chart-card .chore-line-chart,
.chore-line-chart-card .chart-axis,
.chore-line-chart-card .chart-legend {
  overflow: visible;
  height: auto;
  border-radius: 0;
  background: transparent;
}

.chart-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.chart-header h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
}

.chart-header small {
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.chore-line-chart {
  display: grid;
  gap: 6px;
}

.chore-line-chart-card .chore-line-chart-plot {
  margin-inline-end: calc(var(--chart-avatar-size) / 2 + var(--chart-marker-lanes, 0) * (var(--chart-avatar-size) + 4px));
  position: relative;
  height: 220px;
  overflow: visible;
}

.chore-line-chart-card.has-many-endpoints .chore-line-chart {
  overflow-x: auto;
  padding-block: 8px;
}

.chore-line-chart-card.has-many-endpoints .chore-line-chart-plot {
  min-width: 120px;
}

.chore-line-chart-card.has-many-endpoints .chart-axis {
  min-width: calc(120px + var(--chart-avatar-size) / 2 + var(--chart-marker-lanes) * (var(--chart-avatar-size) + 4px));
}

.chore-line-chart svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chore-line-chart line {
  stroke: rgb(105 104 95 / 16%);
  stroke-width: .35;
}

.chore-line-chart path.chore-line-chart-line {
  fill: none;
  stroke: var(--line-color);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.8;
  vector-effect: non-scaling-stroke;
}

.chore-line-chart-connector {
  position: absolute;
  z-index: 1;
  left: 100%;
  top: var(--marker-y);
  width: calc(var(--marker-lane, 0) * (var(--chart-avatar-size) + 4px));
  height: 2.8px;
  transform: translateY(-50%);
  background: var(--line-color);
  pointer-events: none;
}

.chore-line-chart-connector.is-comparison {
  opacity: .22;
}

.chore-line-chart-avatar {
  position: absolute;
  z-index: var(--marker-z, 2);
  left: calc(var(--marker-x) + var(--marker-lane, 0) * (var(--chart-avatar-size) + 4px));
  top: var(--marker-y);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--chart-avatar-size);
  height: var(--chart-avatar-size);
  border: 2px solid var(--line-color);
  border-radius: 999px;
  padding: 2px;
  background: rgb(255 253 248);
  box-shadow: 0 8px 18px rgb(35 28 18 / 16%);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.chore-line-chart-avatar .chart-avatar {
  width: 100%;
  height: 100%;
  border: 0;
  box-shadow: none;
  font-size: 10px;
}

.chart-axis,
.chart-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.chart-legend {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 12px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid color-mix(in srgb, var(--line-color) 28%, var(--line));
  border-radius: 999px;
  padding: 6px 9px;
  background: color-mix(in srgb, var(--line-color) 8%, white);
  color: var(--ink);
}

.chart-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--line-color);
}

.chart-legend b {
  color: var(--muted);
  font-weight: 700;
}

.period-comparison-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgb(255 253 248 / 92%), rgb(255 250 240 / 74%)),
    var(--paper-strong);
}

.period-comparison-card .mini-section-title,
.history-graph .ledger-timeline {
  overflow: visible;
  height: auto;
}

.period-child-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  justify-content: space-between;
  border-radius: 0;
  padding: 0 0 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 76%, white);
  background: transparent;
  color: var(--ink);
}

.history-graph .period-child-heading {
  display: grid;
  overflow: visible;
  height: auto;
  border-radius: 0;
  background: transparent;
}

.period-child-heading > span {
  display: grid;
  gap: 3px;
  min-width: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.1;
}

.period-child-heading > span::before {
  content: "Ajanjaksovertailu";
  color: var(--teal);
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.period-child-tabs,
.history-graph .period-child-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  overflow: visible;
  height: auto;
  align-self: start;
  border: 1px solid color-mix(in srgb, var(--line) 84%, white);
  border-radius: 999px;
  padding: 4px;
  background: rgb(255 255 255 / 70%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 78%);
}

.period-child-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 4px 10px 4px 5px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.period-child-tabs button.is-active {
  border-color: color-mix(in srgb, var(--teal) 44%, var(--line));
  background: color-mix(in srgb, var(--teal) 10%, white);
  color: var(--teal);
  box-shadow: 0 6px 14px rgb(47 111 115 / 12%);
}

.period-child-tabs .mini-avatar {
  width: 24px;
  height: 24px;
}

.period-comparison-card article {
  grid-template-columns: minmax(130px, .28fr) minmax(0, 1fr) 44px;
  gap: 14px;
  padding: 2px 0;
}

.period-comparison-card article span {
  color: var(--ink);
  font-size: 13px;
}

.period-comparison-card article div {
  height: 12px;
  background: rgb(105 104 95 / 11%);
}

.period-comparison-card article strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.ledger-timeline {
  margin-top: 0;
  min-height: 44px;
  align-items: center;
  background: rgb(255 253 248 / 78%);
}

.ledger-timeline .empty-state {
  align-self: center;
  margin: 0;
}

.reward-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgb(215 164 74 / 10%);
}

.reward-track {
  display: flex;
  gap: 8px;
}

.reward-track b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgb(105 104 95 / 18%);
  color: var(--muted);
}

.reward-track b.is-unlocked {
  background: var(--gold);
  color: var(--ink);
}

.reward-level-list {
  display: grid;
  gap: 7px;
}

.reward-level-list form {
  display: grid;
  grid-template-columns: minmax(92px, 120px) minmax(0, 1fr);
  gap: 8px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgb(255 250 240 / 68%);
  color: var(--muted);
}

.reward-level-list .reward-title-field {
  grid-column: 1 / -1;
}

.reward-level-list form.is-unlocked {
  border-color: rgb(47 111 115 / 34%);
  background: rgb(47 111 115 / 10%);
  color: var(--ink);
}

.reward-level-list label {
  display: grid;
  gap: 4px;
}

.reward-level-list label span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.45;
}

.reward-level-list input {
  min-height: 38px;
  padding: 8px 10px;
}

.reward-level-actions {
  display: flex;
  grid-column: 3;
  justify-content: flex-end;
  gap: 6px;
}

.reward-workspace {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgb(255 253 248 / 94%), rgb(255 250 240 / 82%)),
    repeating-linear-gradient(90deg, rgb(47 111 115 / 6%) 0 1px, transparent 1px 22px);
}

.reward-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: start;
}

.reward-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.reward-mode-card {
  display: grid;
  grid-template-columns: auto auto minmax(180px, 240px);
  gap: 12px;
  align-items: end;
  border: 1px solid color-mix(in srgb, var(--teal) 20%, var(--line));
  border-radius: 8px;
  padding: 14px;
  background: rgb(255 253 248 / 84%);
}

.reward-mode-card > span {
  align-self: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
}

.reward-mode-card > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reward-mode-card .compact-field {
  margin: 0;
}

.reward-card {
  gap: 16px;
  border-color: color-mix(in srgb, var(--gold) 32%, var(--line));
  padding: 18px;
  background: linear-gradient(145deg, rgb(255 253 248 / 95%), rgb(246 235 212 / 70%));
}

.reward-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.reward-hero h3 {
  margin: 2px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
}

.reward-hero p {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.reward-score-badge {
  display: grid;
  place-items: center;
  width: 124px;
  min-height: 124px;
  border: 1px solid color-mix(in srgb, var(--teal) 24%, var(--line));
  border-radius: 8px;
  background: rgb(255 250 240 / 86%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 70%);
}

.reward-score-badge strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: .9;
}

.reward-score-badge span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.reward-next-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--teal) 22%, var(--line));
  border-radius: 8px;
  padding: 14px;
  background: rgb(255 250 240 / 78%);
}

.reward-next-card span,
.reward-next-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.reward-next-card strong {
  display: block;
  margin: 3px 0;
  font-size: 20px;
  line-height: 1.15;
}

.reward-next-card > b {
  border-radius: 999px;
  padding: 8px 10px;
  background: color-mix(in srgb, var(--gold) 18%, white);
  color: color-mix(in srgb, var(--gold) 68%, var(--ink));
  font-size: 13px;
}

.reward-next-card i {
  grid-column: 1 / -1;
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgb(105 104 95 / 14%);
}

.reward-next-card i::before {
  content: "";
  display: block;
  width: var(--reward-next-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}

.reward-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
}

.reward-track b {
  display: grid;
  place-items: start;
  width: auto;
  height: auto;
  min-height: 76px;
  border: 1px solid color-mix(in srgb, var(--gold) 26%, var(--line));
  border-radius: 8px;
  padding: 12px;
  background: rgb(255 253 248 / 80%);
}

.reward-track b span {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 32px;
  border-radius: 999px;
  background: rgb(105 104 95 / 13%);
  color: var(--ink);
}

.reward-track b small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.reward-track b.is-unlocked {
  border-color: color-mix(in srgb, var(--teal) 34%, var(--line));
  background: color-mix(in srgb, var(--teal) 10%, white);
}

.reward-track b.is-unlocked span {
  background: var(--teal);
  color: white;
}

.reward-level-list {
  gap: 10px;
}

.reward-level-list .reward-level-card {
  grid-template-columns: minmax(120px, 150px) minmax(0, 1fr) 150px;
  gap: 12px;
  align-items: end;
  padding: 12px;
  background: rgb(255 253 248 / 84%);
}

.reward-level-list .reward-level-card .reward-title-field {
  grid-column: 2 / -1;
}

.reward-level-list .reward-level-card label:not(.reward-title-field) {
  grid-column: 2;
}

.reward-level-list .reward-level-card .reward-level-status {
  grid-row: 1 / span 2;
}

.reward-level-status {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 46px;
  border-radius: 8px;
  padding: 10px;
  background: color-mix(in srgb, var(--gold) 12%, white);
}

.reward-level-status b {
  font-size: 18px;
}

.reward-level-status span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.reward-create-panel {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--teal) 22%, var(--line));
  border-radius: 8px;
  padding: 18px;
  background: rgb(255 253 248 / 92%);
  box-shadow: 0 16px 34px rgb(32 32 28 / 8%);
}

.reward-create-panel h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  line-height: 1.05;
}

.reward-create-panel .reward-level-form {
  grid-template-columns: 1fr;
  margin-top: 0;
}

.reward-create-panel .reward-level-form .reward-title-field,
.reward-create-panel .reward-level-form .form-note {
  grid-column: 1;
}

.reward-create-panel .secondary-button {
  width: 100%;
  min-height: 48px;
}

.reward-empty-board {
  display: grid;
  gap: 4px;
  border: 1px dashed color-mix(in srgb, var(--teal) 32%, var(--line));
  border-radius: 8px;
  padding: 18px;
  background: rgb(255 253 248 / 72%);
}

.reward-empty-board span {
  color: var(--muted);
  line-height: 1.4;
}

.reward-create-divider {
  height: 1px;
  margin: 6px 0 2px;
  background: color-mix(in srgb, var(--line) 78%, white);
}

.streak-bonus-board {
  display: grid;
  gap: 14px;
  border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line));
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgb(255 253 248 / 96%), rgb(255 246 225 / 76%)),
    var(--paper-strong);
}

.streak-bonus-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.streak-bonus-head h3 {
  margin: 2px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.05;
}

.streak-bonus-head p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.42;
}

.streak-bonus-meter {
  display: grid;
  place-items: center;
  min-width: 54px;
  height: 54px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 900;
}

.streak-bonus-list {
  display: grid;
  gap: 10px;
}

.streak-bonus-card {
  display: grid;
  grid-template-columns: minmax(112px, 140px) minmax(0, 1.4fr) minmax(92px, .7fr) minmax(92px, .7fr) auto;
  gap: 10px;
  align-items: end;
  border: 1px solid color-mix(in srgb, var(--line) 86%, white);
  border-radius: 8px;
  padding: 12px;
  background: rgb(255 253 248 / 82%);
}

.streak-bonus-card.is-unlocked {
  border-color: color-mix(in srgb, var(--teal) 34%, var(--line));
  background: color-mix(in srgb, var(--teal) 9%, white);
}

.streak-bonus-status {
  display: grid;
  gap: 4px;
  align-content: center;
  min-height: 46px;
  border-radius: 8px;
  padding: 10px;
  background: color-mix(in srgb, var(--gold) 13%, white);
}

.streak-bonus-status b {
  font-size: 18px;
}

.streak-bonus-status span,
.streak-bonus-card label span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.45;
}

.streak-bonus-card label {
  display: grid;
  gap: 4px;
}

.streak-bonus-card input {
  min-height: 38px;
  padding: 8px 10px;
}

@media (max-width: 1050px) {
  .marketing-header {
    grid-template-columns: minmax(0, 1fr);
  }

  .marketing-nav,
  .marketing-header-actions {
    justify-content: flex-start;
  }

  .pricing-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .price-card.is-featured {
    transform: none;
  }

  .auth-gate {
    grid-template-columns: 1fr;
  }

  .auth-panel {
    position: static;
  }

  .landing-hero,
  .landing-chore-section {
    grid-template-columns: 1fr;
  }

  .week-page-shell {
    grid-template-columns: 1fr;
  }

  .family-command-hero,
  .family-dashboard-layout {
    grid-template-columns: 1fr;
  }

  .reminder-queue-panel {
    position: static;
  }

  .landing-preview {
    max-width: 560px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .rail {
    position: static;
    height: auto;
    padding: 18px 20px;
  }

  .rail-nav,
  .rail-card {
    display: none;
  }

  .metric-strip,
  .approval-grid,
  .checklist-grid,
  .settings-grid,
  .chore-scoreboard,
  .child-today-cards,
  .family-account-grid,
  .dashboard-grid,
  .dashboard-grid.three-col,
  .landing-card-grid,
  .family-flow-grid,
  .landing-trust,
  .inbox-benefit-grid,
  .inbox-option-grid,
  .inbox-allowlist-guide,
  .child-forwarding-flow,
  .help-step {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .help-topic-summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .help-topic-summary .eyebrow,
  .help-topic-description {
    grid-column: 1 / -1;
  }

  .help-topic-toggle {
    grid-column: 2;
    grid-row: 1;
  }

  .settings-brand-card {
    grid-column: auto;
  }

  .settings-tab-panel {
    grid-template-columns: 1fr;
  }

  .inbox-settings-subpanel {
    grid-template-columns: 1fr;
  }

  .filter-log-row,
  .inbox-filter-help {
    grid-template-columns: 1fr;
  }

  .filter-log-actions {
    justify-content: flex-start;
  }

  .settings-inbox-card {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-inbox-card #perheInboxAddress,
  .settings-inbox-card .full-button {
    grid-column: 1 / -1;
  }

  .allowed-service-add-card,
  .allowed-sender-add-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .allowed-service-add-card .secondary-button,
  .allowed-sender-add-card .secondary-button {
    width: 100%;
  }

  .billing-plan-grid {
    grid-template-columns: 1fr;
  }

  .reward-layout,
  .child-command-hero,
  .child-day-tabs,
  .child-dashboard-lower,
  .child-chore-hero,
  .child-chore-progress-board {
    grid-template-columns: 1fr;
  }

  .child-chore-glance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .child-chore-glance .chore-line-chart-card {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .child-day-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .child-week-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .child-week-card {
    padding: 12px;
  }

  .child-week-card header {
    padding: 11px 12px;
  }

  .child-week-item {
    min-height: 0;
  }

  .reward-create-panel {
    position: static;
  }

  .reward-mode-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .reward-mode-card .compact-field {
    grid-column: 1 / -1;
  }

  .streak-bonus-card {
    grid-template-columns: minmax(120px, 150px) minmax(0, 1fr) minmax(90px, .7fr);
  }

  .streak-bonus-card .reward-level-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .auth-gate {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .marketing-header {
    position: static;
    padding: 14px 16px;
  }

  .marketing-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .marketing-nav a,
  .marketing-header-actions a {
    justify-content: center;
  }

  .marketing-header-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .marketing-header-actions .primary-button,
  .marketing-header-actions .ghost-button {
    min-width: 0;
    width: 100%;
    white-space: normal;
  }

  .marketing-page {
    padding: 24px 16px;
  }

  .landing-hero {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: auto;
    padding: 28px 18px;
    overflow: clip;
    background:
      linear-gradient(180deg, rgb(255 250 240 / 96%) 0%, rgb(255 250 240 / 82%) 58%, rgb(255 250 240 / 30%) 100%),
      url("/assets/landing-family-command.png") center right 24% / cover no-repeat;
    background:
      linear-gradient(180deg, rgb(255 250 240 / 96%) 0%, rgb(255 250 240 / 82%) 58%, rgb(255 250 240 / 30%) 100%),
      image-set(url("/assets/landing-family-command.webp") type("image/webp"), url("/assets/landing-family-command.png") type("image/png")) center right 24% / cover no-repeat;
  }

  .landing-hero .landing-preview {
    margin-left: 0;
  }

  .landing-hero .auth-copy,
  .landing-hero .lead {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .landing-hero .auth-copy h1 {
    max-width: 100%;
    font-size: clamp(30px, 8vw, 36px);
    line-height: 1.04;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .landing-hero .lead {
    font-size: 16px;
    line-height: 1.48;
  }

  .landing-preview {
    width: 100%;
    max-width: 100%;
  }

  .landing-header {
    display: grid;
  }

  .landing-actions {
    display: grid;
  }

  .landing-actions a,
  .landing-login-link {
    width: 100%;
  }

  .landing-card-grid,
  .chore-child-progress-grid,
  .family-flow-grid,
  .family-dashboard-actions,
  .landing-trust {
    grid-template-columns: 1fr;
  }

  .chore-progress-preview {
    padding: 14px;
  }

  .chore-preview-topline,
  .chore-chart-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .chore-mini-chart {
    height: 104px;
  }

  .auth-brand {
    margin-bottom: 28px;
  }

  .app-shell,
  .rail,
  .workspace {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .workspace {
    padding: 20px 14px 150px;
    overflow-x: clip;
  }

  .topbar,
  .panel-header,
  .section-heading {
    display: grid;
  }

  .layout-grid,
  .layout-grid.wide-left {
    grid-template-columns: 1fr;
  }

  .metric-strip,
  .approval-grid,
  .account-grid,
  .settings-grid,
  .checklist-grid,
  .compact-form,
  .user-editor-list,
  .user-edit-card,
  .calendar-entry-form,
  .chore-form,
  .reward-level-form,
  .reward-mode-card,
  .reward-hero,
  .reward-next-card,
  .chore-scoreboard,
  .child-today-cards,
  .child-command-hero,
  .child-dashboard-lower,
  .family-command-hero,
  .family-child-command-grid,
  .family-dashboard-layout,
  .chores-hero,
  .family-overview,
  .family-account-grid,
  .dashboard-grid,
  .dashboard-grid.three-col,
  .action-grid,
  .inbox-benefit-grid,
  .inbox-option-grid,
  .inbox-allowlist-guide,
  .child-forwarding-flow,
  .compact-help-steps .help-step,
  .help-step,
  .mock-gmail-shell,
  .mock-lessons {
    grid-template-columns: 1fr;
  }

  .help-topic-summary {
    grid-template-columns: minmax(0, 1fr) 40px;
    align-items: start;
  }

  .help-topic-heading {
    grid-column: 1 / -1;
  }

  .help-topic-toggle {
    grid-column: 2;
    grid-row: 1;
  }

  .help-topic-subtopics {
    padding: 10px 16px 16px;
  }

  .family-command-hero {
    padding: 20px 16px;
  }

  .family-section-heading {
    display: grid;
    gap: 6px;
  }

  .family-section-heading strong {
    max-width: none;
    text-align: left;
    font-size: 26px;
  }

  .family-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .family-child-card header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .family-child-card header b {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .family-child-rows article {
    grid-template-columns: 1fr;
  }

  .family-child-rows small {
    grid-column: 1;
  }

  .calendar-entry-type,
  .calendar-target-list,
  .calendar-reminder-custom {
    grid-template-columns: 1fr;
  }

  .child-command-hero {
    padding: 18px;
  }

  .child-chore-hero {
    padding: 16px;
  }

  .child-chore-hero-person {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }

  .child-chore-hero-avatar {
    width: 72px;
    height: 72px;
  }

  .child-chore-hero h2 {
    font-size: clamp(26px, 8vw, 34px);
  }

  .child-chore-rank {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    justify-self: stretch;
    text-align: left;
  }

  .child-chore-rank strong {
    font-size: 24px;
  }

  .workspace:has(#chores:not([hidden]) #childChoreDashboard:not([hidden])) .topbar h1 {
    display: none;
  }

  .child-command-avatar {
    width: 88px;
    height: 88px;
  }

  .child-today-card {
    min-height: 0;
  }

  .help-topic-summary {
    padding: 16px;
  }

  .help-topic-subtopics {
    padding: 10px 16px 16px;
  }

  .help-topic-body {
    padding: 16px;
  }

  .help-topic-heading > strong {
    font-size: 24px;
  }

  .user-edit-card .password-field {
    grid-column: 1 / -1;
  }

  .user-edit-actions {
    grid-template-columns: 1fr;
  }

  .custom-color-picker {
    grid-template-columns: 1fr;
  }

  .custom-color-options {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .mock-wilma-nav,
  .mock-week {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mock-wilma-nav {
    display: grid;
  }

  .mock-wilma-nav b {
    grid-column: 1 / -1;
  }

  .week-toolbar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "nav"
      "filter"
      "view";
  }

  .week-nav {
    grid-template-columns: minmax(82px, 1fr) minmax(124px, 1fr) minmax(82px, 1fr);
  }

  .week-filter {
    max-width: none;
    justify-self: stretch;
  }

  .week-layout-toggle {
    justify-self: stretch;
  }

  .period-child-heading {
    grid-template-columns: 1fr;
  }

  .period-child-tabs,
  .history-graph .period-child-tabs {
    width: fit-content;
    max-width: 100%;
    justify-content: flex-start;
  }

  .period-comparison-card article {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 12px;
  }

  .period-comparison-card article div {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .period-comparison-card article strong {
    grid-column: 2;
    grid-row: 1;
  }

  .week-nav #weekTodayButton {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
  }

  .week-nav #weekPrevButton {
    grid-column: 1;
    grid-row: 2;
    justify-self: stretch;
  }

  .week-range-card {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    justify-self: stretch;
  }

  .week-nav #weekNextButton {
    grid-column: 3;
    grid-row: 2;
    justify-self: stretch;
  }

  .week-filter {
    max-width: none;
    justify-self: stretch;
  }

  .settings-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-tabs button,
  .preset-calendar-feed,
  .calendar-feed-row {
    width: 100%;
  }

  .calendar-feed-form,
  .calendar-export-subscription,
  .preset-calendar-feed,
  .calendar-feed-row {
    grid-template-columns: 1fr;
  }

  .calendar-export-actions {
    min-width: 0;
  }

  .week-panel-actions,
  .week-layout-toggle {
    justify-self: stretch;
  }

  .week-panel-actions button,
  .week-layout-toggle > div {
    width: 100%;
  }

  .timeline.week-columns {
    grid-template-columns: repeat(7, minmax(128px, 1fr));
    overflow-x: auto;
  }

  .mobile-nav a {
    padding: 9px 3px;
    font-size: 11px;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .chore-form-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .chore-points-field {
    max-width: none;
  }

  .chore-form .primary-button.full-button {
    justify-self: stretch;
    width: 100%;
  }

  .child-chore-card,
  .child-chore-glance,
  .child-action-chore-grid,
  .child-streak-bonus-chips,
  .chore-approval-card,
  .allowance-row,
  .history-graph article,
  .ledger-timeline article {
    grid-template-columns: 1fr;
  }

  .child-chore-summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .chore-streak-spotlight {
    grid-template-columns: 1fr;
  }

  .streak-medal {
    width: 52px;
    height: 52px;
  }

  .chore-open-indicator {
    grid-column: auto;
    justify-self: end;
    min-width: 58px;
  }

  .child-chore-detail {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px;
  }

  .chore-detail-actions {
    justify-content: flex-start;
  }

  .all-chore-card-head,
  .all-chore-detail-grid {
    grid-template-columns: 1fr;
  }

  .all-chore-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .all-chore-actions {
    justify-content: flex-start;
  }

  .all-chore-panel-actions {
    justify-content: flex-start;
  }

  .reward-level-list form {
    grid-template-columns: 1fr;
  }

  .reward-card,
  .reward-create-panel,
  .reward-next-card {
    padding: 14px;
  }

  .reward-score-badge {
    width: 100%;
    min-height: 94px;
  }

  .reward-track {
    grid-template-columns: 1fr;
  }

  .reward-level-list .reward-level-card,
  .reward-level-list .reward-level-card .reward-title-field {
    grid-template-columns: 1fr;
    grid-column: 1;
  }

  .reward-level-list .reward-level-card label:not(.reward-title-field),
  .reward-level-list .reward-level-card .reward-level-status {
    grid-column: 1;
    grid-row: auto;
  }

  .streak-bonus-head,
  .streak-bonus-card {
    grid-template-columns: 1fr;
  }

  .streak-bonus-meter {
    justify-self: start;
  }

  .reward-level-actions {
    grid-column: 1;
    justify-content: stretch;
  }

  .reward-level-actions button {
    flex: 1;
  }

  .settings-inbox-card,
  .settings-inbox-senders-card,
  .settings-brand-card,
  .audit-card,
  .user-edit-panel {
    grid-column: auto;
  }

  .settings-inbox-card {
    grid-template-columns: 1fr;
  }

  .inbox-address-strip,
  .allowed-sender-row {
    grid-template-columns: 1fr;
  }

  .inbox-address-strip .ghost-button,
  .allowed-sender-row .ghost-button {
    width: 100%;
  }

  .allowed-user-sender-toggle {
    justify-content: flex-start;
    width: 100%;
  }

  .allowed-service-add-card,
  .allowed-sender-add-card {
    grid-template-columns: 1fr;
  }

  .inbox-original-header,
  .inbox-suggestion-item {
    grid-template-columns: 1fr;
  }

  .inbox-original-header {
    align-items: flex-start;
  }

  .inbox-original-toggle {
    width: max-content;
  }

  .inbox-suggestion-meta {
    justify-items: start;
    text-align: left;
  }

  .billing-hero {
    flex-direction: column;
    gap: 12px;
  }

  .billing-actions {
    display: grid;
  }

  .billing-price-grid {
    grid-template-columns: 1fr;
  }

  .stripe-detail-grid,
  .stripe-invoice-row {
    grid-template-columns: 1fr;
  }

  .stripe-invoice-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .stripe-invoice-actions {
    justify-content: flex-start;
  }

  .profile-settings-card .account-form {
    grid-template-columns: 1fr;
  }

  .profile-avatar-panel {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .wilma-school-day summary {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .inbox-date-filters {
    width: 100%;
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
    justify-content: flex-start;
  }

  .inbox-ticket-filters,
  .inbox-filter-group,
  .inbox-filter-buttons,
  .inbox-filter-tools {
    min-width: 0;
    max-width: 100%;
  }

  .inbox-ticket-filters {
    grid-template-columns: 1fr;
  }

  .inbox-filter-tools {
    width: 100%;
    min-width: 0;
    justify-items: start;
  }

  .inbox-tag-filters {
    width: 100%;
  }

  .inbox-visibility-filters {
    justify-content: flex-start;
  }

  .inbox-pagination,
  .inbox-pagination-buttons {
    justify-content: flex-start;
  }

  .wilma-message-ticket {
    padding: 14px 12px;
  }

  .wilma-ticket-header {
    gap: 10px;
  }

  .wilma-message-ticket h3 {
    font-size: 21px;
    line-height: 1.18;
  }

  .wilma-ticket-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
  }

  .wilma-ticket-meta dd {
    align-items: flex-start;
    font-size: 16px;
    line-height: 1.25;
  }

  .inbox-ticket-target-button {
    min-height: 44px;
    padding-block: 6px;
  }

  .wilma-ticket-actions {
    gap: 8px;
  }

  .wilma-ticket-actions .compact-button,
  .wilma-ticket-actions .inbox-reply-summary {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .wilma-ticket-actions .inbox-reply-summary {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .wilma-lesson-list {
    margin-left: 0;
    padding-left: 14px;
  }

  .school-meal-details {
    margin-left: 0;
    padding-left: 14px;
  }

  .school-meal-details article {
    grid-template-columns: 1fr;
  }

  .mobile-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }

  .mobile-nav a.nav-section-break {
    margin-left: 0;
    box-shadow: none;
  }
}

/* Reference style pass: keep the existing dynamic app flows, but make every
   primary workspace surface share the same warm paper, green, and serif system. */
body:not(.is-native-app) {
  --reference-sheet: rgb(255 250 240 / 92%);
  --reference-sheet-strong: rgb(255 253 247 / 96%);
  --reference-sheet-soft: rgb(248 244 232 / 86%);
  --reference-green: #123e36;
  --reference-teal: #2f6f73;
  --reference-line: rgb(186 176 156 / 58%);
  --reference-shadow: 0 24px 70px rgb(34 32 26 / 13%);
  --reference-inner-shadow: inset 0 1px 0 rgb(255 255 255 / 72%);
  --reference-radius: 18px;
}

body:not(.is-native-app) .workspace {
  gap: 28px;
  padding: 30px 28px 104px;
}

body:not(.is-native-app) .topbar {
  align-items: end;
  border-bottom: 1px solid rgb(186 176 156 / 34%);
  padding-bottom: 22px;
}

body:not(.is-native-app) .topbar h1 {
  max-width: 780px;
  color: #1f201c;
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: .9;
}

body:not(.is-native-app) .topbar .eyebrow,
body:not(.is-native-app) .panel .eyebrow,
body:not(.is-native-app) .page-intro .eyebrow,
body:not(.is-native-app) .inbox-page-summary::before {
  color: var(--reference-teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

body:not(.is-native-app) input:where(:not([type="checkbox"], [type="radio"], [type="hidden"], [type="range"], [type="color"], [type="file"], [type="button"], [type="submit"], [type="reset"], [type="image"])),
body:not(.is-native-app) select,
body:not(.is-native-app) textarea {
  min-height: 46px;
  border-color: var(--reference-line);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 70%);
}

body:not(.is-native-app) input:where(:not([type="checkbox"], [type="radio"], [type="hidden"], [type="range"], [type="color"], [type="file"], [type="button"], [type="submit"], [type="reset"], [type="image"])),
body:not(.is-native-app) textarea {
  background: rgb(255 253 247 / 88%);
}

body:not(.is-native-app) select {
  background-color: rgb(255 253 247 / 88%);
}

body:not(.is-native-app) textarea {
  padding-block: 12px;
}

body:not(.is-native-app) .primary-button,
body:not(.is-native-app) .secondary-button,
body:not(.is-native-app) .ghost-button,
body:not(.is-native-app) .icon-button,
body:not(.is-native-app) .compact-button {
  min-height: 46px;
  border-radius: 14px;
  font-weight: 700;
}

body:not(.is-native-app) .primary-button {
  background: var(--reference-green);
  color: #fffaf0;
  box-shadow: 0 12px 26px rgb(18 62 54 / 15%);
}

body:not(.is-native-app) .secondary-button {
  background: #f2c35c;
  color: #332616;
  box-shadow: 0 12px 28px rgb(215 164 74 / 16%);
}

body:not(.is-native-app) .ghost-button {
  border-color: var(--reference-line);
  background: rgb(255 253 247 / 76%);
}

body:not(.is-native-app) .metric-strip article,
body:not(.is-native-app) .panel,
body:not(.is-native-app) .suggestion-card,
body:not(.is-native-app) .product-card,
body:not(.is-native-app) .status-card,
body:not(.is-native-app) .check-item,
body:not(.is-native-app) .wilma-message-ticket,
body:not(.is-native-app) .timeline-item,
body:not(.is-native-app) .week-column-card,
body:not(.is-native-app) .member-list article,
body:not(.is-native-app) .user-editor-card,
body:not(.is-native-app) .chore-card,
body:not(.is-native-app) .reward-mode-card,
body:not(.is-native-app) .reward-level-card,
body:not(.is-native-app) .allowed-sender-row,
body:not(.is-native-app) .calendar-feed-row {
  border-color: var(--reference-line);
  border-radius: var(--reference-radius);
  background:
    linear-gradient(135deg, var(--reference-sheet-strong) 0%, var(--reference-sheet) 58%, var(--reference-sheet-soft) 100%);
  box-shadow: var(--reference-shadow), var(--reference-inner-shadow);
}

body:not(.is-native-app) .panel,
body:not(.is-native-app) .product-card {
  padding: clamp(20px, 2.3vw, 30px);
}

body:not(.is-native-app) .panel h2,
body:not(.is-native-app) .section-heading h2,
body:not(.is-native-app) .product-card h2,
body:not(.is-native-app) .page-intro h2,
body:not(.is-native-app) .chores-hero h2,
body:not(.is-native-app) .family-command-hero h2 {
  color: #20201c;
  font-family: Georgia, "Times New Roman", serif;
  line-height: .96;
}

body:not(.is-native-app) .panel h2,
body:not(.is-native-app) .section-heading h2,
body:not(.is-native-app) .product-card h2 {
  font-size: clamp(28px, 2.6vw, 42px);
}

body:not(.is-native-app) .panel p,
body:not(.is-native-app) .product-card p,
body:not(.is-native-app) .page-intro p,
body:not(.is-native-app) .inbox-page-summary,
body:not(.is-native-app) .empty-state,
body:not(.is-native-app) .form-note {
  line-height: 1.58;
}

body:not(.is-native-app) .family-command-hero,
body:not(.is-native-app) .chores-hero {
  border-color: color-mix(in srgb, var(--reference-teal) 24%, var(--reference-line));
  border-radius: 22px;
  background:
    radial-gradient(circle at 94% 12%, rgb(47 111 115 / 11%), transparent 31%),
    linear-gradient(135deg, rgb(255 253 247 / 98%), rgb(248 244 232 / 90%));
  box-shadow: var(--reference-shadow), var(--reference-inner-shadow);
}

body:not(.is-native-app) .family-command-hero {
  padding: clamp(26px, 3.5vw, 44px);
}

body:not(.is-native-app) .family-command-hero h2,
body:not(.is-native-app) .chores-hero h2 {
  max-width: 820px;
  font-size: clamp(42px, 5.4vw, 76px);
}

body:not(.is-native-app) .metric-strip {
  gap: 14px;
}

body:not(.is-native-app) .metric-strip article {
  min-height: 124px;
  padding: 18px;
}

body:not(.is-native-app) .metric-strip strong {
  color: #20201c;
  font-size: clamp(38px, 4.2vw, 56px);
  line-height: .9;
}

body:not(.is-native-app) .week-page-shell {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 22px;
}

body:not(.is-native-app) .week-panel.panel,
body:not(.is-native-app) .reminder-queue-panel {
  border-radius: 22px;
  padding: clamp(22px, 2.4vw, 32px);
}

body:not(.is-native-app) .week-panel .panel-header h2,
body:not(.is-native-app) .reminder-queue-panel h2 {
  font-size: clamp(32px, 3.2vw, 48px);
}

body:not(.is-native-app) .week-toolbar,
body:not(.is-native-app) .week-layout-toggle > div,
body:not(.is-native-app) .week-range-card,
body:not(.is-native-app) .chores-tabs,
body:not(.is-native-app) .settings-tabs,
body:not(.is-native-app) .inbox-ticket-filters,
body:not(.is-native-app) .inbox-tag-filters,
body:not(.is-native-app) .inbox-visibility-filters,
body:not(.is-native-app) .chore-stats-tabs,
body:not(.is-native-app) .settings-subtabs,
body:not(.is-native-app) .inbox-settings-tabs {
  border-color: var(--reference-line);
  border-radius: 16px;
  background: rgb(255 253 247 / 76%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 68%);
}

body:not(.is-native-app) .chores-tabs button,
body:not(.is-native-app) .settings-tabs button,
body:not(.is-native-app) .inbox-settings-tabs button,
body:not(.is-native-app) .chore-stats-tabs button,
body:not(.is-native-app) .week-layout-toggle button {
  border-radius: 13px;
  font-weight: 700;
}

body:not(.is-native-app) .chores-tabs button.is-active,
body:not(.is-native-app) .settings-tabs button.is-active,
body:not(.is-native-app) .inbox-settings-tabs button.is-active,
body:not(.is-native-app) .chore-stats-tabs button.is-active,
body:not(.is-native-app) .week-layout-toggle button.is-active {
  background: var(--reference-green);
  color: #fffaf0;
  box-shadow: 0 10px 22px rgb(18 62 54 / 16%);
}

body:not(.is-native-app) .inbox-messages-page {
  gap: 20px;
}

body:not(.is-native-app) .inbox-page-summary,
body:not(.is-native-app) .help-page .page-intro {
  position: relative;
  min-height: 148px;
  border: 1px solid var(--reference-line);
  border-radius: 22px;
  padding: 30px 34px 30px 110px;
  background:
    radial-gradient(circle at 96% 10%, rgb(47 111 115 / 10%), transparent 34%),
    linear-gradient(135deg, rgb(255 253 247 / 98%), rgb(248 244 232 / 90%));
  box-shadow: var(--reference-shadow), var(--reference-inner-shadow);
  color: var(--muted);
  font-size: 18px;
}

body:not(.is-native-app) .inbox-page-summary::before,
body:not(.is-native-app) .help-page .page-intro::before {
  position: absolute;
  top: 28px;
  left: 30px;
  width: 54px;
  height: 54px;
  border: 1px solid rgb(186 176 156 / 42%);
  border-radius: 16px;
  background-color: #fffaf0;
  background-position: center;
  background-size: cover;
  box-shadow: 0 14px 28px rgb(34 32 26 / 12%);
  content: "";
}

body:not(.is-native-app) .inbox-page-summary::before {
  background-image: url("/assets/nav/inboxmessages.png");
}

body:not(.is-native-app) .help-page .page-intro::before {
  background-image: url("/assets/nav/help.png");
}

body:not(.is-native-app) .inbox-ticket-list {
  display: grid;
  gap: 16px;
}

body:not(.is-native-app) .inbox-ticket-list:empty,
body:not(.is-native-app) .inbox-ticket-list .empty-state {
  border: 1px dashed rgb(47 111 115 / 24%);
  border-radius: 18px;
  padding: 22px;
  background: rgb(255 253 247 / 62%);
}

body:not(.is-native-app) .help-topic.panel {
  overflow: clip;
}

body:not(.is-native-app) .help-topic-summary {
  padding: 22px 24px;
}

body:not(.is-native-app) .help-topic-heading strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1;
}

body:not(.is-native-app) .help-topic-toggle,
body:not(.is-native-app) .help-subtopic-toggle {
  background: rgb(47 111 115 / 12%);
  color: var(--reference-teal);
}

body:not(.is-native-app) .help-subtopic-panel,
body:not(.is-native-app) .inbox-benefit-grid article,
body:not(.is-native-app) .inbox-option-grid article,
body:not(.is-native-app) .help-step {
  border-color: var(--reference-line);
  border-radius: 16px;
  background: rgb(255 253 247 / 72%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 62%);
}

body:not(.is-native-app) .family-overview {
  grid-template-columns: minmax(0, 1fr);
}

body:not(.is-native-app) .family-panel {
  min-height: 170px;
}

body:not(.is-native-app) .member-list,
body:not(.is-native-app) .user-editor-list,
body:not(.is-native-app) .invite-list {
  gap: 14px;
}

body:not(.is-native-app) .family-account-grid {
  align-items: start;
}

body:not(.is-native-app) .user-admin-panel,
body:not(.is-native-app) #pendingInvitesPanel,
body:not(.is-native-app) .user-edit-panel,
body:not(.is-native-app) .profile-settings-card,
body:not(.is-native-app) .settings-brand-card,
body:not(.is-native-app) .settings-inbox-card,
body:not(.is-native-app) .settings-inbox-senders-card,
body:not(.is-native-app) .settings-billing-card,
body:not(.is-native-app) .audit-card {
  border-radius: 22px;
}

body:not(.is-native-app) .settings-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 7px;
}

body:not(.is-native-app) .settings-tabs button {
  min-height: 48px;
  padding: 10px 12px;
  text-align: center;
}



@media (max-width: 980px) {
  body:not(.is-native-app) .topbar {
    align-items: start;
  }

  body:not(.is-native-app) .week-page-shell,
  body:not(.is-native-app) .layout-grid,
  body:not(.is-native-app) .layout-grid.wide-left {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.is-native-app) .settings-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body:not(.is-native-app) .workspace {
    padding-inline: 18px;
  }

  body:not(.is-native-app) .topbar h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  body:not(.is-native-app) .inbox-page-summary,
  body:not(.is-native-app) .help-page .page-intro {
    padding: 96px 20px 22px;
  }

  body:not(.is-native-app) .inbox-page-summary::before,
body:not(.is-native-app) .help-page .page-intro::before {
    top: 22px;
    left: 20px;
  }
}

/* Cartoon reference redesign: structural visual system based on the supplied Askareet reference. */
body:not(.is-native-app) {
  --cartoon-ink: #20211d;
  --cartoon-muted: #6d6b61;
  --cartoon-paper: #fffaf0;
  --cartoon-line: rgb(203 190 166 / 72%);
  --cartoon-teal: #0f8c86;
  --cartoon-teal-dark: #08766f;
  --cartoon-gold: #f4ad16;
  --cartoon-green: #4ca756;
  --cartoon-rail: #171d19;
  --cartoon-rail-2: #22251d;
  --cartoon-radius: 16px;
  --cartoon-shadow: 0 18px 42px rgb(40 31 17 / 12%);
  background:
    linear-gradient(rgb(226 214 190 / 28%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(226 214 190 / 28%) 1px, transparent 1px),
    radial-gradient(circle at 80% 12%, rgb(15 140 134 / 7%), transparent 36%),
    var(--cartoon-paper);
  background-size: 34px 34px, 34px 34px, auto, auto;
  color: var(--cartoon-ink);
}

body:not(.is-native-app) .app-shell,
body:not(.is-native-app) .workspace {
  background: transparent;
}

body:not(.is-native-app) .rail {
  width: 244px;
  background:
    radial-gradient(circle at 26% 8%, rgb(77 166 157 / 15%), transparent 28%),
    linear-gradient(145deg, var(--cartoon-rail), var(--cartoon-rail-2));
  border-right: 1px solid rgb(255 255 255 / 7%);
  box-shadow: 18px 0 40px rgb(24 29 24 / 10%);
}

body:not(.is-native-app) .app-brand {
  align-items: flex-start;
  gap: 8px;
  padding: 34px 18px 22px;
}

body:not(.is-native-app) .brand-logo-image-desktop {
  width: 156px;
  max-width: 100%;
  filter: drop-shadow(0 2px 0 rgb(0 0 0 / 18%));
}

body:not(.is-native-app) .brand-tagline {
  color: #7cf3df;
  font-size: 13px;
  font-weight: 800;
  margin-left: 54px;
  margin-top: -10px;
}

body:not(.is-native-app) .rail-nav {
  gap: 10px;
  padding: 12px 14px;
}

body:not(.is-native-app) .rail-nav a,
body:not(.is-native-app) .mobile-nav a {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 54px;
  color: #fff9ed;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

body:not(.is-native-app) .rail-nav a {
  border-radius: 13px;
  padding: 9px 14px;
}

body:not(.is-native-app) .rail-nav a small {
  grid-column: 2;
  color: #ffc84a;
  font-size: 12px;
  font-weight: 900;
}

body:not(.is-native-app) .rail-nav a.is-active {
  background: linear-gradient(135deg, #149b95, #0c7873);
  color: white;
  box-shadow: 0 12px 24px rgb(0 0 0 / 22%);
}

body:not(.is-native-app) .rail-nav a::before,
body:not(.is-native-app) .mobile-nav a::before {
  content: none;
  display: none;
}

body:not(.is-native-app) .nav-section-label {
  color: rgb(255 249 237 / 62%);
  letter-spacing: .12em;
}

body:not(.is-native-app) .ref-nav-icon,
html.is-native-app.is-android-app .ref-nav-icon {
  order: -1;
  width: 40px;
  height: 40px;
  border-radius: 0;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  filter: drop-shadow(0 2px 4px rgb(0 0 0 / 30%));
}

body:not(.is-native-app) .ref-nav-icon.is-chores,
html.is-native-app.is-android-app .ref-nav-icon.is-chores { background-image: url("/assets/point-coin-v1.webp"); }
body:not(.is-native-app) .ref-nav-icon.is-week,
html.is-native-app.is-android-app .ref-nav-icon.is-week { background-image: url("/assets/reference-redesign/nav-cartoon/week.png"); }
body:not(.is-native-app) .ref-nav-icon.is-inbox,
html.is-native-app.is-android-app .ref-nav-icon.is-inbox { background-image: url("/assets/reference-redesign/nav-cartoon/inboxmessages.png"); }
body:not(.is-native-app) .ref-nav-icon.is-family,
html.is-native-app.is-android-app .ref-nav-icon.is-family { background-image: url("/assets/reference-redesign/nav-cartoon/family.png"); }
body:not(.is-native-app) .ref-nav-icon.is-dashboard,
html.is-native-app.is-android-app .ref-nav-icon.is-dashboard { background-image: url("/assets/reference-redesign/nav-cartoon/dashboard.png"); }
body:not(.is-native-app) .ref-nav-icon.is-settings,
html.is-native-app.is-android-app .ref-nav-icon.is-settings { background-image: url("/assets/reference-redesign/nav-cartoon/settings.png"); }
body:not(.is-native-app) .ref-nav-icon.is-help,
html.is-native-app.is-android-app .ref-nav-icon.is-help { background-image: url("/assets/reference-redesign/nav-cartoon/help.png"); }

body:not(.is-native-app) .rail-card {
  margin: auto 14px 18px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 14px;
  background: rgb(255 255 255 / 8%);
  color: white;
}

body:not(.is-native-app) .rail-card .eyebrow {
  color: #58d9cf;
}

body:not(.is-native-app) .rail-button {
  background: linear-gradient(135deg, #0d918a, #08756f);
  color: #fff;
}

body:not(.is-native-app) .workspace {
  padding: 28px 36px 92px;
  max-width: none;
}

body:not(.is-native-app) .topbar {
  align-items: start;
  border-bottom: 1px solid rgb(203 190 166 / 52%);
  margin-bottom: 18px;
  padding-bottom: 18px;
}

body:not(.is-native-app) .topbar h1,
body:not(.is-native-app) .child-chore-section-heading h3,
body:not(.is-native-app) .panel h2,
body:not(.is-native-app) .page-intro h2 {
  color: var(--cartoon-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
  letter-spacing: 0;
}

body:not(.is-native-app) .topbar h1 {
  font-size: clamp(50px, 5vw, 82px);
  line-height: .9;
}

body:not(.is-native-app) .topbar h1::after {
  content: "☆";
  display: inline-block;
  margin-left: 12px;
  color: var(--cartoon-gold);
  font-family: Georgia, serif;
  font-size: .44em;
  transform: rotate(-18deg) translateY(-.25em);
}

body:not(.is-native-app) .topbar h1::after {
  content: none;
  display: none;
}

body:not(.is-native-app) .topbar .eyebrow,
body:not(.is-native-app) .eyebrow {
  color: #27777b;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .13em;
}

body:not(.is-native-app) .session-card {
  border: 1px solid var(--cartoon-line);
  border-radius: 13px;
  background: rgb(255 253 247 / 86%);
  box-shadow: 0 6px 18px rgb(38 31 20 / 7%);
}

body:not(.is-native-app) .panel,
body:not(.is-native-app) .metric-strip article,
body:not(.is-native-app) .week-column-card,
body:not(.is-native-app) .wilma-message-ticket,
body:not(.is-native-app) .member-list article,
body:not(.is-native-app) .user-editor-card,
body:not(.is-native-app) .settings-card,
body:not(.is-native-app) .route-card,
body:not(.is-native-app) .suggestion-card,
body:not(.is-native-app) .timeline-item,
body:not(.is-native-app) .calendar-feed-row {
  border: 1px solid var(--cartoon-line);
  border-radius: var(--cartoon-radius);
  background: linear-gradient(135deg, rgb(255 253 247 / 94%), rgb(249 244 234 / 90%));
  box-shadow: var(--cartoon-shadow), inset 0 1px 0 rgb(255 255 255 / 78%);
}

body:not(.is-native-app) [data-page] > .panel:first-child::before,
body:not(.is-native-app) .page-intro::after {
  content: "";
  display: block;
  float: right;
  width: min(250px, 34vw);
  aspect-ratio: 1.46;
  margin: -8px 0 16px 24px;
  border-radius: 18px;
  background-image: url("/assets/reference-redesign/page-illustrations-sheet.png?v=1");
  background-size: 300% 200%;
  background-position: 0 0;
  box-shadow: 0 14px 30px rgb(40 31 17 / 10%);
}

body:not(.is-native-app) [data-page="week"] > .panel:first-child::before { background-position: 50% 0; }
body:not(.is-native-app) [data-page="inboxmessages"] > .panel:first-child::before { background-position: 100% 0; }
body:not(.is-native-app) [data-page="help"] > .panel:first-child::before { background-position: 0 100%; }
body:not(.is-native-app) [data-page="family"] > .panel:first-child::before { background-position: 50% 100%; }
body:not(.is-native-app) [data-page="settings"] > .panel:first-child::before { background-position: 100% 100%; }

body:not(.is-native-app) .primary-button,
body:not(.is-native-app) .chore-done-button {
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #0fa09a, #08766f);
  color: #fff;
  box-shadow: 0 10px 20px rgb(7 118 111 / 24%);
}

body:not(.is-native-app) .secondary-button,
body:not(.is-native-app) .ghost-button,
body:not(.is-native-app) input:where(:not([type="checkbox"], [type="radio"], [type="hidden"], [type="range"], [type="color"], [type="file"], [type="button"], [type="submit"], [type="reset"], [type="image"])),
body:not(.is-native-app) select,
body:not(.is-native-app) textarea {
  border-color: var(--cartoon-line);
  border-radius: 12px;
}

body:not(.is-native-app) .secondary-button,
body:not(.is-native-app) .ghost-button,
body:not(.is-native-app) input:where(:not([type="checkbox"], [type="radio"], [type="hidden"], [type="range"], [type="color"], [type="file"], [type="button"], [type="submit"], [type="reset"], [type="image"])),
body:not(.is-native-app) textarea {
  background: rgb(255 253 247 / 88%);
}

body:not(.is-native-app) select {
  background-color: rgb(255 253 247 / 88%);
}

body:not(.is-native-app) .reference-child-switcher {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr)) minmax(200px, auto);
  align-items: center;
  gap: 16px;
  margin: -6px 0 20px;
}

body:not(.is-native-app) .reference-child-switcher button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 66px;
  border: 1px solid var(--cartoon-line);
  border-radius: 13px;
  background: rgb(255 253 247 / 86%);
  color: var(--cartoon-ink);
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 9px 22px rgb(34 30 22 / 7%);
}

body:not(.is-native-app) .reference-child-switcher button.is-active {
  border-color: #0d918a;
  box-shadow: 0 0 0 2px rgb(15 140 134 / 20%), 0 12px 26px rgb(15 140 134 / 12%);
}

body:not(.is-native-app) .reference-chip-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
}

body:not(.is-native-app) .reference-greeting-card {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  min-height: 66px;
  border: 1px solid var(--cartoon-line);
  border-radius: 13px;
  background: rgb(255 253 247 / 86%);
  box-shadow: 0 9px 22px rgb(34 30 22 / 7%);
}

body:not(.is-native-app) .reference-greeting-card strong,
body:not(.is-native-app) .reference-greeting-card small {
  display: block;
}

body:not(.is-native-app) .reference-sun {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffbe24 40%, transparent 42%);
  box-shadow: 0 0 0 6px rgb(244 173 22 / 18%);
}

body:not(.is-native-app) .reference-chores-hero {
  display: grid;
  grid-template-columns: 210px minmax(480px, 1fr) minmax(310px, .58fr);
  align-items: center;
  gap: 18px;
  min-height: 244px;
  margin-bottom: 16px;
  padding: 22px 22px 22px 28px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 12% 35%, rgb(255 255 255 / 20%), transparent 28%),
    linear-gradient(135deg, #159b97, #08756e);
  box-shadow: 0 18px 38px rgb(7 118 111 / 22%);
}

body:not(.is-native-app) .reference-hero-avatar-wrap {
  position: relative;
  display: grid;
  place-items: center;
}

body:not(.is-native-app) .reference-hero-avatar {
  width: 184px;
  height: 184px;
  border: 8px solid #fffdf4;
  border-radius: 50%;
  box-shadow: 0 18px 28px rgb(0 0 0 / 18%);
}

body:not(.is-native-app) .reference-doodle-star {
  position: absolute;
  left: 0;
  bottom: 10px;
  color: #ffd333;
  font-size: 42px;
  transform: rotate(-18deg);
}

body:not(.is-native-app) .reference-score-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  min-height: 168px;
  border-radius: 12px;
  background: rgb(255 253 247 / 94%);
  box-shadow: 0 12px 30px rgb(17 56 54 / 16%);
  overflow: hidden;
}

body:not(.is-native-app) .reference-score-panel article {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  padding: 12px 10px;
  text-align: center;
  border-left: 1px solid rgb(203 190 166 / 48%);
}

body:not(.is-native-app) .reference-score-panel article:first-child {
  border-left: 0;
}

body:not(.is-native-app) .reference-score-panel strong {
  color: var(--cartoon-ink);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 900;
}

body:not(.is-native-app) .reference-score-panel small,
body:not(.is-native-app) .reference-score-panel b,
body:not(.is-native-app) .reference-score-panel em {
  color: var(--cartoon-muted);
  font-size: 13px;
  font-style: normal;
}

body:not(.is-native-app) .reference-score-panel b,
body:not(.is-native-app) .reference-score-panel em {
  border-radius: 999px;
  padding: 5px 10px;
  background: rgb(79 167 86 / 14%);
  color: #17683c;
}

body:not(.is-native-app) .reference-score-panel em {
  background: rgb(228 87 61 / 12%);
  color: #d5361c;
}

body:not(.is-native-app) .reference-stat-emoji,
body:not(.is-native-app) .reference-check {
  font-size: 34px;
  line-height: 1;
}

body:not(.is-native-app) .reference-check {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cartoon-green);
  color: white;
  font-weight: 900;
}

body:not(.is-native-app) .reference-score-panel i {
  display: block;
  width: min(94px, 100%);
  height: 14px;
  border-radius: 999px;
  background: rgb(34 31 26 / 10%);
  overflow: hidden;
}

body:not(.is-native-app) .reference-score-panel i::before {
  content: "";
  display: block;
  width: var(--reward-next-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f4ad16, #ffd36c);
}

body:not(.is-native-app) .chore-line-chart-card.is-reference-hero-chart {
  align-self: stretch;
  display: grid;
  align-content: center;
  min-height: 168px;
  border: 0;
  border-radius: 12px;
  background: rgb(255 253 247 / 94%);
  box-shadow: 0 12px 30px rgb(17 56 54 / 16%);
}

body:not(.is-native-app) .chore-line-chart-card.is-reference-hero-chart .chart-header h3 {
  font-family: inherit;
  font-size: 16px;
}

body:not(.is-native-app) .child-chore-progress-board {
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, .85fr);
  gap: 16px;
}

body:not(.is-native-app) .child-chore-reward-path,
body:not(.is-native-app) .child-chore-streak-bonuses {
  border: 1px solid var(--cartoon-line);
  border-radius: 16px;
  background: linear-gradient(135deg, rgb(255 253 247 / 94%), rgb(249 244 234 / 88%));
  box-shadow: var(--cartoon-shadow), inset 0 1px 0 rgb(255 255 255 / 78%);
}

body:not(.is-native-app) .child-action-chore-grid {
  grid-template-columns: repeat(5, minmax(170px, 1fr));
  gap: 16px;
}

body:not(.is-native-app) .child-action-chore-card {
  display: grid;
  grid-template-rows: 118px auto auto;
  gap: 8px;
  min-height: 256px;
  border: 1px solid var(--cartoon-line);
  border-radius: 14px;
  background: rgb(255 253 247 / 92%);
  box-shadow: 0 14px 30px rgb(40 31 17 / 10%);
  text-align: center;
  overflow: hidden;
}

body:not(.is-native-app) .child-action-visual {
  display: grid;
  place-items: center;
  min-height: 118px;
  background: transparent;
}

body:not(.is-native-app) .reference-chore-illustration {
  width: 100%;
  height: 118px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

body:not(.is-native-app) .child-action-chore-card.is-bed .reference-chore-illustration,
body:not(.is-native-app) .child-action-chore-card.is-spark .reference-chore-illustration { background-image: url("/assets/reference-redesign/chore-illustrations/bed.webp?v=1"); }
body:not(.is-native-app) .child-action-chore-card.is-trash .reference-chore-illustration { background-image: url("/assets/reference-redesign/chore-illustrations/trash.webp?v=1"); }
body:not(.is-native-app) .child-action-chore-card.is-dishes .reference-chore-illustration { background-image: url("/assets/reference-redesign/chore-illustrations/dishes.webp?v=1"); }
body:not(.is-native-app) .child-action-chore-card.is-book .reference-chore-illustration { background-image: url("/assets/reference-redesign/chore-illustrations/book.webp?v=1"); }
body:not(.is-native-app) .child-action-chore-card.is-plant .reference-chore-illustration { background-image: url("/assets/reference-redesign/chore-illustrations/plant.webp?v=1"); }

body:not(.is-native-app) .child-action-chore-card h3 {
  margin: 0 14px;
  color: var(--cartoon-ink);
  font-size: 18px;
  line-height: 1.15;
}

body:not(.is-native-app) .child-action-chore-card p {
  margin: 4px 0 0;
  color: var(--cartoon-ink);
  font-size: 17px;
  font-weight: 700;
}

body:not(.is-native-app) .child-action-chore-card .child-action-done {
  align-self: end;
  justify-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  margin: 8px 14px 14px;
  padding: 0 14px;
  font-size: 18px;
}

body:not(.is-native-app) .child-chore-section-heading {
  align-items: end;
  margin-top: 14px;
}

body:not(.is-native-app) .child-chore-section-heading h3 {
  font-size: clamp(26px, 3vw, 34px);
}

@media (max-width: 1180px) {
  body:not(.is-native-app) .reference-child-switcher {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:not(.is-native-app) .reference-greeting-card {
    grid-column: 1 / -1;
  }

  body:not(.is-native-app) .reference-chores-hero {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  body:not(.is-native-app) .chore-line-chart-card.is-reference-hero-chart {
    grid-column: 1 / -1;
  }

  body:not(.is-native-app) .child-action-chore-grid {
    grid-template-columns: repeat(3, minmax(170px, 1fr));
  }
}

@media (max-width: 820px) {
  body:not(.is-native-app) {
    background-size: 28px 28px, 28px 28px, auto, auto;
  }

  body:not(.is-native-app) .rail {
    display: none;
  }

  body:not(.is-native-app) .workspace {
    padding: 18px 14px 98px;
  }

  body:not(.is-native-app) .topbar {
    gap: 14px;
  }

  body:not(.is-native-app) .topbar h1 {
    font-size: clamp(38px, 13vw, 58px);
  }

  body:not(.is-native-app) .session-card {
    width: 100%;
  }

  body:not(.is-native-app) .mobile-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    border: 1px solid rgb(255 255 255 / 10%);
    background: linear-gradient(145deg, var(--cartoon-rail), var(--cartoon-rail-2));
  }

  body:not(.is-native-app) .mobile-nav a {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 2px;
    min-height: 56px;
    border-radius: 12px;
    color: #fff9ed;
    font-size: 11px;
    line-height: 1.05;
    text-align: center;
  }

  body:not(.is-native-app) .mobile-nav a.is-active {
    background: linear-gradient(135deg, #149b95, #0c7873);
  }

  body:not(.is-native-app) .mobile-nav .ref-nav-icon {
    width: 30px;
    height: 30px;
    background-position: center;
    background-size: contain;
  }

  body:not(.is-native-app) .reference-child-switcher {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  body:not(.is-native-app) .reference-child-switcher button {
    min-height: 58px;
    font-size: 15px;
  }

  body:not(.is-native-app) .reference-chip-avatar {
    width: 38px;
    height: 38px;
  }

  body:not(.is-native-app) .reference-greeting-card {
    grid-column: 1 / -1;
    min-height: 58px;
  }

  body:not(.is-native-app) .reference-chores-hero {
    grid-template-columns: 1fr;
    padding: 18px 12px;
  }

  body:not(.is-native-app) .reference-hero-avatar {
    width: 132px;
    height: 132px;
  }

  body:not(.is-native-app) .reference-score-panel {
    grid-template-columns: 1fr 1fr;
  }

  body:not(.is-native-app) .reference-score-panel article {
    min-height: 132px;
  }

  body:not(.is-native-app) .child-chore-progress-board {
    grid-template-columns: 1fr;
  }

  body:not(.is-native-app) .child-action-chore-grid {
    grid-template-columns: 1fr;
  }

  body:not(.is-native-app) .child-action-chore-card {
    grid-template-rows: 132px auto auto;
  }

  body:not(.is-native-app) .reference-chore-illustration {
    height: 132px;
  }

  body:not(.is-native-app) [data-page] > .panel:first-child::before,
  body:not(.is-native-app) .page-intro::after {
    float: none;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 16px;
  }
}

/* Navigation marks use the generated PNG sprite; keep pseudo-icons disabled. */
body:not(.is-native-app) .ref-nav-icon::before,
html.is-native-app.is-android-app .ref-nav-icon::before {
  content: none;
}

body:not(.is-native-app) .rail-nav a.is-active .ref-nav-icon {
  border-radius: 10px;
  background-color: rgb(255 250 240 / 20%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 20%);
}

/* Reference concept rollout: make the real service match the generated cartoon references. */

body:not(.is-native-app) .workspace:has(#week:not([hidden])) .topbar h1 {
  font-size: clamp(50px, 5vw, 82px);
}

body:not(.is-native-app) .topbar {
  position: relative;
}

body:not(.is-native-app) .panel-header,
body:not(.is-native-app) .family-section-heading {
  position: relative;
}

body:not(.is-native-app) .family-command-hero {
  position: relative;
  grid-template-columns: minmax(280px, .72fr) minmax(360px, 1fr) minmax(260px, .58fr);
  gap: 24px;
  min-height: 214px;
  border-color: var(--cartoon-line);
  border-radius: 17px;
  padding: 18px 22px;
  background:
    radial-gradient(circle at 24% 72%, rgb(22 155 150 / 9%), transparent 34%),
    linear-gradient(135deg, rgb(255 253 247 / 96%), rgb(250 246 235 / 92%)),
    linear-gradient(90deg, rgb(32 32 28 / 4%) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(0deg, rgb(32 32 28 / 3%) 1px, transparent 1px) 0 0 / 36px 36px;
  box-shadow: 0 18px 38px rgb(42 35 20 / 10%);
}

body:not(.is-native-app) .family-command-hero::before {
  content: none;
}

body:not(.is-native-app) .family-hero-illustration {
  align-self: stretch;
  min-width: 0;
  margin: 0;
  overflow: hidden;
}

body:not(.is-native-app) .family-hero-illustration img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 184px;
  border-radius: 13px;
  object-fit: contain;
  object-position: center;
}

body:not(.is-native-app) .family-hero-copy {
  align-self: center;
}

body:not(.is-native-app) .family-command-hero .eyebrow,
body:not(.is-native-app) .family-command-hero h2,
body:not(.is-native-app) .family-command-hero p {
  color: var(--ink);
}

body:not(.is-native-app) .family-command-hero .eyebrow {
  color: #1f7775;
}

body:not(.is-native-app) .family-command-hero h2 {
  font-size: clamp(46px, 4.8vw, 76px);
  text-shadow: none;
}

body:not(.is-native-app) .family-command-hero p {
  max-width: 720px;
  color: #4f4d45;
}

body:not(.is-native-app) .family-hero-stats {
  align-self: center;
}

body:not(.is-native-app) .family-hero-stats span {
  border-color: rgb(255 253 247 / 34%);
  border-radius: 12px;
  background: rgb(255 253 247 / 92%);
  box-shadow: 0 12px 24px rgb(17 56 54 / 14%);
}

body:not(.is-native-app) .family-day-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

body:not(.is-native-app) .family-day-tabs button,
body:not(.is-native-app) .child-day-tabs button {
  border: 1px solid var(--cartoon-line);
  border-radius: 10px;
  background: rgb(255 253 247 / 88%);
  box-shadow: 0 7px 18px rgb(34 30 22 / 6%);
}

body:not(.is-native-app) .family-day-tabs button.is-active,
body:not(.is-native-app) .child-day-tabs button.is-active {
  border-color: #0f8c86;
  background: linear-gradient(180deg, rgb(238 255 252 / 94%), rgb(255 253 247 / 92%));
  box-shadow: inset 0 0 0 2px rgb(15 140 134 / 12%), 0 10px 22px rgb(15 140 134 / 11%);
}

body:not(.is-native-app) .family-dashboard-layout {
  grid-template-columns: minmax(0, 1fr) minmax(360px, .54fr);
  align-items: start;
}

body:not(.is-native-app) .family-child-card {
  border-radius: 14px;
  border-top-width: 5px;
  background: linear-gradient(145deg, rgb(255 253 247 / 95%), rgb(255 248 238 / 88%));
}

body:not(.is-native-app) .family-child-rows article,
body:not(.is-native-app) .family-reminder-item,
body:not(.is-native-app) .route-card,
body:not(.is-native-app) .phone-reminder-recipient,
body:not(.is-native-app) .reminder-queue-item {
  border-radius: 12px;
  background: rgb(255 253 247 / 82%);
}

body:not(.is-native-app) .route-card {
  min-height: 98px;
  text-align: left;
}

body:not(.is-native-app) .route-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

body:not(.is-native-app) .phone-reminder-card {
  border-top-color: var(--cartoon-line);
}

body:not(.is-native-app) .week-page-shell {
  grid-template-columns: minmax(0, 1fr) minmax(300px, .36fr);
  gap: 22px;
}

body:not(.is-native-app) .week-panel.panel,
body:not(.is-native-app) .reminder-queue-panel {
  padding: 28px 32px;
}

body:not(.is-native-app) .week-panel .panel-header h2,
body:not(.is-native-app) .reminder-queue-panel h2 {
  font-size: clamp(42px, 4vw, 62px);
  line-height: .95;
}

body:not(.is-native-app) .reminder-queue-panel h2 {
  font-size: clamp(34px, 3.2vw, 50px);
  overflow-wrap: anywhere;
}

body:not(.is-native-app) .week-panel .panel-header::before,
body:not(.is-native-app) .reminder-queue-panel::before,
body:not(.is-native-app) .inbox-page-summary::before,
body:not(.is-native-app) .help-page .page-intro::before,
body:not(.is-native-app) .family-page .family-overview::after,
body:not(.is-native-app) .profile-settings-card::after,
body:not(.is-native-app) .settings-tab-panel[data-settings-panel="profile"]::after {
  content: "";
  display: block;
  width: 190px;
  max-width: 34%;
  aspect-ratio: 1.18;
  border-radius: 18px;
  background-image: url("/assets/reference-redesign/page-illustrations-sheet.png?v=1");
  background-size: 300% 200%;
  background-position: 50% 0;
  background-repeat: no-repeat;
  filter: drop-shadow(0 14px 20px rgb(40 31 17 / 12%));
}

body:not(.is-native-app) .week-panel .panel-header::before {
  order: 3;
  margin-left: auto;
}

body:not(.is-native-app) .reminder-queue-panel::before {
  width: min(240px, 80%);
  max-width: none;
  margin: 12px auto 2px;
  background-position: 50% 0;
}

body:not(.is-native-app) .timeline:not(.week-columns) {
  display: grid;
  gap: 24px;
}

/* List view groups all source types under one date; the day owns the border,
   while existing child colors and disclosure controls stay on its items. */
.week-list-day {
  min-width: 0;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--paper, #fffaf0);
  overflow: clip;
}

.week-list-day-heading {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--teal) 10%, var(--paper, #fffaf0));
}

.week-list-day-heading h3 {
  margin: 0;
  color: var(--ink);
  font-family: inherit;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 800;
}

.week-list-day-items {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
}

.week-list-day-items > .timeline-item {
  min-width: 0;
  margin: 0;
  box-shadow: none;
}

body:not(.is-native-app) .timeline-item {
  display: grid;
  grid-template-columns: 94px minmax(92px, .2fr) minmax(0, 1fr);
  align-items: center;
  min-height: 92px;
  border-left: 6px solid var(--calendar-item-color, var(--cartoon-teal));
}

body:not(.is-native-app) .timeline-item::before {
  content: "";
  width: 82px;
  height: 82px;
  border-radius: 16px;
  background-image: url("/assets/reference-redesign/page-illustrations-sheet.png?v=1");
  background-size: 300% 200%;
  background-repeat: no-repeat;
  background-position: 50% 0;
}

/* Events share the school cards' inset inside each calendar day. */
#week .week-list-day-items > article.timeline-item[data-type="event"] {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 14px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--calendar-item-color, var(--teal));
  border-radius: 10px;
  background: var(--paper, #fffaf0);
  box-shadow: none;
  overflow-wrap: anywhere;
}
#week .week-list-day-items > article[data-type="event"]::before,
#week .week-list-day-items > article[data-type="event"] > span:empty {
  display: none;
}
#week .week-list-day-items > article[data-type="event"] > span:empty + div {
  grid-column: 1 / -1;
}
@media (max-width: 640px) {
  #week .week-list-day-items > article.timeline-item[data-type="event"] {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* A school day owns its compact disclosure layout. It must not be split into
   the generic illustrated timeline card's three columns. */
body:not(.is-native-app) .timeline-item.wilma-school-day {
  display: block;
  min-height: 0;
  border-color: color-mix(in srgb, var(--school-color) 42%, var(--cartoon-line));
  border-left-color: var(--school-color);
  background: color-mix(in srgb, var(--school-color) 13%, var(--cartoon-paper));
  box-shadow: none;
}

body:not(.is-native-app) .timeline-item.wilma-school-day::before {
  display: none;
}

body:not(.is-native-app) .timeline.week-columns {
  gap: 12px;
}

body:not(.is-native-app) .week-column {
  border: 1px solid var(--cartoon-line);
  border-radius: 16px;
  background: rgb(255 253 247 / 72%);
  box-shadow: 0 14px 30px rgb(40 31 17 / 8%);
}

body:not(.is-native-app) .week-column-card {
  border-radius: 12px;
}

body:not(.is-native-app) .inbox-page-summary,
body:not(.is-native-app) .help-page .page-intro {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  width: min(760px, 100%);
  min-height: 154px;
  border: 1px solid var(--cartoon-line);
  border-radius: 18px;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgb(255 253 247 / 94%), rgb(249 244 234 / 88%));
  box-shadow: var(--cartoon-shadow), inset 0 1px 0 rgb(255 255 255 / 78%);
}

body:not(.is-native-app) .inbox-page-summary::before,
body:not(.is-native-app) .help-page .page-intro::before {
  position: static;
  width: 138px;
  max-width: none;
  background-position: 100% 0;
}

body:not(.is-native-app) .help-page .page-intro::before {
  background-position: 0 100%;
}

body:not(.is-native-app) .help-page .page-intro {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  width: min(980px, 100%);
}

body:not(.is-native-app) .help-page .page-intro::before {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 100%;
  align-self: center;
}

body:not(.is-native-app) .help-page .page-intro > * {
  grid-column: 1;
}

body:not(.is-native-app) .inbox-page-summary::after,
body:not(.is-native-app) .help-page .page-intro::after {
  content: none;
}

body:not(.is-native-app) .inbox-ticket-filters {
  border-radius: 16px;
  padding: 14px 16px;
  background: rgb(255 253 247 / 78%);
  box-shadow: 0 12px 28px rgb(40 31 17 / 8%);
}

body:not(.is-native-app) .wilma-message-ticket {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px 22px;
  border-left-width: 0;
  padding: 22px 24px 8px;
}

body:not(.is-native-app) .wilma-message-ticket > .wilma-ticket-main {
  grid-column: 2;
}

body:not(.is-native-app) .inbox-ticket-target-avatars {
  grid-row: 1;
  align-self: start;
  justify-self: center;
  width: 82px;
  height: 82px;
  margin-bottom: 0;
}

body:not(.is-native-app) .inbox-ticket-target-avatars.is-pair .inbox-ticket-target-avatar {
  width: 56px;
  height: 56px;
}

body:not(.is-native-app) .wilma-ticket-main > * {
  grid-column: 1;
}

body:not(.is-native-app) .wilma-ticket-head h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.4vw, 34px);
}

body:not(.is-native-app) .help-page {
  display: grid;
  gap: 18px;
}

body:not(.is-native-app) .help-topic.panel {
  padding: 0;
  overflow: hidden;
}

body:not(.is-native-app) .help-topic-summary {
  min-height: 126px;
  padding: 24px 28px;
}

body:not(.is-native-app) .help-topic-heading {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

body:not(.is-native-app) .help-topic-heading::before {
  content: "";
  width: 84px;
  aspect-ratio: 1;
  border-radius: 18px;
  background-image: url("/assets/reference-redesign/page-illustrations-sheet.png?v=1");
  background-size: 300% 200%;
  background-position: 100% 0;
  filter: drop-shadow(0 10px 16px rgb(40 31 17 / 10%));
}

body:not(.is-native-app) #perheInboxHelp .help-topic-heading::before { background-position: 100% 0; }
body:not(.is-native-app) #childMessagesHelp .help-topic-heading::before { background-position: 0 100%; }
body:not(.is-native-app) .help-topic-heading strong {
  font-size: clamp(34px, 3.8vw, 50px);
}

body:not(.is-native-app) .help-topic-description {
  grid-column: 2;
}

body:not(.is-native-app) .family-page {
  display: grid;
  grid-template-columns: minmax(300px, .42fr) minmax(300px, .42fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

body:not(.is-native-app) .family-page > .family-overview,
body:not(.is-native-app) .family-page > .family-account-notice,
body:not(.is-native-app) .family-page > .family-account-grid,
body:not(.is-native-app) .family-page > .user-edit-panel {
  grid-column: auto;
  width: 100%;
}

body:not(.is-native-app) .family-page > .user-edit-panel {
  min-width: 0;
}

body:not(.is-native-app) .family-page .family-overview {
  display: grid;
  gap: 18px;
}

body:not(.is-native-app) .family-page .family-overview::after {
  width: 100%;
  max-width: none;
  margin: 10px 0 0;
  background-position: 50% 100%;
}

body:not(.is-native-app) .family-account-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

body:not(.is-native-app) .family-panel,
body:not(.is-native-app) .user-admin-panel,
body:not(.is-native-app) .user-edit-panel {
  padding: 24px;
}

body:not(.is-native-app) .family-panel .panel-header h2,
body:not(.is-native-app) .user-admin-panel .panel-header h2,
body:not(.is-native-app) .user-edit-panel .panel-header h2 {
  font-size: clamp(32px, 3vw, 46px);
  line-height: .98;
}

body:not(.is-native-app) .member-list,
body:not(.is-native-app) .user-editor-list {
  display: grid;
  gap: 12px;
}

body:not(.is-native-app) .member-row {
  border-radius: 14px;
  background: rgb(255 253 247 / 84%);
}

body:not(.is-native-app) .user-edit-card {
  border: 1px solid var(--cartoon-line);
  border-radius: 16px;
  background: linear-gradient(135deg, rgb(255 253 247 / 94%), rgb(249 244 234 / 88%));
  box-shadow: 0 12px 28px rgb(40 31 17 / 8%);
}

body:not(.is-native-app) .user-edit-card,
body:not(.is-native-app) .user-edit-card * {
  min-width: 0;
}

body:not(.is-native-app) .user-edit-card input,
body:not(.is-native-app) .user-edit-card select,
body:not(.is-native-app) .user-edit-card textarea {
  max-width: 100%;
}

body:not(.is-native-app) .settings-grid {
  gap: 22px;
}

body:not(.is-native-app) .settings-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 8px;
  border-radius: 16px;
  border-color: var(--cartoon-line);
  background: rgb(255 253 247 / 80%);
  box-shadow: 0 12px 28px rgb(40 31 17 / 8%);
}

body:not(.is-native-app) .settings-tabs button {
  min-height: 54px;
  border-radius: 12px;
  font-size: 16px;
}

body:not(.is-native-app) .settings-tabs button.is-active {
  background: linear-gradient(180deg, #0e8179, #084d48);
  color: white;
  box-shadow: 0 10px 22px rgb(8 77 72 / 18%);
}

body:not(.is-native-app) .profile-settings-card {
  position: relative;
  overflow: hidden;
}

body:not(.is-native-app) .profile-settings-card .account-form {
  grid-template-columns: minmax(280px, .8fr) minmax(300px, 1fr) minmax(260px, .45fr);
}

body:not(.is-native-app) .profile-settings-card::after {
  position: absolute;
  right: 34px;
  top: 118px;
  width: min(270px, 24%);
  max-width: none;
  background-position: 100% 100%;
}

body:not(.is-native-app) .profile-settings-card .profile-avatar-picker,
body:not(.is-native-app) .profile-settings-card .color-field,
body:not(.is-native-app) .profile-settings-card .full-button,
body:not(.is-native-app) .profile-settings-card .form-note {
  grid-column: 1 / span 2;
}

body:not(.is-native-app) .settings-brand-card {
  position: relative;
  overflow: hidden;
}

body:not(.is-native-app) .settings-brand-card::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: 20px;
  width: min(230px, 26%);
  aspect-ratio: 1.18;
  background-image: url("/assets/reference-redesign/page-illustrations-sheet.png?v=1");
  background-size: 300% 200%;
  background-position: 100% 100%;
  background-repeat: no-repeat;
  filter: drop-shadow(0 14px 20px rgb(40 31 17 / 12%));
}

body:not(.is-native-app) .settings-card h2,
body:not(.is-native-app) .settings-brand-card h2,
body:not(.is-native-app) .settings-inbox-card h2,
body:not(.is-native-app) .settings-billing-card h2,
body:not(.is-native-app) .settings-calendar-card h2 {
  font-size: clamp(32px, 3.2vw, 48px);
  line-height: .98;
}

body:not(.is-native-app) .settings-brand-card > *,
body:not(.is-native-app) .profile-settings-card > * {
  position: relative;
  z-index: 1;
}

body:not(.is-native-app) .compact-form,
body:not(.is-native-app) .account-form {
  gap: 14px;
}



@media (max-width: 1260px) {
  body:not(.is-native-app) .family-command-hero,
  body:not(.is-native-app) .week-page-shell,
  body:not(.is-native-app) .family-dashboard-layout,
  body:not(.is-native-app) .family-page {
    grid-template-columns: 1fr;
  }

  body:not(.is-native-app) .family-command-hero::before {
    content: none;
  }

  body:not(.is-native-app) .family-hero-illustration img {
    max-height: 260px;
  }

  body:not(.is-native-app) .family-hero-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body:not(.is-native-app) .reminder-queue-panel {
    position: static;
  }
}

@media (max-width: 1500px) {
  body:not(.is-native-app) .family-page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:not(.is-native-app) .family-page > .user-edit-panel {
    grid-column: 1 / -1;
  }

  body:not(.is-native-app) .family-page .family-overview::after {
    max-height: 260px;
    aspect-ratio: 1.46;
    background-size: 300% 200%;
    background-repeat: no-repeat;
  }
}

@media (max-width: 820px) {
  body:not(.is-native-app) .family-command-hero {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  body:not(.is-native-app) .family-command-hero::before {
    content: none;
  }

  body:not(.is-native-app) .family-hero-illustration img {
    min-height: 150px;
    max-height: 190px;
  }

  body:not(.is-native-app) .family-command-hero h2,
  body:not(.is-native-app) .week-panel .panel-header h2,
  body:not(.is-native-app) .reminder-queue-panel h2 {
    font-size: clamp(34px, 10vw, 48px);
  }

  body:not(.is-native-app) .topbar h1 {
    font-size: clamp(34px, 10vw, 46px);
    overflow-wrap: anywhere;
  }

  body:not(.is-native-app) .family-hero-stats,
  body:not(.is-native-app) .family-day-tabs,
  body:not(.is-native-app) .settings-tabs {
    grid-template-columns: 1fr 1fr;
  }

  body:not(.is-native-app) .week-panel.panel,
  body:not(.is-native-app) .reminder-queue-panel,
  body:not(.is-native-app) .family-panel,
  body:not(.is-native-app) .user-admin-panel,
  body:not(.is-native-app) .user-edit-panel {
    padding: 18px;
  }

  body:not(.is-native-app) .week-panel .panel-header::before,
  body:not(.is-native-app) .reminder-queue-panel::before {
    width: 100%;
    max-width: 260px;
    margin-inline: auto;
  }

  body:not(.is-native-app) .timeline-item {
    grid-template-columns: 1fr;
  }

  body:not(.is-native-app) .timeline-item::before {
    width: 82px;
    max-width: 100%;
  }

  body:not(.is-native-app) .inbox-page-summary,
  body:not(.is-native-app) .help-page .page-intro,
  body:not(.is-native-app) .wilma-message-ticket,
  body:not(.is-native-app) .help-topic-heading {
    grid-template-columns: 1fr;
  }

  body:not(.is-native-app) .wilma-message-ticket > .wilma-ticket-main {
    grid-column: 1;
  }

  body:not(.is-native-app) .wilma-ticket-head,
  body:not(.is-native-app) .wilma-ticket-meta,
  body:not(.is-native-app) .inbox-suggestion-list,
  body:not(.is-native-app) .wilma-ticket-actions,
  body:not(.is-native-app) .inbox-conversation,
  body:not(.is-native-app) .inbox-original-message,
  body:not(.is-native-app) .help-topic-description {
    grid-column: 1;
  }

  body:not(.is-native-app) .inbox-ticket-target-avatars {
    grid-row: auto;
    justify-self: start;
  }

  body:not(.is-native-app) .profile-settings-card::after,
  body:not(.is-native-app) .settings-brand-card::after {
    position: static;
    display: block;
    width: 100%;
    max-width: 260px;
    margin: 12px auto 0;
  }

  body:not(.is-native-app) .profile-settings-card .account-form {
    grid-template-columns: 1fr;
  }

  body:not(.is-native-app) .profile-settings-card .profile-avatar-picker,
  body:not(.is-native-app) .profile-settings-card .color-field,
  body:not(.is-native-app) .profile-settings-card .full-button,
  body:not(.is-native-app) .profile-settings-card .form-note {
    grid-column: 1;
  }
}

/* Reference audit fixes: command center detail pass. */
body:not(.is-native-app) .rail-nav a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 13px;
  row-gap: 0;
  line-height: 1.12;
}

body:not(.is-native-app) .rail-nav a .ref-nav-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  order: 0;
}

body:not(.is-native-app) .rail-nav a:not(:has(small:not(:empty))) {
  grid-template-rows: minmax(0, 1fr);
}

body:not(.is-native-app) .rail-nav a:not(:has(small:not(:empty))) :is(.ref-nav-icon, [data-nav-label]) {
  grid-row: 1;
  align-self: center;
}

body:not(.is-native-app) .rail-nav a [data-nav-label],
body:not(.is-native-app) .rail-nav a > span:not(.ref-nav-icon):not([data-nav-label]) {
  grid-column: 2;
  justify-self: stretch;
  min-width: 0;
  text-align: left;
}

body:not(.is-native-app) .rail-nav a small {
  grid-column: 2;
  justify-self: stretch;
  margin-top: 2px;
  line-height: 1.15;
  text-align: left;
}

body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-child-card {
  border: 1px solid color-mix(in srgb, var(--child-color, #1fa463) 58%, white 42%);
  border-top: 6px solid color-mix(in srgb, var(--child-color, #1fa463) 82%, #18b76b 18%);
  border-radius: 10px;
  background: linear-gradient(145deg, rgb(255 253 247 / 97%), rgb(250 255 247 / 92%));
  box-shadow: 0 14px 32px rgb(42 35 20 / 8%);
}

body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-child-rows article {
  position: relative;
  grid-template-columns: 34px minmax(0, 1fr);
  padding-left: 12px;
}

body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-child-rows article::before,
body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .route-card::before,
body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .phone-reminder-kind label span::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background: currentColor;
  -webkit-mask: var(--mini-icon) center / contain no-repeat;
  mask: var(--mini-icon) center / contain no-repeat;
}

body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-child-rows article::before {
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: center;
  color: color-mix(in srgb, var(--child-color, #169b96) 72%, #0b7871);
  --mini-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 3.2a8.8 8.8 0 1 0 0 17.6 8.8 8.8 0 0 0 0-17.6Zm4.7 6.1-5.5 5.9a1.2 1.2 0 0 1-1.8 0l-2.2-2.4 1.8-1.7 1.3 1.4 4.6-4.9 1.8 1.7Z'/%3E%3C/svg%3E");
}

body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-child-rows article span,
body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-child-rows article strong,
body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-child-rows article small {
  grid-column: 2;
}

body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-hero-stats {
  gap: 11px;
}

body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-hero-stats span {
  display: grid;
  grid-template-columns: 36px max-content max-content;
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  justify-content: center;
  column-gap: 12px;
  min-height: 84px;
  border: 1px solid rgb(191 180 160 / 58%);
  background: linear-gradient(145deg, rgb(255 253 247 / 94%), rgb(250 247 239 / 88%));
  box-shadow: 0 10px 22px rgb(42 35 20 / 8%);
}

body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-hero-stats span::before {
  content: "";
  display: block;
  grid-row: 1;
  width: 48px;
  height: 48px;
  background: var(--hero-stat-icon) center / contain no-repeat;
}

body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-hero-stats span:nth-child(1)::before {
  --hero-stat-icon: url("/assets/reference-redesign/dashboard-stat-children-v1.png?v=1");
}

body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-hero-stats span:nth-child(2)::before {
  --hero-stat-icon: url("/assets/reference-redesign/dashboard-stat-remember-v1.png?v=1");
}

body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-hero-stats span:nth-child(3)::before {
  --hero-stat-icon: url("/assets/reference-redesign/dashboard-stat-chores-v1.png?v=1");
}

body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-hero-stats span:nth-child(4)::before {
  --hero-stat-icon: url("/assets/reference-redesign/dashboard-stat-inbox-v1.png?v=1");
}

body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-hero-stats strong {
  grid-column: 2;
  grid-row: 1;
}

body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-hero-stats small {
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
}

body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-reminders-panel,
body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-actions-panel {
  border: 1px solid var(--cartoon-line);
  border-radius: 14px;
  background: linear-gradient(145deg, rgb(255 253 247 / 96%), rgb(250 247 239 / 92%));
  box-shadow: 0 16px 34px rgb(45 37 22 / 8%);
}

body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-reminder-item {
  border: 1px solid color-mix(in srgb, var(--child-color, #169b96) 34%, var(--cartoon-line));
  border-left: 6px solid var(--child-color, #169b96);
  background: color-mix(in srgb, var(--child-color, #169b96) 10%, rgb(255 253 247));
}

body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-dashboard-actions {
  grid-template-columns: 1fr;
  gap: 12px;
}

body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .route-card {
  position: relative;
  grid-template-columns: 34px minmax(0, 1fr);
  align-content: center;
  min-height: 84px;
  gap: 3px 12px;
  border: 1px solid var(--cartoon-line);
  border-radius: 12px;
  padding: 14px 16px;
  background: rgb(255 253 247 / 88%);
}

body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .route-card::before {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 30px;
  height: 30px;
  color: #0b7871;
  --mini-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 3.2 14.3 8l5.2.8-3.8 3.7.9 5.2L12 15.2l-4.6 2.5.9-5.2-3.8-3.7 5.2-.8L12 3.2Z'/%3E%3C/svg%3E");
}

body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .route-card strong,
body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .route-card span {
  grid-column: 2;
}

body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .route-card strong {
  font-size: 22px;
  line-height: 1.02;
}

body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .route-card span {
  margin-top: 2px;
  font-size: 15px;
  line-height: 1.32;
}

body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .phone-reminder-card {
  gap: 14px;
  border: 1px solid var(--cartoon-line);
  border-radius: 14px;
  margin-top: 16px;
  padding: 18px;
  background: linear-gradient(145deg, rgb(255 253 247 / 94%), rgb(239 255 252 / 76%));
}

body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-actions-panel .phone-reminder-recipient-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .phone-reminder-recipient input {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  padding: 0;
  border-radius: 4px;
}

body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .phone-reminder-card .phone-reminder-kind input,
body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .phone-reminder-card .phone-reminder-severity input {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  border-radius: 999px;
}

body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .phone-reminder-card-copy {
  position: static;
  padding-left: 0;
}

body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .phone-reminder-kind label {
  border: 1px solid var(--cartoon-line);
  border-radius: 11px;
  background: rgb(255 253 247 / 84%);
}

body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .phone-reminder-kind label span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .phone-reminder-kind label span::before {
  width: 22px;
  height: 22px;
  color: #0b7871;
}

body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .phone-reminder-kind label:first-of-type span::before {
  --mini-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 2.8a6.8 6.8 0 0 0-6.8 6.8v3.3L3 16.6V18h18v-1.4l-2.2-3.7V9.6A6.8 6.8 0 0 0 12 2.8Zm-2.8 16.5a2.9 2.9 0 0 0 5.6 0H9.2Z'/%3E%3C/svg%3E");
}

body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .phone-reminder-kind label:last-of-type span::before {
  --mini-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 3a9 9 0 1 0 9 9 9 9 0 0 0-9-9Zm1.2 4.5h-2.4v5.2l4.3 2.6 1.2-2-3.1-1.8v-4Z'/%3E%3C/svg%3E");
}

@media (max-width: 980px) {
  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-dashboard-actions,
  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .phone-reminder-card .phone-reminder-kind {
    grid-template-columns: 1fr;
  }
}

/* Reference audit fixes: mobile command desk layout pass. */
@media (max-width: 760px) {
  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-actions-panel {
    padding: 18px;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-actions-panel .panel-header {
    margin-bottom: 12px;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-actions-panel .panel-header h2 {
    max-width: 8ch;
    font-size: clamp(38px, 12vw, 52px);
    line-height: .9;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-dashboard-actions {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 12px;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .route-card {
    grid-template-columns: 32px minmax(0, 1fr);
    min-height: 0;
    gap: 2px 12px;
    border-radius: 12px;
    padding: 13px 14px;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .route-card::before {
    width: 26px;
    height: 26px;
    align-self: start;
    margin-top: 2px;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .route-card strong {
    font-size: 20px;
    line-height: 1.05;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .route-card span {
    margin-top: 3px;
    font-size: 14px;
    line-height: 1.35;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .phone-reminder-card {
    gap: 14px;
    margin-top: 16px;
    border-radius: 14px;
    padding: 16px;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .phone-reminder-card-copy {
    min-height: 0;
    padding-left: 0;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .phone-reminder-card-copy h3 {
    font-size: 24px;
    line-height: 1.05;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .phone-reminder-card-copy p:not(.eyebrow) {
    font-size: 14px;
    line-height: 1.45;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .phone-reminder-recipient-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .phone-reminder-recipient {
    min-height: 102px;
    border-radius: 11px;
    padding: 10px 8px 9px;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .phone-reminder-recipient input {
    left: 8px;
    top: 8px;
    width: 20px;
    min-width: 20px;
    height: 20px;
    min-height: 20px;
    padding: 0;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .phone-reminder-recipient-avatar {
    width: 48px;
    height: 48px;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .phone-reminder-recipient-name {
    font-size: 14px;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .phone-reminder-recipient-role {
    font-size: 11px;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .phone-reminder-card .phone-reminder-kind {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .phone-reminder-kind label {
    min-height: 52px;
    justify-content: start;
    padding: 10px 14px;
    text-align: left;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .phone-reminder-kind label span {
    justify-content: flex-start;
  }
}

/* Reference audit fixes: desktop dashboard desk should breathe. */
@media (min-width: 981px) {
  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-dashboard-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-reminders-panel,
  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-actions-panel {
    width: 100%;
    max-width: none;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-actions-panel {
    display: grid;
    grid-template-columns: minmax(300px, .42fr) minmax(520px, .58fr);
    gap: 18px 22px;
    align-items: start;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-actions-panel .panel-header {
    grid-column: 1;
    margin: 0;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-actions-panel .panel-header h2 {
    max-width: 9ch;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-dashboard-actions {
    grid-column: 1;
    margin-top: 0;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .phone-reminder-card {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-top: 0;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .phone-reminder-card-copy {
    min-height: 0;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .phone-reminder-card-copy p:not(.eyebrow) {
    max-width: 42ch;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-actions-panel .phone-reminder-recipient-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 981px) and (max-width: 1320px) {
  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-actions-panel {
    grid-template-columns: 1fr;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-actions-panel .panel-header,
  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-dashboard-actions,
  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .phone-reminder-card {
    grid-column: 1;
    grid-row: auto;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-actions-panel .panel-header h2 {
    max-width: none;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-actions-panel .phone-reminder-recipient-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Reference audit fixes: dashboard command desk must not collapse into a side rail. */
@media (min-width: 981px) {
  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-dashboard-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    width: 100%;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-actions-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 28px 32px;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-actions-panel .panel-header,
  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-dashboard-actions,
  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .phone-reminder-card {
    grid-column: 1;
    grid-row: auto;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-actions-panel .panel-header h2 {
    max-width: none;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-dashboard-actions {
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 14px;
    margin-top: 0;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .route-card {
    min-height: 104px;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .phone-reminder-card {
    display: grid;
    grid-template-columns: minmax(260px, .8fr) minmax(440px, 1.2fr);
    gap: 16px 24px;
    width: 100%;
    margin-top: 4px;
    padding: 22px;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .phone-reminder-card-copy {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .phone-reminder-recipients,
  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .phone-reminder-kind {
    grid-column: 2;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .phone-reminder-card > label,
  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .phone-reminder-time-field,
  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .phone-reminder-actions {
    grid-column: 1 / -1;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-actions-panel .phone-reminder-recipient-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 981px) and (max-width: 1500px) {
  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-dashboard-actions {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .phone-reminder-card {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .phone-reminder-card-copy,
  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .phone-reminder-recipients,
  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .phone-reminder-kind {
    grid-column: 1;
    grid-row: auto;
  }
}

/* Reference dashboard action logos: generated transparent PNGs, no placeholder stars. */
body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .route-card[data-action-icon] {
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 6px 15px;
  min-height: 96px;
  padding: 14px 18px 14px 14px;
}

body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .route-card[data-action-icon]::before {
  content: "";
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  width: 60px;
  height: 60px;
  background: var(--dashboard-action-icon) center / contain no-repeat;
  -webkit-mask: none;
  mask: none;
}

body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .route-card[data-action-icon="messages"] {
  --dashboard-action-icon: url("/assets/reference-redesign/dashboard-actions/messages.png");
}

body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .route-card[data-action-icon="reminder"] {
  --dashboard-action-icon: url("/assets/reference-redesign/dashboard-actions/reminder.png");
}

body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .route-card[data-action-icon="chores"] {
  --dashboard-action-icon: url("/assets/reference-redesign/dashboard-actions/chores.png");
}

body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .route-card[data-action-icon="family"] {
  --dashboard-action-icon: url("/assets/reference-redesign/dashboard-actions/family.png");
}

body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .route-card[data-action-icon="settings"] {
  --dashboard-action-icon: url("/assets/reference-redesign/dashboard-actions/settings.png");
}

/* Account recovery and session security */
.auth-text-button {
  align-items: center;
  align-self: center;
  background: transparent;
  border: 0;
  color: var(--teal-700, #245f63);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.auth-text-button:hover,
.auth-text-button:focus-visible {
  color: var(--teal-900, #123f42);
}

.auth-gate:has(> .activation-page:not([hidden])) > :is(.marketing-header, .marketing-footer) {
  display: none;
}

.auth-panel.activation-page {
  width: min(100%, 38rem);
  margin: clamp(16px, 5vw, 64px) auto;
  align-self: start;
}

.activation-page h1 { margin: 0 0 20px; font-size: clamp(1.65rem, 4vw, 2.25rem); }
.activation-page [hidden], .activation-page[hidden] { display: none !important; }

.registration-intro { margin: 0; line-height: 1.5; }

.auth-success-card {
  background: #edf5f1;
  border: 1px solid #aec8bb;
  border-inline-start: 5px solid #39746c;
  border-radius: 10px;
  color: #203d38;
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: clamp(16px, 3vw, 24px);
  overflow-wrap: anywhere;
}

.auth-success-card[hidden] { display: none; }

.auth-success-card h3 { margin: 0; }

.auth-success-card p { margin: 0; line-height: 1.55; }

.auth-success-card .ghost-button { justify-self: start; }

.auth-link-message {
  border-left: 3px solid var(--teal-500, #2f7f7d);
  margin: 0 0 14px;
  padding: 10px 12px;
}

.auth-recovery-panel {
  display: grid;
  gap: 16px;
}

.auth-recovery-panel[hidden] {
  display: none;
}

.auth-subview-heading {
  display: grid;
  gap: 6px;
}

.auth-subview-heading h3,
.auth-subview-heading p {
  margin: 0;
}

.account-security-card {
  display: grid;
  gap: 18px;
  grid-column: 1 / -1;
  overflow: hidden;
  position: relative;
}

.account-security-card::before {
  background: radial-gradient(circle, rgba(47, 127, 125, 0.17), transparent 68%);
  content: "";
  height: 180px;
  pointer-events: none;
  position: absolute;
  right: -70px;
  top: -80px;
  width: 180px;
}

.account-security-heading {
  align-items: flex-start;
  display: grid;
  gap: 14px;
  grid-template-columns: 48px minmax(0, 1fr);
  position: relative;
}

.account-security-heading h2,
.account-security-heading p {
  margin: 0;
}

.account-security-mark {
  align-items: center;
  background: #dff3ea;
  border: 1px solid #a9d9c7;
  border-radius: 16px;
  color: #17604c;
  display: flex;
  font-size: 1.35rem;
  font-weight: 700;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.account-security-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-security-actions button,
.account-security-card .account-session-revoke,
.revoke-all-sessions-dialog button {
  min-height: 44px;
}

.account-security-actions #revokeAllSessionsButton {
  grid-column: 1 / -1;
}

.marketing-preferences-card {
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
}

.marketing-preferences-card > * {
  margin: 0;
}

.marketing-preferences-form {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.marketing-preferences-form button {
  min-height: 44px;
}

#resendVerificationButton[hidden] + #reloadSessionsButton {
  grid-column: 1 / -1;
}

.active-sessions-list {
  display: grid;
  gap: 10px;
}

.account-session-row {
  align-items: center;
  background: rgba(247, 249, 246, 0.88);
  border: 1px solid rgba(50, 86, 82, 0.15);
  border-radius: 16px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px;
}

.account-session-row.is-current {
  background: linear-gradient(135deg, #edf8f4, #f8fbf9);
  border-color: #9bcfc0;
}

.account-session-copy,
.account-session-heading {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.account-session-heading {
  align-items: center;
  grid-template-columns: minmax(0, auto) max-content;
}

.account-session-copy strong,
.account-session-copy small {
  overflow-wrap: anywhere;
}

.account-session-current {
  background: #dff3ea;
  border-radius: 999px;
  color: #17604c;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 8px;
}

.account-security-empty {
  color: var(--ink-soft, #60716f);
  margin: 0;
}

.revoke-all-sessions-dialog label {
  display: grid;
  gap: 7px;
}

.revoke-all-sessions-dialog input {
  min-height: 48px;
  width: 100%;
}

@media (max-width: 600px) {
  .account-security-actions {
    grid-template-columns: 1fr;
  }

  .account-security-actions #revokeAllSessionsButton {
    grid-column: auto;
  }

  .account-session-row {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .account-session-heading {
    grid-template-columns: 1fr;
  }

  .account-session-current {
    justify-self: start;
  }
}

body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .route-card[data-action-icon] strong,
body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .route-card[data-action-icon] span {
  grid-column: 2;
  min-width: 0;
}

body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .route-card[data-action-icon] strong {
  font-size: clamp(20px, 1.45vw, 27px);
  line-height: 1.02;
}

body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .route-card[data-action-icon] span {
  font-size: 15px;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

@media (min-width: 981px) {
  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-dashboard-actions {
    grid-template-columns: repeat(2, minmax(290px, 1fr));
  }

}

@media (min-width: 1321px) {
  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-dashboard-actions {
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    max-width: 920px;
  }
}

@media (max-width: 760px) {
  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-actions-panel {
    width: min(100%, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    justify-self: stretch;
    overflow: hidden;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .family-dashboard-actions {
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .route-card[data-action-icon] {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 50px minmax(0, 1fr);
    min-height: 86px;
    padding: 12px 14px 12px 12px;
    overflow: hidden;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .route-card[data-action-icon]::before {
    width: 48px;
    height: 48px;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .route-card[data-action-icon] strong {
    font-size: 21px;
  }

  body:not(.is-native-app) .workspace:has(#dashboard:not([hidden])) .route-card[data-action-icon] span {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* Reference sidebar: illustrated dark rail with PNG navigation marks. */
@media (min-width: 1051px) {
  body:not(.is-native-app) .app-shell {
    grid-template-columns: 244px minmax(0, 1fr);
  }

  body:not(.is-native-app) .rail {
    box-sizing: border-box;
    width: 244px;
    padding: 36px 18px 18px;
    gap: 34px;
    background:
      radial-gradient(circle at 18% 6%, rgb(33 178 170 / 18%), transparent 26%),
      radial-gradient(circle at 86% 42%, rgb(16 116 111 / 16%), transparent 34%),
      linear-gradient(150deg, #081b18 0%, #101c18 48%, #18231e 100%);
    border-right: 1px solid rgb(255 255 255 / 7%);
    box-shadow: 18px 0 44px rgb(5 16 14 / 18%);
  }

  body:not(.is-native-app) .rail .app-brand {
    padding: 0 4px 6px;
  }

  body:not(.is-native-app) .rail .brand-logo-image-desktop {
    width: 178px;
    max-width: 100%;
    filter: drop-shadow(0 2px 0 rgb(0 0 0 / 24%)) drop-shadow(0 8px 20px rgb(0 0 0 / 28%));
  }

  body:not(.is-native-app) .rail .brand-tagline {
    margin-top: -12px;
    margin-left: 62px;
    color: #79e8d9;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgb(0 0 0 / 42%);
  }

  body:not(.is-native-app) .rail-nav {
    gap: 18px;
    padding: 8px 2px 0;
  }

  body:not(.is-native-app) .rail-nav .nav-section-label {
    display: none;
  }

  body:not(.is-native-app) .rail-nav a {
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 56px;
    column-gap: 15px;
    border-radius: 10px;
    padding: 9px 14px;
    color: #fffaf0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.08;
    text-shadow: 0 2px 8px rgb(0 0 0 / 36%);
  }

  body:not(.is-native-app) .rail-nav a[data-route-link="help"] {
    margin-top: 8px;
  }

  body:not(.is-native-app) .rail-nav a.is-active {
    background: linear-gradient(135deg, #1bb2aa, #0b807b);
    color: #fff;
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / 22%),
      0 14px 28px rgb(0 0 0 / 28%);
  }

  body:not(.is-native-app) .rail-nav a small {
    margin-top: 2px;
    color: #ffc84a;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.12;
    text-shadow: 0 2px 8px rgb(0 0 0 / 38%);
  }

  body:not(.is-native-app) .rail-nav a .ref-nav-icon {
    width: 40px;
    height: 40px;
    border-radius: 0;
    filter: drop-shadow(0 2px 5px rgb(0 0 0 / 38%));
  }

  body:not(.is-native-app) .rail-card {
    margin: auto 4px 0;
    border: 1px solid rgb(255 255 255 / 13%);
    border-radius: 18px;
    padding: 18px 16px 15px;
    background:
      linear-gradient(145deg, rgb(255 255 255 / 11%), rgb(255 255 255 / 6%)),
      rgb(255 255 255 / 5%);
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / 10%),
      0 18px 36px rgb(0 0 0 / 24%);
  }

  body:not(.is-native-app) .rail-card .eyebrow {
    color: #58d9cf;
    font-size: 11px;
    letter-spacing: .13em;
  }

  body:not(.is-native-app) .rail-card p {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 11px;
    margin-top: 10px;
    color: #fffaf0;
  }

  body:not(.is-native-app) .rail-card .rail-avatar {
    width: 54px;
    height: 54px;
    box-shadow: 0 8px 18px rgb(0 0 0 / 26%);
  }

  body:not(.is-native-app) .rail-card p strong {
    font-size: 18px;
    line-height: 1.08;
  }

  body:not(.is-native-app) .rail-card p small {
    color: #fff6df;
    font-size: 14px;
    line-height: 1.15;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  body:not(.is-native-app) .logout-button {
    min-height: 50px;
    margin-top: 18px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #1bb2aa, #0b807b);
    color: #fff;
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / 18%),
      0 12px 24px rgb(0 0 0 / 24%);
    font-size: 15px;
    font-weight: 700;
  }

  body:not(.is-native-app) .logout-button-icon {
    width: 24px;
    height: 24px;
    background: rgb(255 255 255 / 14%);
    color: #fff;
  }
}

.service-health-notice {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: 20px;
  left: max(16px, env(safe-area-inset-left, 0px));
  z-index: 1001;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: min(720px, calc(100vw - 32px));
  max-width: 100%;
  margin-inline: auto;
  border: 2px solid var(--danger);
  border-radius: 12px;
  padding: 12px 12px 12px 16px;
  background: var(--paper-strong);
  color: var(--ink);
  box-shadow: 0 18px 54px rgb(32 32 28 / 24%);
}

.service-health-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  font-size: 14px;
  line-height: 1.4;
}

.service-health-copy strong {
  color: var(--danger);
  font-size: 15px;
}

.service-health-copy small {
  color: var(--muted);
  font-size: 12px;
}

.service-health-notice button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  background: var(--danger);
  color: var(--white);
  font-weight: 700;
}

.service-health-notice button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.state-sync-notice {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  left: max(16px, env(safe-area-inset-left, 0px));
  z-index: 1000;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: min(720px, calc(100vw - 32px));
  max-width: 100%;
  margin-inline: auto;
  border: 2px solid var(--danger);
  border-radius: 12px;
  padding: 12px 12px 12px 16px;
  background: var(--paper-strong);
  color: var(--ink);
  box-shadow: 0 18px 54px rgb(32 32 28 / 24%);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
}

.state-sync-notice button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  background: var(--danger);
  color: var(--white);
  font-weight: 700;
}

.state-sync-notice button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .service-health-notice,
  .state-sync-notice {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px;
  }

  .service-health-notice button,
  .state-sync-notice button {
    width: 100%;
  }
}

/* Audit remediation: keep dashboard media and mobile form grids inside their viewport. */
.family-command-hero > * {
  min-width: 0;
}

.family-command-hero > figure.family-hero-illustration img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-width: 0;
  object-fit: contain;
}

@media (max-width: 820px) {
  .service-health-notice {
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }

  body:not(.is-native-app) {
    --app-page-title-size: clamp(32px, 9vw, 40px);
    --app-section-title-size: clamp(26px, 8vw, 36px);
  }

  /* Keep phone decisions above the later cross-route safety defaults. */
  html body:not(.is-native-app) {
    --app-page-title-size: clamp(32px, 9vw, 40px);
    --app-section-title-size: clamp(26px, 8vw, 36px);
  }

  body:not(.is-native-app) .workspace {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: clamp(14px, 4vw, 20px);
    padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
  }

  body:not(.is-native-app) .mobile-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  body:not(.is-native-app) .mobile-nav > a,
  body:not(.is-native-app) .mobile-nav > button {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 2px;
    min-width: 0;
    min-height: 56px;
    border-radius: 12px;
    padding: 6px 2px;
    color: #fff9ed;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.05;
    text-align: center;
  }

  body:not(.is-native-app) .mobile-nav > button.is-active {
    background: linear-gradient(135deg, #149b95, #0c7873);
  }

  .mobile-more-glyph {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: #72cfc7;
    font-size: 22px;
    letter-spacing: 1px;
    line-height: 1;
  }

  body:not(.is-native-app) .app-page {
    min-width: 0;
    max-width: 100%;
  }

  body:not(.is-native-app) .family-page {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.is-native-app) .dashboard-grid.three-col {
    grid-template-columns: minmax(0, 1fr);
  }

  html body:not(.is-native-app) .app-shell :is(.family-page, .dashboard-grid.three-col) {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.is-native-app) .family-page > * {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  body:not(.is-native-app) .settings-brand-card {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.is-native-app) .settings-brand-card > * {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  body:not(.is-native-app) .topbar {
    min-width: 0;
    max-width: 100%;
  }

  body:not(.is-native-app) .workspace:has(#week:not([hidden])) .topbar h1,
  body:not(.is-native-app) .topbar h1 {
    max-width: 100%;
    font-size: clamp(30px, 9vw, 40px);
    line-height: 1;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  body:not(.is-native-app) .custom-color-picker {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  html body:not(.is-native-app) .app-shell .custom-color-picker {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.is-native-app) .custom-color-options {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  body:not(.is-native-app) .custom-color-option {
    width: var(--app-touch-target-min);
    min-width: var(--app-touch-target-min);
    height: var(--app-touch-target-min);
    flex: 0 0 var(--app-touch-target-min);
  }

  body:not(.is-native-app) .settings-tabs {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr));
  }

  html body:not(.is-native-app) .app-shell .settings-tabs {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr));
  }

  body:not(.is-native-app) :is(.mock-popover code, .mock-perheinbox-card code) {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body:not(.is-native-app) .chores-tabs button,
  body:not(.is-native-app) .chore-stats-tabs button,
  body:not(.is-native-app) .user-profile-tabs button {
    min-height: var(--app-touch-target-min);
  }

  body:not(.is-native-app) .week-nav #weekTodayButton {
    min-height: var(--app-touch-target-min);
  }

  body:not(.is-native-app) .chore-form-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.is-native-app) .chore-form-review {
    position: static;
  }

  body:not(.is-native-app) .chore-form-choice-grid,
  body:not(.is-native-app) .chore-form-choice-grid.is-compact {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.is-native-app) .chore-form-choice {
    min-height: var(--app-touch-target-min);
  }

  body:not(.is-native-app) .chore-form-actions button {
    min-height: var(--app-touch-target-min);
  }

  body:not(.is-native-app) .chore-point-presets button {
    min-height: var(--app-touch-target-min);
  }

  .dashboard-attention-heading,
  .integration-health-heading,
  .dashboard-attention-item,
  .dashboard-attention-empty {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-attention-item .compact-button,
  .dashboard-attention-heading .compact-button,
  .integration-health-heading .compact-button {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .marketing-header {
    position: sticky;
    top: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 72px;
    padding: 10px 14px;
  }

  .marketing-header .auth-brand {
    width: min(166px, 100%);
    min-width: 0;
  }

  .marketing-header .brand-logo-image {
    width: 100%;
    max-width: 166px;
  }

  .marketing-header .brand-tagline {
    margin-top: -2px;
    font-size: 10px;
  }

  .marketing-header > .marketing-nav {
    display: none;
  }

  .marketing-header-actions {
    display: grid;
    grid-template-columns: auto 44px;
    gap: 8px;
    justify-content: end;
    width: auto;
  }

  .marketing-header-actions .ghost-button {
    display: none;
  }

  .marketing-header-actions .primary-button {
    min-width: 0;
    width: auto;
    min-height: 44px;
    padding-inline: 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  .public-menu-button {
    position: relative;
    display: inline-grid;
    min-width: 44px;
    min-height: 44px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--teal) 32%, var(--line));
    border-radius: 12px;
    padding: 0;
    background: color-mix(in srgb, var(--teal) 8%, var(--paper-strong));
    color: var(--teal);
    cursor: pointer;
  }

  .public-menu-button span,
  .public-menu-button::before,
  .public-menu-button::after {
    position: absolute;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    content: "";
  }

  .public-menu-button::before {
    transform: translateY(-6px);
  }

  .public-menu-button::after {
    transform: translateY(6px);
  }

}
/* PF2/PF4/PF6: one visible reliability layer for attention and integration freshness. */
.dashboard-attention-center,
.integration-health-card {
  min-width: 0;
}

.dashboard-attention-center {
  margin-block: 18px;
}

.dashboard-attention-heading,
.integration-health-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.dashboard-attention-heading > div,
.integration-health-heading > div,
.dashboard-attention-item > div,
.integration-health-item-main > div {
  min-width: 0;
}

.dashboard-attention-heading p,
.integration-health-heading p {
  margin-bottom: 0;
}

.dashboard-attention-list,
.integration-health-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.dashboard-attention-item,
.dashboard-attention-empty,
.integration-health-item {
  border: 1px solid rgba(47, 111, 115, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.dashboard-attention-item,
.dashboard-attention-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 16px;
}

.dashboard-attention-item strong,
.dashboard-attention-item small,
.dashboard-attention-empty strong,
.dashboard-attention-empty span,
.integration-health-item strong,
.integration-health-item b,
.integration-health-item small {
  display: block;
  overflow-wrap: anywhere;
}

.dashboard-attention-item small,
.dashboard-attention-empty span,
.integration-health-item small,
.integration-health-meta {
  color: var(--muted, #66726f);
}

.dashboard-attention-item.is-routing {
  border-left: 5px solid #d7a44a;
}

.dashboard-attention-item.is-urgent-ack,
.dashboard-attention-item.is-integration {
  border-left: 5px solid #c04d50;
}

.dashboard-attention-item.is-urgent-ack {
  align-items: stretch;
  padding: 18px 18px 18px 20px;
}

.dashboard-attention-content {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.dashboard-attention-copy {
  display: grid;
  gap: 3px;
}

.dashboard-attention-kicker {
  color: #a43f43;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-attention-copy > strong {
  font-size: 1rem;
  line-height: 1.35;
}

.dashboard-attention-copy time {
  color: var(--muted, #66726f);
  font-size: 0.82rem;
}

.dashboard-attention-people {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.dashboard-attention-people-group {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.dashboard-attention-people-group > span:first-child {
  color: var(--muted, #66726f);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-attention-recipient-list {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-attention-person {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 5px;
  border: 1px solid rgba(47, 111, 115, 0.14);
  border-radius: 999px;
  background: rgba(240, 247, 244, 0.76);
}

.dashboard-attention-person.is-pending {
  border-color: rgba(192, 77, 80, 0.24);
  background: rgba(255, 241, 239, 0.82);
}

.dashboard-attention-person > span:last-child {
  min-width: 0;
}

.dashboard-attention-person strong,
.dashboard-attention-person small {
  overflow-wrap: anywhere;
}

.dashboard-attention-person strong {
  font-size: 0.82rem;
  line-height: 1.15;
}

.dashboard-attention-person small {
  font-size: 0.68rem;
  line-height: 1.2;
}

.dashboard-attention-avatar {
  width: 32px;
  min-width: 32px;
  height: 32px;
}

.dashboard-attention-action {
  display: grid;
  flex: 0 0 min(190px, 28%);
  align-content: center;
  justify-items: stretch;
  gap: 7px;
}

.dashboard-attention-action > small,
.dashboard-attention-action > span {
  text-align: center;
}

.dashboard-attention-action > span {
  min-height: 1em;
  color: #a43f43;
  font-size: 0.72rem;
}

.dashboard-attention-action button:disabled {
  cursor: wait;
  opacity: 0.68;
}

@media screen and (max-width: 760px) {
  .dashboard-attention-item.is-urgent-ack {
    flex-direction: column;
    padding: 16px;
  }

  .dashboard-attention-people {
    flex-direction: column;
    gap: 12px;
  }

  .dashboard-attention-recipient-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-attention-person {
    width: 100%;
    border-radius: 14px;
  }

  .dashboard-attention-action {
    width: 100%;
    flex: 1 1 auto;
  }

  .dashboard-attention-action button {
    width: 100%;
    min-height: 44px;
  }
}

.dashboard-attention-empty {
  justify-content: flex-start;
  border-color: rgba(47, 111, 115, 0.24);
  background: rgba(226, 242, 237, 0.58);
}

.integration-health-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.integration-health-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}

.integration-health-item-main {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.integration-health-indicator {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 50%;
  background: #8b9692;
  box-shadow: 0 0 0 5px rgba(139, 150, 146, 0.12);
}

.integration-health-item[data-tone="success"] .integration-health-indicator {
  background: #2f8a61;
  box-shadow: 0 0 0 5px rgba(47, 138, 97, 0.13);
}

.integration-health-item[data-tone="pending"] .integration-health-indicator {
  background: #d7a44a;
  box-shadow: 0 0 0 5px rgba(215, 164, 74, 0.14);
}

.integration-health-item[data-tone="error"] .integration-health-indicator {
  background: #c04d50;
  box-shadow: 0 0 0 5px rgba(192, 77, 80, 0.13);
}

.integration-health-meta,
.integration-health-actions {
  display: grid;
  gap: 8px;
}

.integration-health-actions {
  margin-top: auto;
}

.integration-health-actions .compact-button {
  width: 100%;
  min-width: 0;
  white-space: normal;
}

@media (max-width: 1024px) {
  .integration-health-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* S12: user-visible data lifecycle and account privacy controls. */
.privacy-settings-panel,
.privacy-settings-panel > *,
.privacy-category-item,
.privacy-retention-item,
.privacy-provider-item {
  min-width: 0;
}

.privacy-heading,
.privacy-retention-item,
.privacy-provider-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.privacy-heading > div,
.privacy-retention-item > div,
.privacy-provider-item > div {
  min-width: 0;
}

.privacy-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
  margin-top: 18px;
}

.privacy-category-item,
.privacy-retention-item,
.privacy-provider-item,
.privacy-deletion-status {
  border: 1px solid rgba(47, 111, 115, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  padding: 14px 16px;
}

.privacy-category-item strong,
.privacy-category-item span,
.privacy-retention-item strong,
.privacy-retention-item span,
.privacy-retention-item b,
.privacy-provider-item strong,
.privacy-provider-item span,
.privacy-provider-item p,
.privacy-deletion-status strong,
.privacy-deletion-status span,
.privacy-deletion-status small {
  display: block;
  overflow-wrap: anywhere;
}

.privacy-category-item span,
.privacy-retention-item span,
.privacy-provider-item span,
.privacy-provider-item p,
.privacy-deletion-status span,
.privacy-deletion-status small {
  color: var(--muted, #66726f);
}

.privacy-retention-list,
.privacy-provider-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.privacy-retention-item b {
  flex: 0 0 auto;
  color: var(--teal, #2f6f73);
  text-align: right;
}

.privacy-provider-item p {
  max-width: 52ch;
  margin: 0;
}

.privacy-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-block: 18px 12px;
}

.privacy-action-buttons > * {
  min-height: 44px;
}

.privacy-deletion-status {
  display: grid;
  gap: 4px;
  background: rgba(226, 242, 237, 0.5);
}

.privacy-delete-confirmation {
  align-items: flex-start;
}

.privacy-reauth-dialog .inbox-share-form {
  width: min(100%, 560px);
}

/* Authenticated layout safety pass: readable type, useful card widths and
   content-driven grids across every signed-in route. */
body:not(.is-native-app) {
  --app-page-title-size: clamp(36px, 4vw, 60px);
  --app-section-title-size: clamp(28px, 2.4vw, 42px);
}

body:not(.is-native-app) .app-shell .topbar h1 {
  max-width: min(100%, 20ch);
  font-size: var(--app-page-title-size) !important;
  line-height: .96;
  overflow-wrap: anywhere;
}

body:not(.is-native-app) .app-shell :is(
  .panel h2,
  .section-heading h2,
  .family-section-heading h2,
  .product-card h2,
  .page-intro h2,
  .chores-hero h2,
  .family-command-hero h2,
  .week-panel .panel-header h2,
  .reminder-queue-panel h2
) {
  max-width: 24ch;
  font-size: var(--app-section-title-size) !important;
  line-height: 1;
  overflow-wrap: anywhere;
}

body:not(.is-native-app) .app-shell :is(.app-page, .settings-tab-panel) > * {
  min-width: 0;
  max-width: 100%;
}

body:not(.is-native-app) .app-shell :is(p, li, dd, small, strong, label, button) {
  overflow-wrap: anywhere;
  word-break: normal;
}

body:not(.is-native-app) .app-shell :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]),
  select,
  textarea
) {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

body:not(.is-native-app) .app-shell .family-page {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 22px;
}

body:not(.is-native-app) .app-shell .family-page > :is(
  .family-account-notice,
  .user-edit-panel
) {
  grid-column: 1 / -1;
}

body:not(.is-native-app) .app-shell .family-page > .user-edit-panel {
  grid-column: 1 / -1;
}

body:not(.is-native-app) .app-shell :is(
  .compact-form,
  .account-form,
  .profile-settings-card .account-form
) {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

body:not(.is-native-app) .app-shell :is(
  .compact-form .full-button,
  .compact-form .form-note,
  .account-form .full-button,
  .account-form .form-note,
  .profile-settings-card .profile-avatar-picker,
  .profile-settings-card .color-field
) {
  grid-column: 1 / -1;
}

body:not(.is-native-app) .app-shell .metric-strip {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}

body:not(.is-native-app) .app-shell .metric-strip article {
  min-width: 0;
  min-height: 0;
}

body:not(.is-native-app) .app-shell .metric-strip strong {
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1;
}

body:not(.is-native-app) .app-shell .dashboard-grid.three-col {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

body:not(.is-native-app) .app-shell .dashboard-grid.three-col > * {
  min-width: 0;
}

body:not(.is-native-app) .app-shell .week-page-shell {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
}

body:not(.is-native-app) .app-shell .settings-tabs {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 8px;
}

body:not(.is-native-app) .app-shell .settings-tab-panel > .panel,
body:not(.is-native-app) .app-shell .inbox-settings-subpanel > .panel,
body:not(.is-native-app) .app-shell .integration-health-card,
body:not(.is-native-app) .app-shell .privacy-settings-panel > .panel {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
}

body:not(.is-native-app) .app-shell .allowed-sender-add-card {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

body:not(.is-native-app) .app-shell .custom-color-picker {
  grid-template-columns: minmax(72px, 112px) minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  max-width: 100%;
}

body:not(.is-native-app) .app-shell .custom-color-current {
  height: calc(var(--user-field-height, 48px) - 14px);
}

body:not(.is-native-app) .app-shell .custom-color-options {
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: flex-start;
}

body:not(.is-native-app) .app-shell .rail-card p strong {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

body:not(.is-native-app) .app-shell :is(
  .member-row,
  .user-edit-card,
  .user-edit-card *,
  .route-card,
  .product-card,
  .settings-card,
  .help-topic,
  .wilma-message-ticket
) {
  min-width: 0;
}

@media (max-width: 1260px) {
  body:not(.is-native-app) .app-shell .week-page-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.is-native-app) .app-shell .reminder-queue-panel {
    position: static;
  }

  body:not(.is-native-app) .app-shell .dashboard-grid.three-col {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  }
}

/* Authenticated workspace density correction. */
body:not(.is-native-app) {
  --app-page-title-size: clamp(38px, 3.6vw, 50px);
  --app-section-title-size: clamp(25px, 2vw, 34px);
}

body:not(.is-native-app) .app-shell .workspace {
  gap: 18px;
  width: 100%;
  max-width: 1500px;
  padding: 22px clamp(20px, 2.4vw, 34px) 88px;
}

body:not(.is-native-app) .app-shell .app-page {
  gap: 18px;
}

body:not(.is-native-app) .app-shell .topbar {
  align-items: center;
  gap: 18px;
}

body:not(.is-native-app) .app-shell .topbar h1 {
  max-width: 24ch;
  font-size: var(--app-page-title-size) !important;
  line-height: 1;
  overflow-wrap: normal;
  word-break: normal;
}

body:not(.is-native-app) .app-shell .topbar-actions {
  flex-wrap: nowrap;
  min-width: 0;
}

body:not(.is-native-app) .app-shell .topbar .session-switcher {
  width: min(100%, 300px);
  min-width: 260px;
}

body:not(.is-native-app) .app-shell .panel,
body:not(.is-native-app) .app-shell .product-card {
  padding: clamp(16px, 1.7vw, 22px);
}

body:not(.is-native-app) .app-shell :is(
  .panel h2,
  .section-heading h2,
  .family-section-heading h2,
  .product-card h2,
  .page-intro h2,
  .week-panel .panel-header h2,
  .reminder-queue-panel h2,
  .settings-card h2,
  .settings-brand-card h2,
  .settings-inbox-card h2,
  .settings-billing-card h2,
  .settings-calendar-card h2,
  .user-admin-panel .panel-header h2,
  .user-edit-panel .panel-header h2
) {
  max-width: 28ch;
  font-size: var(--app-section-title-size) !important;
  line-height: 1.05;
  overflow-wrap: normal;
  word-break: normal;
}

body:not(.is-native-app) .app-shell :is(p, li, dd, small) {
  overflow-wrap: break-word;
  word-break: normal;
}

body:not(.is-native-app) .app-shell strong {
  overflow-wrap: anywhere;
  word-break: normal;
}

body:not(.is-native-app) .app-shell :is(label, button, legend) {
  overflow-wrap: normal;
  word-break: normal;
}

body:not(.is-native-app) .app-shell :is(input[type="checkbox"], input[type="radio"]) {
  box-sizing: border-box;
  flex: 0 0 18px;
  width: 18px !important;
  min-width: 18px !important;
  height: 18px;
  min-height: 18px !important;
  margin: 0;
  padding: 0;
}

body:not(.is-native-app) .app-shell :is(
  .settings-tabs,
  .inbox-settings-tabs,
  .chores-tabs,
  .chore-stats-tabs,
  .settings-subtabs
) {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 5px;
  scrollbar-width: thin;
}

body:not(.is-native-app) .app-shell :is(
  .settings-tabs,
  .inbox-settings-tabs,
  .chores-tabs,
  .chore-stats-tabs,
  .settings-subtabs
) button {
  flex: 0 0 auto;
  min-height: 42px;
  border-radius: 10px;
  padding: 0 13px;
  font-size: 14px;
  white-space: nowrap;
}

body:not(.is-native-app) .app-shell .chores-tabs {
  width: max-content;
  border: 1px solid var(--reference-line);
}

body:not(.is-native-app) .app-shell .member-row {
  padding: 10px 14px;
}

body:not(.is-native-app) .app-shell .member-row > div {
  min-width: 0;
  max-width: 100%;
}

body:not(.is-native-app) .app-shell .member-row :is(strong, small) {
  max-width: 100%;
  overflow-wrap: anywhere;
}

body:not(.is-native-app) .app-shell .allowed-sender-main > div {
  min-width: 0;
}

body:not(.is-native-app) .app-shell .allowed-sender-row small span {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

body:not(.is-native-app) .app-shell .family-page {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body:not(.is-native-app) .app-shell .family-page > .user-edit-panel,
body:not(.is-native-app) .app-shell .family-page > .family-account-notice {
  grid-column: 1 / -1;
}

body:not(.is-native-app) .app-shell .family-command-hero {
  grid-template-columns: minmax(180px, 250px) minmax(0, 1fr);
  gap: 16px 20px;
  min-height: 0;
  padding: 18px 20px;
}

body:not(.is-native-app) .app-shell .family-hero-illustration {
  grid-column: 1;
  grid-row: 1;
}

body:not(.is-native-app) .app-shell .family-hero-illustration img {
  min-height: 0;
  max-height: 150px;
}

body:not(.is-native-app) .app-shell .family-hero-copy {
  grid-column: 2;
  grid-row: 1;
}

body:not(.is-native-app) .app-shell .family-command-hero h2 {
  max-width: 18ch;
  font-size: clamp(36px, 3.8vw, 54px) !important;
  line-height: 1;
  overflow-wrap: normal;
}

body:not(.is-native-app) .app-shell .family-hero-stats {
  grid-column: 1 / -1;
  grid-row: 2;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 9px;
}

body:not(.is-native-app) .app-shell .family-hero-stats span {
  grid-template-columns: 36px max-content max-content;
  justify-content: center;
  min-height: 70px;
  gap: 9px;
  padding: 10px;
}

body:not(.is-native-app) .app-shell .workspace:has(#dashboard:not([hidden])) .family-hero-stats span::before {
  width: 36px;
  height: 36px;
}

body:not(.is-native-app) .app-shell .family-hero-stats :is(strong, small) {
  overflow-wrap: normal;
  word-break: normal;
}

body:not(.is-native-app) .app-shell .chores-hero {
  grid-template-columns: minmax(0, 1fr) minmax(420px, .82fr);
  gap: 18px;
  overflow: hidden;
  padding: 18px 20px;
}

body:not(.is-native-app) .app-shell .chores-hero > *,
body:not(.is-native-app) .app-shell .chores-hero-metrics > * {
  min-width: 0;
  max-width: 100%;
}

body:not(.is-native-app) .app-shell .chores-hero h2 {
  max-width: 24ch;
  font-size: clamp(30px, 2.9vw, 42px) !important;
  line-height: 1.03;
  overflow-wrap: normal;
}

body:not(.is-native-app) .app-shell .chores-hero-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body:not(.is-native-app) .app-shell .chores-hero-metrics article,
body:not(.is-native-app) .app-shell .chores-hero-metrics article.is-points {
  grid-column: auto;
  min-height: 58px;
  padding: 9px 11px;
}

body:not(.is-native-app) .app-shell .chores-hero-metrics .chore-streak-spotlight {
  grid-column: 1 / -1;
  width: 100%;
}

body:not(.is-native-app) .app-shell :is(.inbox-page-summary, .help-page .page-intro) {
  display: block;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  padding: 18px 20px;
  font-size: 15px;
}

body:not(.is-native-app) .app-shell .inbox-page-summary::before,
body:not(.is-native-app) .app-shell .help-page .page-intro::before {
  display: none;
}

body:not(.is-native-app) .app-shell .profile-settings-card::after,
body:not(.is-native-app) .app-shell .settings-brand-card::after,
body:not(.is-native-app) .app-shell .family-page .family-overview::after,
body:not(.is-native-app) .app-shell .settings-tab-panel[data-settings-panel="profile"]::after {
  display: none;
}

body:not(.is-native-app) .app-shell .help-topic-summary {
  min-height: 96px;
  padding: 18px 20px;
}

body:not(.is-native-app) .app-shell .help-topic-heading {
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
}

body:not(.is-native-app) .app-shell .help-topic-heading::before {
  width: 56px;
  border-radius: 13px;
}

body:not(.is-native-app) .app-shell .help-topic-heading strong {
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.05;
}

body:not(.is-native-app) .app-shell .calendar-feed-create-grid {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
}

body:not(.is-native-app) .app-shell .preset-calendar-feed,
body:not(.is-native-app) .app-shell .preset-calendar-feed > * {
  min-width: 0;
  max-width: 100%;
}

body:not(.is-native-app) .app-shell .preset-calendar-feed small {
  overflow-wrap: anywhere;
  word-break: break-word;
}

body:not(.is-native-app) .app-shell .integration-source-issue {
  display: grid;
  gap: 2px;
  border-left: 3px solid var(--danger);
  padding: 7px 10px;
  background: color-mix(in srgb, var(--danger) 7%, transparent);
  color: var(--muted);
}

body:not(.is-native-app) .app-shell .integration-source-issue strong {
  color: var(--ink);
}

@media (min-width: 1051px) {
  body:not(.is-native-app) .app-shell {
    grid-template-columns: 216px minmax(0, 1fr);
  }

  body:not(.is-native-app) .rail {
    width: 216px;
    gap: 18px;
    overflow-y: auto;
    padding: 24px 14px 16px;
  }

  body:not(.is-native-app) .rail .brand-logo-image-desktop {
    width: 154px;
  }

  body:not(.is-native-app) .rail .brand-tagline {
    margin-top: -10px;
    margin-left: 53px;
    font-size: 11px;
  }

  body:not(.is-native-app) .rail-nav {
    gap: 4px;
    padding: 0;
  }

  body:not(.is-native-app) .rail-nav a {
    grid-template-columns: 30px minmax(0, 1fr);
    min-height: 44px;
    column-gap: 10px;
    border-radius: 9px;
    padding: 5px 9px;
    font-size: 15px;
    line-height: 1.1;
  }

  body:not(.is-native-app) .rail-nav a[data-route-link="help"] {
    margin-top: 0;
  }

  body:not(.is-native-app) .rail-nav a .ref-nav-icon {
    width: 32px;
    height: 32px;
  }

  body:not(.is-native-app) .rail-nav a small {
    margin-top: 0;
    font-size: 11px;
  }

  body:not(.is-native-app) .rail-card {
    margin-inline: 0;
    border-radius: 12px;
    padding: 11px;
  }

  body:not(.is-native-app) .rail-card .eyebrow {
    font-size: 9px;
  }

  body:not(.is-native-app) .rail-card p {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px;
    margin-top: 7px;
  }

  body:not(.is-native-app) .rail-card .rail-avatar {
    width: 36px;
    height: 36px;
  }

  body:not(.is-native-app) .rail-card p strong {
    font-size: 14px;
  }

  body:not(.is-native-app) .rail-card p small {
    font-size: 11px;
  }

  body:not(.is-native-app) .logout-button {
    min-height: 42px;
    margin-top: 10px;
    font-size: 13px;
  }
}

@media (min-width: 821px) and (max-width: 1260px) {
  body:not(.is-native-app) .app-shell .chores-hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media screen and (max-width: 820px) {
  body:not(.is-native-app) {
    --app-page-title-size: clamp(30px, 8vw, 36px);
    --app-section-title-size: clamp(24px, 7vw, 30px);
  }

  body:not(.is-native-app) .workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.is-native-app) .app-page {
    min-width: 0;
    max-width: 100%;
  }

  body:not(.is-native-app) .family-page {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.is-native-app) .family-page > * {
    grid-column: 1 / -1;
    min-width: 0;
  }

  body:not(.is-native-app) .settings-brand-card {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.is-native-app) .settings-brand-card > * {
    grid-column: 1 / -1;
    min-width: 0;
  }

  body:not(.is-native-app) .app-shell .workspace {
    gap: 14px;
    padding: 16px 14px calc(104px + env(safe-area-inset-bottom, 0px));
  }

  body:not(.is-native-app) .app-shell .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  body:not(.is-native-app) .app-shell .topbar h1 {
    font-size: var(--app-page-title-size) !important;
  }

  body:not(.is-native-app) .app-shell .topbar .eyebrow {
    margin-bottom: 4px;
    font-size: 10px;
  }

  body:not(.is-native-app) .app-shell .topbar-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
  }

  body:not(.is-native-app) .app-shell .topbar .session-switcher {
    width: 100%;
    min-width: 0;
  }

  body:not(.is-native-app) .app-shell .topbar .session-switcher > span {
    display: none;
  }

  body:not(.is-native-app) .app-shell .topbar .session-switcher select {
    min-height: 44px;
  }

  body:not(.is-native-app) .app-shell :is(.settings-tabs, .inbox-settings-tabs) {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  body:not(.is-native-app) .app-shell :is(.settings-tabs, .inbox-settings-tabs) button {
    width: auto;
    min-width: 92px;
  }

  body:not(.is-native-app) .app-shell :is(.chores-tabs, .chore-stats-tabs, .settings-subtabs) {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  body:not(.is-native-app) .app-shell .chores-tabs {
    width: 100%;
    min-width: 0;
  }

  body:not(.is-native-app) .app-shell :is(
    .settings-tabs,
    .inbox-settings-tabs,
    .chores-tabs,
    .chore-stats-tabs,
    .settings-subtabs
  ) button {
    min-height: 44px;
    padding-inline: 12px;
    font-size: 13px;
  }


  body:not(.is-native-app) .app-shell .family-command-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  body:not(.is-native-app) .app-shell .family-hero-illustration {
    display: none;
  }

  body:not(.is-native-app) .app-shell .family-hero-copy {
    grid-column: 1;
    grid-row: 1;
  }

  body:not(.is-native-app) .app-shell .family-command-hero h2 {
    font-size: clamp(30px, 9vw, 38px) !important;
  }

  body:not(.is-native-app) .app-shell .family-command-hero p:last-child {
    margin-block: 8px 0;
    font-size: 14px;
  }

  body:not(.is-native-app) .app-shell .family-hero-stats {
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body:not(.is-native-app) .app-shell .workspace:has(#dashboard:not([hidden])) .family-hero-stats span {
    grid-template-columns: 30px max-content max-content;
    justify-content: center;
    min-height: 62px;
    gap: 6px;
    padding: 8px;
  }

  body:not(.is-native-app) .app-shell .workspace:has(#dashboard:not([hidden])) .family-hero-stats span::before {
    width: 30px;
    height: 30px;
  }

  body:not(.is-native-app) .app-shell .chores-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
  }

  body:not(.is-native-app) .app-shell .chores-hero h2 {
    font-size: clamp(28px, 8vw, 34px) !important;
  }

  body:not(.is-native-app) .app-shell .chores-hero p:last-child {
    margin-top: 8px;
    font-size: 14px;
  }

  body:not(.is-native-app) .app-shell .chores-hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  body:not(.is-native-app) .app-shell .chores-hero-metrics article,
  body:not(.is-native-app) .app-shell .chores-hero-metrics article.is-points {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    min-height: 70px;
    padding: 8px 5px;
    text-align: center;
  }

  body:not(.is-native-app) .app-shell .chores-hero-metrics .chore-streak-spotlight {
    grid-column: 1 / -1;
    grid-template-columns: 48px minmax(0, 1fr);
    justify-items: stretch;
    min-height: 0;
    padding: 10px;
    text-align: left;
  }

  body:not(.is-native-app) .app-shell .chore-streak-spotlight .streak-medal {
    width: 46px;
    height: 46px;
  }

  body:not(.is-native-app) .app-shell .chore-streak-spotlight .streak-copy strong {
    font-size: 22px;
  }

  body:not(.is-native-app) .app-shell .chores-hero-metrics .metric-icon {
    display: none;
  }

  body:not(.is-native-app) .app-shell .chores-hero-metrics strong {
    font-size: 23px;
  }

  body:not(.is-native-app) .app-shell :is(.inbox-page-summary, .help-page .page-intro) {
    padding: 16px;
    font-size: 14px;
  }

  body:not(.is-native-app) .app-shell .calendar-feed-create-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.is-native-app) .app-shell .help-topic-summary {
    min-height: 0;
    padding: 15px;
  }

  body:not(.is-native-app) .app-shell .help-topic-heading {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
  }

  body:not(.is-native-app) .app-shell .help-topic-heading::before {
    width: 44px;
  }

  body:not(.is-native-app) .app-shell .help-topic-heading strong {
    font-size: 25px;
  }

  body:not(.is-native-app) .app-shell .chore-line-chart-card .chart-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  body:not(.is-native-app) .app-shell .chore-line-chart-card .chart-header > div {
    min-width: 0;
  }

  body:not(.is-native-app) .app-shell .chore-line-chart-card .chart-header small {
    white-space: normal;
  }
}

/* Pistejahti: selected child's motivating chores overview. */
.app-shell .chores-page .chores-hero {
  grid-template-columns: minmax(0, .94fr) minmax(390px, .76fr);
  gap: 20px;
  align-items: stretch;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--teal) 25%, var(--line));
  padding: 22px;
  background:
    linear-gradient(118deg, rgb(255 253 248 / 98%) 0 54%, rgb(235 247 242 / 96%) 100%),
    var(--paper-strong);
  box-shadow: 0 18px 44px rgb(32 54 48 / 10%);
}

.chore-hunt-intro,
.chore-hunt-side,
.chore-hunt-visual,
.chore-hunt-target-copy {
  min-width: 0;
}

.chore-hunt-intro {
  display: grid;
  grid-template-rows: repeat(4, auto);
  gap: 15px;
  align-content: start;
}

.chore-hunt-child {
  display: flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  color: var(--ink);
}

.chore-hunt-child .chore-hunt-avatar {
  width: 52px;
  height: 52px;
  border: 3px solid var(--child-color, var(--teal));
  background: var(--paper-strong);
  box-shadow: 0 7px 18px color-mix(in srgb, var(--child-color, var(--teal)) 20%, transparent);
}

.chore-hunt-child div {
  display: grid;
  gap: 1px;
}

.chore-hunt-child span,
.chore-hunt-target-copy span,
.chore-hunt-stats span,
.chore-hunt-illustration figcaption span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.chore-hunt-child strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1;
}

.chore-hunt-opportunity {
  --hunt-accent: #24a85b;
  position: relative;
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

.chore-hunt-opportunity::before {
  content: "";
  position: absolute;
  inset: 2px auto 2px 0;
  width: 5px;
  border-radius: 5px;
  background: var(--hunt-accent);
}

.chore-hunt-opportunity.is-pending {
  --hunt-accent: #d49b32;
}

.chore-hunt-opportunity.is-complete {
  --hunt-accent: var(--teal);
}

.chore-hunt-opportunity.is-rest {
  --hunt-accent: #6e7792;
}

.app-shell .chores-page .chore-hunt-opportunity h2 {
  max-width: 25ch;
  margin: 0;
  color: var(--ink);
  font-size: 33px !important;
  line-height: 1.03;
}

body:not(.is-native-app) .app-shell .chores-page .chore-hunt-opportunity h2 {
  max-width: 25ch;
  font-size: 33px !important;
}

.chore-hunt-opportunity-value {
  color: color-mix(in srgb, var(--hunt-accent) 80%, var(--ink));
  white-space: nowrap;
}

.app-shell .chores-page .chore-hunt-opportunity p,
.app-shell .chores-page .chore-hunt-opportunity p:last-child {
  max-width: 54ch;
  margin: 0;
  color: color-mix(in srgb, var(--ink) 66%, var(--muted));
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.chore-hunt-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid color-mix(in srgb, var(--teal) 18%, var(--line));
  padding-block: 11px;
}

.chore-hunt-stats article {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding-inline: 13px;
}

.chore-hunt-stats article:first-child {
  padding-left: 0;
}

.chore-hunt-stats article + article {
  border-left: 1px solid color-mix(in srgb, var(--teal) 16%, var(--line));
}

.chore-hunt-stats strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1;
  white-space: nowrap;
}

.chore-hunt-target {
  --target-accent: #d7a23e;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: center;
  align-self: start;
  border: 1px solid color-mix(in srgb, var(--target-accent) 34%, var(--line));
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(105deg, color-mix(in srgb, var(--target-accent) 10%, white), rgb(255 253 248 / 94%));
}

.chore-hunt-target.is-level {
  --target-accent: var(--teal);
}

.chore-hunt-target.is-complete {
  --target-accent: #2aae66;
}

.chore-hunt-target-icon {
  display: grid;
  grid-row: 1 / span 2;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--target-accent) 16%, white);
  color: color-mix(in srgb, var(--target-accent) 82%, var(--ink));
  font-size: 19px;
  font-weight: 900;
}

.chore-hunt-target-copy {
  display: grid;
  gap: 2px;
}

.chore-hunt-target-copy strong {
  color: var(--ink);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.chore-hunt-target-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.chore-hunt-target > b {
  align-self: start;
  border-radius: 999px;
  padding: 5px 7px;
  background: color-mix(in srgb, var(--target-accent) 14%, white);
  color: color-mix(in srgb, var(--target-accent) 75%, var(--ink));
  font-size: 12px;
}

.chore-hunt-target-track {
  grid-column: 2 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--target-accent) 10%, var(--line));
}

.chore-hunt-target-track i {
  display: block;
  width: max(3%, var(--target-progress));
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--target-accent), color-mix(in srgb, var(--target-accent) 52%, #29b966));
  transition: width 420ms ease;
}

.chore-hunt-side,
.chore-hunt-visual {
  display: grid;
  gap: 10px;
}

.chore-hunt-visual {
  grid-template-rows: 255px auto;
}

.chore-hunt-illustration {
  position: relative;
  height: 255px;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--teal) 22%, var(--line));
  border-radius: 8px;
  background: #e9f3ed url("/assets/chore-pistejahti-v1.webp") 56% 52% / cover no-repeat;
  box-shadow: 0 14px 28px rgb(25 70 59 / 13%);
}

.chore-hunt-illustration::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgb(16 48 42 / 48%));
  pointer-events: none;
}

.chore-hunt-illustration img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: 56% 52%;
  transition: transform 500ms ease;
}

.chore-hunt-illustration figcaption {
  position: absolute;
  z-index: 1;
  right: 12px;
  bottom: 12px;
  display: grid;
  gap: 1px;
  min-width: 112px;
  border: 1px solid rgb(255 255 255 / 58%);
  border-radius: 8px;
  padding: 9px 11px;
  background: rgb(255 253 248 / 92%);
  box-shadow: 0 8px 22px rgb(17 42 36 / 20%);
  backdrop-filter: blur(8px);
}

.chore-hunt-illustration figcaption strong {
  color: #14743f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1;
}

.chore-hunt-visual:hover .chore-hunt-illustration img {
  transform: scale(1.015);
}

.chore-line-chart-card.is-chore-hunt-chart {
  --chart-avatar-size: 30px;
  margin: 0;
  border-color: color-mix(in srgb, var(--teal) 20%, var(--line));
  padding: 11px 12px 9px;
  background: rgb(255 253 248 / 94%);
}

.chore-line-chart-card.is-chore-hunt-chart .chore-line-chart-plot {
  margin-block: 5px 9px;
}

.chore-line-chart-card.is-chore-hunt-chart .chart-header {
  align-items: center;
  margin-bottom: 7px;
}

.chore-line-chart-card.is-chore-hunt-chart .chart-header .eyebrow {
  display: none;
}

.chore-line-chart-card.is-chore-hunt-chart .chart-header h3 {
  font-size: 19px;
}

.chore-line-chart-card.is-chore-hunt-chart .chart-header small {
  font-size: 10px;
}

.chore-line-chart-card.is-chore-hunt-chart .chore-line-chart-plot {
  height: 70px;
}

.chore-line-chart-card.is-chore-hunt-chart .chore-line-chart path.chore-line-chart-line {
  stroke-width: 3.2;
}

.chore-line-chart-card.is-chore-hunt-chart .chart-axis {
  font-size: 10px;
}

.chore-line-chart-card.is-chore-hunt-chart .chart-legend {
  margin-top: 5px;
  font-size: 10px;
}

@media (max-width: 840px) {
  .app-shell .chores-page .chores-hero,
  body:not(.is-native-app) .app-shell .chores-page .chores-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .chore-hunt-visual {
    grid-template-columns: minmax(0, 1.1fr) minmax(250px, .9fr);
    grid-template-rows: auto;
    align-items: stretch;
  }

  .chore-hunt-illustration {
    height: 230px;
    min-height: 0;
  }

  .chore-hunt-illustration img {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .app-shell .chores-page .chores-hero,
  body:not(.is-native-app) .app-shell .chores-page .chores-hero {
    gap: 16px;
    padding: 15px;
  }

  .app-shell .chores-page .chore-hunt-opportunity h2 {
    max-width: none;
    font-size: 30px !important;
  }

  body:not(.is-native-app) .app-shell .chores-page .chore-hunt-opportunity h2 {
    max-width: none;
    font-size: 30px !important;
  }

  .chore-hunt-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 0;
  }

  .chore-hunt-stats article {
    padding-inline: 10px;
  }

  .chore-hunt-stats article:nth-child(2) {
    border-left: 1px solid color-mix(in srgb, var(--teal) 16%, var(--line));
  }

  .chore-hunt-stats article:nth-child(3) {
    grid-column: 1 / -1;
    border-top: 1px solid color-mix(in srgb, var(--teal) 16%, var(--line));
    border-left: 0;
    padding-top: 10px;
    padding-left: 0;
  }

  .chore-hunt-target {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    padding: 10px;
  }

  .chore-hunt-target-icon {
    width: 38px;
    height: 38px;
  }

  .chore-hunt-visual {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 160px auto;
  }

  .chore-hunt-illustration,
  .chore-hunt-illustration img {
    height: 160px;
    min-height: 0;
  }

  .chore-line-chart-card.is-chore-hunt-chart .chore-line-chart-plot {
    height: 64px;
  }

  .chore-line-chart-card.is-chore-hunt-chart .chart-legend {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .all-chore-summary-card,
  .all-chore-group > summary::after {
    transition: none;
  }

  .all-chore-summary-card:hover {
    transform: none;
  }

  .chore-hunt-target-track i,
  .chore-hunt-illustration img {
    transition: none;
  }
}

@media (max-width: 620px) {
  .all-chore-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .all-chore-summary-card {
    min-height: 102px;
    padding: 11px;
  }

  .all-chore-card-head {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px;
  }

  .all-chore-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .all-chore-actions button {
    min-width: 0;
    min-height: 44px;
  }

  .all-chore-group-heading {
    gap: 8px;
    padding: 13px;
  }

  .all-chore-group-title strong {
    font-size: 20px;
  }

  .all-chore-group-title small {
    font-size: 12px;
  }
}

/* Shared point currency icon */
.point-coin {
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  background: url("/assets/point-coin-v1.webp") center / contain no-repeat;
  filter: drop-shadow(0 2px 3px rgb(167 103 0 / 24%));
  vertical-align: -3px;
}

.point-coin.is-small {
  width: 18px;
  height: 18px;
}

.point-coin.is-medium {
  width: 26px;
  height: 26px;
}

.point-coin.is-large {
  width: 38px;
  height: 38px;
}

/* Adult and caregiver family chores overview */
.app-shell .chores-page .chores-hero {
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, .45fr);
}

.family-chore-hero-copy h2 {
  margin-top: 5px;
}

.family-chore-hero-copy p {
  max-width: 700px;
}

.family-chore-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 9px;
}

.family-chore-metrics article {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--teal) 18%, var(--line));
  border-radius: 8px;
  padding: 11px;
  background: rgb(255 253 248 / 88%);
}

.family-chore-metrics article:nth-child(2) {
  border-color: color-mix(in srgb, #3aa76d 30%, var(--line));
}

.family-chore-metrics article:nth-child(3) {
  border-color: color-mix(in srgb, #c35646 28%, var(--line));
}

.family-chore-metrics article.is-points {
  border-color: color-mix(in srgb, var(--gold) 38%, var(--line));
}

.family-chore-metrics span,
.family-chore-metrics small {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.family-chore-metrics strong {
  display: flex;
  gap: 5px;
  align-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1.05;
}

.family-chore-focus {
  display: grid;
  gap: 9px;
  justify-items: center;
  height: 100%;
  border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--line));
  border-radius: 8px;
  padding: 15px;
  background: rgb(255 250 240 / 84%);
  text-align: center;
}

.family-chore-focus-avatar,
.family-focus-avatar {
  width: 72px;
  height: 72px;
}

.family-chore-focus strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.08;
}

.family-chore-focus p,
.family-chore-focus p:last-child {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

.family-chore-child-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 12px;
}

.family-chore-child-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--child-color) 34%, var(--line));
  border-top: 4px solid var(--child-color);
  border-radius: 8px;
  padding: 14px;
  background: color-mix(in srgb, var(--child-color) 5%, white);
  box-shadow: 0 12px 28px rgb(32 32 28 / 6%);
}

.family-chore-child-card.is-selected {
  outline: 3px solid color-mix(in srgb, var(--child-color) 15%, transparent);
  outline-offset: 2px;
}

.family-chore-child-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.family-chore-card-avatar {
  width: 56px;
  height: 56px;
  border: 3px solid var(--child-color);
}

.family-chore-child-head span,
.family-chore-child-head small,
.family-chore-card-latest span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.family-chore-child-head h3 {
  margin: 1px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1;
}

.family-chore-child-head > strong {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
  max-width: 90px;
  color: color-mix(in srgb, var(--gold) 76%, var(--ink));
  text-align: right;
}

.family-chore-card-state {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.family-chore-card-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.family-chore-card-stats span {
  display: grid;
  gap: 2px;
  justify-items: center;
  min-width: 0;
  padding: 8px 4px;
  background: rgb(255 253 248);
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.family-chore-card-stats b {
  color: var(--ink);
  font-size: 14px;
}

.family-chore-card-latest {
  display: grid;
  gap: 3px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.family-chore-card-latest strong {
  overflow-wrap: anywhere;
  font-size: 12px;
}

.family-chore-card-target {
  display: flex;
  gap: 7px;
  align-items: center;
  color: color-mix(in srgb, var(--gold) 70%, var(--ink));
  font-size: 12px;
  font-weight: 700;
}

.family-chore-child-card > button {
  width: 100%;
  min-height: 40px;
}

.family-chore-detail {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.family-chore-detail > * {
  min-width: 0;
}

.family-chore-detail > header {
  display: flex;
  gap: 10px;
  align-items: center;
}

.family-chore-detail-avatar {
  width: 58px;
  height: 58px;
  border: 3px solid var(--child-color);
}

.family-chore-detail h3 {
  margin: 2px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.family-chore-detail-tasks {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.family-chore-detail-tasks li {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgb(255 253 248 / 80%);
  font-size: 12px;
}

.family-chore-detail-tasks b {
  display: flex;
  gap: 4px;
  align-items: center;
  white-space: nowrap;
}

.family-chore-detail-target {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  border: 1px solid color-mix(in srgb, var(--gold) 34%, var(--line));
  border-radius: 8px;
  padding: 11px;
  background: color-mix(in srgb, var(--gold) 8%, white);
}

.family-chore-detail-target span {
  color: var(--muted);
  font-size: 11px;
}

.family-chore-detail-target > div {
  grid-column: 1 / -1;
  overflow: hidden;
  height: 7px;
  border-radius: 999px;
  background: rgb(105 104 95 / 14%);
}

.family-chore-detail-target i {
  display: block;
  width: var(--target-progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}

.family-chore-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chore-line-chart-card.is-family-detail-chart {
  margin: 0;
  padding: 11px;
}

.chore-line-chart-card.is-family-detail-chart .chart-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

.chore-line-chart-card.is-family-detail-chart .chart-header > *,
.chore-line-chart-card.is-family-detail-chart .chart-header small {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Child-only Pistejahti */
.child-pistejahti-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .75fr);
  gap: 15px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--child-color) 38%, var(--line));
  border-top: 5px solid var(--child-color);
  border-radius: 8px;
  padding: 18px;
  background: rgb(255 253 248 / 94%);
  box-shadow: 0 18px 42px rgb(32 54 48 / 10%);
}

.child-pistejahti-copy {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.child-pistejahti-copy > header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 3px;
}

.child-pistejahti-avatar {
  width: 82px;
  height: 82px;
  border: 4px solid var(--child-color);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--child-color) 24%, transparent);
}

.child-pistejahti-copy > header div {
  display: grid;
}

.child-pistejahti-copy > header span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.child-pistejahti-copy > header strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
}

.app-shell .chores-page .child-pistejahti-copy h2 {
  max-width: 690px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.02;
}

.child-pistejahti-copy > p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.child-pistejahti-target {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px 11px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--line));
  border-radius: 8px;
  padding: 11px;
  background: color-mix(in srgb, var(--gold) 10%, white);
}

.child-pistejahti-target > div {
  display: grid;
  gap: 2px;
}

.child-pistejahti-target span,
.child-pistejahti-target small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.child-pistejahti-target > b {
  color: var(--teal);
}

.child-pistejahti-target > i {
  grid-column: 1 / -1;
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: rgb(105 104 95 / 14%);
}

.child-pistejahti-target > i::before {
  content: "";
  display: block;
  width: var(--target-progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3aa76d, var(--gold));
}

.child-pistejahti-visual {
  position: relative;
  min-height: 230px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #e8f3ee;
}

.child-pistejahti-visual img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.child-pistejahti-visual figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 7px;
  align-items: center;
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgb(255 253 248 / 94%);
  box-shadow: 0 8px 20px rgb(34 36 30 / 16%);
}

.child-pistejahti-visual figcaption .point-coin {
  grid-row: 1 / 3;
}

.child-pistejahti-visual figcaption span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.child-pistejahti-visual figcaption strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.child-pistejahti-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.child-pistejahti-media {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.child-pistejahti-stats article {
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgb(255 253 248 / 86%);
}

.child-pistejahti-stats article > div {
  display: grid;
  min-width: 0;
}

.child-pistejahti-stats span:not(.point-coin) {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.child-pistejahti-stats strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
}

.child-pistejahti-stat-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--teal) 12%, white);
  color: var(--teal) !important;
  font-size: 14px !important;
}

.chore-line-chart-card.is-child-pistejahti-chart {
  margin: 0;
  padding: 12px;
}

.chore-line-chart-card.is-child-pistejahti-chart .chore-line-chart-plot {
  height: 145px;
}

.chore-line-chart-card.is-child-pistejahti-chart .chart-header h3 {
  font-size: 24px;
}

.chore-line-chart-line.is-comparison {
  opacity: .22;
  stroke-width: 1.2;
}

.chore-line-chart-avatar.is-comparison,
.chart-legend .is-comparison {
  opacity: .42;
  filter: grayscale(.65);
}

.chore-line-chart-line.is-featured {
  stroke-width: 2.7;
}

.chart-legend .is-featured {
  border-color: color-mix(in srgb, var(--line-color) 42%, var(--line));
  background: color-mix(in srgb, var(--line-color) 8%, white);
}

@media (max-width: 1050px) {
  .family-chore-metrics {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .child-pistejahti-hero {
    grid-template-columns: minmax(0, 1fr) minmax(250px, .7fr);
  }

}

@media (max-width: 759px) {
  .app-shell .chores-page .chores-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .child-pistejahti-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px;
  }

  .child-pistejahti-visual {
    min-height: 210px;
  }

  .child-pistejahti-visual img {
    min-height: 210px;
  }

  .child-pistejahti-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .family-chore-child-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .family-chore-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .family-chore-child-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .family-chore-child-head > strong {
    grid-column: 1 / -1;
    justify-content: flex-start;
    max-width: none;
  }

  .child-pistejahti-copy > header {
    align-items: flex-start;
  }

  .child-pistejahti-avatar {
    width: 68px;
    height: 68px;
  }

  .app-shell .chores-page .child-pistejahti-copy h2 {
    font-size: 31px;
  }

  .child-pistejahti-target {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .child-pistejahti-target > b {
    grid-column: 2;
  }
}

.child-hero-earned,
.score-card-points b,
.mini-section-title b,
.all-chore-summary strong,
.all-chore-metrics b,
.chore-approval-card > span,
.child-action-chore-card p {
  gap: 5px;
  align-items: center;
}

.child-hero-earned,
.score-card-points b,
.mini-section-title b,
.chore-approval-card > span,
.child-action-chore-card p {
  display: inline-flex;
}

.reward-score-badge {
  gap: 2px;
  align-content: center;
}

.reward-score-badge .point-coin {
  margin-bottom: 2px;
}

.child-reward-path-track b .point-coin {
  width: 42px;
  height: 42px;
}

/* Shared product overflow and calendar-dialog ownership. Platform adapter may refine safe areas. */
:root {
  --app-scroll-thumb: var(--muted);
  --app-scroll-track: var(--paper-strong);
  --app-scroll-hover: var(--teal);
  --app-scroll-active: var(--ink);
}
html { scrollbar-color: var(--app-scroll-thumb) var(--app-scroll-track); scrollbar-width: auto; }
* { scrollbar-color: inherit; scrollbar-width: inherit; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--app-scroll-track); }
::-webkit-scrollbar-thumb { background: var(--app-scroll-thumb); border: 3px solid var(--app-scroll-track); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--app-scroll-hover); }
::-webkit-scrollbar-thumb:active { background: var(--app-scroll-active); }
@media (forced-colors: active) { html { scrollbar-color: auto; } }

body:not(.is-native-app) .calendar-entry-dialog,
.school-dialog {
  box-sizing: border-box;
  width: min(720px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(var(--app-visual-viewport-height, 100dvh) - 24px);
  padding: 0;
  overflow: hidden;
}
body:not(.is-native-app) .calendar-entry-dialog .calendar-entry-form,
.school-dialog .school-dialog-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: calc(var(--app-visual-viewport-height, 100dvh) - 28px);
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  gap: 0;
  overflow: hidden;
}
body:not(.is-native-app) .calendar-entry-form > .modal-header,
.school-dialog-form > .modal-header { padding: 20px 22px 12px; }
body:not(.is-native-app) .calendar-entry-content,
.school-dialog-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
  min-height: 0;
  padding: 4px 22px 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
body:not(.is-native-app) .calendar-entry-content > *,
.school-dialog-body > * { min-width: 0; max-width: 100%; }
.school-dialog-body { grid-template-columns: minmax(0, 1fr); }
body:not(.is-native-app) .calendar-entry-dialog .modal-actions,
.school-dialog-form > .modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 12px 22px;
  background: var(--paper-strong);
}
body:not(.is-native-app) .calendar-entry-dialog .modal-actions button,
.school-dialog-form .modal-actions button { min-width: 0; white-space: normal; }
body:not(.is-native-app) .calendar-entry-dialog > .calendar-picker-panel,
#schoolTaskDialog > .calendar-picker-panel {
  right: auto;
  box-sizing: border-box;
  width: min(340px, calc(100% - 24px));
  max-width: calc(100% - 24px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}
body:not(.is-native-app) .calendar-entry-dialog > .calendar-picker-panel[hidden],
#schoolTaskDialog > .calendar-picker-panel[hidden] { display: none; }
.calendar-picker-scroll { min-width: 0; min-height: 0; overflow-y: auto; }
.calendar-picker-days button { min-width: 0; width: 100%; }

/* At 821–1050px the rail is collapsed too: keep one complete navigation mode. */
@media (min-width: 821px) and (max-width: 1050px) {
  body:not(.is-native-app) .mobile-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  body:not(.is-native-app) .workspace { padding-bottom: 110px; }
}

/* Direct school views reuse paper panels, shared controls and local Finnish typography. */
body:not(.is-native-app) [data-page="school"] > .panel:first-child::before { content: none; display: none; }
.school-panel, .school-settings, .school-connection, .school-record { min-width: 0; overflow-wrap: anywhere; }
.school-tabs { max-width: 100%; overflow-x: auto; }
.school-tabs button { flex: 0 0 auto; min-height: var(--app-touch-target-min); }
.school-filters, .school-actions { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.school-filters > label { display: grid; gap: 6px; min-width: 0; flex: 1 1 180px; }
.school-filters select { width: 100%; min-width: 0; }
.school-list { display: grid; gap: 0; }
.school-attendance-note { margin: 6px 0 18px; padding: 14px 16px; border-left: 4px solid var(--cartoon-teal-dark); background: rgb(8 118 111 / 7%); border-radius: 0 var(--cartoon-radius) var(--cartoon-radius) 0; }
.school-attendance-note p { margin: 5px 0 0; line-height: 1.5; }
.school-attendance-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.school-attendance-filter { --tag-color: var(--attendance-color, var(--cartoon-teal-dark)); min-height: 40px; max-width: 100%; }
.school-attendance-filter small { color: currentColor; font-size: 10px; font-weight: 800; opacity: .75; }
.school-attendance-dot { display: inline-block; flex: 0 0 12px; width: 12px; height: 12px; border: 1px solid rgb(25 32 27 / 28%); border-radius: 50%; background: var(--attendance-color, var(--cartoon-teal-dark)); }
.school-attendance-check { display: grid; flex: 0 0 18px; width: 18px; height: 18px; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-size: 12px; line-height: 1; }
.school-attendance-list { display: grid; gap: 22px; }
.school-attendance-day { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--cartoon-radius); background: rgb(255 250 240 / 70%); }
.school-attendance-day > h3 { margin: 0; padding: 14px 18px; border-bottom: 1px solid var(--line); background: rgb(8 118 111 / 9%); font: 800 21px/1.25 Georgia, serif; }
.school-attendance-day-items { display: grid; gap: 0; }
.school-attendance-card { min-width: 0; padding: 18px; border-left: 5px solid var(--cartoon-teal-dark); }
.school-attendance-card + .school-attendance-card { border-top: 1px solid var(--line); }
.school-attendance-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.school-attendance-child { color: var(--muted); font-size: .875rem; font-weight: 700; }
.school-attendance-card h4 { margin: 4px 0 0; font: 800 22px/1.25 Georgia, serif; }
.school-attendance-count { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; border: 2px solid var(--cartoon-teal-dark); border-radius: 50%; color: var(--cartoon-teal-dark); font-weight: 900; }
.school-attendance-types { display: grid; gap: 8px; margin: 16px 0; padding: 0; list-style: none; }
.school-attendance-types li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; padding: 10px 12px; background: rgb(180 73 60 / 7%); border-radius: 10px; }
.school-attendance-types span, .school-attendance-freshness { color: var(--muted); }
.school-attendance-entries { display: grid; gap: 10px; margin: 16px 0; }
.school-attendance-entry { min-width: 0; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--attendance-color, var(--line)) 35%, var(--line)); border-left: 6px solid var(--attendance-color, var(--cartoon-teal-dark)); border-radius: 10px; background: color-mix(in srgb, var(--attendance-color, white) 8%, white); }
.school-attendance-entry-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px 16px; }
.school-attendance-entry-heading > span:last-child { color: var(--muted); font-size: .875rem; font-weight: 700; }
.school-attendance-type { display: inline-flex; min-width: 0; align-items: center; gap: 8px; }
.school-attendance-type small { padding: 3px 7px; border-radius: 999px; background: rgb(255 255 255 / 75%); color: var(--muted); font-size: 10px; font-weight: 900; }
.school-attendance-entry p { margin: 7px 0 0; line-height: 1.45; }
.school-attendance-entry-note { padding-left: 10px; border-left: 2px solid var(--attendance-color, var(--line)); color: var(--muted); }
.school-attendance-review { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 14px; padding: 12px 14px; border-left: 4px solid var(--danger); border-radius: 0 10px 10px 0; background: rgb(180 73 60 / 7%); }
.school-attendance-review .secondary-button { flex: 0 0 auto; }
.school-attendance-card > p { margin: 10px 0; line-height: 1.5; }
.school-attendance-card > .secondary-button { display: inline-flex; align-items: center; margin-top: 8px; }
.school-attendance-empty { margin-top: 10px; }
.school-record { padding: 22px 0; border-top: 1px solid var(--line); }
.school-record:first-child { border-top: 0; }
.school-record h3 { margin: 6px 0 10px; font: 700 23px/1.2 Georgia, serif; }
.school-record p { margin: 8px 0; }
.school-record-meta, .school-freshness { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 13px; }
.school-freshness { margin-top: 12px; }
.school-task-text { white-space: pre-wrap; line-height: 1.6; }
.school-grade { font-weight: 800; font-size: 20px; }
.school-done { display: flex; align-items: center; gap: 10px; min-height: var(--app-touch-target-min); cursor: pointer; }
.school-done input { width: 22px; height: 22px; min-height: 0; accent-color: var(--teal); }
.school-status { min-height: 24px; line-height: 1.5; }
.school-sync { min-width: 0; margin: 12px 0; padding: 14px; border: 1px solid var(--line); border-left: 4px solid var(--cartoon-teal-dark); border-radius: 12px; overflow-wrap: anywhere; }
.school-sync p { margin: 6px 0; }
.school-sync[data-sync-state="failed"], .school-sync[data-sync-state="retry"] { border-left-color: var(--danger); }
.school-sync[data-sync-state="ready"] { border-left-color: var(--success); }
.school-sync progress { display: block; width: 100%; max-width: 420px; height: 8px; margin: 10px 0; accent-color: var(--cartoon-teal-dark); }
.school-sync-steps { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 8px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .875rem; }
@media (prefers-reduced-motion: reduce) { .school-sync progress { display: none; } }
.school-footer { display: flex; flex-wrap: wrap; gap: 12px 24px; padding-top: 22px; border-top: 1px solid var(--line); margin-top: 22px; }
.school-footer a { color: var(--teal); text-underline-offset: 3px; }
.school-connection { border-top: 1px solid var(--line); padding: 18px 0; }
.school-role-list { margin: 18px 0; }
.school-role-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; margin: 12px 0; }
.school-role-form label { display: grid; gap: 6px; min-width: 0; }
.school-role-form select { min-width: 0; width: 100%; }
.school-settings { margin-bottom: 20px; }
.school-planning-panel { min-width: 0; overflow-wrap: anywhere; }
.school-planning-panel::before { content: none !important; /* School planning is a reading surface, not a decorative dashboard hero. */ }
.school-tomorrow-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.school-tomorrow-child { min-width: 0; padding-top: 8px; }
.school-tomorrow-child h3 { margin: 8px 0 14px; }
.school-tomorrow-child h4 { margin: 20px 0 8px; }
.school-tomorrow-child :is(p,li) { line-height: 1.5; }
.school-tomorrow-child ul { padding-left: 22px; }
.school-tomorrow-child li { margin: 8px 0; }
.school-tomorrow-child summary { cursor: pointer; min-height: var(--app-touch-target-min); padding-block: 12px; }
.school-task-form .school-dialog-body { display: grid; gap: 14px; grid-auto-rows: max-content; align-content: start; }
.school-task-form .school-dialog-body > * { min-width: 0; margin: 0; }
.school-task-form :is(input,select,textarea) { width: 100%; min-width: 0; }
.school-task-form textarea { min-height: 78px; resize: none; overflow-y: hidden; }
.school-task-form #schoolTaskError:empty { display: none; }
.school-dialog .school-task-form .school-dialog-body label.school-done { display: flex; }
.school-task-form .school-done input { flex: 0 0 22px; width: 22px; min-height: 22px; }
.school-task-form .picker-input-row { display: flex; gap: 8px; }
.school-task-form .picker-input-row input { flex: 1 1 0; }
.school-task-form .picker-input-row button { flex: 0 0 auto; }
.school-proposals { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 16px; }
.school-proposals button { white-space: normal; overflow-wrap: anywhere; text-align: left; margin: 6px 0; max-width: 100%; }
#schoolTasksPanel { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 20px; }
@media(max-width:700px) { .school-tomorrow-grid { grid-template-columns: minmax(0,1fr); } .school-tomorrow-child + .school-tomorrow-child { border-top: 1px solid var(--line); } }
.school-dialog .school-dialog-body label { display: grid; gap: 6px; }
.school-dialog :is(input,select,button), .school-panel :is(select,button), .school-settings :is(select,button) { min-height: var(--app-touch-target-min); }
.school-dialog input[aria-invalid="true"] { border-color: var(--danger); }
.school-dialog button:enabled, .school-panel button:enabled, .school-settings button:enabled { cursor: pointer; }
.school-dialog button:disabled, .school-panel button:disabled, .school-settings button:disabled { cursor: not-allowed; opacity: .6; }
.school-dialog button:focus-visible, .school-panel :is(a,button,select,input):focus-visible, .school-settings :is(a,button,select):focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.school-dialog button:active, .school-panel button:active, .school-settings button:active { filter: brightness(.96); }
.school-detail-dialog { width: min(880px, calc(100vw - 24px)); }
.school-detail-dialog .modal-header > div { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.school-message-body { font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.school-message-body p { margin: 0 0 1em; }
.school-message-body :is(pre,code) { white-space: pre-wrap; overflow-wrap: anywhere; }
.school-message-body h1 { font-size: 28px; }
.school-message-body h2 { font-size: 24px; }
.school-table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; margin-block: 16px; }
.school-message-body table { border-collapse: collapse; min-width: 100%; }
.school-message-body :is(td,th) { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; min-width: 7em; }
.school-message-body [data-wilma-media] { display: block; padding: 12px; border: 1px solid var(--line); border-radius: 12px; overflow-wrap: anywhere; }
.school-media-card { display: grid !important; gap: 10px; justify-items: start; max-width: 100%; }
.school-media-card img { display: block; width: auto; max-width: 100%; max-height: min(70vh, 720px); object-fit: contain; border-radius: 8px; }
.school-media-card a { max-width: 100%; overflow-wrap: anywhere; }
.school-thread-entry { min-width: 0; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.school-thread-entry:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.school-thread-entry > h3 { margin: 0 0 4px; font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1.4; }
.school-thread-entry > .school-thread-meta { margin: 0 0 14px; color: var(--muted); font-size: .875rem; line-height: 1.5; }
@media (max-width: 600px) {
  body:not(.is-native-app) .calendar-entry-content { grid-template-columns: minmax(0, 1fr); }
  body:not(.is-native-app) .calendar-entry-form > .modal-header, .school-dialog-form > .modal-header { padding: 16px 14px 10px; }
  body:not(.is-native-app) .calendar-entry-content, .school-dialog-body { padding: 4px 14px 14px; }
  body:not(.is-native-app) .calendar-entry-dialog .modal-actions, .school-dialog-form > .modal-actions { padding: 10px 14px; }
  .school-role-form { grid-template-columns: minmax(0, 1fr); }
  .school-panel .panel-header { flex-wrap: wrap; }
  .school-attendance-day > h3 { padding: 13px 14px; font-size: 19px; }
  .school-attendance-card { padding: 15px 14px; }
  .school-attendance-card-heading { gap: 10px; }
  .school-attendance-card h4 { font-size: 20px; }
  .school-attendance-types li { display: grid; }
  .school-dialog-form .modal-actions button { flex: 1 1 120px; padding-inline: 8px; }
}
.school-news-content {
  min-width: 0;
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.6;
  margin-block: 12px;
}
[data-school-inbox-id] .inbox-merge-note {
  box-sizing: border-box;
  overflow-wrap: anywhere;
}
[data-school-inbox-id] .wilma-ticket-main {
  grid-template-columns: minmax(0, 1fr);
}
.school-news-content.is-preview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}

/* Compact message refresh context; filters and messages remain the focus. */
.inbox-school-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0 0 12px;
  min-width: 0;
}
.inbox-school-toolbar[hidden] { display: none; }
.inbox-school-toolbar .form-note,
.inbox-school-toolbar .school-actions { margin: 0; }
.inbox-school-toolbar #inboxSchoolStatus:not([hidden]) { flex-basis: 100%; }
.inbox-school-toolbar #inboxSchoolSync { min-width: 0; overflow-wrap: anywhere; }
.inbox-school-toolbar .school-actions { flex-shrink: 0; }
[data-inbox-unread-summary]:empty { display: none; }

.mobile-more-links a:has([data-inbox-unread-summary]:not([hidden])) { row-gap: 0; }
.mobile-more-links [data-inbox-unread-summary] { grid-column: 2; font-size: 12px; line-height: 1.3; color: var(--teal); overflow-wrap: anywhere; }

/* Compact school workspace: child identity, date groups and readable work rows. */
#schoolRoot { padding: clamp(16px, 2vw, 26px); }
#schoolRoot .panel-header { margin-bottom: 16px; align-items: center; gap: 12px; }
#schoolRoot .panel-header h2 { font-size: 28px; margin: 0; }
#schoolRoot .panel-header p { margin: 5px 0 0; font-size: 14px; }
#schoolRoot #schoolTabs { margin: 0 0 12px; }
#schoolRoot #schoolSyncOverview { margin: 0 0 16px; }
#schoolRoot #schoolSyncOverview .form-note { margin: 0; font-size: 12px; line-height: 1.6; }
#schoolRoot #schoolSyncOverview [data-sync-state="ready"] { color: #346448; }
#schoolRoot .school-child-select { display: none; }
#schoolRoot .school-child-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 10px; }
#schoolRoot .school-child-chips[hidden] { display: none; }
#schoolRoot .school-child-chips button { display: inline-flex; align-items: center; min-height: 42px; padding: 5px 12px; border: 1px solid #d9d1c1; border-radius: 24px; background: #fffcf7; color: #4a4d43; box-shadow: none; font: inherit; font-size: 13px; font-weight: 650; }
#schoolRoot .school-child-chips button[aria-pressed="true"] { border-color: #08766f; background: #e7f2ed; color: #075b55; }
#schoolRoot .school-child-identity { color: var(--muted); display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; font-weight: 650; }
#schoolRoot .school-child-identity > span:last-child { overflow-wrap: anywhere; }
#schoolRoot .school-child-avatar, #schoolRoot .school-avatar-fallback { flex: 0 0 32px; width: 32px; height: 32px; min-width: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; background: #e6ede4; font: 700 14px Aptos, 'Segoe UI', sans-serif; }
#schoolRoot .school-child-avatar img { width: 100%; height: 100%; object-fit: contain; }
#schoolRoot .school-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin: 0; }
#schoolRoot .school-filters label { flex: 1 1 170px; max-width: 260px; font: 500 14px/1.45 var(--font-body); }
#schoolRoot .school-filters label[hidden] { display: none; }
#schoolRoot .school-filters select { min-height: 46px; padding-block: 10px; font: 400 16px/1.45 var(--font-body); }
#schoolRoot #schoolListState { margin: 8px 0 16px; font-size: 12px; color: #6d6d61; }
#schoolRoot .school-work-section > h2 { display: flex; align-items: center; gap: 8px; margin: 20px 0 12px; font: 700 16px Aptos, 'Segoe UI', sans-serif; }
#schoolRoot .school-work-section > h2 > span, #schoolRoot .school-work-archive > summary > span { border-radius: 20px; padding: 2px 7px; background: #eeeade; color: #656658; font-size: 11px; }
#schoolRoot .school-date-heading { margin: 0; padding: 9px 12px; border-bottom: 1px solid #ddd7c7; background: #f1f0e7; font: 650 12px Aptos, 'Segoe UI', sans-serif; color: #555e51; }
#schoolRoot .school-date-group { margin: 0 0 14px; border: 1px solid #e2dacb; border-radius: 10px; overflow: clip; }
#schoolRoot .school-work-row { display: grid; grid-template-columns: 120px minmax(0,1fr) 70px; align-items: start; gap: 16px; padding: 14px 12px; border-left: 3px solid var(--school-child-color); background: #fffdf8; }
#schoolRoot .school-work-row + .school-work-row { border-top: 1px solid #eae5d9; }
#schoolRoot .school-work-content { min-width: 0; overflow-wrap: anywhere; }
#schoolRoot .school-work-content h4 { margin: 0 0 4px; font: 750 14px Aptos, 'Segoe UI', sans-serif; }
#schoolRoot .school-work-content p { margin: 0; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
#schoolRoot .school-work-content .school-work-feedback { margin-top: 6px; color: #596350; }
#schoolRoot .school-work-action { justify-self: end; }
#schoolRoot .school-done { display: flex; align-items: center; gap: 6px; min-height: 32px; margin: 0; font-size: 12px; white-space: nowrap; }
#schoolRoot .school-done input { margin: 0; width: 17px; height: 17px; accent-color: #08766f; }
#schoolRoot .school-work-grade { display: inline-block; min-width: 36px; padding: 5px 8px; border-radius: 8px; text-align: center; background: #e8efe1; color: #375336; font-weight: 750; }
#schoolRoot .school-work-action small { font-size: 11px; line-height: 1.3; }
#schoolRoot .school-work-row.is-done { background: #f6f6ee; }
#schoolRoot .school-record-info { margin-top: 6px; color: #757568; font-size: 11px; }
#schoolRoot .school-record-info p { font-size: 11px; margin-top: 5px; }
#schoolRoot summary { cursor: pointer; overflow-wrap: anywhere; }
#schoolRoot .school-text-disclosure { font-size: 14px; line-height: 1.5; }
#schoolRoot .school-text-disclosure summary span { color: #08766f; font-size: 12px; font-weight: 650; }
#schoolRoot .school-text-disclosure[open] > summary { margin-bottom: 8px; }
#schoolRoot .school-work-archive { margin-top: 20px; }
#schoolRoot .school-work-archive > summary { padding: 12px 0; font-weight: 650; font-size: 14px; }
#schoolRoot .school-work-archive > summary > span { margin-left: 8px; }
#schoolRoot .school-attendance-note { padding: 0; margin: 14px 0; border: 0; background: none; }
#schoolRoot .school-attendance-note strong { font-size: 14px; }
#schoolRoot .school-attendance-note p { font-size: 12px; margin: 4px 0 0; }
#schoolRoot .school-attendance-day { margin-bottom: 14px; }
#schoolRoot .school-attendance-day > h3 { padding: 9px 12px; font: 650 12px Aptos, 'Segoe UI', sans-serif; }
#schoolRoot .school-attendance-day-items { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 8px; }
#schoolRoot .school-attendance-card { padding: 12px; }
#schoolRoot .school-attendance-card-heading { margin-bottom: 8px; }
#schoolRoot .school-attendance-card-heading > div { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
#schoolRoot .school-attendance-card h4 { font: 500 12px Aptos, 'Segoe UI', sans-serif; color: #6a6e61; margin: 0; }
#schoolRoot .school-attendance-count { display: none; }
#schoolRoot .school-attendance-entry { padding: 8px 10px; }
#schoolRoot .school-attendance-entry p { font-size: 13px; margin: 4px 0 0; overflow-wrap: anywhere; }
#schoolRoot .school-attendance-entry-heading { font-size: 12px; }
#schoolRoot .school-attendance-freshness { margin: 8px 0 0; font-size: 11px; }
#schoolRoot .school-attendance-pending { border-left: 3px solid #be8f29; padding-left: 12px; margin-bottom: 18px; }
#schoolRoot .school-attendance-filter { padding: 7px 10px; font-size: 12px; min-height: 36px; }
#schoolRoot .school-attendance-filters { gap: 6px; }
#schoolRoot .school-actions { margin-top: 16px; }
@media (max-width: 600px) {
  #schoolRoot .panel-header h2 { font-size: 24px; }
  #schoolRoot .panel-header p { font-size: 12px; }
  #schoolRoot .panel-header { align-items: start; }
  #schoolRoot #schoolReload { padding: 9px 10px; font-size: 12px; }
  #schoolRoot .school-work-row { grid-template-columns: minmax(0,1fr) auto; gap: 8px 12px; padding: 11px; }
  #schoolRoot .school-work-owner { grid-column: 1; }
  #schoolRoot .school-work-action { grid-column: 2; grid-row: 1; }
  #schoolRoot .school-work-content { grid-column: 1 / -1; grid-row: 2; }
  #schoolRoot .school-filters label { flex: 1 1 160px; }
  #schoolRoot .school-child-chips { gap: 6px; }
  #schoolRoot .school-child-chips button { padding-inline: 10px; }
  #schoolRoot .school-attendance-entry-heading { flex-wrap: wrap; }
}

#schoolRoot .school-work-section > h2 { font-size: 16px !important; line-height: 1.35; }
#schoolRoot #schoolPanel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
#schoolRoot #schoolChildChips { margin: 0; align-self: start; }
#schoolRoot #schoolListState, #schoolRoot #schoolList, #schoolRoot #schoolMore { grid-column: 1 / -1; }
#schoolRoot #schoolMore { justify-self: start; }
#schoolRoot .school-work-section:first-child > h2 { margin-top: 0; }
@media(max-width: 760px) {
  #schoolRoot #schoolPanel { grid-template-columns: minmax(0, 1fr); }
  #schoolRoot #schoolChildChips { margin-bottom: 10px; }
}
#schoolRoot .school-attendance-pending .school-attendance-card { display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: 16px; }
#schoolRoot .school-attendance-pending .school-attendance-card > :not(a) { grid-column: 1; }
#schoolRoot .school-attendance-pending .school-attendance-card > a { grid-column: 2; grid-row: 1 / span 4; align-self: center; }
#schoolRoot .school-attendance-types { margin: 4px 0; }
#schoolRoot .school-attendance-types li { padding: 6px 8px; font-size: 13px; }
#schoolRoot .school-attendance-card > p { margin: 6px 0; font-size: 12px; }
#schoolRoot .school-attendance-filter { color: #364c40; }
@media(max-width:600px) {
 #schoolRoot .school-attendance-pending .school-attendance-card { grid-template-columns: minmax(0,1fr); }
 #schoolRoot .school-attendance-pending .school-attendance-card > a { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px; }
}
#schoolRoot .panel-header h2 { font-size: 28px !important; }
@media(max-width:600px) { #schoolRoot .panel-header h2 { font-size: 24px !important; } }

#schoolRoot .school-text-disclosure summary .school-text-preview { color: inherit; font-size: inherit; font-weight: inherit; }
#schoolRoot .school-text-less, #schoolRoot .school-text-disclosure[open] .school-text-preview, #schoolRoot .school-text-disclosure[open] .school-text-more { display: none; }
#schoolRoot .school-text-disclosure[open] .school-text-less { display: inline; }
@media(max-width:600px) {
 #schoolRoot #schoolTabs { display: flex; gap: 0; overflow: visible; }
 #schoolRoot #schoolTabs button { flex: 1 1 auto; min-width: 0; padding-inline: 7px; font-size: 12px; }
 #schoolRoot .panel-header { display: grid; grid-template-columns: minmax(0,1fr) auto; }
 #schoolRoot .panel-header p { max-width: 175px; }
 #schoolRoot #schoolReload { min-width: 0; width: auto; }
}

/* Pending attendance stays small until the parent opens it. */
#schoolRoot details.school-attendance-pending {margin:12px 0 16px;padding:0;border:1px solid #dbcba8;border-radius:10px;background:#fffbf2;overflow:hidden}
#schoolRoot .school-attendance-pending > summary {padding:10px 12px;font-size:13px;font-weight:700;cursor:pointer}
#schoolRoot .school-attendance-pending > summary span {margin-left:6px;font-size:12px;font-weight:500;color:#76603a}
#schoolRoot .school-pending-content {padding:0 12px 4px}
#schoolRoot .school-pending-content > p {margin:0 0 6px;font-size:12px}
#schoolRoot .school-pending-row {display:grid;grid-template-columns:155px 120px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 0;border-top:1px solid #e8dfce;font-size:12px}
#schoolRoot .school-pending-row time {font-weight:600}
#schoolRoot .school-pending-description {min-width:0;overflow-wrap:anywhere}
#schoolRoot .school-pending-description strong,#schoolRoot .school-pending-description small {display:block}
#schoolRoot .school-pending-description small {margin-top:3px;color:var(--muted)}
#schoolRoot .school-pending-row > a {padding:8px 0;font-weight:700;text-underline-offset:3px}
@media(max-width:1000px){
 #schoolRoot .school-pending-row {grid-template-columns:145px minmax(0,1fr) auto}
 #schoolRoot .school-pending-child {grid-column:1;grid-row:2}
 #schoolRoot .school-pending-description {grid-column:2;grid-row:1 / span 2}
 #schoolRoot .school-pending-row > a {grid-column:3;grid-row:1 / span 2}
}
@media(max-width:600px){
 #schoolRoot .school-pending-row {grid-template-columns:minmax(0,1fr) auto;gap:6px 10px}
 #schoolRoot .school-pending-row time {grid-column:1 / -1}
 #schoolRoot .school-pending-child {grid-column:1;grid-row:2}
 #schoolRoot .school-pending-description {grid-column:1 / -1;grid-row:3}
 #schoolRoot .school-pending-row > a {grid-column:2;grid-row:2;font-size:11px}
}


/* Denser inbox cards retain the existing child identity and readable metadata. */
body:not(.is-native-app) #inboxmessages .wilma-message-ticket {
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 18px 14px;
}
#inboxmessages .wilma-ticket-main { grid-template-columns: minmax(0, 1fr); gap: 8px; }
#inboxmessages .wilma-ticket-header { gap: 9px; }
#inboxmessages .wilma-ticket-tags { gap: 5px; margin-bottom: 5px; }
#inboxmessages .wilma-ticket-tags .inbox-ticket-tag { padding: 5px 9px; font-size: 12px; }
#inboxmessages .wilma-message-ticket h3 { font-size: 21px; line-height: 1.22; }
#inboxmessages .wilma-ticket-meta { gap: 8px 14px; }
#inboxmessages .wilma-ticket-meta > div { gap: 2px; }
#inboxmessages .wilma-ticket-meta dd { font-size: 14px; line-height: 1.35; }
#inboxmessages .wilma-color-rail { width: 8px; min-width: 8px; }
body:not(.is-native-app) #inboxmessages .inbox-ticket-target-avatars { width: 64px; height: 64px; }
body:not(.is-native-app) #inboxmessages .inbox-ticket-target-avatars.is-single .inbox-ticket-target-avatar { width: 56px; height: 56px; }
body:not(.is-native-app) #inboxmessages .inbox-ticket-target-avatars.is-pair .inbox-ticket-target-avatar { width: 42px; height: 42px; }
#inboxmessages .inbox-merge-note { margin: 0; padding: 3px 8px; }
#inboxmessages .school-news-content { margin-block: 4px; }
#inboxmessages .wilma-ticket-footer { margin: 0; }
@media (max-width: 900px) {
  body:not(.is-native-app) #inboxmessages .wilma-message-ticket { grid-template-columns: 56px minmax(0, 1fr); gap: 10px; padding: 14px; }
  body:not(.is-native-app) #inboxmessages .wilma-message-ticket > .wilma-ticket-main { grid-column: 2; }
  body:not(.is-native-app) #inboxmessages .inbox-ticket-target-avatars { grid-column: 1; grid-row: 1; width: 52px; height: 56px; }
  body:not(.is-native-app) #inboxmessages .inbox-ticket-target-avatars.is-single .inbox-ticket-target-avatar { width: 46px; height: 46px; }
  body:not(.is-native-app) #inboxmessages .inbox-ticket-target-avatars.is-pair .inbox-ticket-target-avatar { width: 34px; height: 34px; }
  #inboxmessages .wilma-ticket-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  body:not(.is-native-app) #inboxmessages .wilma-message-ticket { grid-template-columns: minmax(0, 1fr); }
  body:not(.is-native-app) #inboxmessages .wilma-message-ticket > .wilma-ticket-main { grid-column: 1; }
  body:not(.is-native-app) #inboxmessages .inbox-ticket-target-avatars { display: none; }
  #inboxmessages .wilma-message-ticket h3 { font-size: 18px; }
  #inboxmessages .wilma-ticket-meta dd { font-size: 13px; }
}

#inboxmessages .inbox-original-message { grid-template-columns: minmax(0, 1fr); min-width: 0; }
#inboxmessages .inbox-original-body { min-width: 0; overflow-wrap: anywhere; }

#inboxmessages .inbox-reading-help { margin: -8px 0 12px; font-size: 12px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }

/* Attendance uses the same date groups and child rows as homework and exams. */
#schoolRoot .school-attendance-list {gap:0}
#schoolRoot .school-attendance-day {margin:0 0 14px;border:1px solid #e2dacb;border-radius:10px;overflow:clip;background:#fffdf8}
#schoolRoot .school-attendance-day > h3 {margin:0;padding:9px 12px;border-bottom:1px solid #ddd7c7;background:#f1f0e7;color:#555e51;font:650 12px Aptos,'Segoe UI',sans-serif}
#schoolRoot .school-attendance-day-items {display:block;padding:0}
#schoolRoot .school-attendance-card {display:grid;grid-template-columns:120px minmax(0,1fr);gap:16px;align-items:start;padding:14px 12px;border-left:3px solid var(--school-child-color);background:#fffdf8}
#schoolRoot .school-attendance-card + .school-attendance-card {border-top:1px solid #eae5d9}
#schoolRoot .school-attendance-card-heading {margin:0;min-width:0}
#schoolRoot .school-attendance-card-heading > div {display:grid;gap:5px}
#schoolRoot .school-attendance-card h4 {font-size:11px}
#schoolRoot .school-attendance-entries {margin:0;gap:0;min-width:0}
#schoolRoot .school-attendance-entry {padding:0;border:0;border-radius:0;background:none}
#schoolRoot .school-attendance-entry + .school-attendance-entry {margin-top:10px;padding-top:10px;border-top:1px solid #eae5d9}
#schoolRoot .school-attendance-entry-heading {font-size:14px;align-items:start}
#schoolRoot .school-attendance-type {flex-wrap:wrap;overflow-wrap:anywhere}
#schoolRoot .school-attendance-type small {background:color-mix(in srgb,var(--attendance-color,#eeeade) 20%,#fffdf8)}
#schoolRoot .school-attendance-entry p {font-size:14px;line-height:1.5}
#schoolRoot .school-attendance-entry-note {padding-left:0;border-left:0}
@media(max-width:600px){
 #schoolRoot .school-attendance-card {grid-template-columns:minmax(0,1fr);gap:8px;padding:11px}
 #schoolRoot .school-attendance-card-heading > div {display:flex;gap:8px;align-items:center}
}

/* The week owns the available page width; controls and days prioritize reading. */
body:not(.is-native-app) .app-shell #week .week-page-shell { grid-template-columns: minmax(0, 1fr); }
body:not(.is-native-app) #week .week-panel { padding: 20px; min-width: 0; }
body:not(.is-native-app) #week .panel-header { display: flex; min-height: 0; gap: 16px; align-items: center; margin-bottom: 16px; }
body:not(.is-native-app) #week .panel-header::before { display: none; }
#week .panel-header .eyebrow { display: none; }
body:not(.is-native-app) #week .panel-header h2 { font-size: 26px !important; line-height: 1.2; margin: 0; }
#week .week-panel-actions { margin-left: auto; flex: 0 0 auto; }
#week .week-toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; padding: 14px; margin-top: 0; }
#week .week-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-right: auto; }
#week .week-range-card { min-width: 138px; padding: 6px; }
#week .week-nav #weekTodayButton { min-height: 38px; padding: 0 12px; font-size: 12px; }
#week .week-filter { width: 180px; max-width: none; align-self: auto; }
#week .week-layout-toggle { align-self: auto; }
#week .week-summary { margin: 12px 0; font-size: 13px; }
#week .timeline.week-columns { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; overflow: visible; }
body:not(.is-native-app) #week .week-column { padding: 10px; border-radius: 12px; box-shadow: none; gap: 10px; }
#week .week-column header { align-items: center; padding-bottom: 10px; }
#week .week-column header strong { font-size: 14px; line-height: 1.3; white-space: normal; overflow: visible; }
#week .week-column header span { font-size: 12px; margin-top: 3px; }
#week .week-column-items { gap: 9px; }
body:not(.is-native-app) #week .week-column-card { padding: 10px; box-shadow: none; }
#week .week-column-card strong { font-size: 14px; line-height: 1.35; }
#week .week-column-card small, #week .week-column-card .school-meal-compact { font-size: 12px; line-height: 1.4; }
#week .week-column-card .school-meal-compact { display: block; overflow: visible; -webkit-line-clamp: unset; }
#week .week-column-empty { font-size: 12px; font-weight: 400; }
#week .week-column-card .wilma-attendance-notice { white-space: normal; }
@media (max-width: 1400px) {
 #week .timeline.week-columns { grid-template-columns: repeat(4, minmax(0, 1fr)); }
 #week .week-nav { flex-basis: 100%; justify-content: center; margin-right: 0; }
 #week .week-filter { flex: 1; }
}
@media (max-width: 700px) {
 body:not(.is-native-app) #week .week-panel { padding: 14px; }
 #week .timeline.week-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 #week .week-toolbar { gap: 12px; padding: 10px; }
 #week .week-nav { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; width: 100%; }
 #week .week-nav #weekPrevButton, #week .week-nav #weekNextButton, #week .week-range-card { grid-row: 1; min-width: 0; }
 #week .week-nav #weekTodayButton { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
 #week .week-toolbar .ghost-button { padding-inline: 8px; }
 #week .week-range-card strong { font-size: 13px; }
 #week .week-filter { width: auto; min-width: 0; }
}
@media (max-width: 460px) {
 #week .timeline.week-columns { grid-template-columns: minmax(0, 1fr); }
 body:not(.is-native-app) #week .panel-header h2 { font-size: 22px !important; }
 #week .week-filter { flex-basis: 100%; }
 #week .week-layout-toggle { width: 100%; }
 #week .week-layout-toggle > div { width: 100%; }
}


#week .wilma-column-homework { display: flex; flex-wrap: wrap; gap: 4px 8px; }

/* Parent command center: one day, child-first, reusing the application shell. */
#dashboard.is-parent-dashboard > #schoolTomorrow,
#dashboard.is-parent-dashboard > #schoolFamilyTasksPanel { display: none; }
#legacyAdultDashboard[hidden], #parentCommandCenter[hidden] { display: none; }
#legacyAdultDashboard { display: contents; }
.parent-command-center { display: grid; gap: 20px; min-width: 0; }
.parent-top-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.parent-command-center h2 { margin: 0; font-size: clamp(24px,2vw,30px); }
.parent-attention, .parent-day, .parent-upcoming { border: 1px solid var(--line); border-radius: 16px; background: rgba(255,253,247,.94); padding: 22px; min-width: 0; }
.parent-attention h2 { margin-bottom: 12px; }
.parent-attention-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 0; border-top: 1px solid var(--line); }
.parent-attention-row small { display: block; color: var(--muted); margin-top: 5px; }
.parent-command-center a, .parent-child-card footer button { color: var(--teal); font-weight: 600; text-underline-offset: 3px; }
.parent-attention-row > a { flex-shrink: 0; }
.parent-day-heading { display: flex; gap: 18px; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.parent-day-heading p { margin: 6px 0 0; color: var(--muted); text-transform: capitalize; }
.parent-day-controls { display: flex; align-items: center; gap: 20px; }
.parent-day-toggle { display: flex; border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.parent-day-toggle button { border: 0; background: transparent; box-shadow: none; border-radius: 9px; min-height: 44px; padding: 10px 20px; }
.parent-day-toggle button[aria-pressed="true"] { color: white; background: var(--teal); }
.parent-child-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 20px; }
.parent-child-card { border: 1px solid var(--line); border-radius: 12px; padding: 20px; min-width: 0; background: rgba(255,250,240,.4); overflow-wrap: anywhere; }
.parent-child-card > header { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.parent-child-card h3 { margin: 0; font-size: 26px; }
.parent-child-card header p { margin: 5px 0 0; }
.parent-child-avatar { width: 64px; height: 64px; flex: 0 0 64px; border: 2px solid var(--child-color); border-radius: 50%; overflow: hidden; }
.parent-child-avatar img { width: 100%; height: 100%; object-fit: cover; }
.parent-lessons { margin-bottom: 14px; }
.parent-command-center summary { color: var(--teal); cursor: pointer; padding: 9px 0; font-weight: 600; }
.parent-lessons ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.parent-lessons time { display: inline-block; min-width: 100px; font-variant-numeric: tabular-nums; }
.parent-day-row { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.parent-day-row p { margin: 0 0 6px; line-height: 1.5; }
.parent-day-row p:last-child { margin-bottom: 0; }
.parent-day-row small { display: block; color: var(--muted); font-size: 13px; }
.parent-row-label { color: var(--muted); font-size: 14px; padding-top: 2px; }
.parent-data-note { font-size: 13px; line-height: 1.5; color: var(--muted); }
.parent-chore-progress { display: flex; align-items: center; gap: 12px; }
.parent-chore-progress progress { width: 100%; max-width: 160px; height: 8px; accent-color: var(--child-color); }
.parent-chore-progress span { white-space: nowrap; font-size: 14px; }
.parent-child-card footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.parent-child-card footer button { border: 0; background: transparent; box-shadow: none; padding: 10px 0; }
.parent-source-status { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; font-size: 12px; color: var(--muted); margin-top: 18px; }
.parent-source-status p { margin: 0; }
.parent-source-status a { flex-shrink: 0; }
.parent-upcoming-row { display: grid; grid-template-columns: 110px 100px minmax(0,1fr) auto; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); align-items: baseline; }
.parent-reminder-dialog { width: min(740px,calc(100vw - 28px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 20px; }
.parent-reminder-close { float: right; position: relative; z-index: 1; }
#parentReminderDialog .phone-reminder-card { clear: both; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding: 0; margin: 0; background: none; box-shadow: none; border: 0; }
#parentReminderDialog .phone-reminder-card-copy, #parentReminderDialog .full-field, #parentReminderDialog .full-button { grid-column: 1/-1; }
#parentReminderDialog fieldset, #parentReminderDialog label { min-width: 0; }
#parentReminderDialog textarea { resize: none; min-height: 100px; max-width: 100%; }
#parentReminderDialog .phone-reminder-recipient-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
@media(max-width:1050px) { .parent-child-grid { grid-template-columns: 1fr; } .parent-day-heading { align-items: flex-start; } .parent-day-controls { flex-wrap: wrap; justify-content: flex-end; gap: 10px; } }
@media(max-width:600px) {
 .parent-command-center { gap: 14px; }
 .parent-attention,.parent-day,.parent-upcoming { padding: 16px; }
 .parent-top-actions { justify-content: stretch; } .parent-top-actions button { flex: 1; padding: 10px; }
 .parent-day-heading { flex-direction: column; gap: 14px; }
 .parent-day-controls { width: 100%; justify-content: space-between; }
 .parent-day-toggle button { padding: 9px 13px; }
 .parent-child-card { padding: 14px; }
 .parent-child-avatar { width: 48px; height: 48px; flex-basis: 48px; }
 .parent-child-card h3 { font-size: 24px; }
 .parent-day-row { grid-template-columns: 1fr; gap: 5px; }
 .parent-attention-row { flex-wrap: wrap; gap: 8px; }
 .parent-upcoming-row { grid-template-columns: 1fr 1fr; gap: 7px; }
 .parent-upcoming-row strong { grid-column: 1/-1; } .parent-upcoming-row a { grid-column: 2; text-align: right; }
 .parent-source-status { flex-wrap: wrap; gap: 8px; }
 #parentReminderDialog .phone-reminder-card { grid-template-columns: 1fr; }
 #parentReminderDialog .phone-reminder-recipient-grid { grid-template-columns: 1fr; }
}

.parent-command-center h2, .parent-child-card h3 { font-family: Georgia, "Times New Roman", serif; }
.parent-day-heading p { text-transform: none; }
.parent-day-heading p::first-letter { text-transform: uppercase; }
.parent-urgent { border-top: 1px solid var(--line); }
#parentTasksDialog .school-planning-panel { border: 0; box-shadow: none; padding: 10px 0; }

#parentReminderDialog .phone-reminder-card-copy::before { display: none; }
#parentReminderDialog .phone-reminder-recipient { display: grid; grid-template-columns: 20px 40px minmax(0,1fr); grid-template-rows: auto auto; align-items: center; column-gap: 10px; row-gap: 3px; min-height: 76px; padding: 10px; text-align: left; position: relative; }
#parentReminderDialog .phone-reminder-recipient > input { grid-column: 1; grid-row: 1/3; position: static; width: 18px; height: 18px; }
#parentReminderDialog .phone-reminder-recipient-avatar { grid-column: 2; grid-row: 1/3; position: relative; inset: auto; width: 40px; height: 40px; overflow: hidden; border-radius: 50%; }
#parentReminderDialog .phone-reminder-recipient-avatar img { width: 100%; height: 100%; object-fit: cover; }
#parentReminderDialog .phone-reminder-recipient-name { grid-column: 3; font-size: 15px; }
#parentReminderDialog .phone-reminder-recipient-role { display: none; }
#parentReminderDialog .phone-reminder-recipient-device { grid-column: 3; font-size: 12px; }
#parentReminderDialog .phone-reminder-card-copy p { line-height: 1.45; }

#parentReminderDialog input[type="radio"] { width: 18px; height: 18px; min-height: 18px; padding: 0; flex: 0 0 18px; border-radius: 50%; }
#parentReminderDialog .phone-reminder-recipient-name,
#parentReminderDialog .phone-reminder-recipient-device { text-align: left; }

/* Reference-dashboard details: quiet line icons and visible child identity. */
.parent-icon { display: block; width: 22px; height: 22px; flex: 0 0 22px; pointer-events: none; }
.parent-top-actions button, .parent-action-link,
.parent-attention-row > button, .parent-child-card footer button { display: inline-flex; align-items: center; gap: 9px; }
.parent-action-link { text-decoration: none; }
.parent-action-link:hover span { text-decoration: underline; text-underline-offset: 3px; }
.parent-action-link > .parent-icon:last-child,
.parent-child-card footer .parent-icon, .parent-attention-row > button .parent-icon { width: 18px; height: 18px; flex-basis: 18px; }
.parent-attention-copy { display: flex; align-items: center; gap: 16px; min-width: 0; }
.parent-attention-copy > div { min-width: 0; overflow-wrap: anywhere; }
.parent-attention-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; background: #def0eb; color: var(--teal); }
.parent-urgent > summary { display: flex; align-items: center; gap: 16px; }
.parent-urgent > summary::after { content: '⌄'; margin-left: auto; }
.parent-urgent[open] > summary::after { transform: rotate(180deg); }
.parent-day-row { grid-template-columns: 134px minmax(0,1fr); }
.parent-row-label { display: inline-flex; align-items: flex-start; gap: 10px; color: var(--ink); }
.parent-row-label > .parent-icon { width: 21px; height: 21px; flex-basis: 21px; }
.parent-upcoming-row { grid-template-columns: 110px 160px minmax(0,1fr) auto; align-items: center; }
.parent-upcoming-child { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.parent-upcoming-child > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.parent-upcoming-child .parent-upcoming-avatar { position: relative; inset: auto; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; overflow: hidden; }
.parent-upcoming-avatar img { width: 100%; height: 100%; object-fit: cover; }
.parent-chore-progress progress { appearance: none; border: none; border-radius: 8px; overflow: hidden; background: var(--line); }
.parent-chore-progress progress::-webkit-progress-bar { background: var(--line); border-radius: 8px; }
.parent-chore-progress progress::-webkit-progress-value { background: var(--child-color); border-radius: 8px; }
.parent-chore-progress progress::-moz-progress-bar { background: var(--child-color); border-radius: 8px; }
@media(max-width:600px) {
 .parent-day-row { grid-template-columns: 1fr; }
 .parent-upcoming-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
 .parent-attention-copy { gap: 12px; }
 .parent-attention-icon { width: 36px; height: 36px; flex-basis: 36px; }
 .parent-top-actions button { justify-content: center; gap: 7px; }
 .parent-top-actions .parent-icon { width: 19px; height: 19px; flex-basis: 19px; }
}

/* Parent dashboard: lighter editorial headings and consistent UI controls. */
body:not(.is-native-app) #parentCommandCenter h2 { font-size: clamp(24px,2vw,28px); font-weight: 400; }
body:not(.is-native-app) #parentCommandCenter h3 { font-weight: 400; }
body:not(.is-native-app) #parentCommandCenter .parent-attention-copy strong,
body:not(.is-native-app) #parentCommandCenter .parent-upcoming-row strong { font-weight: 500; }
body:not(.is-native-app) #parentCommandCenter button { font-family: inherit; font-size: 14px; font-weight: 500; letter-spacing: normal; }
.parent-homework { padding: 0 0 12px; }
.parent-homework:last-child { padding-bottom: 0; }
.parent-homework > strong { font-weight: 600; }
.parent-homework > small { margin: 3px 0 6px; }
.parent-homework > p { white-space: pre-line; overflow-wrap: anywhere; }

body:not(.is-native-app) .workspace:has(#dashboard.is-parent-dashboard:not([hidden])) #pageTitle { font-weight: 400; }

/* Approved reference hierarchy: bold anchors, quiet rows, compact child header. */
body:not(.is-native-app) #parentCommandCenter h2 { font-weight: 700; font-size: clamp(24px,2vw,28px); }
body:not(.is-native-app) #parentCommandCenter h3 { font-weight: 700; font-size: 25px; }
body:not(.is-native-app) .workspace:has(#dashboard.is-parent-dashboard:not([hidden])) #pageTitle { font-weight: 700; }
.parent-attention, .parent-day, .parent-upcoming { border-radius: 6px; padding: 20px; }
.parent-child-card { border-radius: 5px; padding: 18px; }
.parent-child-heading { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; column-gap: 12px; margin-bottom: 14px; }
.parent-child-heading > header { display: flex; align-items: center; gap: 16px; min-width: 0; grid-column: 1; grid-row: 1; }
.parent-child-heading > header > div { min-width: 0; }
.parent-child-heading h3 { overflow-wrap: anywhere; }
.parent-child-heading .parent-lessons { display: contents; }
.parent-child-heading .parent-lessons > summary { grid-column: 2; grid-row: 1; display: inline-flex; align-items: center; justify-content: flex-end; gap: 9px; list-style: none; font-size: 14px; font-weight: 400; white-space: nowrap; padding: 12px 0; }
.parent-child-heading summary::-webkit-details-marker { display: none; }
.parent-disclosure-chevron { color: var(--muted); font-size: 20px; line-height: 1; }
.parent-lessons[open] .parent-disclosure-chevron { transform: rotate(180deg); }
.parent-child-heading .parent-lessons > ul { grid-column: 1/-1; margin: 10px 0 0; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.parent-child-heading .parent-lessons:not([open]) > ul { display: none; }
body:not(.is-native-app) #parentCommandCenter .parent-attention-row > button { padding: 8px 0; min-height: 40px; color: var(--teal); background: transparent; border: 0; box-shadow: none; border-radius: 3px; font-weight: 500; }
body:not(.is-native-app) #parentCommandCenter .parent-attention-row > button:hover span { text-decoration: underline; text-underline-offset: 3px; }
.parent-attention-row { padding: 9px 0; }
.parent-attention-row:last-child { padding-bottom: 0; }
.parent-day-row { padding: 10px 0; }
.parent-homework { padding-bottom: 9px; }
.parent-homework-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 8px; margin-bottom: 3px; }
.parent-homework-heading strong { font-size: 14px; font-weight: 600; }
.parent-day-row .parent-homework-heading small { display: inline; font-size: 11px; line-height: 1.3; color: var(--muted); }
.parent-day-row .parent-homework p { font-size: 14px; line-height: 1.35; margin: 0; }
.parent-data-note { font-size: 12px; line-height: 1.35; margin: 7px 0 10px; }
body:not(.is-native-app) #parentCommandCenter .parent-upcoming-row strong { font-size: 14px; font-weight: 400; }
.parent-upcoming-row { padding: 10px 0; }
@media(max-width:600px) {
 .parent-attention,.parent-day,.parent-upcoming { padding: 16px; }
 .parent-child-card { padding: 14px; }
 .parent-child-heading { column-gap: 8px; }
 .parent-child-heading > header { gap: 9px; }
 .parent-child-heading .parent-lessons > summary { font-size: 12px; gap: 4px; }
 .parent-child-heading header p { font-size: 13px; }
 body:not(.is-native-app) #parentCommandCenter .parent-child-heading h3 { font-size: 22px; }
}

/* Native disclosure owns its whole header; no display:contents or font glyph arrow. */
.parent-schedule { display: block; margin: 0 0 14px; min-width: 0; }
.parent-schedule > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; padding: 0; color: var(--ink); cursor: pointer; }
.parent-schedule > summary::-webkit-details-marker { display: none; }
.parent-child-identity { display: flex; align-items: center; gap: 16px; min-width: 0; }
.parent-child-identity > span:last-child { min-width: 0; }
.parent-school-time { display: block; margin-top: 5px; font-weight: 400; font-size: 15px; }
.parent-schedule-action { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-size: 14px; font-weight: 400; white-space: nowrap; }
.parent-schedule-action .parent-icon { width: 16px; height: 16px; flex-basis: 16px; transform-origin: center; }
.parent-schedule .parent-hide-lessons { display: none; }
.parent-schedule[open] .parent-show-lessons { display: none; }
.parent-schedule[open] .parent-hide-lessons { display: inline; }
.parent-schedule[open] .parent-schedule-action .parent-icon { transform: rotate(180deg); }
.parent-schedule > ul { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); font-size: 14px; display: grid; gap: 7px; }
.parent-schedule:not([open]) > ul { display: none; }
.parent-schedule > ul > li { display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 8px; }
body:not(.is-native-app) #parentCommandCenter .parent-homework-link { color: var(--ink); font-size: 14px; font-weight: 400; padding: 0; margin: 0; min-height: 0; border: 0; background: none; box-shadow: none; text-decoration: none; }
.parent-child-card > footer { justify-content: flex-end; }
@media(max-width:600px) {
 .parent-child-identity { gap: 9px; }
 .parent-schedule > summary { gap: 8px; }
 .parent-schedule-action { font-size: 12px; gap: 4px; }
 .parent-school-time { font-size: 13px; }
 body:not(.is-native-app) #parentCommandCenter .parent-child-identity h3 { font-size: 22px; }
}

.parent-schedule > summary:focus { outline: none; }
.parent-schedule > summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; border-radius: 4px; }

.parent-attendance-count { margin-left: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }

/* Compact school details share the dashboard's 14px information scale. */
body:not(.is-native-app) #parentCommandCenter .parent-day-row,
body:not(.is-native-app) #parentCommandCenter .parent-day-row p,
body:not(.is-native-app) #parentCommandCenter .parent-day-row strong,
body:not(.is-native-app) #parentCommandCenter .parent-school-time,
body:not(.is-native-app) #parentCommandCenter .parent-schedule li { font-size: 14px; }
.parent-attendance-entry + .parent-attendance-entry { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.parent-attendance-heading { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:3px 8px; }
.parent-attendance-type { display:flex; flex-wrap:wrap; align-items:center; gap:6px; min-width:0; }
.parent-attendance-type i { width:9px; height:9px; flex:0 0 9px; border-radius:50%; background:var(--attendance-color); }
.parent-attendance-type strong { font-weight:600; }
.parent-attendance-code { padding:1px 6px; border-radius:10px; background:color-mix(in srgb,var(--attendance-color) 18%,transparent); font-size:11px; font-weight:600; }
.parent-day-row .parent-attendance-heading small { font-size:12px; white-space:nowrap; }
body:not(.is-native-app) #parentCommandCenter .parent-attendance-meta,
body:not(.is-native-app) #parentCommandCenter .parent-attendance-meta strong,
body:not(.is-native-app) #parentCommandCenter .parent-attendance-note { font-size:12px; line-height:1.4; margin:3px 0 0; overflow-wrap:anywhere; white-space:pre-line; }

/* Message cards use the same restrained information hierarchy as the dashboard. */
body:not(.is-native-app) #inboxmessages .wilma-message-ticket h3 { font-size:18px; line-height:1.3; font-weight:700; }
body:not(.is-native-app) #inboxmessages .wilma-ticket-meta dt { font-size:12px; font-weight:500; text-transform:none; }
body:not(.is-native-app) #inboxmessages .wilma-ticket-meta dd,
body:not(.is-native-app) #inboxmessages .inbox-ticket-child { font-size:14px; font-weight:400; }
body:not(.is-native-app) #inboxmessages .wilma-ticket-tags .inbox-ticket-tag { font-size:12px; font-weight:600; }
body:not(.is-native-app) #inboxmessages .inbox-merge-note { font-size:12px; font-weight:400; }
body:not(.is-native-app) #inboxmessages .wilma-message-ticket .compact-button { font-size:13px; font-weight:500; }
@media(max-width:520px) {
 body:not(.is-native-app) #inboxmessages .wilma-message-ticket h3 { font-size:17px; }
 body:not(.is-native-app) #inboxmessages .wilma-ticket-meta dd,
 body:not(.is-native-app) #inboxmessages .inbox-ticket-child { font-size:13px; }
}

/* Shared school headings match the command center in every calendar layout. */
body .calendar-school-heading { display:inline-flex; align-items:center; gap:8px; color:var(--ink); font-size:14px; font-weight:500; line-height:1.45; text-transform:none; letter-spacing:normal; }
body .calendar-school-heading > .parent-icon { display:block; width:20px; height:20px; flex:0 0 20px; }
html body #week .school-meal-compact.calendar-school-meal { display:grid; grid-template-columns:20px minmax(0,1fr); align-items:start; gap:8px; margin-top:6px; }
html body #week .school-meal-compact.calendar-school-meal > span:last-child { min-width:0; overflow-wrap:anywhere; color:var(--muted); }
body .wilma-column-card .calendar-school-heading { font-size:13px; gap:6px; }
body .wilma-column-card .calendar-school-heading > .parent-icon { width:18px; height:18px; flex-basis:18px; }

/* Keep the school-day expansion available even without homework. */
html body #week .wilma-school-day-toggle { display: block; margin-top: 12px; font-weight: 800; }
.wilma-school-day:not([open]) .school-day-show-less,
.wilma-school-day[open] .school-day-show-more { display: none; }

/* School-day title and section content alignment. */
html body #week .wilma-school-title-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 12px; }
html body #week .wilma-school-title-row > small { margin: 0; font-weight: 400; }
html body #week .wilma-school-homework-list,
html body #week .wilma-school-day-attendance > ul { margin-left: 28px; }

/* Align expanded school lessons and meal details with summary content. */
html body #week .wilma-school-day > .wilma-lesson-list,
html body #week .wilma-school-day > .school-meal-details { padding-left: 28px; }
@media (max-width: 760px) {
  html body #week .wilma-school-day > .wilma-lesson-list,
  html body #week .wilma-school-day > .school-meal-details { padding-left: 42px; }
}

/* Keep person colors visible above the general calendar card theme. */
html body #week .week-column-card.is-manual-calendar-item:not(.is-manual-reminder),
html body #week .timeline-item.is-manual-calendar-item:not(.is-manual-reminder) {
  border: 1px solid color-mix(in srgb, var(--calendar-item-color) 24%, var(--line));
  border-left: 3px solid var(--calendar-item-color);
  background: color-mix(in srgb, var(--calendar-item-color) 11%, var(--paper, #fffaf0));
}

/* Preserve the school profile color in the native list and the day columns. */
html body #week .week-list-day-items > .wilma-school-day,
html body #week .week-column-card.wilma-column-card {
  border: 1px solid color-mix(in srgb, var(--school-color) 42%, var(--line));
  border-left: 5px solid var(--school-color);
  background: color-mix(in srgb, var(--school-color) 13%, var(--paper, #fffaf0));
}
html body #week .wilma-column-card .wilma-school-title-row { gap: 4px 10px; }
html body #week .wilma-column-card .wilma-school-title-row > small { line-height: 1.4; }
html body #week .wilma-column-card .wilma-column-homework > span,
html body #week .wilma-column-card .wilma-column-attendance > span { margin-left: 24px; }
html body #week .wilma-column-card .calendar-school-heading { display: flex; min-width: 0; }
html body #week .wilma-column-card .calendar-school-heading > span { min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 1401px) and (max-width: 1600px) {
  html body #week .timeline.week-columns { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Calendar recurrence and removal controls share the existing dialog styles. */
#calendarRecurrenceFields,
#calendarScopeOptions {
  min-inline-size: 0;
}

#calendarScopeDialog {
  max-height: calc(100dvh - 32px);
  overflow: auto;
}

#calendarScopeForm {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* School date filters stay within the wrapping filter group on narrow screens. */
#schoolRoot .school-filters input[type="date"] { min-width: 0; max-width: 100%; width: 100%; min-height: 46px; font: 400 16px/1.45 var(--font-body); box-sizing: border-box; }
#schoolRoot #schoolDateRangeLabel { flex: 1 1 100%; overflow-wrap: anywhere; }
.parent-completed-homework summary { cursor: pointer; font-weight: 600; }
.parent-completed-homework .is-done { opacity: .8; }


/* Sequential creation retains the existing form cards and app palette. */
/* The desktop account-form auto-fit grid must not place wizard rows side by side. */
#choreForm { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
#choreForm > * { grid-column: 1 / -1; min-width: 0; }
.chore-form [hidden] { display: none !important; }
.chore-wizard-progress {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px;
  list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--muted);
}
.chore-wizard-progress li { min-width: 0; padding: 10px; border-bottom: 3px solid var(--line); overflow-wrap: anywhere; }
.chore-wizard-progress [aria-current="step"] { color: var(--teal); border-color: var(--teal); font-weight: 700; }
.chore-wizard-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.chore-wizard-actions button { min-height: 48px; }
.chore-wizard-actions .primary-button { margin-left: auto; }
.chore-form .chore-form-review { position: static; }
#schoolRoot .school-filters { width: 100%; min-width: 0; }
#schoolRoot #schoolDateRangeLabel { flex: 1 1 100%; margin: 0; }
#schoolRoot .school-filters select { box-sizing: border-box; }
@media (max-width: 640px) {
  .chore-wizard-progress { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #schoolRoot .school-filters label { max-width: none; flex-basis: 140px; }
}

/* Topic illustrations replace numbered badges in the chore wizard. */
.chore-step-illustration { width: 80px; height: 80px; flex: 0 0 80px; object-fit: contain; }
.chore-form-section-heading > div { min-width: 0; }
.chore-form-review[data-chore-form-section] { width: 100%; box-sizing: border-box; }
.chore-form-review .chore-form-section-heading { padding: 0; background: none; }
@media (max-width: 640px) {
  .chore-step-illustration { width: 64px; height: 64px; flex-basis: 64px; }
  .chore-wizard-progress li:last-child { grid-column: 1 / -1; }
}

/* Native choice controls retain their geometry in browser and app forms. */
:where(input[type="checkbox"], input[type="radio"]) {
  width: 18px; height: 18px; min-height: 18px; padding: 0;
  flex: 0 0 18px; accent-color: var(--teal); vertical-align: middle;
}
.chore-form-choice:focus-within { outline: 2px solid var(--teal); outline-offset: 2px; }
.chore-form-choice:has(input:disabled) { opacity: .55; cursor: not-allowed; }

/* Illustrated form surfaces share the chore form's calm paper and teal palette. */
.form-topic-heading {
  display: flex; align-items: center; gap: 16px; min-width: 0;
  padding: 20px; border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, rgb(47 111 115 / 7%), rgb(255 255 255 / 58%));
}
.form-topic-illustration { width: 80px; height: 80px; flex: 0 0 80px; object-fit: contain; }
.form-topic-copy { flex: 1 1 auto; min-width: 0; }
.form-topic-heading :is(h2, h3) { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(22px, 2.1vw, 28px); line-height: 1.2; overflow-wrap: anywhere; }
.form-topic-heading p { margin: 5px 0 0; color: var(--muted); font: 400 14px/1.5 var(--font-body); }
.form-topic-heading .eyebrow { margin: 0 0 5px; color: var(--teal); font-size: 11px; font-weight: 700; }
#settings .settings-tab-panel > .panel { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: rgb(255 253 248 / 94%); min-width: 0; }
#settings .settings-tab-panel > .panel > .form-topic-heading { margin: -22px -22px 22px; border-radius: 12px 12px 0 0; }
#settings .form-topic-heading > :is(button, .billing-badge) { flex-shrink: 0; }
#settings :is(.account-form, .calendar-feed-form) { gap: 18px; }
#settings :is(.account-form, .calendar-feed-form) > label,
.calendar-entry-content > label { display: grid; align-content: start; gap: 7px; }
#settings :is(label, .field-label), .calendar-entry-form :is(label, .field-label) { font-family: var(--font-body); text-transform: none; letter-spacing: normal; }
#settings label > span:first-child, .calendar-entry-content > label > span:first-child { font-size: 14px; font-weight: 600; }
#settings :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea),
.calendar-entry-form :is(input:not([type="checkbox"]):not([type="radio"]), select) { font: 400 16px/1.45 var(--font-body); border-radius: 9px; min-width: 0; }
#settings :is(.settings-edit-dialog, .family-dialog) > .form-topic-heading { margin-bottom: 20px; border-radius: 10px; }
body:not(.is-native-app) .calendar-entry-form > .form-topic-heading { padding: 20px 22px; }
body:not(.is-native-app) .calendar-entry-content { padding: 20px 22px; gap: 18px; background: rgb(255 253 248 / 94%); }
.calendar-entry-form .calendar-entry-type { gap: 10px; }
.calendar-entry-form .calendar-entry-type label,
.calendar-entry-form .calendar-target-option {
  display: flex; align-items: center; gap: 10px; min-height: 48px;
  padding: 12px; border: 1px solid var(--line); border-radius: 9px;
  background: rgb(255 255 255 / 80%); color: var(--ink); box-shadow: none;
}
.calendar-entry-form .calendar-entry-type label:has(input:checked),
.calendar-entry-form .calendar-target-option:has(input:checked) { border-color: var(--teal); background: #eaf2f2; }
.calendar-entry-form :is(.calendar-entry-type label, .calendar-target-option):focus-within { outline: 2px solid var(--teal); outline-offset: 2px; }
.calendar-entry-form .calendar-entry-type input { position: static; opacity: 1; appearance: auto; width: 18px; height: 18px; flex: 0 0 18px; }
.calendar-entry-form :is(.calendar-entry-type, .calendar-target-option) span { font: 600 14px/1.4 var(--font-body); text-transform: none; letter-spacing: normal; }
@media (max-width: 640px) {
  .form-topic-heading { padding: 16px; gap: 12px; flex-wrap: wrap; }
  .form-topic-illustration { width: 56px; height: 56px; flex-basis: 56px; }
  .form-topic-copy { flex-basis: calc(100% - 110px); }
  .form-topic-heading > .icon-button { flex: 0 0 32px; }
  #settings .settings-tab-panel > .panel { padding: 16px; }
  #settings .settings-tab-panel > .panel > .form-topic-heading { margin: -16px -16px 18px; }
  #settings .form-topic-heading > :is(button:not(.icon-button), .billing-badge) { margin-left: 68px; max-width: calc(100% - 68px); white-space: normal; }
  body:not(.is-native-app) .calendar-entry-form > .form-topic-heading { padding: 16px 14px; flex-wrap: nowrap; }
  body:not(.is-native-app) .calendar-entry-content { padding: 18px 14px; }
}

.calendar-entry-form .calendar-entry-type { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); padding:0; border:0; margin:0; }
.calendar-entry-form .calendar-entry-type legend { margin-bottom:8px; }
.calendar-entry-form .calendar-entry-type label { justify-content:flex-start; min-height:60px; margin:0; }
@media(max-width:640px) {
 .calendar-entry-form .calendar-entry-type { grid-template-columns:minmax(0,1fr); }
}

/* Adult daily summary */
.ai-digest-card{margin:24px 0;padding:clamp(18px,3vw,32px);border:1px solid #d9e2d8;border-radius:20px;background:#fbfcf8;min-width:0;max-width:100%;overflow-wrap:anywhere}
.ai-digest-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}.ai-digest-heading h2{margin:4px 0 14px;font-size:1.35rem}.ai-digest-heading>span,.ai-digest-footer{color:#576653;font-size:.85rem}.ai-digest-children{display:grid;gap:20px}.ai-digest-children article{min-width:0;border-top:1px solid #dce4d8;padding-top:16px}.ai-digest-children h3{margin:0 0 8px;font-size:1.1rem}.ai-digest-children article>p{line-height:1.65;white-space:pre-line;margin:0 0 12px}.ai-digest-sources{display:flex;flex-wrap:wrap;gap:8px}.ai-digest-sources button,.ai-digest-sources a{max-width:100%;white-space:normal;overflow-wrap:anywhere;font-size:.8rem;min-height:36px}.ai-digest-note{padding:12px 14px;border-radius:10px;background:#f1f0e6;color:#555b45;line-height:1.5}.ai-digest-footer{margin:20px 0 0;line-height:1.5}.ai-source-dialog{box-sizing:border-box;width:min(640px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);padding:20px;border:1px solid #d9e2d8;border-radius:18px;overflow:auto}.ai-source-dialog::backdrop{background:#182b2466}.ai-source-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;min-width:0}

.child-command-center > .ai-digest-card { margin: 0; }

/* Readable school helper summaries. */
.ai-digest-children h4 { margin: 1.15rem 0 .4rem; font-size: 1rem; }
.ai-digest-children ul { margin: .25rem 0 1rem; padding-left: 1.4rem; line-height: 1.65; }
.ai-digest-children li { padding-left: .2rem; margin: .45rem 0; overflow-wrap: anywhere; }
.ai-attention-list li::marker { color: #9b6033; }
.ai-source-details { margin-top: 1rem; }
.ai-source-details summary { cursor: pointer; color: var(--primary, #29666a); min-height: 44px; padding: .65rem 0; }
.ai-source-details[open] .ai-digest-sources { padding-top: .5rem; }

/* Daily school updates share each child's existing identity and color. */
.ai-digest-children { gap: 18px; }

.ai-digest-children .ai-child-section { padding: clamp(16px,2.2vw,24px); border: 1px solid color-mix(in srgb,var(--child-color) 22%,#e2e7de); border-left: 4px solid var(--child-color); border-radius: 16px; background: color-mix(in srgb,var(--child-color) 4%,#fff); font-size: .9375rem; }
.ai-child-heading { display:flex; align-items:center; gap:10px; margin-bottom:8px; min-width:0; }
.ai-child-heading>div { min-width:0; }
.ai-child-heading .ai-child-avatar { flex:0 0 46px; width:46px; height:46px; border-radius:50%; }
.ai-child-initial { display:grid; place-items:center; background:var(--child-color); color:#fff; font-size:1.25rem; font-weight:700; }
.ai-child-kicker { margin:0 0 3px; color:#586252; font-size:.72rem; letter-spacing:.05em; }
.ai-digest-children .ai-child-heading h3 { margin:0; font-size:1.18rem; }
.ai-digest-children h4 { font-size:.94rem; margin-top:1rem; }
.ai-digest-children ul,.ai-digest-children article>p { line-height:1.6; }
.ai-digest-children li { margin:.35rem 0; }
.ai-digest-children li::marker { color:var(--child-color); }
.ai-digest-children .ai-review-count { border-radius:9px; padding:10px 12px; background:color-mix(in srgb,var(--child-color) 9%,#fff); margin-top:14px; }
@media(max-width:480px){.ai-digest-card{padding:16px 12px}.ai-digest-children .ai-child-section{padding:16px 13px}.ai-child-heading{gap:10px}.ai-child-heading .ai-child-avatar{width:40px;height:40px;flex-basis:40px}}

/* Align the date with the title rather than estimating the height of the eyebrow. */
.ai-digest-date {
  display: block;
  color: var(--text, #242824);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 700;
  line-height: 1.35;
}

@media (min-width: 641px) {
  .ai-digest-heading:has(> .ai-digest-timing) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 16px;
    row-gap: 0;
    align-items: first baseline;
  }

  .ai-digest-heading:has(> .ai-digest-timing) > div:first-child {
    display: contents;
  }

  .ai-digest-heading:has(> .ai-digest-timing) .eyebrow {
    grid-column: 1 / -1;
  }

  .ai-digest-heading:has(> .ai-digest-timing) h2 {
    margin: 0 0 14px;
  }
}

@media (max-width: 640px) {
  .ai-digest-card .ai-digest-heading { display:grid; gap:3px; }
  .ai-digest-card .ai-digest-heading h2 { margin:0; }
  .ai-digest-heading:has(> .ai-digest-timing) h2 { margin-bottom: 0; }
}

.ai-item-source{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;width:20px;height:20px;padding:0;margin-left:2px;border:0;border-radius:50%;background:transparent;box-shadow:none;color:inherit;cursor:pointer;opacity:.55}.ai-item-source:hover,.ai-item-source:focus-visible{opacity:1;background:rgba(8,118,111,.09);color:#08766f}.ai-item-source:focus-visible{outline:2px solid #08766f;outline-offset:2px}.ai-source-choices{display:grid;gap:8px}.ai-source-choices button{white-space:normal;overflow-wrap:anywhere;text-align:left;max-width:100%}

.ai-item-source svg{width:12px;height:12px}

/* Adult digest headings and the marker for an explicit guardian action. */
.ai-period-date {
  margin-inline-start: .35em;
  color: var(--muted, #52645b);
  font-size: .85em;
  font-weight: 500;
  white-space: nowrap;
}
.ai-day-empty { margin: .2rem 0; color: var(--muted, #52645b); }
.ai-guardian-action { list-style: none; position: relative; }
.ai-action-indicator {
  position: absolute;
  inset-inline-start: -1.1rem;
  top: .25em;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 1.08em;
  height: 1.08em;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: #fff5dd;
  color: #77521b;
  font: 700 .81em/1 system-ui, sans-serif;
}


.service-health-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
@media (max-width: 600px) {
  .service-health-notice { grid-template-columns: minmax(0, 1fr); }
  .service-health-actions { justify-content: flex-end; }
}
@media (max-width: 1050px) {
  .service-health-notice { bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
}

/* Homework completion remains visible in each day's context. */
#schoolRoot .school-work-row { grid-template-columns: 120px minmax(0,1fr) auto; }
#schoolRoot .school-work-row.is-done { background: #eef5ef; }
#schoolRoot .school-work-row.is-done .school-work-content { color: #53645a; }
.school-done-button { min-height: 44px; padding: 9px 13px; border: 1px solid #789b8a; border-radius: 9px; color: #264f43; background: #f6faf6; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.school-done-button[aria-pressed="true"] { background: #dcecdf; border-color: #8eaf98; }
.school-done-button:focus-visible { outline: 3px solid #287c71; outline-offset: 3px; }
.school-done-button:disabled { opacity: .6; cursor: wait; }
.homework-status { display: inline-block; font-size: 11px; line-height: 1.5; padding: 2px 7px; border-radius: 6px; background: #f7e7e5; color: #914b46; white-space: nowrap; }
.homework-status.is-done { color: #315d41; background: #dfeee2; }
.homework-summary { font-size: 12px; font-weight: 600; color: #315d41; margin: 0 0 10px; }
.parent-homework.is-done { background: #eef5ef; border-radius: 7px; padding: 8px 10px; margin: 6px 0; color: #53645a; }
.child-homework { border-top: 1px solid #c9d7cf; margin-top: 14px; padding-top: 12px; min-width: 0; }
.child-homework h4 { font-family: inherit; font-size: 13px; margin: 0 0 8px; }
.child-today-card .child-homework ul { list-style: none; padding: 0; margin: 0; }
.child-homework li { padding: 7px 0; }
.child-homework li > div { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.child-homework li p,.child-homework > p { font-size: 12px; line-height: 1.5; margin: 5px 0; overflow-wrap: anywhere; }
.child-homework li.is-done { background: #eef5ef; padding: 7px; border-radius: 6px; color: #53645a; }
.child-homework a { display: inline-block; font-size: 12px; font-weight: 600; padding: 10px 0 2px; }
@media(max-width:600px) { #schoolRoot .school-work-row { grid-template-columns: minmax(0,1fr) auto; } .school-done-button { font-size: 12px; padding: 8px 10px; } }

@media (max-width: 600px) {
  .child-week-items {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Product help stays readable in the web and native layouts. */
.help-guide { display:grid; gap:18px; max-width:980px; }
.help-guide-intro p { max-width:70ch; line-height:1.65; color:var(--muted); }
.help-guide-intro .eyebrow { color:var(--teal); }
.help-guide-links { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.help-guide-links a { display:flex; align-items:center; justify-content:center; min-height:48px; text-align:center; text-decoration:none; white-space:normal; }
.help-guide-topics { padding:8px 22px; }
.help-guide-topics details + details { border-top:1px solid var(--line); }
.help-guide-topics summary { cursor:pointer; padding:18px 4px; min-height:48px; font-weight:700; line-height:1.4; overflow-wrap:anywhere; }
.help-guide-topics summary:focus-visible { outline:2px solid var(--teal); outline-offset:2px; border-radius:6px; }
.help-guide-topics details p { margin:0 4px 18px; color:var(--muted); line-height:1.65; overflow-wrap:anywhere; }
@media(max-width:640px) { .help-guide-links { grid-template-columns:repeat(2,minmax(0,1fr)); } .help-guide-topics { padding:4px 16px; } }
.ai-digest-timing { min-width:0; max-width:100%; }
.ai-digest-timing small { display:block; margin-top:-2px; color:var(--muted); font-size:.85rem; line-height:1.2; }

/* Searchable Wilma directory stays inside the credential dialog at every width. */
.school-environment-options {
  max-height: 11rem;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid var(--border, #d9d1c4);
  border-radius: 12px;
}
#schoolCredentialDialog .school-environment-option {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: .65rem;
  padding: .7rem;
  margin: 0;
  cursor: pointer;
}
.school-environment-option + .school-environment-option { border-top: 1px solid #e7e0d5; }
#schoolCredentialDialog .school-environment-option input {
  width: 1.1rem;
  height: 1.1rem;
  min-height: 0;
  padding: 0;
  margin: .15rem 0 0;
  flex: 0 0 1.1rem;
  accent-color: #497875;
}
.school-environment-option span { min-width: 0; overflow-wrap: anywhere; }
.school-environment-option:has(input:checked) { background: #e8f0ec; }
.school-environment-option:has(input:disabled) { opacity: .65; cursor: default; }
.school-environment-option:focus-within { outline: 2px solid #c39446; outline-offset: -2px; }

#schoolEnvironmentSelection:empty { display: none; }

/* The parent's illustrated setup checklist adapts to the space inside the dashboard rail. */
.parent-setup-card {
  container-type: inline-size;
  min-width: 0;
  border: 1px solid #c8c9b7;
  border-radius: 14px;
  background: #fffdf7;
  color: #253931;
}
.parent-setup-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 18px 22px;
  border-bottom: 1px solid #d8d9c9;
  border-radius: 13px 13px 0 0;
  background: linear-gradient(105deg, #eaf1e7, #faf8eb);
}
#parentCommandCenter .parent-setup-heading h2 {
  margin: 0;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.parent-setup-progress { display: grid; gap: 5px; min-width: 104px; color: #466054; font-size: 13px; font-weight: 600; }
.parent-setup-progress progress {
  display: block;
  width: 100%;
  height: 5px;
  border: 0;
  border-radius: 4px;
  background: #d4dece;
  color: #427568;
  accent-color: #427568;
  appearance: none;
}
.parent-setup-progress progress::-webkit-progress-bar { border-radius: 4px; background: #d4dece; }
.parent-setup-progress progress::-webkit-progress-value { border-radius: 4px; background: #427568; }
.parent-setup-progress progress::-moz-progress-bar { border-radius: 4px; background: #427568; }
.parent-setup-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.parent-setup-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  padding: 16px clamp(14px, 2cqi, 24px);
  overflow-wrap: anywhere;
}
.parent-setup-step + .parent-setup-step { border-left: 1px solid #e1e1d5; }
.parent-setup-art {
  display: block;
  flex: none;
  width: 86px;
  height: 70px;
  background: var(--setup-illustration) left center / contain no-repeat;
}
.parent-setup-art-member { --setup-illustration: url("/assets/chore-steps/assignees.webp"); }
.parent-setup-art-wilma { --setup-illustration: url("/assets/nav-icons-v2/school.webp"); }
.parent-setup-art-meal { --setup-illustration: url("/assets/parent-setup-meal.webp"); }
.parent-setup-art-login { --setup-illustration: url("/assets/parent-setup-login.webp"); }
.parent-setup-copy { min-width: 0; }
body:not(.is-native-app) #parentCommandCenter .parent-setup-copy h3, .parent-setup-copy h3 {
  margin: 0;
  color: #253931;
  font: 700 20px/1.12 Georgia, "Times New Roman", serif;
}
.parent-setup-copy p {
  margin: 6px 0 0;
  color: #515b51;
  font-size: 14px;
  line-height: 1.4;
}
.parent-setup-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1px 5px; margin-top: auto; padding-top: 3px; }
.parent-setup-actions button { min-height: var(--app-touch-target-min, 48px); max-width: 100%; padding: 7px 12px; line-height: 1.2; white-space: normal; }
.parent-setup-actions .parent-setup-skip {
  --action-bg: transparent;
  --action-border: transparent;
  --action-ink: #536457;
  --action-hover: #ebefe7;
  --action-shadow: none;
  padding-inline: 6px;
  font-family: inherit;
}
.parent-setup-skip:hover { text-decoration: underline; text-underline-offset: 3px; }
.parent-setup-status { display: inline-flex; align-items: center; gap: 4px; margin-top: 7px; color: #48664d; font-size: 14px; font-weight: 600; }
.parent-setup-status .parent-icon { width: 17px; height: 17px; }
.parent-setup-step[data-setup-status="skipped"] .parent-setup-status { color: #626a60; }
.parent-setup-step:not([data-setup-status="pending"]) .parent-setup-art { filter: saturate(.6); }
@container (max-width: 820px) {
  .parent-setup-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .parent-setup-step {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    grid-template-rows: min-content 1fr;
    align-items: start;
    gap: 7px 12px;
    padding: 15px;
  }
  .parent-setup-art { grid-column: 1; grid-row: 1 / 3; width: 62px; height: 62px; }
  .parent-setup-actions { grid-column: 2; align-self: end; }
  .parent-setup-step:nth-child(odd) { border-left: 0; }
  .parent-setup-step:nth-child(n+3) { border-top: 1px solid #e1e1d5; }
}
@container (max-width: 550px) {
  .parent-setup-heading { padding: 15px; }
  .parent-setup-list { grid-template-columns: minmax(0, 1fr); }
  .parent-setup-step { padding: 13px 15px; }
  .parent-setup-step + .parent-setup-step { border-left: 0; border-top: 1px solid #e1e1d5; }
  .parent-setup-art { align-self: start; }
}
@container (max-width: 400px) {
  .parent-setup-progress { display: flex; align-items: center; gap: 10px; width: 100%; }
  .parent-setup-progress progress { width: 76px; }
}

/* School digests: keep the sentence and its source on the same row. */
.ai-digest-card .ai-digest-heading { margin-bottom: 10px; }
.ai-digest-card .ai-digest-heading .eyebrow { margin: 0 0 3px; }
.ai-digest-children { gap: 10px; }
.ai-digest-children .ai-child-section { padding: clamp(12px, 1.8vw, 20px); }
.ai-digest-children article > p { margin: 0; line-height: 1.45; }
.ai-digest-children h4 { margin: .65rem 0 .15rem; }
.ai-digest-children ul { margin: 0; padding-inline-start: 1.15rem; line-height: 1.45; }
.ai-digest-children li { margin: .15rem 0; }
.ai-cited-line {
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  vertical-align: middle;
}
/* Keep the list marker on the first text baseline when an adult digest item wraps. */
.ai-attention-list .ai-cited-line {
  vertical-align: baseline;
  align-items: start;
}
.ai-line-links { display: flex; flex-wrap: wrap; justify-content: end; max-width: 96px; }
.ai-line-links .ai-item-source { margin: 0; color: #346461; opacity: 1; }
.ai-line-links .ai-item-source svg { width: 16px; height: 16px; }
.ai-digest-footer { margin-top: 10px; }

.ai-source-details {
  margin-top: 8px;
  padding-inline: 12px;
  border: 1px solid #d5e0d8;
  border-radius: 12px;
  background: #f6f8f4;
}
.ai-source-details summary { align-content: center; padding: 6px 0; font-weight: 600; }
.ai-source-details[open] .ai-digest-sources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  padding: 8px 0 12px;
  border-top: 1px solid #d5e0d8;
  gap: 6px;
}
.ai-digest-sources :is(button, a), .ai-source-choices button {
  display: flex;
  align-items: center;
  justify-content: start;
  text-align: start;
  line-height: 1.35;
  padding: 8px 12px;
  min-width: 0;
}
.ai-source-dialog { position: fixed; inset: 0; margin: auto; padding: clamp(14px, 3vw, 24px); color: var(--text); background: #fffdf8; }
.ai-source-dialog .ai-digest-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d5e0d8;
}
.ai-source-dialog .ai-digest-heading h2 { margin: 0; line-height: 1.2; }
.ai-source-dialog .ai-source-body { padding-top: 12px; white-space: normal; }
.ai-source-body p { margin: 0; white-space: pre-line; line-height: 1.5; }
.ai-source-body p + p, .ai-source-body .ai-source-choices { margin-top: .55em; }

#schoolRoot .school-work-section {
  padding: clamp(10px, 2vw, 18px);
  border: 1px solid #dedbd0;
  border-radius: 14px;
  background: #fffdf8;
}
#schoolRoot .school-work-section + .school-work-section { margin-top: 12px; }
#schoolRoot .school-work-section > h2 { margin: 0 0 8px; }
#schoolRoot .school-work-section .school-date-group:last-child { margin-bottom: 0; }

.notice-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 22rem);
  gap: 4px;
  margin-block-end: .8rem;
  padding: 4px;
  border: 1px solid #b9c7bf;
  border-radius: 14px;
  background: #e5eae4;
}
.notice-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--app-touch-target-min);
  padding: .5rem .6rem;
  border: 1px solid #a5b7af;
  border-radius: 9px;
  background: #fffdf8;
  color: #355e58;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.notice-switch a[aria-current="page"] {
  border-color: #355e58;
  background: #355e58;
  color: white;
  font-weight: 700;
}
@media (hover: hover) {
  .notice-switch a:not([aria-current]):hover { background: #f0f5ef; border-color: #648378; }
}
.notice-switch a:focus-visible { outline: 2px solid #233f39; outline-offset: 2px; }
#noticeFolders[hidden], #noticeMailbox[hidden], #inboxOrdinary[hidden] { display: none; }
#inboxOrdinary { display: grid; gap: 1rem; min-width: 0; }
#noticeItems { display: grid; gap: .6rem; }
.notice-row { display: grid; gap: .4rem; padding: 1rem; background: var(--surface, #fffdf8); border: 1px solid #cad6ce; border-radius: 12px; color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.notice-row.is-urgent { border-inline-start: 4px solid #b64d45; }
.notice-row small { color: #405953; }
.notice-row strong { white-space: pre-wrap; }
.notice-row button { justify-self: start; }
