:root {
  color-scheme: light;
  --ink: #20362e;
  --sub: #52665a;
  --paper: #f8f8f1;
  --surface: #fffef9;
  --line: #d5ddd0;
  --green: #204b40;
  --mint: #dceade;
  --yellow: #f5d67f;
  --rust: #a04b32;
  --gap: clamp(16px, 2.6vw, 32px);
  font-family: "Atkinson Hyperlegible Next", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: var(--green);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #a65324;
  outline-offset: 3px;
}
.wrap {
  width: min(1100px, calc(100% - 48px));
  margin: auto;
}
.skip {
  position: absolute;
  left: 12px;
  top: -70px;
  z-index: 10;
  background: white;
  padding: 10px;
}
.skip:focus {
  top: 8px;
}
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
#public-help { margin-inline-start: auto; padding: .6rem .25rem; font-weight: 600; }
#public-help[hidden] { display: none; }
.header-inner {
  min-height: 74px;
  display: flex;
  gap: 32px;
  align-items: center;
}
.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 27px;
  letter-spacing: -1.7px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}
.domain {
  color: #527465;
}
.brand-mark {
  font-size: 36px;
  line-height: 1;
  margin-right: 7px;
  color: var(--green);
  font-family: Georgia, serif;
}
.primary {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  gap: 26px;
  margin-left: 24px;
}
.primary a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--sub);
  font-weight: 600;
  border-bottom: 3px solid transparent;
  padding: 4px 2px 0;
}
.primary a[aria-current] {
  border-color: var(--green);
  color: var(--green);
}
.account {
  margin-left: auto;
}
.primary[hidden], .primary a[hidden], button[hidden], img[hidden], audio[hidden] { display:none; }
.nav-count {
  display:inline-block; min-width:1.65em; margin-inline-start:0.35em; padding:0.05em 0.4em;
  border-radius:1em; background:var(--green); color:white; text-align:center;
  font-size:0.85em; line-height:1.45; font-weight:700; font-variant-numeric:tabular-nums;
}
.nav-count[hidden] { display:none; }
.primary { flex-wrap:wrap; column-gap:clamp(10px,2vw,24px); }
.care-list { list-style:none; padding-inline-start:0; }
.care-list.panel { padding:clamp(14px,3vw,28px); }
.reminder-card { border-inline-start: 5px solid #326453; margin-block: 12px; }
.reminder-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.care-list li { display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:space-between; padding:12px 0; }
.care-list li + li { border-top:1px solid var(--line); }
.care-list li > div, .care-list li > span { min-width:0; overflow-wrap:anywhere; }
.family-question, .family-photo { min-width:0; border:1px solid var(--line); border-radius:10px; padding:14px; }
.family-photo [hidden] { display:none; }
.family-photo legend { font-weight:600; }
.family-photo video, .family-photo img {
  display:block; max-width:100%; max-height:38vh; object-fit:contain; border-radius:8px; margin-inline:auto;
}
.family-photo video { background:var(--ink); }
.family-photo p { margin:0; }
#family-photo { max-width:100%; max-height:55vh; object-fit:contain; margin-inline:auto; border-radius:8px; }
#family-audio, #family-record-preview { width:100%; }
button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #acbcae;
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.btn-main {
  color: white;
  background: var(--green);
  border-color: var(--green);
}
button:hover,
.btn:hover {
  filter: brightness(0.96);
}
.btn-light {
  background: #f9e1a0;
  color: #253a2c;
  border: 0;
}
.quiet {
  background: transparent;
  border-color: transparent;
  color: var(--green);
}
.danger {
  color: #8f3326;
}
button:disabled {
  opacity: 0.56;
  cursor: wait;
}
.account {
  font-size: 0.9rem;
  border-radius: 30px;
}
main.wrap {
  padding: clamp(28px, 4.6vw, 60px) 0 60px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
.feature-title,
.card-title {
  font-family: "Baskervville", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.13;
}
h1 {
  font-size: clamp(2.55rem, 5.5vw, 4.2rem);
}
h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}
h3 {
  font-size: 1.08rem;
}
.eyebrow {
  font-size: 0.77rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 750;
  color: var(--sub);
}
.page-head,
.section-head,
.row,
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.page-head,
.section-head {
  justify-content: space-between;
}
.page-head {
  margin-bottom: 24px;
}
.page-head h1 {
  margin: 4px 0;
}
.section-head {
  margin-bottom: 14px;
}
.sub {
  color: var(--sub);
}
.small {
  font-size: 0.88rem;
}
.stack {
  display: grid;
  gap: 16px;
  align-content: start;
}
.row-between {
  justify-content: space-between;
}
.bodycopy {
  font-size: 1.06rem;
  line-height: 1.62;
  max-width: 65ch;
}
.panel {
  padding: var(--gap);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  min-width: 0;
}
.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(265px, 1fr);
  gap: 18px;
  align-items: stretch;
}
.feature {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 260px;
  align-items: center;
  overflow: hidden;
  background: var(--green);
  color: #fffdf3;
  border-radius: 19px;
  padding: clamp(22px, 3.7vw, 40px);
}
.feature .eyebrow {
  color: #c5d9c9;
}
.feature .feature-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin: 10px 0 9px;
  overflow-wrap: anywhere;
}
.feature .actions {
  margin-top: 22px;
}
.feature .quiet {
  color: #fff9e6;
  border-color: #93ad9f;
}
.feature-copy {
  position: relative;
  z-index: 1;
  width: calc(100% - 125px);
}
.date-tile {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-49%) rotate(6deg);
  width: 106px;
  text-align: center;
  border-radius: 12px;
  color: #2a4839;
  background: #f7e3aa;
  box-shadow: 5px 6px 0 #96ac8e;
  padding: 6px 0 10px;
}
.date-tile span {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  border-bottom: 1px solid #b4ad88;
  padding: 2px 0 5px;
  font-weight: 700;
}
.date-tile b {
  display: block;
  font-family: Georgia, serif;
  font-size: 3.15rem;
  line-height: 1.1;
  font-weight: normal;
  padding-top: 5px;
}
.agenda,
.event-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
}
.agenda li + li,
.event-list li + li {
  border-top: 1px solid var(--line);
}
.agenda button,
.event-list button {
  border: 0;
  background: transparent;
  text-align: left;
  justify-content: flex-start;
  width: 100%;
  border-radius: 6px;
  min-height: 50px;
  padding: 10px 0;
  overflow-wrap: anywhere;
}
.agenda time,
.event-time {
  font-variant-numeric: tabular-nums;
  color: var(--sub);
  min-width: 76px;
  font-weight: 500;
  font-size: 0.9rem;
}
.section {
  margin-top: 34px;
}
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.practice-card {
  display: grid;
  text-align: left;
  align-content: start;
  justify-content: start;
  gap: 8px;
  padding: 22px;
  min-width: 0;
  background: var(--surface);
  border-color: var(--line);
  border-radius: 16px;
}
.card-title {
  font-size: 1.55rem;
}
.practice-card .sub {
  font-weight: 400;
}
.motif {
  width: 48px;
  height: 43px;
  margin-bottom: 5px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font:
    600 27px Georgia,
    serif;
}
.m-short {
  background: #e2ece1;
  color: #315948;
}
.m-long {
  background: #f4e8c9;
  color: #71571d;
}
.m-think {
  background: #f1e2db;
  color: #8c5135;
}
.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.days button {
  display: grid;
  gap: 0;
  padding: 5px;
  min-width: 0;
  font-size: 0.83rem;
}
.days strong {
  font-size: 1.15rem;
}
.selected,
[aria-pressed="true"].select-btn {
  background: var(--green);
  color: white;
}
.weeknav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
}
.schedule-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.85fr) minmax(0, 1.4fr);
  gap: 20px;
  align-items: start;
}
.tag {
  display: inline-block;
  background: var(--mint);
  color: #345443;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
}
.empty {
  padding: 8px 0;
  color: var(--sub);
}
.title-wrap {
  overflow-wrap: anywhere;
}
.lesson {
  max-width: 740px;
  margin: auto;
}
.lesson h1 {
  font-size: clamp(2.15rem, 5vw, 3.35rem);
}
.callout {
  background: #eaf1e6;
  padding: 17px 19px;
  border-radius: 10px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.progress {
  display: flex;
  gap: 5px;
}
.progress span {
  width: 32px;
  height: 5px;
  border-radius: 4px;
  background: #d6dfd2;
}
.progress .on {
  background: #507560;
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  background: #f4ead0;
  padding: 6px 11px;
  border-radius: 7px;
  font-weight: 600;
}
.line {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}
.flow-bottom {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.notice,
.toast {
  background: #183b33;
  color: white;
  border-radius: 10px;
  padding: 10px 16px;
  box-shadow: 0 3px 20px #182b2420;
  z-index: 5;
}
.notice {
  margin: 0 auto 16px;
  width: min(720px, calc(100% - 24px));
}
.toast {
  position: fixed;
  pointer-events: none;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 24px);
  width: max-content;
}
.toast[hidden],
.notice[hidden] {
  display: none;
}
dialog {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 17px;
  width: min(570px, calc(100% - 24px));
  max-height: 88dvh;
  padding: clamp(17px, 4vw, 28px);
}
dialog::backdrop {
  background: #152a2266;
}
dialog h2 {
  font-size: 2rem;
}
form,
label.field {
  display: grid;
  gap: 6px;
}
form {
  gap: 16px;
}
.field {
  font-weight: 600;
}
.field small {
  font-weight: 400;
  color: var(--sub);
}
.password-field { display: grid; gap: 6px; }
.password-controls { display: grid; grid-template-columns: minmax(0, 1fr) 48px; gap: 6px; }
.password-controls button { padding: 8px; }
.password-controls input[type="password"] + button .eye-slash { visibility: hidden; }
.password-controls input::-ms-reveal { display: none; }
.auth-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.auth-voice, .welcome-setup { font-size: 1rem; }
.auth-voice summary, .welcome-setup summary { min-height: 44px; align-content: center; }
.auth-voice p { margin-block: 6px 12px; }
[data-inline-error]:empty { display: none; }
.welcome {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, .9fr);
  grid-template-areas: "intro signin" "features signin";
  gap: clamp(20px, 3vw, 36px) clamp(28px, 6vw, 80px);
  align-items: center;
  max-width: 64rem;
  margin: 0 auto;
}
.welcome-intro { grid-area: intro; align-self: end; }
.welcome-intro h1 { font-size: clamp(2.35rem, 4.8vw, 3.85rem); text-wrap: balance; }
.welcome-intro p { max-width: 46ch; margin-top: 1rem; color: var(--sub); font-size: clamp(1.06rem, 1.9vw, 1.22rem); }
.welcome-signin {
  grid-area: signin; min-width: 0; padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--line); border-radius: 17px; background: var(--surface);
}
.welcome-signin h2 { font: 700 clamp(1.45rem, 2.4vw, 1.85rem)/1.2 "Atkinson Hyperlegible Next","Segoe UI",Arial,sans-serif; letter-spacing: -.025em; }
.welcome-signin > p { margin-block: 7px 23px; }
.welcome-signin .auth-actions { display: grid; }
.welcome-signin .auth-actions .quiet { text-decoration: underline; text-underline-offset: .2em; }
.welcome-signin .password-controls { position: relative; display: block; }
.welcome-signin .password-controls input { padding-inline-end: 3.15rem; }
.welcome-signin .password-controls button { position: absolute; inset: 1px 1px 1px auto; min-height: 0; width: 44px; border: 0; background: transparent; color: var(--green); }
.welcome-setup { margin-block-start: 12px; }
.welcome-setup form { margin-block-start: 6px; }
.welcome-features { grid-area: features; align-self: start; padding: 0; margin: 0; list-style: none; display: grid; gap: .86rem; }
.welcome-features li { display: flex; align-items: flex-start; gap: .75rem; }
.welcome-features svg { flex: 0 0 1.25rem; width: 1.25rem; height: 1.25rem; margin-block-start: .16rem; color: var(--green); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 700px) {
  .welcome { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "signin" "features"; gap: 24px; max-width: 35rem; }
}
input,
select,
textarea {
  border: 1px solid #acbbae;
  border-radius: 8px;
  padding: 10px 11px;
  width: 100%;
  min-width: 0;
  color: var(--ink);
  background: white;
}
textarea {
  resize: vertical;
  min-height: 65px;
}
.repeat-options {
  min-width: 0;
  padding: 12px 16px 16px;
  margin: 10px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.repeat-options[hidden], .repeat-options [hidden] { display: none; }
.weekday-picker { min-width: 0; padding: 0; margin: 0; border: 0; }
.weekday-picker legend { margin-bottom: 6px; font-weight: 600; }
.weekday-picker > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.75rem, 1fr)); gap: 6px; }
.weekday-picker label { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.weekday-picker label:has(:checked) { border-color: #527960; background: #e6efe6; }
.weekday-picker input[type="checkbox"] { flex: none; width: 1.15rem; height: 1.15rem; min-height: 0; margin: 0; accent-color: #24523f; }
.repeat-interval { display: flex; align-items: center; gap: 8px; }
.repeat-interval input { width: 5.5rem; }
.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-error {
  color: #933e2f;
}
.caregiver-settings .form-error:empty, #speaking-voice-status:empty {
  display: none;
}
details {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
summary {
  font-weight: 650;
  cursor: pointer;
  padding: 7px 0;
}
details .stack {
  margin-top: 10px;
}
.choice {
  justify-content: flex-start;
  text-align: left;
  width: 100%;
}
.step-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.narrow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.narrow-list li {
  overflow-wrap: anywhere;
}
.standalone {
  padding-top: 12px;
}
.book-cover {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding: var(--gap);
  border-radius: 4px 18px 18px 4px;
  border-inline-start: 8px solid var(--green);
  background: #e6eee3;
}
.book-cover h1 {
  margin-bottom: 8px;
  font-size: clamp(2.15rem, 4.7vw, 3.6rem);
}
.book-filters {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(145px, 1fr);
  gap: 16px;
  margin: 0 0 20px;
}
.book-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 295px), 1fr));
  gap: 16px;
}
.book-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-inline-start: 5px solid #9bb19e;
  border-radius: 3px 14px 14px 3px;
  background: var(--surface);
  overflow-wrap: anywhere;
}
.book-card h2 {
  font-size: 1.65rem;
}
.book-card h2 a {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.book-card .actions {
  margin-top: auto;
  padding-top: 10px;
}
.book-type {
  font-size: .9rem;
  font-weight: 650;
  color: var(--sub);
}
.book-page, .memory-text, .book-reveal {
  overflow-wrap: anywhere;
  min-width: 0;
}
.memory-text {
  white-space: pre-wrap;
  font-size: 1.1rem;
  line-height: 1.65;
}
.book-reveal summary {
  min-height: 44px;
}
.book-reveal summary:focus-visible {
  outline: 3px solid #a65324;
  outline-offset: 3px;
}
#custom-cue[hidden] {
  display: none;
}
.voice-tools {
  padding-top: 12px;
}
.voice-actions, .dictation-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}
.voice-actions {
  justify-content: flex-end;
}
.hands-free {
  margin-top: 10px;
  padding: 10px 14px;
  border-left: 3px solid var(--green);
}
.hands-free .voice-actions { justify-content: flex-start; }
.hands-free p { margin: 4px 0; overflow-wrap: anywhere; }
#hands-prompt { font-weight: 600; }
.hands-free[hidden], .hands-free [hidden], .hands-free p:empty { display: none; }
.voice-actions button, .dictation-tools button {
  font-size: .94rem;
}
.voice-actions [aria-pressed="true"], .dictation-tools [aria-pressed="true"] {
  background: var(--green);
  color: white;
}
#voice-status:not(:empty) {
  margin-top: 6px;
  text-align: end;
}
#voice-panel {
  max-width: 680px;
  margin: 10px 0 0 auto;
}
.voice-tools[hidden], #voice-panel[hidden], #voice-reply[hidden] {
  display: none;
}
.dictation-tools small {
  font-size: .88rem;
}
.dictation-tools [role="status"]:not(:empty) {
  flex-basis: 100%;
}
.recall-form {
  border-block-start: 1px solid var(--line);
  padding-top: 16px;
}
.recall-feedback:not(:empty) {
  display: grid;
  gap: 10px;
  border-radius: 10px;
  background: var(--mint);
  padding: 14px 16px;
  overflow-wrap: anywhere;
}
#voice-reply {
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .dashboard,
  .schedule-grid {
    grid-template-columns: 1fr;
  }
  .practice-grid {
    gap: 10px;
  }
  .practice-card {
    padding: 16px;
  }
  .header-inner {
    gap: 12px;
  }
  .primary {
    margin-left: 0;
    gap: 16px;
  }
  .feature {
    min-height: 220px;
  }
  .dashboard .panel {
    padding: 18px;
  }
  .wrap {
    width: calc(100% - 32px);
  }
}
@media (max-width: 680px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0;
    padding-top: 7px;
  }
  .brand {
    font-size: 24px;
  }
  .account {
    grid-column: 2;
    grid-row: 1;
    min-height: 42px;
  }
  .primary {
    grid-row: 2;
    grid-column: 1/-1;
    justify-content: space-between;
    gap: 0;
  }
  .primary a {
    padding: 10px 4px 7px;
    min-height: 44px;
  }
}
@media (max-width: 550px) {
  .book-filters {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .practice-grid {
    grid-template-columns: 1fr;
  }
  .practice-card {
    grid-template-columns: 48px 1fr;
    align-items: center;
    column-gap: 13px;
    row-gap: 1px;
  }
  .motif {
    grid-row: 1/3;
    margin: 0;
  }
  .card-title {
    font-size: 1.35rem;
  }
  .page-head {
    align-items: flex-end;
  }
  .page-head button {
    padding: 8px 12px;
  }
  .feature-copy {
    width: calc(100% - 85px);
  }
  .date-tile {
    right: 6%;
    width: 64px;
  }
  .date-tile b {
    font-size: 2.4rem;
  }
  .feature {
    padding: 20px;
  }
  .days {
    gap: 3px;
  }
  .two-fields {
    grid-template-columns: 1fr;
  }
  .weeknav button {
    padding-inline: 8px;
  }
  .flow-bottom {
    justify-content: flex-start;
  }
  .tag {
    font-size: 0.76rem;
  }
}
@media (max-width: 360px) {
  .wrap {
    width: calc(100% - 22px);
  }
  .date-tile {
    display: none;
  }
  .feature-copy {
    width: 100%;
  }
  .panel {
    padding: 14px;
  }
  .days button {
    padding: 4px 1px;
  }
  .account {
    padding-inline: 12px;
  }
}

/* The paired device and the caregiver share the same type, spacing and navigation. */
.topbar { background: #fffefa; }
.header-inner { gap: clamp(12px, 2vw, 26px); }
.primary { align-items: center; gap: 4px; margin-left: 0; }
.primary a {
  min-height: 44px; padding: 8px 12px; border: 0; border-radius: 12px;
  font-size: 0.96rem; line-height: 1.3;
}
.primary a:hover { background: #eff2ec; }
.primary a[aria-current] { background: #e3ede3; color: #193f33; }
.primary a:focus-visible { outline-offset: 0; }
.hands-free.voice-options-closed { display: none; }
body[data-view="caregiver"] #toggle-questions,
body[data-view="caregiver"] #voice-panel { display: none; }
body[data-view="caregiver"] .voice-tools { padding-block: 6px 0; }
body[data-view="caregiver"] .voice-tools .voice-actions { justify-content: flex-end; }
body[data-view="caregiver"] main.wrap, body[data-view="personal"] main.wrap { padding-top: 18px; }
.day-home { gap: clamp(16px, 2.4vw, 28px); }
.day-hero {
  min-width: 0; display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  overflow: hidden; border-radius: 22px; background: #234b40; color: #fffdf5;
}
.hero-copy { display: grid; gap: 15px; padding: clamp(22px, 3.8vw, 46px); align-content: center; min-width: 0; }
.hero-copy h1 { color: inherit; overflow-wrap: anywhere; font-size: clamp(2.55rem, 4.8vw, 4rem); }
.hero-kicker { color: #d8e8d7; font-size: .9rem; letter-spacing: .035em; font-weight: 650; }
.day-hero .btn-main { background: #f6df9e; border-color: #f6df9e; color: #23392e; }
.day-hero .actions button:not(.btn-main) { border-color: #a5bcae; color: #fffdf5; background: transparent; }
.day-hero .hero-link { color: #fff7df; font-weight: 650; text-underline-offset: .2em; width: fit-content; }
.desk-photo { background: #c3ccb5 url("./planner-desk.webp") center / cover no-repeat; }
.hero-copy .next-title { font-size: 1.1rem; overflow-wrap: anywhere; }
.day-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(15px, 2vw, 24px); }
.plan-date, .plan-date label { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan-date { justify-content: space-between; padding: 4px 2px 0; }
.plan-date h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); }
.plan-date label { font-size: .94rem; font-weight: 600; }
input[type="date"] { max-width: 100%; min-width: 0; }
.plan-date input { width: auto; min-height: 44px; }
.plan-panel, .resource-card { display: grid; gap: 16px; align-content: start; }
.day-home .panel { padding: clamp(20px, 2.7vw, 30px); box-shadow: 0 2px 6px #273b3308; }
.plan-panel h2, .resource-card h2, .day-home > .panel h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.plan-empty { color: var(--sub); line-height: 1.55; }
.plan-timeline, .assignment-list { list-style: none; margin: 0; padding: 0; }
.plan-timeline li { display: grid; grid-template-columns: minmax(65px, auto) 1fr; gap: 14px; padding: 13px 0; }
.plan-timeline time { font-variant-numeric: tabular-nums; font-weight: 650; color: #3a5e50; }
.plan-timeline li + li, .assignment-list li + li { border-top: 1px solid var(--line); }
.plan-timeline li > div { display: grid; gap: 5px; justify-items: start; min-width: 0; }
.item-link, .text-link { font-weight: 650; text-underline-offset: .2em; overflow-wrap: anywhere; }
.plan-timeline button { margin-top: 2px; }
.assignment-list li { display: grid; gap: 8px; padding: 12px 0; min-width: 0; }
.assignment-list li:first-child, .plan-timeline li:first-child { padding-top: 0; }
.assignment-list li:last-child, .plan-timeline li:last-child { padding-bottom: 0; }
.assignment-list h3, .resource-card p { overflow-wrap: anywhere; }
@media (min-width: 1000px) {
  .assignment-list li { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
}
.item-type { font-size: .88rem; font-weight: 600; color: var(--sub); margin-bottom: 3px; }
.text-link { width: fit-content; align-self: end; }
.resource-card { gap: 12px; color: var(--ink); text-decoration: none; align-content: space-between; }
.resource-card h2 { margin-bottom: 4px; }
.book-resource { background: #f7efdd; border-color: #e4d7b8; }
.people-resource { background: #eaf0e9; border-color: #cddbcc; }
a.resource-card:hover h2 { text-decoration: underline; text-underline-offset: .15em; }
.practice-picker { display: grid; gap: 10px; }
.practice-picker button { display: grid; gap: 3px; justify-content: start; text-align: left; padding: 13px 16px; }
.practice-picker span { color: var(--sub); font-weight: 400; }
.word-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.choice[aria-pressed="true"] { border: 2px solid var(--green); color: #173f32; background: #e2eddf; }
.practice-group { gap: 8px; }
.practice-group + .practice-group { margin-top: 8px; }
.practice-group .practice-picker { grid-template-columns: repeat(2,minmax(0,1fr)); }
.practice-group .practice-picker button { align-content: start; }
.game-panel { min-width: 0; overflow-wrap: anywhere; }
.game-options { grid-template-columns: repeat(auto-fit,minmax(min(100%,9rem),1fr)); gap: 10px; }
.game-option {
  position: relative; min-height: 78px; display: grid; align-content: center;
  justify-items: center; justify-content: stretch; gap: 6px; text-align: center; overflow-wrap: anywhere;
}
.game-option[aria-pressed="true"]::after {
  content: "✓"; position: absolute; top: 5px; right: 7px; font-weight: 700; color: var(--green);
}
.game-symbol { display: grid; place-items: center; font-size: 2rem; line-height: 1; }
.game-symbol:empty { display: none; }
.game-symbol.item-photo {
  display: block; width: min(100%,6.6rem); aspect-ratio: 1; border-radius: 8px; font-size: 0;
  background: white url("./practice-items.webp") var(--photo-x,0%) var(--photo-y,0%) / 400% 300% no-repeat;
}
.photo-col-1 { --photo-x: 33.333333%; }
.photo-col-2 { --photo-x: 66.666667%; }
.photo-col-3 { --photo-x: 100%; }
.photo-row-1 { --photo-y: 50%; }
.photo-row-2 { --photo-y: 100%; }
.game-feedback:empty { display: none; }
.game-panel .family-player { min-width: 0; }
.game-panel audio { max-width: 100%; width: 100%; }
.word-hunt-target {
  font-size: clamp(1.6rem, 5vw, 2.15rem); letter-spacing: .06em; color: var(--green);
}
.word-hunt-grid {
  display: grid; grid-template-columns: repeat(var(--hunt-columns),minmax(0,1fr));
  width: min(100%,calc(var(--hunt-columns) * 3.6rem)); gap: 4px;
}
.word-hunt-cell {
  min-width: 0; min-height: 44px; padding: 2px; aspect-ratio: 1;
  border: 1px solid #7b8e80; border-radius: 6px; background: #fff;
  font-size: clamp(1.25rem, 5vw, 1.7rem); font-weight: 700; line-height: 1;
}
.word-hunt-cell.is-hint { background: #f9e6a8; border: 2px dashed #715719; }
.word-hunt-cell.is-selected { background: var(--green); color: #fff; border: 3px double #fff; }
.word-hunt-cell.is-found { background: var(--mint); color: #183a2c; text-decoration: underline; }
.word-hunt-cell:disabled { opacity: 1; cursor: default; }
.word-hunt-cell:focus-visible { position: relative; z-index: 1; }
@media (max-width: 420px) {
  .practice-group .practice-picker { grid-template-columns: 1fr; }
}
.personal-hero .hero-copy { padding-block: clamp(24px, 3vw, 38px); }
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; }
  .primary { gap: 2px; }
  .primary a { padding-inline: 8px; }
}
@media (max-width: 680px) {
  .primary { justify-content: flex-start; padding: 3px 0 6px; }
  .primary a { font-size: .94rem; }
  .day-columns { grid-template-columns: 1fr; }
  .day-hero { grid-template-columns: minmax(0, 1fr) 25%; border-radius: 16px; }
  .hero-copy { gap: 12px; }
}
@media (max-width: 450px) {
  .day-hero { display: block; position: relative; }
  .desk-photo { position: absolute; top: 18px; right: 16px; width: 67px; height: 64px; border-radius: 10px; }
  .hero-copy { padding: 18px; }
  .hero-kicker, .hero-copy h1 { padding-right: 70px; }
  .hero-copy h1 { font-size: clamp(2rem, 9vw, 2.55rem); }
  .day-hero .actions { gap: 8px; }
  .day-hero .actions button { padding-inline: 12px; }
  .day-home .panel { padding: 18px; }
  .plan-date { gap: 12px; }
}
