/* Desktop-first interpretation of the supplied Nested concepts. */
:root {
  --cream: #fbf7ee;
  --paper: #fffdf8;
  --sage: #e9eddf;
  --ink: #173740;
  --muted: #596a6d;
  --line: #e9dfcf;
  --green: #35664e;
  --coral: #cc7459;
  --done: #edf3e5;
  --doneInk: #426b44;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #eee9df;
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button {
  touch-action: manipulation;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #38765d;
  outline-offset: 4px;
}
button:hover {
  filter: brightness(0.97);
}
button:disabled {
  cursor: default;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  color: #172e2d;
  font-weight: 500;
}
h1:focus {
  outline: none;
}
.app {
  max-width: 1440px;
  min-height: 100vh;
  margin: auto;
  position: relative;
  background:
    radial-gradient(ellipse at 85% 10%, #edf1eb88, transparent 38%),
    radial-gradient(ellipse at 15% 55%, #f9e7ce55, transparent 40%), var(--cream);
  box-shadow: 0 0 50px #6c5e3b0a;
}
header {
  height: 108px;
  max-width: 1240px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 35px;
  padding: 18px 28px;
  position: relative;
  z-index: 5;
}
.brandwrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}
.brand {
  font-size: 37px;
  letter-spacing: 2px;
  color: #3c5340;
}
.tag {
  font-size: 19px;
  font-style: italic;
  color: #3c5340;
  letter-spacing: 1px;
}
.brand-birds {
  width: 99px;
  height: 65px;
}
.headright {
  display: flex;
  align-items: center;
  gap: 22px;
}
.header-logout {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 6px;
  border: 1px solid #ebd0b8;
  border-radius: 15px;
  background: #f6e6d9;
  color: #754b2c;
  box-shadow: 0 2px 0 #ebd0b8;
}
.header-logout .icon {
  width: 23px;
  height: 23px;
}
.icon-button {
  background: none;
  border: 0;
  padding: 8px;
}
.menu-button .icon {
  width: 28px;
  height: 28px;
  color: #4f4b3f;
}
.bell .icon {
  width: 29px;
  height: 29px;
  color: #4f4b3f;
}
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 28px 135px;
}
.icon {
  width: 25px;
  height: 25px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.art {
  display: inline-block;
  vertical-align: middle;
  overflow: hidden;
  flex-shrink: 0;
  mix-blend-mode: multiply;
}
.coral {
  color: #d87357;
}
.blue {
  color: #39708d;
}
.gold {
  color: #d79535;
}
.sprig {
  width: 25px;
  height: 36px;
}
.pill-art {
  width: 42px;
  height: 42px;
}
.hero {
  position: relative;
  padding: 28px 0 24px;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero h1 {
  font-size: 55px;
  line-height: 1.09;
  letter-spacing: -1px;
  margin: 0 0 13px;
  color: #2e2b24;
  z-index: 1;
}
.greeting-heart {
  width: 43px;
  height: 43px;
}
.hero p {
  font-size: 27px;
  color: #5c594c;
  margin: 0 0 15px;
  z-index: 1;
}
.eyebrow {
  font:
    14px/1.5 Arial,
    sans-serif;
  color: #626a5f;
  letter-spacing: 0.5px;
}
.hero > .eyebrow {
  order: 3;
  text-transform: none;
  letter-spacing: 0;
  font:
    18px Georgia,
    serif;
  color: #615f51;
}
.hero-art {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 49%;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.hero-illustration {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  max-height: 260px;
  object-fit: contain;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin: 10px 0 24px;
}
.tile {
  display: flex;
  align-items: center;
  gap: 17px;
  border: 1px solid #e9e3d5;
  border-radius: 20px;
  background: #e9eddf;
  padding: 22px 20px;
  min-height: 94px;
  text-align: left;
}
.tile:nth-child(2) {
  background: #fae8d3;
}
.tile:nth-child(3) {
  background: #f9e2d8;
}
.tile:nth-child(4) {
  background: #e5ebeb;
}
.tile .ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.tile .icon,
.tile .art {
  width: 40px;
  height: 40px;
}
.tile b {
  font-size: 18px;
  font-weight: 400;
  color: #283d3d;
}
.home-cards {
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}
.card {
  background: #fffdf8bb;
  border: 1px solid var(--line);
  border-radius: 23px;
  padding: 23px;
  margin: 16px 0;
  box-shadow: 0 3px 8px #7b654008;
}
.home-cards > .card {
  margin: 0;
  min-width: 0;
}
.card h2 {
  font-size: 25px;
  line-height: 1.3;
  margin-bottom: 16px;
}
.card h2 > .icon,
.card h2 > .art {
  margin-right: 5px;
}
.home-content-heading {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.home-content-heading h2 {
  min-width: 0;
  margin: 0;
}
.home-content-add {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid #efdfd1;
  border-radius: 999px;
  background: #fff8ef;
  color: #754b2c;
  font: 13px/1.2 Arial, sans-serif;
}
.home-content-form {
  position: relative;
  z-index: 1;
  margin-top: 13px;
  padding: 14px;
  border: 1px solid #efdfd1;
  border-radius: 16px;
  background: #fffaf3;
}
.home-content-form .field-control {
  width: 100%;
  resize: vertical;
}
.home-content-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}
.home-content-error {
  margin: 8px 0 0;
  color: #984f45;
  font: 13px/1.4 Arial, sans-serif;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.row h2 {
  margin-bottom: 6px;
}
.grow {
  flex: 1;
  min-width: 0;
}
.small,
small {
  font:
    14px/1.5 Arial,
    sans-serif;
  color: var(--muted);
}
small {
  display: block;
  margin-top: 4px;
}
.item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.item:first-of-type {
  border-top: 0;
}
.item strong {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
}
.item-button {
  width: 100%;
  text-align: left;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  background: none;
}
.item .time {
  width: 49px;
  flex-shrink: 0;
  font:
    16px/1.35 Georgia,
    serif;
  border-right: 1px solid var(--line);
  color: #233839;
}
.dot {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f0eee2;
}
.dot .icon {
  width: 29px;
  height: 29px;
}
.dot .art {
  width: 43px;
  height: 43px;
}
.chev {
  font:
    27px Georgia,
    serif;
  color: #42606a;
  margin-left: auto;
}
.action {
  border: 1px solid #d9d1bc;
  background: #fffdf7;
  border-radius: 13px;
  padding: 11px 16px;
  font:
    14px/1.35 Arial,
    sans-serif;
  min-height: 44px;
  white-space: normal;
}
.action .icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}
.action.done,
.action[aria-pressed='true'] {
  background: #e3ecd9;
  border-color: #92a58a;
}
.primary,
.save-button,
.exercise-action,
.permissions-action,
.action-wide[data-go='addPerson'],
.action-wide[data-go='healthGraph'] {
  background: linear-gradient(120deg, #477d68, #6e927a);
  border-color: #477861;
  color: #fff;
}
.action-wide {
  width: 100%;
  padding: 15px;
}
.today-card .item {
  background: linear-gradient(110deg, #f2f1e3, #f8f5e9);
  margin-top: 10px;
  border: 1px solid #eee6d4;
  padding: 16px;
  border-radius: 18px;
}
.today-card .item-button {
  background: #f4eee6;
}
.today-card .row > .action {
  border: 0;
  background: none;
  padding: 0;
  min-height: 44px;
  white-space: nowrap;
  font-size: 13px;
}
.today-card .row h2 {
  margin: 0;
}
.today-card #home-medication-toggle {
  max-width: 116px;
  padding: 10px;
  font-family: Georgia, serif;
}
.message-card {
  grid-column: 2;
  grid-row: 1;
}
.message {
  background: radial-gradient(at 20% 20%, #fbe7d6, transparent), #f9e1d3;
  border: 1px solid #efd6c5;
  border-radius: 17px 14px 20px 13px;
  box-shadow: 0 5px 12px #7b654014;
  width: min(100%, 190px);
  aspect-ratio: 1;
  min-height: 0;
  margin: 0 auto;
  padding: 15px;
  transform: rotate(-6deg);
  transform-origin: center;
  text-align: center;
  font-size: 19px;
  font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  font-style: italic;
  letter-spacing: 0.2px;
  line-height: 1.5;
  color: #4a463c;
}
.message:after {
  content: '♡';
  display: block;
  color: #c9785d;
  font-size: 24px;
  line-height: 1;
  margin-top: 3px;
}
.mood-card {
  grid-column: 1;
  grid-row: 1;
}
.moods {
  display: flex;
  justify-content: space-around;
  gap: 12px;
  padding: 3px 6px 0;
}
.mood {
  width: 73px;
  height: 73px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: #e4e6cf;
  display: grid;
  place-items: center;
  color: #423b2a;
}
.mood:nth-child(2) {
  background: #faddad;
}
.mood:nth-child(3) {
  background: #f4ccb2;
}
.mood:nth-child(4) {
  background: #dce1ec;
}
.mood .icon {
  width: 43px;
  height: 43px;
  stroke-width: 1.4;
}
.mood:nth-child(4) .icon {
  fill: #df9278;
  stroke: #bf6c53;
  width: 37px;
  height: 37px;
}
.mood.selected {
  outline: 3px solid #48725d;
  outline-offset: 4px;
}
.mood-labels {
  display: flex;
  justify-content: space-around;
  font:
    16px Georgia,
    serif;
  margin-top: 14px;
}
.mood-labels span {
  width: 73px;
  text-align: center;
}
.quick-card {
  grid-column: 2;
  grid-row: 3;
}
.quick-card .action {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 72px;
  border: 1px solid #efdfd1;
  border-radius: 18px;
  background: radial-gradient(at 18% 15%, #fff8ee, transparent 60%), #f9e8dc;
  padding: 10px 13px;
  text-align: left;
  font:
    16px Georgia,
    serif;
}
.quick-action-art {
  display: grid;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  place-items: center;
}
.quick-action-art svg {
  display: block;
  width: 100%;
  height: 100%;
}
.quick-action-secondary {
  margin-left: 0;
}
.quick-card h2 {
  margin-bottom: 7px;
}
.inspiration-card {
  grid-column: 1;
  grid-row: 3;
  position: relative;
  overflow: hidden;
  min-height: 205px;
}
.inspiration-card h2,
.inspiration-card blockquote {
  position: relative;
  z-index: 1;
}
.inspiration-card blockquote {
  margin: 25px 0 0 32px;
  font-size: 22px;
  line-height: 1.5;
  font-style: italic;
  color: #4c4d3e;
}
.landscape {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 48%;
  height: 100%;
  opacity: 0.7;
  mask-image: linear-gradient(to right, transparent, #000 25%);
}
/* The original named screens, templates, and controls remain in place. */
.page {
  position: relative;
  isolation: isolate;
  min-height: 600px;
  padding-top: 8px;
}
.page > .back {
  display: inline-flex;
  align-items: center;
  border: 0;
  background: none;
  padding: 7px 0;
  margin-bottom: 16px;
  min-height: 44px;
  font:
    15px Arial,
    sans-serif;
  color: #4b6b58;
}
.page > h1 {
  font-size: 44px;
  margin: 4px 0 20px;
  max-width: 75%;
  position: relative;
  z-index: 1;
}
.page-subtitle {
  font:
    19px/1.5 Arial,
    sans-serif;
  color: var(--muted);
  margin-top: -10px;
  margin-bottom: 33px;
  max-width: 68%;
  position: relative;
  z-index: 1;
}
.page-art {
  position: absolute;
  right: 0;
  top: -10px;
  width: 270px;
  height: 210px;
  z-index: -1;
  opacity: 0.85;
  mask-image: linear-gradient(to right, transparent, #000 20%);
}
.page > .card {
  position: relative;
}
[data-screen='about'] .about-founder-note {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #eadcc9;
  border-radius: 20px;
  background: #fffaf0;
}
[data-screen='about'] .about-founder-portrait {
  flex: 0 0 168px;
  width: 168px;
  height: 144px;
  overflow: hidden;
  border: 4px solid #f2e2cf;
  border-radius: 50%;
  background: #f8ead8;
  box-shadow: 0 4px 12px #80664a1c;
}
[data-screen='about'] .about-founder-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.03);
}
[data-screen='about'] .about-founder-note > p {
  margin: 0;
  line-height: 1.6;
}
[data-screen='about'] > .card > p:first-child {
  margin-top: 0;
}
[data-screen='about'] > .card > p:first-child + .about-founder-note {
  margin-top: 14px;
}
[data-screen='about'] .about-founder-note + * {
  margin-top: 16px;
}
@media (max-width: 540px) {
  [data-screen='about'] .about-founder-note {
    flex-direction: column;
    gap: 12px;
  }
  [data-screen='about'] .about-founder-note > p {
    text-align: center;
  }
}
.page > .card > .row {
  margin-bottom: 13px;
}
.pill {
  display: inline-block;
  border-radius: 30px;
  padding: 7px 13px;
  background: #e4ecdb;
  font:
    13px/1.3 Arial,
    sans-serif;
  color: #385940;
  flex-shrink: 0;
}
.medication-note {
  max-width: 680px;
  line-height: 1.5;
}
.next-dose {
  display: block;
  font:
    14px/1.5 Arial,
    sans-serif;
  color: #3c683a;
  margin-top: 5px;
}
[data-list-row='medication-row'] {
  padding: 22px;
  background: #fffdf8dd;
  border: 1px solid #dfd7c5;
  border-radius: 21px;
  box-shadow: 0 2px 7px #80613808;
  gap: 20px;
  min-height: 143px;
}
[data-list-row='medication-row'] strong {
  font-family: Arial, sans-serif;
  font-weight: 600;
  color: #1e4058;
}
[data-list-row='medication-row'] .dot {
  width: 64px;
  flex-basis: 64px;
  background: none;
}
[data-list-row='medication-row'] .pill-art {
  width: 64px;
  height: 64px;
}
[data-list-row='medication-row'] .action {
  padding: 9px 11px;
  background: none;
  border-color: #e5dfd1;
}
.reading-option,
.role-choice {
  width: 100%;
  text-align: left;
  background: #fffdf7c9;
  border: 1px solid #e5ddcb;
  border-radius: 17px;
  margin: 12px 0;
  padding: 22px;
  min-height: 86px;
  font-family: Arial, sans-serif;
}
.reading-option .icon,
.role-choice > .icon {
  width: 39px;
  height: 39px;
  margin-right: 15px;
}
.reading-option strong,
.role-choice strong {
  font-weight: 500;
}
.reading-icon {
  display: grid;
  place-items: center;
}
.role-choice small {
  margin-top: 5px;
}
.role-choice {
  max-width: 620px;
}
.role-choice ~ .action {
  margin-top: 16px;
}
[data-screen='healthAdd'] > .card {
  max-width: 700px;
  margin: 20px auto 80px;
  padding: 27px;
}
[data-screen='healthAdd'] h1 {
  text-align: center;
  max-width: none;
}
[data-screen='healthAdd'] .card > h2 {
  font:
    18px Arial,
    sans-serif;
}
[data-screen='health'] > .card:last-of-type {
  margin-top: 25px;
}
.form-actions.day-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 20px;
}
.day-actions .action {
  min-height: 54px;
  border-radius: 16px;
  font-weight: 600;
}
.day-actions .medication-action,
.day-actions .other-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 78px;
  padding: 8px;
}
.day-actions .medication-action {
  background: #f6e6d9;
  border-color: #ebd0b8;
  color: #754b2c;
}
.day-actions .appointment-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 78px;
  padding: 8px;
  background: linear-gradient(145deg, #dcebdd, #c8e0d0);
  border-color: #9fbca5;
  color: #365b50;
  text-align: center;
}
.day-actions [data-action='day-item'] {
  background: #f6efcf;
  border-color: #e9dca3;
  color: #655626;
}
.day-actions .celebration-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 54px;
  background: #f7e6e8;
  border-color: #e8cdd4;
  color: #704853;
}
.day-action-icon {
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
}
.appointment-action .day-action-icon {
  flex-basis: 36px;
  width: 36px;
  height: 36px;
}
.page #day-status {
  margin: 0 0 16px;
}
.entry-page {
  min-height: 600px;
  padding: clamp(16px, 3vw, 30px);
  border-radius: 28px;
}
.appointment-entry-page {
  background: linear-gradient(145deg, #edf4eb, #e2eee4);
}
.celebration-entry-page {
  background: linear-gradient(145deg, #fbf0ef, #f5e3e8);
}
.entry-page > h1 {
  max-width: none;
  font-size: clamp(32px, 5vw, 42px);
}
.entry-screen-panel {
  max-width: 700px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid #ffffffb8;
  border-radius: 24px;
  background: #ffffffa8;
  box-shadow: 0 8px 24px #3d543012;
}
.entry-screen-icon {
  display: block;
  width: 76px;
  height: 76px;
  margin: 0 auto 8px;
}
.entry-screen-intro {
  margin: 0 auto 18px;
  text-align: center;
  color: #4c6350;
}
.entry-screen-form {
  max-width: 560px;
  margin: 0 auto;
}
.entry-screen-form .entry-save {
  width: 100%;
  min-height: 52px;
  margin-top: 22px;
}
.timeline {
  display: grid;
  grid-template-columns: 35px 48px 70px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  background: #fffdf7;
  border: 1px solid #eee6d8;
  border-radius: 17px;
  padding: 17px 20px;
  margin: 9px 0;
}
.timeline.timeline-no-time {
  grid-template-columns: 35px 48px minmax(0, 1fr) auto;
}
.timeline.timeline-no-time .time {
  display: none;
}
.timeline .time {
  font:
    17px Arial,
    sans-serif;
  border-right: 1px solid var(--line);
  padding: 8px 0;
  width: auto;
  color: #244454;
}
.tcontent {
  min-width: 0;
}
.tcontent strong {
  font:
    600 17px Arial,
    sans-serif;
}
.tcontent small {
  margin-top: 5px;
}
.schedule-check {
  width: 28px;
  height: 28px;
  border: 2px solid #55716f;
  border-radius: 6px;
  background: #fffdf8;
  padding: 0;
  font:
    18px Arial,
    sans-serif;
}
.timeline-done {
  background: linear-gradient(120deg, #e4eadf, #dbe5dc);
  border-color: #c4d1c4;
}
.timeline-done .schedule-check {
  background: #5e865f;
  color: #fff;
  border-color: #5e865f;
}
.completed-note {
  font:
    13px Arial,
    sans-serif;
  color: #496b44;
  margin-top: 9px;
}
.undo {
  background: none;
  border: 0;
  color: #486442;
  text-decoration: underline;
  margin-left: 9px;
  min-height: 32px;
}
.history-chart {
  display: block;
  width: 100%;
  height: auto;
  max-height: 430px;
  margin: 22px auto 12px;
  background: #fffcf3;
  border-radius: 16px;
}
.chart-lines {
  stroke: #dedbd2;
  stroke-width: 1;
  stroke-dasharray: 2 2;
}
.chart-label {
  font:
    10px Arial,
    sans-serif;
  fill: #486075;
}
.chart-series {
  fill: none;
  stroke: #64963c;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart-dot {
  fill: #64963c;
  stroke: white;
  stroke-width: 0.6;
}
.chart-diastolic {
  stroke: #3989de;
}
.chart-diastolic-dot {
  fill: #3989de;
}
[data-screen='healthGraph'] > .card > .row {
  background: #eeeee8;
  border-radius: 16px;
  padding: 5px;
  gap: 5px;
  max-width: 650px;
}
[data-screen='healthGraph'] [data-action='range'] {
  flex: 1;
  border: 0;
  background: none;
  font-size: 16px;
}
[data-screen='healthGraph'] [data-action='range'].done {
  background: #52856c;
  color: #fff;
}
.people-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px;
  background: linear-gradient(125deg, #eef0df99, #f8ebd966);
  border-radius: 22px;
  margin: 20px 0;
}
.nest-circle {
  width: 90px;
  height: 90px;
  flex: 0 0 90px;
  display: grid;
  place-items: center;
  position: relative;
}
.nest-circle > .art {
  width: 100%;
  height: 100%;
}
.nest-circle > span {
  position: absolute;
  right: 0;
  bottom: 0;
}
.people-heading,
.therapy-heading {
  font-size: 30px;
  margin: 5px 0;
}
.person-feature,
.person-row {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 17px 0;
}
.person-row {
  border-top: 1px solid var(--line);
}
.person-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}
.person-actions .action {
  min-height: 42px;
  padding: 8px 10px;
  white-space: nowrap;
}
.person-actions .person-remove {
  background: #fff8f4;
  border-color: #e8cfc5;
  color: #754b43;
}
.person-row:first-of-type {
  border: 0;
}
.person-row strong,
.person-feature strong {
  font:
    600 18px Arial,
    sans-serif;
}
.avatar {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dde8e7;
  font:
    22px Georgia,
    serif;
  overflow: hidden;
}
.avatar.family {
  background: #f3dfc5;
}
.avatar .art {
  width: 100%;
  height: 100%;
}
.avatar.large {
  width: 100px;
  height: 100px;
  flex-basis: 100px;
}
.perm {
  font:
    16px/1.7 Arial,
    sans-serif;
  padding: 5px 0;
  color: #4a6862;
}
.perm:first-letter {
  color: #5d914f;
}
.therapy-art {
  display: block;
  position: relative;
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #f9f1dd;
  margin: 0 0 22px;
  border-radius: 20px;
}
.exercise-art {
  display: block;
  float: right;
  width: 46%;
  height: 310px;
  margin: -30px 0 20px 25px;
  border-radius: 20px;
}
.readable {
  font:
    18px/1.7 Arial,
    sans-serif;
}
.exercise-action {
  width: 100%;
  margin-top: 25px;
  padding: 16px;
  font-size: 17px;
}
.permissions-action {
  width: 100%;
  margin-top: 18px;
}
.space-above {
  margin-top: 12px;
}
.space-top {
  margin-top: 14px;
}
.settings-option {
  border: 0;
  border-top: 1px solid var(--line);
  width: 100%;
  background: none;
  text-align: left;
  font-size: 17px;
  min-height: 68px;
  gap: 17px;
}
.settings-option .chev {
  margin-left: auto;
}
.note-body {
  white-space: pre-wrap;
  font:
    17px/1.7 Georgia,
    serif;
  margin-top: 12px;
  overflow-wrap: anywhere;
}
[data-list-row='note-row'] {
  background: #fffcf5;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 25px;
  margin-top: 18px;
  align-items: flex-start;
}
[data-list-row='note-row'] strong {
  font-size: 25px;
}
[data-list-row='note-row'] > span {
  background: #889c85;
  color: white;
  border-radius: 50%;
  padding: 10px;
}
[data-list-row='note-row'] small {
  letter-spacing: 0.4px;
}
.settings-option + .settings-option {
  border-top: 1px solid var(--line);
}
[data-screen='more'] > .card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  background: none;
  border: 0;
  padding: 0;
  box-shadow: none;
}
[data-screen='more'] .more-page-art {
  display: block;
  width: min(220px, 58vw);
  height: 110px;
  object-fit: contain;
  margin: -4px auto 10px;
}
[data-screen='more'] .item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffdf7c9;
  padding: 9px 14px;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
}
[data-screen='more'] .item strong {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}
[data-screen='more'] .item strong .icon {
  width: 26px;
  height: 26px;
}
[data-screen='more'] .item strong .more-icon {
  width: 30px;
  height: 30px;
}
[data-screen='more'] .item .action {
  margin-left: auto;
  min-height: 38px;
  padding: 7px 11px;
  font-size: 13px;
}
[data-screen='contact'] .contact-group + .contact-group {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
[data-screen='contact'] .contact-group h2 {
  margin: 0 0 12px;
  padding: 11px 14px;
  border-left: 5px solid #78967b;
  border-radius: 10px;
  background: #e9eddf;
  color: #315943;
  font: 700 20px/1.35 Arial, sans-serif;
}
[data-screen='contact'] .contact-card > .small {
  margin-top: 20px;
}
[data-screen='contact'] .contact-form .field-label {
  margin-top: 12px;
}
[data-screen='contact'] .contact-form textarea {
  min-height: 120px;
  resize: vertical;
}
[data-screen='contact'] .contact-form .form-actions {
  margin-top: 14px;
}
[data-screen='contact'] .contact-form .form-actions .action {
  flex: 0 1 auto;
}
.medication-note .icon {
  width: 16px;
  height: 16px;
}
/* Navigation stays familiar at every size. */
.nav {
  position: fixed;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, calc(100% - 20px));
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  background: #fffdf6f5;
  border: 1px solid #e8dfcf;
  border-radius: 23px;
  backdrop-filter: blur(14px);
  padding: 10px;
  gap: 8px;
  z-index: 8;
  box-shadow: 0 5px 24px #78613d18;
}
.nav button {
  background: #e9eddf;
  border: 1px solid #e9e3d5;
  border-radius: 16px;
  color: #283d3d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 5px;
  font:
    15px Georgia,
    serif;
  min-height: 64px;
  line-height: 1.15;
  text-align: center;
}
.nav button > span {
  height: 29px;
  display: grid;
  place-items: center;
}
.nav .icon,
.nav .art {
  width: 28px;
  height: 28px;
}
.nav button.active {
  position: relative;
  border-width: 2px;
  border-color: currentColor;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px currentColor;
}
.nav button.active::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.nav button[data-go='home'] {
  background: #e4e6cf;
  border-color: #d0d2b7;
  color: #423b2a;
}
.nav button[data-go='day'] {
  background: #f6efcf;
  border-color: #e9dca3;
  color: #655626;
}
.nav button[data-go='meds'] {
  background: #f6e6d9;
  border-color: #ebd0b8;
  color: #754b2c;
}
.nav button[data-go='health'] {
  background: #e1edf2;
  border-color: #c9dce5;
  color: #34586a;
}
.nav button[data-go='people'] {
  background: #e4eee9;
  border-color: #cedfd5;
  color: #365b50;
}
.nav button[data-go='more'] {
  background: #eee9df;
  border-color: #dfd8c9;
  color: #5e5749;
}
[hidden] {
  display: none !important;
}
.modal {
  border: 1px solid #e9dfcf;
  border-radius: 24px;
  padding: 27px;
  width: min(520px, calc(100% - 30px));
  max-height: 88vh;
  overflow: auto;
  color: var(--ink);
  background: var(--cream);
  box-shadow: 0 20px 70px #263b2933;
}
.modal::backdrop {
  background: #26382b66;
  backdrop-filter: blur(3px);
}
.modal-heading h2 {
  margin: 0;
  font-size: 27px;
}
.modal-heading {
  margin-bottom: 20px;
}
.modal-information p {
  font:
    17px/1.6 Arial,
    sans-serif;
}
.modal-close {
  width: 100%;
}
.field-label {
  display: block;
  font:
    14px/1.5 Arial,
    sans-serif;
  margin: 17px 0 6px;
  color: #415e65;
}
.field-control {
  display: block;
  width: 100%;
  padding: 13px;
  border: 1px solid #cfcfbd;
  border-radius: 9px;
  background: #fffdf8;
  font:
    16px/1.4 Arial,
    sans-serif;
  min-height: 47px;
}
.reading-value-block {
  display: flex;
  align-items: center;
  gap: 9px;
}
.reading-value-block > .field-control {
  flex: 1;
  min-width: 0;
}
.reading-value-separator {
  color: #6b6255;
  font: 600 23px/1 Arial, sans-serif;
}
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}
.form-actions .action {
  flex: 1;
  min-height: 47px;
}
.note-label {
  color: var(--ink);
}
.modal textarea {
  min-height: 110px;
  resize: vertical;
}
/* Tablet: retain the desktop hierarchy with two shortcut columns. */
@media (max-width: 1000px) {
  header {
    height: 93px;
    padding: 14px 26px;
    gap: 20px;
  }
  .main {
    padding: 8px 26px 125px;
  }
  .hero {
    min-height: 255px;
  }
  .hero h1 {
    font-size: 46px;
  }
  .hero-art {
    width: 47%;
  }
  .tile {
    padding: 18px 14px;
    gap: 12px;
  }
  .tile .icon,
  .tile .art {
    width: 31px;
    height: 31px;
  }
  .tile b {
    font-size: 16px;
  }
  .home-cards {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 14px;
  }
  .card {
    padding: 19px;
  }
  .card h2 {
    font-size: 22px;
  }
  .today-card .item {
    padding: 13px;
    gap: 10px;
  }
  .today-card .item .time {
    width: 38px;
    font-size: 14px;
  }
  .today-card .dot {
    width: 32px;
    flex-basis: 32px;
  }
  .today-card .item strong {
    font-size: 16px;
  }
  .today-card .item small {
    font-size: 12px;
  }
  .today-card #home-medication-toggle {
    max-width: 90px;
    font-size: 13px;
  }
  .today-card .row > .action {
    font-size: 12px;
  }
  .message {
    font-size: 23px;
  }
  .mood {
    width: 63px;
    height: 63px;
  }
  .page > h1 {
    font-size: 38px;
  }
  .page-art {
    width: 225px;
    height: 185px;
  }
  .inspiration-card blockquote {
    font-size: 19px;
    margin-left: 0;
  }
  .landscape {
    opacity: 0.55;
  }
  [data-list-row='medication-row'] {
    padding: 19px;
    gap: 13px;
  }
  [data-list-row='medication-row'] .dot {
    width: 46px;
    flex-basis: 46px;
  }
  [data-list-row='medication-row'] .pill-art {
    width: 46px;
    height: 46px;
  }
  [data-list-row='medication-row'] .action {
    padding: 8px;
  }
  .nav { border-radius: 20px; }
}
/* Mobile follows the supplied single-screen concepts without a phone frame. */
@media (max-width: 700px) {
  body {
    background: var(--cream);
  }
  header {
    height: 82px;
    padding: 13px 17px;
    gap: 14px;
  }
  .brandwrap {
    gap: 5px;
  }
  .brand {
    font-size: clamp(19px, 5.8vw, 25px);
    letter-spacing: 0.5px;
  }
  .tag {
    font-size: 13px;
    letter-spacing: 0;
  }
  .brand-birds {
    width: 59px;
    height: 45px;
  }
  .headright {
    gap: 6px;
  }
  .menu-button {
    padding: 4px;
  }
  .menu-button .icon {
    width: 22px;
    height: 22px;
  }
  .bell {
    padding: 4px;
  }
  .bell .icon {
    width: 24px;
    height: 24px;
  }
  .main {
    padding: 0 16px 180px;
  }
  .hero {
    min-height: 225px;
    padding: 17px 0 21px;
  }
  .hero h1 {
    font-size: 36px;
    line-height: 1.1;
    letter-spacing: -0.7px;
    max-width: 68%;
    margin-bottom: 11px;
  }
  .hero p {
    font-size: 20px;
    margin-bottom: 12px;
  }
  .hero > .eyebrow {
    font-size: 14px;
  }
  .greeting-heart {
    width: 29px;
    height: 29px;
  }
  .hero-art {
    width: 43%;
    right: 0;
    top: auto;
    bottom: 4px;
    align-items: flex-end;
  }
  .hero p,
  .hero > .eyebrow {
    max-width: 54%;
  }
  .tile {
    border-radius: 15px;
    padding: 13px 12px;
    min-height: 64px;
    gap: 12px;
  }
  .tile b {
    font-size: 15px;
  }
  .tile .icon,
  .tile .art {
    width: 29px;
    height: 29px;
  }
  .home-cards {
    display: flex;
    flex-direction: column;
    gap: 13px;
  }
  .mood-card {
    order: 0;
  }
  .message-card {
    order: 1;
  }
  .inspiration-card {
    order: 2;
  }
  .quick-card {
    order: 3;
  }
  .card {
    border-radius: 19px;
    padding: 17px;
    margin: 15px 0;
  }
  .card h2 {
    font-size: 22px;
    margin-bottom: 13px;
  }
  .home-cards .card h2 {
    font-size: 21px;
  }
  .sprig {
    width: 20px;
    height: 29px;
  }
  .today-card .row {
    gap: 7px;
  }
  .today-card .row > .action {
    font-size: 12px;
  }
  .today-card .item {
    padding: 13px 10px;
    gap: 10px;
    border-radius: 14px;
  }
  .today-card .item .time {
    width: 36px;
    font-size: 14px;
  }
  .today-card .item strong {
    font-size: 16px;
  }
  .today-card .item small {
    font-size: 12px;
  }
  .today-card #home-medication-toggle {
    max-width: 80px;
    font-size: 13px;
    padding: 8px;
    min-height: 47px;
  }
  .today-card .dot {
    width: 29px;
    flex-basis: 29px;
    height: 36px;
    background: none;
  }
  .today-card .dot > .icon {
    width: 27px;
    height: 27px;
  }
  .today-card .dot > .art {
    width: 33px;
    height: 33px;
  }
  .today-card .row h2 {
    font-size: 20px;
  }
  .moods {
    padding: 6px 0;
  }
  .mood {
    width: 60px;
    height: 60px;
  }
  .mood .icon {
    width: 37px;
    height: 37px;
  }
  .mood-labels {
    font-size: 15px;
    margin-top: 9px;
  }
  .mood-labels span {
    width: 60px;
  }
  .message {
    min-height: 150px;
    font-size: 25px;
  }
  .inspiration-card {
    min-height: 200px;
  }
  .inspiration-card blockquote {
    font-size: 21px;
    margin: 20px 0 20px 10px;
  }
  .quick-card .action {
    font-size: 16px;
  }
  .page {
    padding-top: 4px;
    min-height: 530px;
  }
  .page > .back {
    margin-bottom: 10px;
    font-size: 14px;
  }
  .page > h1 {
    font-size: 32px;
    margin: 1px 0 24px;
    max-width: 83%;
  }
  .page-subtitle {
    font-size: 16px;
    max-width: 65%;
    margin-bottom: 27px;
  }
  .page-art {
    top: 25px;
    width: 135px;
    height: 130px;
    opacity: 0.6;
    right: -5px;
  }
  .row {
    gap: 12px;
  }
  .row h2 {
    font-size: 21px;
  }
  .row .action {
    padding: 10px 12px;
    font-size: 13px;
  }
  .small,
  small {
    font-size: 13px;
  }
  .item {
    gap: 12px;
    padding: 16px 0;
  }
  .item strong {
    font-size: 17px;
  }
  .item .time {
    width: 42px;
  }
  .dot {
    width: 37px;
    height: 37px;
    flex-basis: 37px;
  }
  .dot .icon {
    width: 26px;
    height: 26px;
  }
  .pill {
    font-size: 12px;
    padding: 6px 10px;
  }
  [data-screen='health'] > .card:first-of-type {
    padding: 17px 12px;
  }
  [data-screen='health'] > .card > .row {
    align-items: flex-start;
  }
  [data-screen='health'] > .card > .row h2 {
    font-size: 20px;
  }
  [data-screen='health'] .primary {
    max-width: 142px;
  }
  .reading-option,
  .role-choice {
    padding: 19px 15px;
    min-height: 82px;
  }
  .reading-option .icon,
  .role-choice > .icon {
    width: 32px;
    height: 32px;
    margin-right: 6px;
  }
  [data-screen='healthAdd'] > .card {
    padding: 19px 13px;
    margin-bottom: 40px;
  }
  [data-screen='healthAdd'] h1 {
    max-width: none;
    font-size: 29px;
  }
  .medication-note {
    font-size: 12px;
    margin-bottom: 6px !important;
  }
  [data-list-row='medication-row'] {
    padding: 17px 13px;
    gap: 15px;
    min-height: 120px;
    border-radius: 18px;
  }
  [data-list-row='medication-row'] .dot {
    width: 48px;
    flex-basis: 48px;
  }
  [data-list-row='medication-row'] .pill-art {
    width: 48px;
    height: 48px;
  }
  [data-list-row='medication-row'] strong {
    font-size: 17px;
  }
  [data-list-row='medication-row'] small,
  .next-dose {
    font-size: 13px;
  }
  [data-list-row='medication-row'] .action {
    font-size: 12px;
    padding: 8px;
    min-width: 44px;
  }
  .form-actions.day-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .timeline {
    grid-template-columns: 25px 33px 45px minmax(0, 1fr);
    gap: 10px;
    padding: 13px 10px;
    min-height: 82px;
    border-radius: 13px;
  }
  .timeline.timeline-no-time {
    grid-template-columns: 25px 33px minmax(0, 1fr) auto;
  }
  .timeline .time {
    font-size: 14px;
    padding: 8px 0;
  }
  .timeline .dot {
    width: 32px;
    height: 35px;
    flex-basis: 32px;
  }
  .timeline .dot .art {
    width: 34px;
    height: 34px;
  }
  .schedule-check {
    width: 24px;
    height: 24px;
    border-radius: 5px;
  }
  .tcontent strong {
    font-size: 15px;
  }
  .tcontent small {
    font-size: 12px;
  }
  .completed-note {
    font-size: 11px;
  }
  .undo {
    display: inline-block;
    font-size: 12px;
    margin-left: 0;
  }
  [data-screen='healthGraph'] > h1 {
    font-size: 29px;
    max-width: 90%;
  }
  [data-screen='healthGraph'] > .card {
    padding: 17px 12px;
  }
  [data-screen='healthGraph'] [data-action='range'] {
    font-size: 14px;
    padding: 10px;
  }
  .history-chart {
    margin-top: 20px;
  }
  .people-hero {
    padding: 17px;
    gap: 12px;
    margin: 16px 0;
  }
  .people-heading,
  .therapy-heading {
    font-size: 24px;
  }
  .nest-circle {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
  }
  .person-row,
  .person-feature {
    gap: 12px;
    padding: 15px 0;
  }
  .person-row strong,
  .person-feature strong {
    font-size: 17px;
  }
  .person-row .pill {
    font-size: 11px;
    padding: 5px 8px;
  }
  .avatar {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
  .avatar.large {
    width: 78px;
    height: 78px;
    flex-basis: 78px;
  }
  .therapy-art {
    height: 155px;
    margin-top: -5px;
  }
  .exercise-art {
    float: none;
    width: 100%;
    height: 210px;
    margin: 0 0 18px;
  }
  .readable {
    font-size: 16px;
  }
  .perm {
    font-size: 14px;
  }
  .permissions-action,
  .exercise-action {
    font-size: 16px;
  }
  [data-screen='pt'] .row {
    flex-wrap: wrap;
  }
  [data-screen='pt'] .row h2 {
    font-size: 21px;
  }
  [data-screen='more'] > .card {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  [data-screen='more'] .more-page-art {
    width: min(175px, 54vw);
    height: 90px;
    margin-bottom: 8px;
  }
  [data-screen='more'] .item {
    padding: 7px 11px;
    min-height: 62px;
  }
  [data-screen='more'] .item strong {
    gap: 9px;
    font-size: 15px;
  }
  [data-screen='more'] .item .action {
    font-size: 12px;
    padding: 6px 10px;
    min-height: 36px;
  }
  [data-screen='notes'] > h1 {
    font-size: 31px;
    max-width: 90%;
  }
  [data-screen='notes'] > .card {
    padding: 16px;
  }
  [data-screen='notes'] > .card > .row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  [data-list-row='note-row'] {
    padding: 18px 13px;
    gap: 10px;
    flex-wrap: wrap;
  }
  [data-list-row='note-row'] strong {
    font-size: 22px;
  }
  .note-body {
    font-size: 16px;
  }
  [data-list-row='note-row'] .action {
    margin-left: auto;
  }
  .nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    border-radius: 20px;
  }
  .nav button {
    font:
      11px Arial,
      sans-serif;
    gap: 4px;
    padding: 6px 3px;
    min-height: 58px;
    border-radius: 13px;
    white-space: normal;
  }
  .nav .icon,
  .nav .art {
    width: 25px;
    height: 25px;
  }
  .nav button > span {
    height: 27px;
  }
  .modal {
    padding: 22px;
  }
  .modal-heading h2 {
    font-size: 25px;
  }
  .modal-information p {
    font-size: 16px;
  }
}
@media (max-width: 360px) {
  header {
    gap: 8px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .main {
    padding-left: 12px;
    padding-right: 12px;
  }
  .brand {
    font-size: 22px;
  }
  .brand-birds {
    width: 47px;
  }
  .tag {
    font-size: 12px;
  }
  .headright {
    gap: 2px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero p {
    font-size: 18px;
  }
  .hero > .eyebrow {
    font-size: 13px;
  }
  .tile {
    padding: 12px 10px;
    gap: 9px;
  }
  .tile b {
    font-size: 14px;
  }
  .tile .icon,
  .tile .art {
    width: 26px;
    height: 26px;
  }
  .home-cards > .card {
    padding: 14px;
  }
  .today-card .row h2 {
    font-size: 18px;
  }
  .today-card .row > .action {
    font-size: 11px;
  }
  .today-card .item {
    gap: 7px;
    padding: 12px 8px;
  }
  .today-card .item strong {
    font-size: 14px;
  }
  .today-card .item small {
    font-size: 11px;
  }
  .today-card #home-medication-toggle {
    max-width: 69px;
    font-size: 12px;
  }
  .today-card .dot {
    width: 25px;
    flex-basis: 25px;
  }
  .mood {
    width: 52px;
    height: 52px;
  }
  .mood-labels {
    font-size: 14px;
  }
  .timeline {
    grid-template-columns: 23px 28px 39px minmax(0, 1fr);
    gap: 7px;
    padding: 12px 8px;
  }
  .timeline .time {
    font-size: 12px;
  }
  .tcontent strong {
    font-size: 14px;
  }
  .tcontent small {
    font-size: 11px;
  }
  .person-row .pill {
    display: none;
  }
  .page > h1 {
    font-size: 29px;
  }
  .nav button {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.nav .blue {
  color: inherit;
}
.date-strip {
  display: flex;
  max-width: 640px;
  margin: 0 0 24px;
  padding: 9px;
  border: 1px solid var(--line);
  background: #fffdf6;
  border-radius: 20px;
}
.date-strip > span {
  flex: 1;
  text-align: center;
  padding: 10px 15px;
  font:
    15px Arial,
    sans-serif;
}
.date-strip strong {
  display: block;
  margin-top: 7px;
  font:
    29px Georgia,
    serif;
}
.selected-date {
  background: #56846d;
  color: white;
  border-radius: 15px;
}
.care-circle-panel {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  background: radial-gradient(ellipse at center, #fbefddaa, #fffdf6bb 65%);
}
.care-circle-visual {
  width: 100%;
  margin: 0 auto 18px;
}
.care-circle-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  max-width: 760px;
  margin: 0 auto 2px;
  color: #49675a;
  font-size: 13px;
  line-height: 1.25;
}
.care-circle-legend svg,
.emergency-contact-option svg {
  display: block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: #bd5948;
}
.care-circle-empty {
  width: min(100%, 430px);
  margin: 0 auto;
}
.care-circle-empty img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 310px;
  object-fit: contain;
}
.care-circle-populated {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 1 / 1.14;
  margin: 0 auto;
}
.care-circle-populated-art {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.care-circle-names {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.care-circle-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 20px;
  min-width: 0;
  padding: 2px 5px;
  border: 1px solid var(--bird-border);
  border-radius: 999px;
  background: var(--bird-tint);
  color: #315347;
  font: 600 clamp(7px, 2.5vw, 9px)/1.05 Georgia, serif;
  overflow-wrap: anywhere;
  text-align: center;
  transform: translateX(-50%);
}
.care-circle-name[hidden] { display: none; }
.care-circle-name::before {
  content: '';
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--bird-color);
  box-shadow: inset 0 0 0 2px #fffaf0;
}
.care-circle-name-owner { position: absolute; top: 28%; left: 45%; width: 34%; }
.care-circle-name-contact-0 { position: absolute; top: 43%; left: 18%; width: 30%; }
.care-circle-name-contact-1 { position: absolute; top: 43%; left: 82%; width: 30%; }
.care-circle-name-contact-2 { position: absolute; top: 82%; left: 27%; width: 34%; }
.care-circle-name-contact-3 { position: absolute; top: 82%; left: 75%; width: 34%; }
.care-circle-name-owner { --bird-color: #8ca9bb; --bird-tint: #e9eff2; --bird-border: #cfdae0; }
.care-circle-name-contact-0 { --bird-color: #deb858; --bird-tint: #f8f0d6; --bird-border: #eadcaa; }
.care-circle-name-contact-1 { --bird-color: #ce8068; --bird-tint: #f7e9e3; --bird-border: #eaccc0; }
.care-circle-name-contact-2 { --bird-color: #9eaa7d; --bird-tint: #edf0e4; --bird-border: #d7dfca; }
.care-circle-name-contact-3 { --bird-color: #aaa0c5; --bird-tint: #f0edf5; --bird-border: #dcd6e8; }
.care-circle-emergency {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: #bd5948;
  background: #fff9e9;
  border: 1px solid #d7b36c;
  border-radius: 50%;
}
.care-circle-emergency[hidden] { display: none; }
.care-circle-emergency svg { display: block; width: 70%; height: 70%; }
.emergency-contact-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 17px;
  color: #415e65;
  cursor: pointer;
}
.emergency-contact-option input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #b84f42;
}
.care-circle-additional-names {
  max-width: 620px;
  margin: 0 auto 12px;
  color: #49675a;
  font: 14px/1.45 Arial, sans-serif;
  text-align: center;
}
.care-orbit {
  position: relative;
  max-width: 580px;
  height: 445px;
  margin: 5px auto 25px;
}
.orbit-line {
  position: absolute;
  width: 83%;
  height: 270px;
  left: 8.5%;
  top: 68px;
  border: 1px solid #d7b68d;
  border-radius: 50%;
}
.orbit-person {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
  text-align: center;
  min-width: 100px;
}
.orbit-person .avatar {
  width: 65px;
  height: 65px;
  flex-basis: 65px;
  border: 3px solid #fffaf0;
  box-shadow: 0 0 0 1px #ddd5bd;
  margin-bottom: 7px;
}
.orbit-person strong {
  font:
    17px Georgia,
    serif;
}
.orbit-person small {
  margin-top: 3px;
  font-size: 13px;
}
.rene {
  left: 15%;
  top: 70px;
}
.rozelle {
  left: 50%;
  top: 5px;
}
.roche {
  left: 85%;
  top: 70px;
}
.sarah {
  left: 24%;
  bottom: 0;
}
.james {
  left: 76%;
  bottom: 0;
}
.orbit-person.member {
  left: 50%;
  top: 160px;
}
.orbit-person.member .avatar {
  width: 135px;
  height: 135px;
  flex-basis: 135px;
  border: 8px solid #e0d6b4;
  box-shadow: 0 0 0 2px #a9b092;
}
.orbit-person.member strong {
  font-size: 22px;
}
.orbit-leaves {
  position: absolute;
  width: 105px;
  height: 160px;
  top: 170px;
  opacity: 0.85;
}
.left-leaves {
  left: 15%;
  transform: rotate(-12deg);
}
.right-leaves {
  right: 15%;
  transform: rotate(12deg);
}
.care-circle-actions {
  max-width: 430px;
  margin: 0 auto;
}
.care-circle-actions small {
  color: inherit;
  font-size: 12px;
  margin-top: 5px;
}
.added-people {
  max-width: 760px;
  margin: 20px auto;
}
.people-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-top: 10px;
}
.people-table-scroll::-webkit-scrollbar { display: none; }
.people-table {
  width: 100%;
  min-width: 700px;
  border-collapse: separate;
  border-spacing: 0 8px;
  font: 14px/1.45 Arial, sans-serif;
}
.people-table th,
.people-table td {
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
}
.people-table th {
  color: var(--ink);
  white-space: nowrap;
  font: 600 13px/1.4 Arial, sans-serif;
  border-bottom: 1px solid #e7dfd0;
}
.people-table .person-row { display: table-row; padding: 0; border: 0; }
.people-table tbody .person-row td {
  background: #fffdf7;
  border-top: 1px solid #eee6d8;
  border-bottom: 1px solid #eee6d8;
}
.people-table tbody .person-row td:first-child {
  border-left: 1px solid #eee6d8;
  border-radius: 16px 0 0 16px;
}
.people-table tbody .person-row td:last-child {
  border-right: 1px solid #eee6d8;
  border-radius: 0 16px 16px 0;
}
.people-table tbody [data-empty] td {
  padding: 12px;
  color: var(--muted);
  text-align: center;
}
.person-name-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 150px;
}
.person-name-cell .avatar {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  font-size: 15px;
}
.person-name-cell strong { font: 600 14px/1.35 Arial, sans-serif; }
.emergency-contact-table-indicator {
  display: inline-grid;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  place-items: center;
  color: #bd5948;
}
.emergency-contact-table-indicator[hidden] { display: none; }
.emergency-contact-table-indicator svg { display: block; width: 100%; height: 100%; }
.people-table .action {
  min-height: 38px;
  padding: 7px 10px;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .hero h1 {
    max-width: 87%;
    font-size: 34px;
  }
  .date-strip {
    margin-bottom: 18px;
    border-radius: 16px;
    padding: 6px;
  }
  .date-strip > span {
    padding: 9px 5px;
    font-size: 13px;
  }
  .date-strip strong {
    font-size: 25px;
  }
  .care-circle-panel {
    padding: 13px;
  }
  .care-orbit {
    height: 370px;
    margin: 0 auto 22px;
  }
  .orbit-line {
    top: 73px;
    height: 225px;
    width: 88%;
    left: 6%;
  }
  .orbit-person {
    min-width: 80px;
  }
  .orbit-person .avatar {
    width: 49px;
    height: 49px;
    flex-basis: 49px;
    margin-bottom: 5px;
  }
  .orbit-person strong {
    font-size: 15px;
  }
  .orbit-person small {
    font-size: 11px;
  }
  .rene {
    left: 16%;
    top: 48px;
  }
  .roche {
    left: 84%;
    top: 48px;
  }
  .orbit-person.member {
    top: 136px;
  }
  .orbit-person.member .avatar {
    width: 105px;
    height: 105px;
    flex-basis: 105px;
    border-width: 6px;
  }
  .orbit-person.member strong {
    font-size: 20px;
  }
  .orbit-leaves {
    width: 65px;
    height: 115px;
    top: 154px;
  }
  .left-leaves {
    left: 6%;
  }
  .right-leaves {
    right: 6%;
  }
  .care-circle-actions .action {
    padding: 13px;
  }
}
@media (max-width: 360px) {
  .hero h1 {
    font-size: 30px;
  }
}

/* Soft watercolor edges, as in the supplied paper-and-foliage concepts. */
.page-art {
  mask-image: radial-gradient(ellipse, #000 35%, transparent 75%);
}
.page[data-screen="meds"] > .page-art,
.page[data-screen="health"] > .page-art {
  mask-image: none;
  -webkit-mask-image: none;
  opacity: 1;
}
.art {
  mix-blend-mode: darken;
}
.orbit-leaves {
  mask-image: radial-gradient(ellipse, #000 35%, transparent 74%);
}
.therapy-art {
  height: 170px;
  margin-top: -22px;
}
@media (max-width: 700px) {
  .hero p {
    font-size: 18px;
  }
  .today-card .item strong {
    font-size: 15px;
  }
  .therapy-art {
    height: 140px;
    margin-top: -12px;
  }
}
@media (max-width: 360px) {
}

/* Name-first setup uses the same cards, controls, and artwork as the Nest. */
.is-onboarding .menu-button,
.is-onboarding .headright {
  display: none;
}
.is-onboarding .brandwrap {
  justify-content: center;
}
.is-onboarding .main {
  padding-bottom: 36px;
}
.onboarding {
  max-width: 560px;
  margin: 0 auto;
}
.setup-art {
  display: block;
  width: min(270px, 75%);
  height: auto;
  margin: 0 auto -15px;
}
.setup-card {
  padding: clamp(22px, 5vw, 38px);
}
.setup-card h1 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: clamp(30px, 6vw, 40px);
  line-height: 1.15;
}
.setup-start-bird {
  flex: 0 0 auto;
  width: clamp(54px, 15vw, 64px);
  height: 44px;
  object-fit: contain;
}
.setup-card p {
  line-height: 1.5;
}
#care-name-field {
  margin-bottom: 18px;
}
.setup-privacy {
  margin: 22px 0 0;
}
.setup-choices {
  border: 0;
  padding: 0;
  margin: 24px 0;
  min-width: 0;
}
.setup-choices legend {
  font: 14px/1.5 Arial, sans-serif;
  margin-bottom: 10px;
}
.setup-choice {
  display: flex;
  gap: 14px;
  align-items: center;
  border: 1px solid #b9c5b4;
  border-radius: 14px;
  padding: 18px 14px;
  margin-bottom: 12px;
  cursor: pointer;
}
.setup-choice:has(input:checked) {
  background: var(--sage);
  border-color: var(--green);
}
.setup-choice input {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  accent-color: var(--green);
  margin: 0;
}
.setup-choice strong,
.setup-choice small {
  display: block;
}
.setup-choice small {
  margin-top: 5px;
  font: 14px/1.5 Arial, sans-serif;
  color: var(--muted);
}
.setup-card .form-actions {
  flex-wrap: wrap;
}
.setup-card .action {
  white-space: normal;
}
.care-context {
  text-align: center;
  padding: 25px 12px;
}
.care-context .avatar {
  margin: 0 auto 16px;
}
.care-context h2,
.hero h1,
.hero p,
.setup-card,
.page > h1 {
  overflow-wrap: anywhere;
}
.action:disabled {
  opacity: 0.6;
}

.setup-card .primary {
  background: #35664e;
  color: #fff;
}

section[data-screen="home"]:not([hidden]) { display: flex; flex-direction: column; }
section[data-screen="home"] .home-welcome { order: 1; min-height: 130px; padding: 18px 0; }
section[data-screen="home"] .home-date { order: 2; width: 100%; margin: 0 0 8px; }
section[data-screen="home"] .home-day-toolbar { order: 3; width: 100%; }
section[data-screen="home"] .home-day-preview { order: 4; width: 100%; }
section[data-screen="home"] .home-cards { order: 5; width: 100%; }
section[data-screen="home"] .home-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "mood mood"
    "message inspiration"
    "quick quick";
  gap: 18px;
}
section[data-screen="home"] .home-cards .mood-card { grid-area: mood; }
section[data-screen="home"] .home-cards .message-card { grid-area: message; }
section[data-screen="home"] .home-cards .inspiration-card { grid-area: inspiration; }
section[data-screen="home"] .home-cards .quick-card { grid-area: quick; }
.home-day-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  margin: 0 0 10px;
  padding: 12px 14px;
  border: 1px solid #c4d1c4;
  border-radius: 18px;
  background: linear-gradient(120deg, #e4eadf, #dbe5dc);
  color: #385940;
}
.home-day-button {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 8px 2px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  text-align: left;
}
.home-day-copy { display: block; }
.home-day-copy strong { font: 22px Georgia, serif; }
.day-toolbar-title { flex: 1; min-width: 0; }
.home-day-progress {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #becfbd;
  border-radius: 999px;
  background: #f8faf6;
  color: #385940;
  font: 600 13px/1.2 Arial, sans-serif;
  white-space: nowrap;
}
.mood-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.mood-card-heading h2 {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.mood-card-heading .home-mood-history {
  flex-shrink: 0;
}
.mood-other-entry { margin-top: 14px; }
.mood-other-entry .field-label { display: block; margin-bottom: 6px; }
.mood-other-entry .field-control { width: 100%; min-height: 44px; }
.home-day-preview { margin: 0 0 22px; }
.home-day-preview .timeline {
  grid-template-columns: 36px 64px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 6px 12px;
  margin: 4px 0;
  min-height: 48px;
  border-radius: 13px;
}
.home-day-preview .timeline-no-time {
  grid-template-columns: 36px minmax(0, 1fr) auto;
}
.home-day-preview .dot { display: none; }
.home-day-preview .time { font-size: 14px; padding: 5px 0; }
.home-day-preview .tcontent strong { font-size: 15px; }
.home-day-preview .tcontent small,
.home-day-preview .completed-note { display: none; }
.home-day-preview .schedule-check { width: 32px; height: 32px; }
.home-day-preview > .small { margin: 0 2px; }
.message-card { grid-column: auto; grid-row: auto; }
.message {
  display: flex;
  align-items: center;
  justify-content: center;
}
.inspiration-card { --landscape-width: 44%; }
.inspiration-card blockquote {
  display: flex;
  align-items: center;
  width: calc(100% - var(--landscape-width));
  min-height: 145px;
  margin: 0;
  padding-right: 14px;
  text-align: center;
  overflow-wrap: anywhere;
}
.inspiration-card .landscape {
  width: var(--landscape-width);
  pointer-events: none;
}
.tracker-note { margin: 0 4px 18px; }
@media (max-width: 700px) {
  section[data-screen="home"] .home-cards {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "mood" "message" "inspiration" "quick";
    gap: 13px;
  }
  .home-day-toolbar { min-height: 64px; gap: 6px; padding: 8px; }
  .home-day-button { min-height: 44px; padding: 6px 2px; }
  .home-day-copy strong { font-size: 20px; }
  .home-day-progress { min-height: 36px; padding: 7px 8px; font-size: 11px; }
  .home-day-preview .timeline { grid-template-columns: 32px 48px minmax(0, 1fr) auto; gap: 8px; padding: 6px 8px; min-height: 44px; }
  .home-day-preview .timeline-no-time { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .home-day-preview .time { font-size: 12px; }
  .home-day-preview .tcontent strong { font-size: 14px; }
  .home-day-preview .schedule-check { width: 30px; height: 30px; }
  .message { width: min(100%, 190px); aspect-ratio: 1; min-height: 0; padding: 15px; font-size: 19px; }
  .inspiration-card { --landscape-width: 38%; }
  .inspiration-card blockquote { min-height: 130px; margin: 0; font-size: 20px; }
}

@media (min-width: 701px) {
  .hero h1,
  .hero p {
    max-width: 51%;
  }
}


/* Private account setup reuses the onboarding cards and form controls. */
.account-fields {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.welcome-sign-in {
  margin-top: 12px;
}
.account-secondary {
  display: block;
  width: 100%;
  margin-top: 16px;
  min-height: 44px;
}
.account-error {
  color: #8c3126;
  line-height: 1.5;
}
#account-email,
#account-password {
  margin-bottom: 14px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}


/* Save confirmation and explicit import of the owner's earlier browser copy. */
.browser-import {
  max-width: 1144px;
  margin: 0 auto 12px;
}
.care-storage {
  position: fixed;
  inset: max(16px, env(safe-area-inset-top)) 16px auto auto;
  z-index: 20;
  width: max-content;
  max-width: min(440px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  margin: 0;
  padding: 14px 20px;
  color: var(--green);
  background: #edf2e8;
  border: 1px solid #c4d4bc;
  border-radius: 12px;
  box-shadow: 0 6px 24px #263b2926;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font: 14px/1.5 Arial, sans-serif;
  overflow-wrap: anywhere;
}
.missed-activity-notice {
  position: fixed;
  inset: calc(max(16px, env(safe-area-inset-top)) + 76px) 16px auto auto;
  z-index: 21;
  width: max-content;
  max-width: min(440px, calc(100vw - 32px));
  max-height: calc(100dvh - 108px);
  overflow: auto;
  margin: 0;
  padding: 16px 20px;
  color: var(--green);
  background: #fff7e8;
  border: 1px solid #e7cc91;
  border-radius: 14px;
  box-shadow: 0 6px 24px #263b2926;
  font: 14px/1.5 Arial, sans-serif;
  overflow-wrap: anywhere;
}
.missed-activity-notice p {
  margin: 5px 0 0;
}
.missed-activity-notice .form-actions {
  flex-wrap: wrap;
  margin-top: 12px;
}
.storage-error {
  color: #8c3126;
  background: #f9e9e0;
  border-color: #e4b9ad;
}
.browser-import {
  padding: 20px;
}
.browser-import .form-actions {
  flex-wrap: wrap;
  margin-top: 12px;
}
.mood-calendar {
  padding: 22px;
}
.medication-summary-title {
  max-width: 100%;
  margin: 0 0 12px;
  padding: 0;
  text-align: left;
  position: relative;
  z-index: 1;
}
.mood-summary-title {
  margin-bottom: 12px;
}
.medication-calendar {
  margin-top: 0;
}
[data-screen='meds'] {
  width: calc(100vw - 56px);
  max-width: none;
  left: 50%;
  transform: translateX(-50%);
}
.medication-calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  align-items: start;
  gap: 20px;
}
.medication-calendar-main {
  min-width: 0;
}
.medication-calendar .mood-calendar-heading h3 {
  margin: 0;
  text-align: center;
  font: 25px/1.2 Georgia, serif;
}
.medication-calendar-day.has-medication {
  background: #f9e9e0;
  border-color: #edcbb8;
  color: #9b5e41;
}
.medication-calendar-day .mood-calendar-symbol {
  width: 48px;
  height: 48px;
  color: #c4784f;
}
.medication-calendar-count {
  font: 12px/1.1 Arial, sans-serif;
  text-align: center;
}
.medication-calendar-grid {
  box-sizing: border-box;
  width: 100%;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.medication-calendar-grid > * {
  box-sizing: border-box;
  min-width: 0;
}
.medication-calendar-weekday {
  padding: 6px 0;
  color: var(--muted);
  font: 600 12px/1.2 Arial, sans-serif;
  text-align: center;
}
.medication-calendar-day {
  width: 100%;
  min-height: clamp(140px, 17vw, 240px);
  font: inherit;
  cursor: pointer;
}
.medication-calendar .mood-calendar-date {
  font-size: 17px;
}
.medication-calendar-day.is-selected {
  outline: 2px solid #c4784f;
  outline-offset: -3px;
}
.medication-calendar-day:focus-visible {
  outline: 3px solid #66543d;
  outline-offset: 1px;
}
.medication-day-summary {
  min-width: 0;
  min-height: 128px;
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fffaf0;
}
.medication-day-summary h3 {
  margin: 0 0 8px;
  font: 18px/1.3 Georgia, serif;
}
.medication-day-summary ul {
  margin: 0;
  padding-left: 20px;
  color: #5e5749;
  font: 14px/1.5 Arial, sans-serif;
}
.medication-day-summary p {
  margin: 0;
}
.health-note-calendar-day.has-health-notes {
  background: #e9f0eb;
  border-color: #c2d2c6;
  color: #456b52;
}
.health-note-calendar-day .health-note-calendar-symbol {
  color: #5d8065;
}
.health-note-day-summary {
  margin-top: 18px;
}
@media (max-width: 840px) {
  [data-screen='meds'] {
    width: calc(100vw - 32px);
  }
  .medication-calendar-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
.mood-calendar-heading {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.mood-calendar-heading h2 {
  margin: 0;
  text-align: center;
  font: 25px/1.2 Georgia, serif;
}
.mood-month-step {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #dfd8c9;
  border-radius: 14px;
  background: #f6f1e7;
  color: #5e5749;
  font: 27px/1 Georgia, serif;
}
.mood-month-step:disabled {
  opacity: 0.45;
  cursor: default;
}
.mood-calendar-weekdays,
.mood-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}
.mood-calendar-weekdays {
  margin-bottom: 7px;
  color: var(--muted);
  font: 600 12px/1.2 Arial, sans-serif;
  text-align: center;
}
.mood-calendar-weekdays span {
  padding: 6px 0;
}
.mood-calendar-day,
.mood-calendar-spacer {
  min-width: 0;
  min-height: 76px;
  border-radius: 13px;
}
.mood-calendar-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 7px 3px;
  border: 1px solid #eee7da;
  background: #fffdf7;
  color: #5e5749;
}
.mood-calendar-day.is-today {
  box-shadow: inset 0 0 0 2px #8ba17d;
}
.mood-calendar-date {
  font: 12px/1 Arial, sans-serif;
}
.mood-calendar-symbol {
  width: 29px;
  height: 29px;
  color: #5e865f;
}
.mood-calendar-label {
  max-width: 100%;
  font: 10px/1.2 Arial, sans-serif;
  overflow-wrap: anywhere;
  text-align: center;
}
.mood-calendar-day[data-mood='0'] {
  background: #edf2e8;
  border-color: #d6e0d2;
  color: #477451;
}
.mood-calendar-day[data-mood='1'] {
  background: #f6efcf;
  border-color: #e9dca3;
  color: #8b7432;
}
.mood-calendar-day[data-mood='2'] {
  background: #f7e6dc;
  border-color: #edcbb8;
  color: #a65f4f;
}
.mood-calendar-day[data-mood='3'] {
  background: #f7e6e7;
  border-color: #efced0;
  color: #bf6c68;
}
.mood-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  color: var(--muted);
  font: 13px/1.4 Arial, sans-serif;
}
.mood-calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.mood-calendar-legend svg {
  width: 20px;
  height: 20px;
  color: #63815e;
}
.mood-calendar-legend span:nth-child(2) svg { color: #a58b42; }
.mood-calendar-legend span:nth-child(3) svg { color: #a65f4f; }
.mood-calendar-legend span:nth-child(4) svg { color: #bf6c68; }
#modal-save-error {
  margin-bottom: 14px;
}
@media (max-width: 1200px) {
  .browser-import {
    margin-left: 16px;
    margin-right: 16px;
  }
}

/* Account-linked sandbox billing stays separate from care and access controls. */
@media (max-width: 480px) {
  [data-screen='meds'] { width: calc(100vw - 32px); }
  .mood-calendar { padding: 14px 10px; }
  .medication-calendar-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .medication-calendar-day .mood-calendar-symbol { width: 24px; height: 24px; }
  .medication-calendar .mood-calendar-date { font-size: 11px; }
  .medication-calendar .mood-calendar-heading h3 { font-size: 21px; }
  .mood-calendar-heading { grid-template-columns: 38px minmax(0, 1fr) 38px; gap: 6px; margin-bottom: 14px; }
  .mood-calendar-heading h2 { font-size: 21px; }
  .mood-month-step { min-width: 38px; min-height: 40px; }
  .mood-calendar-weekdays,
  .mood-calendar-grid { gap: 4px; }
  .mood-calendar-weekdays { font-size: 10px; }
  .mood-calendar-day,
  .mood-calendar-spacer { min-height: 76px; border-radius: 9px; }
  .mood-calendar-day { padding: 5px 2px; }
  .mood-calendar-date { font-size: 11px; }
  .mood-calendar-symbol { width: 24px; height: 24px; }
  .mood-calendar-label { font-size: 9px; }
  .mood-calendar-legend { gap: 6px 12px; font-size: 12px; }
}

/* Account-linked sandbox billing stays separate from care and access controls. */
.subscription-actions {
  flex-wrap: wrap;
}
.subscription-actions a {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-height: 44px;
}
.subscription-actions a:focus-visible {
  outline: 3px solid #38765d;
  outline-offset: 4px;
}

.health-reading-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 18px;
}
.health-reading-actions .action {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 4px;
  min-width: 0;
  min-height: 100px;
  padding: 8px 6px;
  border-radius: 16px;
  font: 600 13px/1.2 Arial, sans-serif;
  white-space: normal;
}
.health-reading-heading {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  min-height: 32px;
  text-align: left;
}
.health-reading-heading > span {
  min-width: 0;
  font-size: 12px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.health-reading-actions .action:nth-child(1) {
  background: #f8e8e3;
  border-color: #eacdc4;
  color: #704e49;
}
.health-reading-actions .action:nth-child(2) {
  background: #e5eee5;
  border-color: #c6d8c8;
  color: #426557;
}
.health-reading-actions .action:nth-child(3) {
  background: #e5eff2;
  border-color: #c7dce1;
  color: #426372;
}
.health-reading-actions .action:nth-child(4) {
  background: #f8e9e5;
  border-color: #ebd0c8;
  color: #744d49;
}
.health-reading-icon {
  display: block;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
}
.health-reading-sparkline {
  display: block;
  width: 100%;
  height: 22px;
  overflow: visible;
  margin-top: 1px;
}
.health-reading-sparkline polyline {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.8;
}
.health-reading-sparkline .health-reading-sparkline-secondary {
  stroke-dasharray: 2 2;
  opacity: 0.5;
}
.health-reading-sparkline circle {
  fill: currentColor;
}
.health-reading-value {
  display: block;
  font-size: 16px;
  line-height: 1.2;
  text-align: left;
  overflow-wrap: anywhere;
}
.health-reading-time {
  display: block;
  min-height: 12px;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.2;
  opacity: 0.8;
  text-align: left;
}
@media (max-width: 700px) {
  .health-reading-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

.health-notes-scroll {
  max-width: 100%;
  overflow-x: auto;
  margin-top: 10px;
  border: 1px solid #e7dfd0;
  border-radius: 12px;
}
.health-notes-heading {
  display: flex;
  align-items: center;
  gap: 9px;
}
.health-notebook-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}
.health-notes-toolbar {
  flex-wrap: wrap;
}
.health-notes-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.health-notes-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font: 14px/1.45 Arial, sans-serif;
}
.health-notes-table th,
.health-notes-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #e7dfd0;
  text-align: left;
  vertical-align: top;
}
.health-notes-table th {
  background: #f7f1e5;
  color: var(--ink);
}
.health-notes-table tbody tr:nth-child(even) {
  background: #fcfaf5;
}
.health-notes-table tbody tr:last-child td {
  border-bottom: 0;
}
.health-notes-sort {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: 600 13px/1.25 Arial, sans-serif;
  text-align: left;
  cursor: pointer;
}
.health-notes-sort span {
  color: var(--muted);
}
.health-notes-sort:focus-visible {
  outline: 3px solid #38765d;
  outline-offset: 2px;
}

.page[data-screen="health"] > .page-art,
.page[data-screen="healthGraph"] > .page-art {
  width: 330px;
  height: 270px;
}

.page[data-screen="health"] > .page-art {
  top: -65px;
}

@media (max-width: 700px) {
  .page[data-screen="health"] > .page-art,
  .page[data-screen="healthGraph"] > .page-art {
    width: 220px;
    height: 200px;
  }

  .page[data-screen="health"] > .page-art {
    top: -15px;
  }
}

@media (max-width: 480px) {
  .page[data-screen="health"] > .page-art,
  .page[data-screen="healthGraph"] > .page-art {
    width: 185px;
    height: 175px;
  }

  .page[data-screen="health"] > .page-art {
    top: -20px;
  }
}
