﻿:root {
  --ink: #49372f;
  --ink-soft: #66554c;
  --muted: #82766d;
  --paper: #fffdf6;
  --paper-warm: #fff8ea;
  --paper-deep: #f3fbf8;
  --mint: #1da99d;
  --mint-soft: #d9f5ef;
  --mint-line: #8edbd2;
  --coral: #ff746b;
  --coral-soft: #fff1ee;
  --sky: #4ba7dc;
  --sky-soft: #edf8ff;
  --honey: #e5aa22;
  --honey-soft: #fff7df;
  --sage: #6f9554;
  --sage-soft: #edf6e8;
  --line: #e8ded1;
  --shadow: 0 10px 24px rgba(89, 70, 56, .08);
  --type-page-title: 24px;
  --type-section-title: 20px;
  --type-body: 16px;
  --type-meta: 14px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: #fffdf6; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: radial-gradient(circle at 50% 0%, rgba(141, 220, 205, .20), transparent 35%), linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  letter-spacing: 0;
}
a, button { -webkit-tap-highlight-color: transparent; }
.app {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 18px 92px;
  position: relative;
}
.app.no-tabbar { padding-bottom: 24px; }
.topbar, .screen-head {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 10px;
}
.topbar { margin-bottom: 10px; }
.screen-head { margin-bottom: 16px; }
.screen-head::after,
.lab-header::after,
.medication-header::after {
  content: "";
  grid-column: 1 / -1;
  justify-self: center;
  display: block;
  width: min(220px, 100%);
  height: auto;
  aspect-ratio: 1320 / 720;
  background: url("/assets/alagille-brand/service-logo-centered-20261111.png") center / contain no-repeat;
}
.brand {
  grid-column: 1 / 3;
  color: var(--mint);
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .12em;
}
.brand::after { content: "。"; color: var(--coral); letter-spacing: 0; }
.icon-row { display: flex; justify-content: flex-end; gap: 8px; }
.round, .icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(116, 184, 174, .28);
  background: rgba(255, 255, 255, .88);
  color: #40544f;
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(70, 93, 84, .08);
}
.round.primary { background: var(--coral); color: #fff; border-color: var(--coral); }
.material-symbols-outlined { font-size: 25px; font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24; }
.screen-title {
  margin: 0;
  text-align: center;
  font-size: var(--type-page-title);
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: .08em;
  color: var(--mint);
}
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 430px);
  height: 76px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 8px 18px 11px;
  border-top: 1px solid rgba(232, 222, 209, .72);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
}
.bottom-nav a {
  display: grid;
  place-items: center;
  gap: 2px;
  color: #6f7773;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 850;
}
.bottom-nav a.active { color: var(--mint); }
.panel, .soft-card {
  border: 1.5px solid rgba(142, 219, 210, .68);
  border-radius: 18px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow);
}
.asset { display: block; width: 100%; height: auto; object-fit: contain; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 360px) {
  .app { padding-left: 14px; padding-right: 14px; }
  .screen-title { font-size: 22px; }
}

.home-page {
  background:
    radial-gradient(circle at 18% -3%, rgba(238, 112, 95, .13), transparent 24%),
    radial-gradient(circle at 88% 4%, rgba(77, 145, 189, .14), transparent 28%),
    linear-gradient(180deg, var(--paper) 0%, #f9fff9 100%);
}

.home-shell {
  padding: 22px 18px 102px;
}

.home-header {
  display: grid;
  grid-template-columns: minmax(126px, 1fr) auto 44px;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand-lockup span {
  font-size: 27px;
  line-height: .98;
  font-weight: 900;
  letter-spacing: .04em;
}

.brand-lockup strong {
  display: block;
  font-size: 23px;
  font-weight: 900;
}

.brand-bird {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.patient-pill {
  min-width: 0;
  height: 58px;
  display: grid;
  grid-template-columns: 42px minmax(54px, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 1.5px solid rgba(151, 125, 95, .45);
  border-radius: 22px;
  background: rgba(255, 255, 255, .86);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(89, 70, 56, .07);
  font: inherit;
}

.patient-avatar {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  object-fit: cover;
  background: var(--sage-soft);
}

.patient-copy {
  min-width: 0;
  text-align: left;
}

.patient-copy strong,
.patient-copy small {
  display: block;
  white-space: nowrap;
}

.patient-demo-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 7px 3px;
  border-radius: 999px;
  background: rgba(217, 155, 37, .16);
  color: #8a6118;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 900;
}

.patient-demo-badge[hidden] {
  display: none;
}

.patient-copy strong {
  font-size: 16px;
  line-height: 1.15;
  font-weight: 900;
}

.patient-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.1;
  font-weight: 700;
}

.patient-switch {
  padding: 5px 8px 6px;
  border: 1.5px solid rgba(34, 140, 104, .42);
  border-radius: 999px;
  color: var(--mint);
  background: var(--mint-soft);
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
}

.menu-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
}

.family-share-banner {
  position: relative;
  min-height: 86px;
  display: grid;
  grid-template-columns: 42px 1fr 104px;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1.5px solid rgba(111, 149, 84, .34);
  border-radius: 26px;
  background: linear-gradient(90deg, rgba(237, 246, 232, .94), rgba(255, 255, 255, .72));
  box-shadow: var(--shadow);
}

.share-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--mint);
  background: rgba(255, 255, 255, .84);
}

.family-share-banner p {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.family-share-banner small {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}

.share-family {
  width: 108px;
  max-height: 68px;
  object-fit: contain;
  align-self: end;
  justify-self: end;
}

.home-benefit-hero {
  position: relative;
  margin: 4px 0 12px;
  padding: 20px 18px 17px;
  overflow: hidden;
  border: 1.5px solid rgba(29, 169, 157, .32);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(240, 251, 247, .98), rgba(255, 253, 244, .96));
  box-shadow: var(--shadow);
}

.home-benefit-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--sage);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 900;
  letter-spacing: .04em;
}

.home-benefit-hero h1 {
  max-width: 330px;
  margin: 0;
  color: var(--ink);
  font-size: 25px;
  line-height: 1.42;
  font-weight: 900;
  letter-spacing: .01em;
}

.home-benefit-hero > p {
  margin: 8px 0 14px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 750;
}

.quick-record-button {
  width: 100%;
  min-height: 70px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 0;
  border-radius: 18px;
  color: #fff;
  text-align: left;
  background: linear-gradient(135deg, #20b7aa, #15988e);
  box-shadow: 0 12px 22px rgba(29, 169, 157, .24);
  cursor: pointer;
}

.quick-record-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, .18);
}

.quick-record-button strong,
.quick-record-button small {
  display: block;
}

.quick-record-button strong {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 900;
}

.quick-record-button small {
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 750;
  opacity: .92;
}

.home-more-tools {
  margin: 0 0 14px;
}

.home-more-tools .home-main-areas { margin-top: 0; }

.quick-record-options {
  display: grid;
  gap: 10px;
}

.quick-record-options button {
  width: 100%;
  min-height: 88px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1.5px solid rgba(29, 169, 157, .24);
  border-radius: 18px;
  color: var(--ink);
  text-align: left;
  background: linear-gradient(135deg, rgba(239, 250, 246, .96), #fff);
  font: inherit;
  cursor: pointer;
}

.quick-record-options img { width: 60px; height: 60px; object-fit: contain; }
.quick-record-options strong,.quick-record-options small { display: block; }
.quick-record-options strong { font-size: 15px; font-weight: 900; }
.quick-record-options small { margin-top: 3px; color: var(--ink-soft); font-size: 10px; line-height: 1.55; font-weight: 750; }
.quick-record-options .material-symbols-outlined { color: var(--mint); }
.quick-record-options .quick-record-option.primary {
  min-height: 98px;
  border: 2px solid rgba(29, 169, 157, .46);
  background: linear-gradient(135deg, #effaf6, #fffdf8);
  box-shadow: 0 8px 18px rgba(66, 118, 101, .09);
}
.quick-record-options .quick-record-option.primary img {
  width: 66px;
  height: 66px;
}
.quick-record-option-kicker {
  display: block;
  margin-bottom: 2px;
  color: #278276;
  font-size: 10px;
  font-weight: 900;
}
.quick-record-choice-divider {
  margin: -2px 0;
  color: var(--muted);
  text-align: center;
  font-size: 10px;
  line-height: 1.4;
  font-weight: 900;
}
.quick-record-options .quick-record-option.secondary {
  min-height: 78px;
  background: rgba(255, 255, 255, .84);
  box-shadow: none;
}
.quick-record-options .quick-record-option.secondary img {
  width: 52px;
  height: 52px;
}

.home-intro {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}

.home-intro h1 {
  margin: 0;
  font-size: 33px;
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: .02em;
}

.intro-leaf {
  width: 38px;
  height: 38px;
  object-fit: contain;
  opacity: .82;
}

.home-action-zone {
  position: relative;
  margin-top: 14px;
  padding: 14px;
  border: 1.5px solid var(--zone-line);
  border-radius: 26px;
  background: linear-gradient(150deg, var(--zone-bg), rgba(255, 255, 255, .88) 78%);
  box-shadow: 0 8px 18px rgba(89, 70, 56, .05);
}

.home-action-zone.coral {
  --zone-bg: var(--coral-soft);
  --zone-line: rgba(238, 112, 95, .42);
  --zone-ink: #9e4b41;
  --zone-icon-bg: #fff7f5;
}

.home-action-zone.sky {
  --zone-bg: var(--sky-soft);
  --zone-line: rgba(77, 145, 189, .42);
  --zone-ink: #245f86;
  --zone-icon-bg: #f8fcff;
}

.home-action-zone.sage {
  --zone-bg: var(--sage-soft);
  --zone-line: rgba(111, 149, 84, .42);
  --zone-ink: #3f6f3d;
  --zone-icon-bg: #fbfff8;
}

.zone-head {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.zone-head h2 {
  margin: 0;
  color: var(--zone-ink);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 900;
}

.zone-art {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.tile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.home-action-tile {
  min-height: 96px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  padding: 11px 10px;
  color: var(--ink);
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, .92);
  border-radius: 20px;
  background: rgba(255, 255, 255, .88);
  box-shadow: inset 0 0 0 1px rgba(89, 70, 56, .05);
  transition: transform .15s ease, box-shadow .15s ease;
}

.home-action-tile:active {
  transform: translateY(1px) scale(.99);
}

.tile-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--zone-ink);
  background: var(--zone-icon-bg);
  font-size: 27px;
}

.tile-text {
  min-width: 0;
}

.tile-text strong,
.tile-text small {
  display: block;
}

.tile-text strong {
  font-size: 16px;
  line-height: 1.28;
  font-weight: 900;
}

.tile-text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 700;
}

.tile-arrow {
  color: var(--zone-ink);
  font-size: 22px;
}

.recent-changes-card,
.growth-strip,
.appointment-card {
  border: 1.5px solid rgba(217, 155, 37, .34);
  border-radius: 24px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 8px 20px rgba(89, 70, 56, .05);
}

.recent-changes-card {
  margin-top: 16px;
  padding: 13px 14px 10px;
}

.summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.summary-head h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 900;
}

.summary-head a {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.change-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.change-list li {
  min-height: 46px;
  display: grid;
  grid-template-columns: 34px 72px 1fr;
  align-items: center;
  gap: 9px;
  border-top: 1px solid rgba(232, 222, 209, .72);
}

.change-list li:first-child {
  border-top: 0;
}

.change-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.change-icon.skin { color: #ac5b4e; background: var(--coral-soft); }
.change-icon.lab { color: #245f86; background: var(--sky-soft); }
.change-icon.med { color: #90671b; background: var(--honey-soft); }

.change-list strong {
  font-size: 15px;
  font-weight: 900;
}

.change-list span:last-child {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
  text-align: right;
}

.growth-strip,
.appointment-card {
  display: grid;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.growth-strip {
  grid-template-columns: 48px auto 1fr auto 1fr 20px;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 12px;
  border-color: rgba(111, 149, 84, .36);
  background: linear-gradient(90deg, rgba(237, 246, 232, .92), rgba(255, 255, 255, .86));
}

.growth-art {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.growth-label {
  font-size: 18px;
  font-weight: 900;
}

.growth-strip strong {
  color: var(--mint);
  font-size: 27px;
  line-height: 1;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.growth-strip small {
  margin-left: 2px;
  color: var(--mint);
  font-size: 14px;
}

.growth-divider {
  color: rgba(73, 55, 47, .34);
  font-size: 22px;
  font-weight: 900;
}

.appointment-card {
  grid-template-columns: 48px 1fr 24px;
  gap: 11px;
  margin-top: 14px;
  padding: 12px 13px;
  border-color: rgba(217, 155, 37, .38);
  background: linear-gradient(90deg, rgba(255, 246, 217, .92), rgba(255, 255, 255, .88));
}

.appointment-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--honey);
  background: rgba(255, 255, 255, .84);
  font-size: 29px;
}

.appointment-card strong,
.appointment-card em {
  display: block;
}

.appointment-card strong {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 900;
}

.appointment-card em {
  margin-top: 4px;
  color: var(--coral);
  font-size: 28px;
  line-height: 1.08;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .01em;
}

.home-note {
  margin: 14px 2px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 390px) {
  .home-shell { padding-left: 14px; padding-right: 14px; }
  .home-header { grid-template-columns: minmax(105px, 1fr) auto 40px; gap: 6px; }
  .brand-lockup span { font-size: 23px; }
  .brand-lockup strong { font-size: 20px; }
  .brand-bird { width: 29px; height: 29px; }
  .patient-pill { grid-template-columns: 34px minmax(45px, 1fr); height: 54px; }
  .patient-avatar { width: 34px; height: 34px; }
  .patient-switch { grid-column: 1 / -1; justify-self: start; margin-left: 42px; margin-top: -5px; padding: 3px 7px 4px; font-size: 10px; }
  .home-intro h1 { font-size: 29px; }
  .tile-grid { gap: 8px; }
  .home-action-tile { grid-template-columns: 34px minmax(0, 1fr); min-height: 92px; padding: 10px 8px; }
  .tile-arrow { display: none; }
  .tile-text strong { font-size: 14px; }
  .tile-text small { font-size: 10px; }
  .appointment-card em { font-size: 24px; }
}

/* Canonical Alagille home rebuilt from UI Translation Kit references. */
.home-page {
  background:
    radial-gradient(circle at 14% -8%, rgba(238, 112, 95, .12), transparent 30%),
    radial-gradient(circle at 88% 0%, rgba(77, 145, 189, .12), transparent 32%),
    linear-gradient(180deg, #fffdf6 0%, #fbfff8 100%);
}

.home-page button {
  font: inherit;
  letter-spacing: 0;
}

.home-shell {
  width: min(100%, 430px);
  padding: 20px 14px 104px;
}

.home-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-inline: 2px;
}

.brand-lockup {
  display: grid;
  justify-items: start;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand-wordmark {
  display: block;
  width: 210px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}
.home-association-logo { display: block; width: min(290px, 100%); height: auto; object-fit: contain; }

.patient-selector-card {
  width: 100%;
  min-height: 82px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin: 0 0 12px;
  border: 1.5px solid rgba(151, 125, 95, .35);
  border-radius: 27px;
  background: linear-gradient(90deg, rgba(255, 253, 246, .96), rgba(255, 255, 255, .86));
  color: var(--ink);
  text-align: left;
  box-shadow: 0 10px 24px rgba(89, 70, 56, .07);
  cursor: pointer;
}

.home-recorder {
  margin: -4px 8px 12px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.patient-avatar-frame {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(237, 246, 232, .92), rgba(255, 255, 255, .86));
  box-shadow: inset 0 0 0 1px rgba(111, 149, 84, .18);
}

.patient-avatar {
  width: 54px;
  height: 54px;
  object-fit: contain;
  object-position: center bottom;
}

.patient-copy {
  min-width: 0;
  text-align: left;
}

.patient-meta {
  display: block;
  margin-bottom: 2px;
  color: var(--sage);
  font-size: 10.5px;
  line-height: 1.2;
  font-weight: 900;
}

.patient-copy strong,
.patient-copy small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.patient-copy strong {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
}

.patient-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.25;
  font-weight: 700;
}

.patient-switch {
  padding: 7px 10px 8px;
  border: 1.5px solid rgba(34, 140, 104, .42);
  border-radius: 999px;
  color: var(--mint);
  background: rgba(217, 245, 239, .88);
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.menu-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(89, 70, 56, .06);
  cursor: pointer;
}

.family-share-banner {
  width: 100%;
  min-height: 94px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 86px;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1.5px solid rgba(111, 149, 84, .34);
  border-radius: 27px;
  background: linear-gradient(90deg, rgba(237, 246, 232, .96), rgba(255, 255, 255, .76));
  color: var(--ink);
  text-align: left;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.share-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--mint);
  background: rgba(255, 255, 255, .86);
}

.family-share-banner p {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 900;
}

.family-share-banner small {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}

.share-family {
  width: 86px;
  height: 78px;
  object-fit: contain;
  object-position: center bottom;
  align-self: center;
  justify-self: end;
}

.home-intro {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 8px;
  margin: 2px 0 16px;
}

.home-intro h1 {
  margin: 0;
  text-align: center;
  font-size: 30px;
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: .01em;
}

.intro-leaf,
.intro-bird {
  width: 30px;
  height: 30px;
  object-fit: contain;
  opacity: .82;
}

.intro-leaf {
  transform: rotate(-10deg);
}

.home-main-areas {
  display: grid;
  gap: 14px;
}

.home-action-zone {
  margin: 0;
  padding: 15px;
  border: 1.5px solid var(--zone-line);
  border-radius: 28px;
  background: linear-gradient(145deg, var(--zone-bg), rgba(255, 255, 255, .9) 78%);
  box-shadow: 0 8px 18px rgba(89, 70, 56, .05);
}

.home-action-zone.note-zone {
  --zone-bg: var(--coral-soft);
  --zone-line: rgba(238, 112, 95, .42);
  --zone-ink: #9e4b41;
  --zone-icon-bg: #fff7f5;
}

.home-action-zone.lab-zone {
  --zone-bg: var(--sky-soft);
  --zone-line: rgba(77, 145, 189, .42);
  --zone-ink: #245f86;
  --zone-icon-bg: #f8fcff;
}

.home-action-zone.doctor-zone {
  --zone-bg: var(--sage-soft);
  --zone-line: rgba(111, 149, 84, .42);
  --zone-ink: #3f6f3d;
  --zone-icon-bg: #fbfff8;
}

.zone-head {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.zone-head h2 {
  margin: 0;
  color: var(--zone-ink);
  font-size: 23px;
  line-height: 1.25;
  font-weight: 900;
}

.zone-art {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.tile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.home-action-tile {
  min-height: 92px;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  text-align: left;
  border: 1.5px solid rgba(255, 255, 255, .94);
  border-radius: 21px;
  background: rgba(255, 255, 255, .9);
  box-shadow: inset 0 0 0 1px rgba(89, 70, 56, .05);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.home-action-tile:active {
  transform: translateY(1px) scale(.99);
}

.tile-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--zone-ink);
  background: var(--zone-icon-bg);
  font-size: 27px;
}

.tile-art {
  width: 80px;
  height: 76px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 3px 2px rgba(89, 70, 56, .05));
}

/* The source crop includes a sliver of the neighboring illustration at the top. */
img:is(.tile-art, .doctor-section-icon)[src$="/tile-notebook-pencil-v1.png"] {
  clip-path: inset(7% 0 0);
}

.tile-text {
  min-width: 0;
}

.tile-text strong,
.tile-text small {
  display: block;
}

.tile-text strong {
  font-size: 17px;
  line-height: 1.28;
  font-weight: 900;
}

.tile-text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
}

.tile-arrow {
  color: var(--zone-ink);
  font-size: 24px;
}

.recent-changes-card {
  margin-top: 16px;
  padding: 14px 15px 10px;
  border: 1.5px solid rgba(217, 155, 37, .34);
  border-radius: 25px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 8px 20px rgba(89, 70, 56, .05);
}

.summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.summary-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 900;
}

.summary-head button {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.change-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.change-list li {
  min-height: 49px;
  display: grid;
  grid-template-columns: 34px minmax(90px, .8fr) minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border-top: 1px solid rgba(232, 222, 209, .72);
}

.change-list li:first-child {
  border-top: 0;
}

.change-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.change-icon.skin { color: #ac5b4e; background: var(--coral-soft); }
.change-icon.lab { color: #245f86; background: var(--sky-soft); }
.change-icon.med { color: #90671b; background: var(--honey-soft); }

.change-list strong {
  font-size: 14px;
  font-weight: 900;
}

.change-list span:last-child {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
  text-align: right;
}

.home-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.summary-panel {
  min-height: 126px;
  display: grid;
  align-content: start;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border: 1.5px solid rgba(77, 145, 189, .34);
  border-radius: 22px;
  background: rgba(255, 255, 255, .88);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 8px 20px rgba(89, 70, 56, .05);
  cursor: pointer;
}

.growth-panel {
  background: linear-gradient(145deg, rgba(237, 246, 232, .96), rgba(255, 255, 255, .88));
}

.appointment-panel {
  border-color: rgba(217, 155, 37, .36);
  background: linear-gradient(145deg, rgba(255, 246, 217, .96), rgba(255, 255, 255, .88));
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--zone-ink, var(--ink));
  font-size: 17px;
  line-height: 1.25;
  font-weight: 900;
}

.panel-title img,
.panel-title .material-symbols-outlined {
  width: 32px;
  height: 32px;
  object-fit: contain;
  color: var(--honey);
}

.growth-panel .panel-title img {
  width: 42px;
  height: 44px;
}

.growth-values {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.summary-panel strong {
  color: var(--mint);
  font-size: 24px;
  line-height: 1.1;
  font-weight: 900;
}

.summary-panel strong small {
  margin-left: 2px;
  color: var(--mint);
  font-size: 12px;
}

.appointment-panel strong {
  color: var(--coral);
  font-size: 17px;
  line-height: 1.35;
}

.summary-panel small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  font-weight: 700;
}

.home-note {
  margin: 14px 2px 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
  font-weight: 700;
  text-align: center;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 430px);
  height: 76px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 8px 18px 11px;
  border-top: 1px solid rgba(232, 222, 209, .72);
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(14px);
}

.bottom-nav button {
  display: grid;
  place-items: center;
  gap: 2px;
  border: 0;
  background: transparent;
  color: #6f7773;
  text-decoration: none;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 850;
  cursor: pointer;
}

.bottom-nav button.active {
  color: var(--mint);
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(73, 55, 47, .18);
  opacity: 0;
  transition: opacity .18s ease;
}

.sheet-backdrop.open {
  opacity: 1;
}

.feature-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 31;
  width: min(100%, 430px);
  max-height: calc(100dvh - 12px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  transform: translate(-50%, 110%);
  padding: 20px 20px calc(22px + env(safe-area-inset-bottom));
  border: 1px solid rgba(232, 222, 209, .82);
  border-radius: 28px 28px 0 0;
  background: rgba(255, 253, 246, .98);
  box-shadow: 0 -18px 44px rgba(73, 55, 47, .18);
  transition: transform .18s ease;
}

.feature-sheet.open {
  transform: translate(-50%, 0);
}

.sheet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(237, 246, 232, .92);
  color: var(--ink);
  cursor: pointer;
}

.sheet-kicker {
  margin: 0 40px 6px 0;
  color: var(--mint);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 900;
}

.feature-sheet h2 {
  margin: 0 40px 8px 0;
  color: var(--ink);
  font-size: 23px;
  line-height: 1.25;
  font-weight: 900;
}

.feature-sheet p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
  font-weight: 700;
}

.sheet-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.sheet-tags span {
  padding: 6px 10px;
  border: 1px solid rgba(111, 149, 84, .28);
  border-radius: 999px;
  background: rgba(237, 246, 232, .84);
  color: var(--sage);
  font-size: 12px;
  font-weight: 900;
}

.sheet-content:empty {
  display: none;
}

.sheet-loading {
  margin-top: 16px !important;
  text-align: center;
}

.patient-option-list {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.patient-option {
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 1.5px solid rgba(232, 222, 209, .9);
  border-radius: 18px;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.patient-option[aria-pressed="true"] {
  border-color: rgba(217, 155, 37, .64);
  background: rgba(255, 246, 213, .78);
}

.patient-option img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 15px;
  background: rgba(237, 246, 232, .72);
}

.patient-option > span:not(.patient-option-check) {
  display: grid;
  gap: 2px;
}

.patient-option strong {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
}

.patient-option small {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.patient-option-check {
  color: var(--honey);
  font-size: 25px;
}

.patient-add-button {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 11px;
  border: 1.5px dashed rgba(217, 155, 37, .62);
  border-radius: 16px;
  background: rgba(255, 253, 246, .72);
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.patient-selector-state {
  padding: 18px 14px;
  border: 1.5px solid rgba(34, 140, 104, .2);
  border-radius: 18px;
  color: var(--ink-soft);
  background: rgba(240, 251, 247, .72);
  text-align: center;
}

.patient-selector-state.is-error {
  border-color: rgba(177, 84, 72, .2);
  background: #fffafa;
}

.patient-selector-state > .material-symbols-outlined {
  display: block;
  margin: 0 auto 7px;
  color: var(--mint);
  font-size: 31px;
}

.patient-selector-state.is-error > .material-symbols-outlined {
  color: var(--coral);
}

.patient-selector-state strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.patient-selector-state p {
  margin: 5px auto 0;
  max-width: 300px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.65;
  font-weight: 760;
}

.patient-selector-state-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 14px;
}

.patient-selector-state-actions button {
  min-height: 44px;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  color: var(--ink-soft);
  background: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
}

.patient-selector-state-actions button:first-child {
  border-color: var(--mint);
  color: #fff;
  background: var(--mint);
}

.patient-selector-state-actions button:focus-visible {
  outline: 3px solid rgba(75, 167, 220, .42);
  outline-offset: 2px;
}

.patient-add-another {
  min-height: 46px;
  margin-top: 0;
  border-color: rgba(111, 149, 84, .42);
  color: #60764f;
  background: rgba(237, 246, 232, .58);
  font-size: 12px;
}

.sheet-completion-actions {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.sheet-completion-actions > button {
  width: 100%;
}

.patient-saved-summary {
  min-height: 92px;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 15px 0 4px;
  padding: 13px;
  border: 1.5px solid rgba(111, 149, 84, .3);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(237, 246, 232, .9), rgba(255, 253, 246, .94));
}

.patient-saved-summary img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 6px 15px rgba(86, 107, 72, .11);
}

.patient-saved-summary > span,
.patient-saved-summary small,
.patient-saved-summary strong,
.patient-saved-summary span span {
  min-width: 0;
  display: block;
}

.patient-saved-summary small {
  margin-bottom: 2px;
  color: var(--sage);
  font-size: 10px;
  line-height: 1.4;
  font-weight: 900;
}

.patient-saved-summary strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.45;
}

.patient-saved-summary span span {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
  font-weight: 750;
}

.first-welcome-summary {
  margin-top: 4px;
}

.first-welcome-guide {
  min-height: 78px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 13px;
  border: 1.5px solid rgba(34, 140, 104, .24);
  border-radius: 17px;
  color: var(--ink-soft);
  background: linear-gradient(135deg, rgba(240, 251, 247, .94), rgba(255, 250, 241, .9));
}

.first-welcome-guide > .material-symbols-outlined {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: var(--mint);
  font-size: 24px;
  box-shadow: 0 7px 15px rgba(34, 140, 104, .16);
}

.first-welcome-guide strong,
.first-welcome-guide small {
  display: block;
}

.first-welcome-guide strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.first-welcome-guide small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.55;
  font-weight: 750;
}

.patient-add-form {
  display: grid;
  gap: 13px;
  margin-top: 16px;
}

.patient-add-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.patient-form-help {
  margin: -6px 1px 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.55;
  font-weight: 750;
}

.patient-profile-more {
  overflow: hidden;
  border: 1.5px solid rgba(142, 219, 210, .62);
  border-radius: 16px;
  background: rgba(255, 255, 255, .9);
}

.patient-profile-more summary {
  min-height: 60px;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 22px;
  gap: 9px;
  align-items: center;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.patient-profile-more summary::-webkit-details-marker {
  display: none;
}

.patient-profile-more summary > .material-symbols-outlined:first-child {
  color: var(--mint);
  font-size: 23px;
}

.patient-profile-more summary strong,
.patient-profile-more summary small {
  display: block;
}

.patient-profile-more summary strong {
  font-size: 13px;
  line-height: 1.35;
}

.patient-profile-more summary small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.45;
  font-weight: 750;
}

.patient-profile-more-indicator {
  color: #9a8c81;
  transition: transform .18s ease;
}

.patient-profile-more[open] .patient-profile-more-indicator {
  transform: rotate(180deg);
}

.patient-profile-more-body {
  padding: 13px 12px 14px;
  display: grid;
  gap: 13px;
  border-top: 1px solid rgba(232, 222, 209, .76);
}

.patient-profile-more summary:focus-visible {
  outline: 3px solid rgba(34, 140, 104, .24);
  outline-offset: -3px;
}

.patient-add-form .optional-label,
.avatar-choice-fieldset .optional-label {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.patient-add-form input {
  min-height: 48px;
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid rgba(111, 149, 84, .34);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.sheet-primary-action {
  min-height: 50px;
  border: 0;
  border-radius: 15px;
  background: var(--mint);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.sheet-primary-action:disabled {
  opacity: .55;
  cursor: wait;
}

.patient-add-form .form-status {
  min-height: 20px;
  color: var(--coral);
  font-size: 12px;
  text-align: center;
}

.avatar-choice-fieldset,
.permission-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.avatar-choice-fieldset legend,
.permission-fieldset legend {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.avatar-choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.avatar-choice-grid label {
  position: relative;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 7px 4px;
  border: 1.5px solid rgba(232, 222, 209, .92);
  border-radius: 14px;
  background: rgba(255, 255, 255, .88);
  cursor: pointer;
}

.avatar-choice-grid label:has(input:checked) {
  border-color: rgba(217, 155, 37, .68);
  background: rgba(255, 246, 213, .78);
}

.avatar-choice-grid input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.avatar-choice-grid img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 13px;
}

.avatar-choice-grid span {
  max-width: 100%;
  font-size: 10px;
  line-height: 1.25;
  text-align: center;
}

.family-member-list {
  display: grid;
  gap: 9px;
  margin-top: 7px;
}
.family-share-summary { min-height: 72px; display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 10px; margin-top: 14px; padding: 11px 12px; border: 1.5px solid rgba(34, 140, 104, .24); border-radius: 16px; background: rgba(237, 246, 232, .72); }
.family-share-summary > .material-symbols-outlined { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--sage); }
.family-share-summary strong,.family-share-summary small { display: block; }
.family-share-summary strong { color: var(--ink); font-size: 14px; }
.family-share-summary small { margin-top: 3px; color: var(--ink-soft); font-size: 10px; line-height: 1.5; font-weight: 750; }
.family-share-primary-action { grid-template-columns: 30px minmax(0, 1fr) 22px; justify-content: stretch; gap: 9px; margin-top: 11px; padding: 11px 13px; text-align: left; }
.family-share-primary-action > .material-symbols-outlined:first-child { font-size: 23px; }
.family-share-primary-action > span:nth-child(2) { min-width: 0; }
.family-share-primary-action strong,.family-share-primary-action small { display: block; }
.family-share-primary-action strong { font-size: 14px; }
.family-share-primary-action small { margin-top: 2px; color: rgba(255,255,255,.84); font-size: 10px; line-height: 1.45; }
.family-share-primary-action > .material-symbols-outlined:last-child { justify-self: end; font-size: 20px; }
.family-share-section-heading { display: grid; gap: 2px; margin: 15px 2px 0; }
.family-share-section-heading h3 { margin: 0; color: var(--ink); font-size: 14px; }
.family-share-section-heading p { margin: 0; color: var(--ink-soft); font-size: 10px; line-height: 1.5; font-weight: 750; }
.family-share-demo-note { display: flex; align-items: flex-start; gap: 8px; margin: 11px 0 0; padding: 11px 12px; border-radius: 13px; color: var(--ink-soft); background: #f4f7f4; font-size: 10px; line-height: 1.55; font-weight: 750; }
.family-share-demo-note .material-symbols-outlined { flex: 0 0 auto; color: var(--mint); font-size: 18px; }
.family-joined-summary { min-height: 88px; display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 11px; margin: 14px 0 4px; padding: 13px; border: 1.5px solid rgba(34, 140, 104, .26); border-radius: 18px; background: linear-gradient(135deg, rgba(237, 246, 232, .88), rgba(240, 251, 247, .92)); }
.family-joined-summary > .material-symbols-outlined { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: var(--sage); font-size: 25px; box-shadow: 0 7px 15px rgba(111, 149, 84, .18); }
.family-joined-summary strong,.family-joined-summary small { display: block; }
.family-joined-summary strong { color: var(--ink); font-size: 15px; line-height: 1.45; }
.family-joined-summary small { margin-top: 3px; color: var(--ink-soft); font-size: 11px; line-height: 1.6; font-weight: 750; }
.patient-permission-note { display: flex; align-items: flex-start; gap: 9px; margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: #f4f7f4; color: var(--ink-soft); font-size: 12px; line-height: 1.55; font-weight: 750; }
.patient-permission-note .material-symbols-outlined { flex: 0 0 auto; margin-top: 1px; color: var(--mint); font-size: 19px; }
.family-invitation-heading { margin: 16px 0 7px; color: var(--ink); font-size: 14px; }
.family-invitation-list { display: grid; gap: 7px; }
.family-invitation-history { margin-top: 12px; border: 1px solid #e6ded3; border-radius: 14px; background: rgba(255,255,255,.72); overflow: hidden; }
.family-invitation-history > summary { min-height: 46px; display: flex; align-items: center; padding: 9px 12px; list-style: none; color: var(--ink-soft); font-size: 11px; font-weight: 900; cursor: pointer; }
.family-invitation-history > summary::-webkit-details-marker { display: none; }
.family-invitation-history > summary::after { content: "expand_more"; margin-left: auto; color: var(--mint); font-family: "Material Symbols Outlined"; font-size: 20px; transition: transform .2s ease; }
.family-invitation-history[open] > summary::after { transform: rotate(180deg); }
.family-invitation-history .family-invitation-list { padding: 0 9px 9px; }
.family-invitation-load-note { display: grid; gap: 8px; margin-top: 12px; padding: 11px 12px; border: 1px solid #eadfcb; border-radius: 14px; color: #786957; background: #fffaf0; font-size: 10px; line-height: 1.55; font-weight: 800; }
.family-invitation-load-note button { min-height: 38px; border: 1px solid #d9c9ad; border-radius: 11px; color: #7a6545; background: #fff; font: inherit; font-size: 10px; font-weight: 900; }
.family-share-load-error { padding: 18px 14px; border: 1.5px solid rgba(177,84,72,.2); border-radius: 18px; color: var(--ink-soft); background: #fffafa; text-align: center; }
.family-share-load-error > .material-symbols-outlined { display: block; margin: 0 auto 7px; color: var(--coral); font-size: 31px; }
.family-share-load-error strong { display: block; color: var(--ink); font-size: 15px; }
.family-share-load-error p { margin: 5px 0 0; font-size: 11px; line-height: 1.65; font-weight: 760; }
.family-share-load-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 14px; }
.family-share-load-actions button { min-height: 44px; border: 1.5px solid var(--line); border-radius: 13px; color: var(--ink-soft); background: #fff; font: inherit; font-size: 11px; font-weight: 900; }
.family-share-load-actions button:first-child { border-color: var(--mint); color: #fff; background: var(--mint); }
.family-invitation-history > summary:focus-visible,.family-invitation-load-note button:focus-visible,.family-share-load-actions button:focus-visible { outline: 3px solid rgba(75,167,220,.42); outline-offset: 2px; }
.family-invitation-row { min-height: 58px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid #e6ded3; border-radius: 8px; background: #fff; }
.family-invitation-row strong, .family-invitation-row small { display: block; }
.family-invitation-row strong { font-size: 13px; }
.family-invitation-row small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.family-invitation-row button { min-height: 36px; padding: 6px 9px; border: 1px solid #e0c8c4; border-radius: 8px; color: #a34f48; background: #fff; font: inherit; font-size: 11px; font-weight: 900; }

.family-member-row {
  min-height: 76px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border: 1.5px solid rgba(232, 222, 209, .9);
  border-radius: 18px;
  background: rgba(255, 255, 255, .9);
}

.family-member-row img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 15px;
  background: rgba(237, 246, 232, .7);
}

.family-member-row > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.family-member-row strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.family-member-row small {
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 700;
}

.member-role-badge {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(237, 246, 232, .92);
  color: var(--sage);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.family-member-controls {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.family-member-manage {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 8px;
  border: 1px solid rgba(34, 140, 104, .28);
  border-radius: 10px;
  color: var(--mint);
  background: #fff;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
}

.family-member-manage .material-symbols-outlined {
  font-size: 16px;
}

.family-member-management-form {
  display: grid;
  gap: 11px;
  margin-top: 14px;
}

.family-member-management-summary {
  min-height: 76px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border: 1.5px solid rgba(111, 149, 84, .28);
  border-radius: 17px;
  background: rgba(237, 246, 232, .66);
}

.family-member-management-summary.is-complete {
  margin-top: 14px;
}

.family-member-management-summary img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 15px;
  background: #fff;
}

.family-member-management-summary strong,
.family-member-management-summary small {
  display: block;
}

.family-member-management-summary strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 16px;
}

.family-member-management-summary small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
  font-weight: 750;
}

.family-member-status {
  min-height: 20px;
  margin: -2px 0 0 !important;
  color: var(--coral) !important;
  text-align: center;
  font-size: 11px !important;
}

.family-member-danger {
  margin-top: 4px;
  border: 1px solid rgba(177, 84, 72, .2);
  border-radius: 14px;
  background: #fffafa;
  overflow: hidden;
}

.family-member-danger summary {
  min-height: 45px;
  display: flex;
  align-items: center;
  padding: 9px 12px;
  list-style: none;
  color: #9b5148;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.family-member-danger summary::-webkit-details-marker {
  display: none;
}

.family-member-danger p {
  margin: 0 !important;
  padding: 0 12px 9px;
  color: #7c6863 !important;
  font-size: 10px !important;
  line-height: 1.6 !important;
}

.family-member-danger button {
  width: calc(100% - 24px);
  min-height: 42px;
  margin: 0 12px 12px;
  border: 1px solid rgba(177, 84, 72, .35);
  border-radius: 12px;
  color: #a04f47;
  background: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
}

.family-invite-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.invite-form-hint {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.65;
}

.family-invite-form.is-created .permission-fieldset,
.family-invite-form.is-created .invite-form-hint,
.family-invite-form.is-created > .sheet-primary-action {
  display: none;
}

.permission-fieldset {
  display: grid;
  gap: 9px;
}

.permission-option {
  position: relative;
  min-height: 68px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid rgba(232, 222, 209, .94);
  border-radius: 16px;
  background: rgba(255, 255, 255, .9);
  cursor: pointer;
}

.permission-option:has(input:checked) {
  border-color: rgba(34, 140, 104, .66);
  background: rgba(237, 246, 232, .78);
}

.permission-option input {
  position: absolute;
  opacity: 0;
}

.permission-option > .material-symbols-outlined {
  color: var(--mint);
  font-size: 30px;
}

.permission-option > span:last-child {
  display: grid;
  gap: 2px;
}

.permission-option strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.permission-option small {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.sheet-secondary-action,
.invite-copy-button,
.invite-share-button {
  min-height: 44px;
  border: 1.5px solid rgba(34, 140, 104, .32);
  border-radius: 14px;
  background: rgba(255, 255, 255, .86);
  color: var(--mint);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.invite-copy-button { width: 100%; min-height: 58px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0 !important; color: #fff !important; background: var(--mint) !important; box-shadow: 0 8px 20px rgba(34, 140, 104, .18); font-size: 15px; }
.invite-copy-button .material-symbols-outlined { font-size: 20px; }
.invite-copy-button.is-copied { background: var(--sage) !important; }
.invite-share-button { width: 100%; min-height: 58px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; color: #fff; background: var(--mint); box-shadow: 0 8px 20px rgba(34, 140, 104, .18); font: inherit; font-size: 14px; font-weight: 900; }
.invite-share-button + .invite-copy-button { min-height: 46px; border: 1.5px solid rgba(34, 140, 104, .32) !important; color: var(--mint) !important; background: #fff !important; box-shadow: none; font-size: 12px; }

.invite-result {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1.5px solid rgba(34, 140, 104, .24);
  border-radius: 16px;
  background: rgba(237, 246, 232, .66);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.invite-result:empty {
  display: none;
}

.invite-result-title {
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.invite-result p {
  margin: 0 0 3px;
}

@media (max-width: 430px) {
  .home-intro {
    grid-template-columns: 20px minmax(0, 1fr) 24px;
    gap: 4px;
  }

  .home-intro h1 {
    font-size: 27px;
    white-space: nowrap;
  }

  .intro-leaf,
  .intro-bird {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 390px) {
  .home-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .home-header {
    grid-template-columns: minmax(0, 1fr) 40px;
    gap: 10px;
  }

  .brand-wordmark {
    width: 200px;
    height: 48px;
  }

  .patient-selector-card {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    min-height: 76px;
    gap: 10px;
    padding: 9px 10px;
  }

  .patient-avatar-frame {
    width: 52px;
    height: 52px;
    border-radius: 18px;
  }

  .patient-avatar {
    width: 49px;
    height: 49px;
  }

  .patient-switch {
    grid-column: auto;
    justify-self: auto;
    margin-top: 0;
    padding: 6px 8px 7px;
    font-size: 10px;
  }

  .home-intro h1 {
    font-size: 27px;
  }

  .tile-grid,
  .home-summary-grid {
    gap: 8px;
  }

  .home-action-tile {
    grid-template-columns: 70px minmax(0, 1fr) 20px;
    min-height: 86px;
    padding: 10px 11px;
    gap: 11px;
  }

  .tile-art {
    width: 68px;
    height: 64px;
  }

  .tile-arrow {
    display: inline-block;
    font-size: 22px;
  }

  .tile-text strong {
    font-size: 15.5px;
  }

  .tile-text small {
    font-size: 11.5px;
  }

  .summary-panel {
    min-height: 120px;
  }
}
.sheet-menu-actions {
  display: grid;
  gap: 12px;
}

.account-role-card {
  min-height: 86px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  border: 1.5px solid rgba(34, 140, 104, .22);
  border-radius: 17px;
  background: rgba(237, 246, 232, .68);
}

.account-role-card > .material-symbols-outlined {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: var(--sage);
  font-size: 24px;
}

.account-role-card[data-account-role="viewer"] {
  border-color: rgba(75, 167, 220, .22);
  background: rgba(236, 247, 253, .72);
}

.account-role-card[data-account-role="viewer"] > .material-symbols-outlined {
  background: var(--sky);
}

.account-role-card[data-account-role="unavailable"] {
  border-color: rgba(177, 84, 72, .2);
  background: #fffafa;
}

.account-role-card[data-account-role="unavailable"] > .material-symbols-outlined {
  background: var(--coral);
}

.account-role-card small,.account-role-card strong,.account-role-card span span {
  display: block;
}

.account-role-card small {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 800;
}

.account-role-card strong {
  margin-top: 1px;
  color: var(--ink);
  font-size: 15px;
}

.account-role-card span span {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.45;
  font-weight: 720;
}

.account-primary-action {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 22px;
  align-items: center;
  justify-content: stretch;
  gap: 9px;
  padding: 11px 13px;
  text-align: left;
}

.account-primary-action > span:nth-child(2) {
  min-width: 0;
}

.account-primary-action strong,.account-primary-action small {
  display: block;
}

.account-primary-action strong {
  font-size: 14px;
}

.account-primary-action small {
  margin-top: 2px;
  color: rgba(255,255,255,.84);
  font-size: 10px;
  line-height: 1.45;
}

.account-primary-action > .material-symbols-outlined:last-child {
  justify-self: end;
  font-size: 20px;
}

.account-menu-group {
  display: grid;
  gap: 6px;
}

.account-menu-group h3 {
  margin: 0 2px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 900;
}

.account-menu-list {
  display: grid;
  border: 1.5px solid rgba(232, 222, 209, .94);
  border-radius: 15px;
  background: rgba(255,255,255,.82);
  overflow: hidden;
}

.account-menu-item {
  min-height: 58px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-bottom: 1px solid rgba(232, 222, 209, .82);
  color: var(--ink);
  background: transparent;
  font: inherit;
  text-align: left;
}

.account-menu-item:last-child {
  border-bottom: 0;
}

.account-menu-item > .material-symbols-outlined:first-child {
  color: var(--mint);
  font-size: 22px;
}

.account-menu-item-copy {
  min-width: 0;
}

.account-menu-item-copy strong,.account-menu-item-copy small {
  display: block;
}

.account-menu-item-copy strong {
  font-size: 12px;
}

.account-menu-item-copy small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.4;
  font-weight: 720;
}

.account-menu-item-arrow {
  justify-self: end;
  color: #b9aa98;
  font-size: 19px;
}

.account-logout-action {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  border: 1px solid #e5d8d4;
  border-radius: 13px;
  color: #8f655e;
  background: rgba(255,255,255,.62);
  font: inherit;
  font-size: 11px;
  font-weight: 850;
}

.account-logout-action .material-symbols-outlined {
  font-size: 18px;
}

.account-menu-item:focus-visible,.account-logout-action:focus-visible {
  outline: 3px solid rgba(75,167,220,.42);
  outline-offset: 2px;
}

.home-order-editor {
  display: grid;
  gap: 10px;
}

.home-order-list {
  display: grid;
  gap: 8px;
  margin-bottom: 2px;
}

.home-order-heading {
  display: grid;
  gap: 2px;
  margin: 2px 2px 0;
}

.home-order-heading strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.home-order-heading small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  font-weight: 760;
}

.home-feature-order-heading {
  margin-top: 9px;
}

.home-feature-order-groups {
  display: grid;
  gap: 10px;
}

.home-feature-order-group {
  padding: 11px;
  border: 1px solid rgba(232, 222, 209, .88);
  border-radius: 16px;
  background: rgba(249, 247, 243, .78);
}

.home-feature-order-group h3 {
  margin: 0 2px 8px;
  color: #5f554c;
  font-size: 12px;
  font-weight: 900;
}

.home-feature-order-list {
  gap: 6px;
}

.home-order-row {
  min-height: 68px;
  padding: 9px 8px 9px 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 9px;
  align-items: center;
  background: rgba(255, 255, 255, .92);
}

.home-feature-order-row {
  min-height: 62px;
  padding-left: 8px;
  border-color: rgba(226, 218, 208, .88);
}

.home-feature-order-row .home-order-number {
  color: #397565;
  background: #e8f5ef;
}

.home-order-number {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--mint);
  font-size: 12px;
  font-weight: 900;
}

.home-order-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.home-order-copy strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.home-order-copy small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  font-weight: 760;
}

.home-order-controls {
  display: flex;
  gap: 4px;
}

.home-order-controls button {
  width: 38px;
  height: 40px;
  padding: 0;
  border: 1.5px solid rgba(34, 140, 104, .25);
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--mint);
  background: #fff;
}

.home-order-controls button:disabled {
  border-color: rgba(215, 208, 199, .7);
  color: #c6beb6;
  background: #f7f5f2;
}

.home-order-controls .material-symbols-outlined {
  font-size: 19px;
}

@media (max-width: 390px) {
  .home-order-row {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .home-order-controls {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

.record-attribution {
  display: block;
  margin-top: 5px;
  color: #52766d;
  font-size: 10px;
  line-height: 1.5;
  font-weight: 850;
  overflow-wrap: anywhere;
}

/* Put the first three purposes ahead of the feature catalog. */
.home-shell { display: flex; flex-direction: column; }
.home-benefit-hero { padding: 15px; }
.recent-changes-card { margin-top: 2px; }
.home-more-tools { margin-top: 16px; }
.family-share-banner { min-height: 62px; grid-template-columns: 42px minmax(0, 1fr); margin: 16px 0 0; }
.family-share-banner .share-family { display: none; }
.family-share-banner p { font-size: 16px; }
.home-association-logo { width: min(220px, 100%); }
.home-benefit-hero h1 { font-size: 18px; line-height: 1.3; margin-bottom: 12px; }
.home-purpose-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 9px; margin-top: 10px; }
.home-purpose-actions button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 8px; border: 1.5px solid rgba(34, 140, 104, .4); border-radius: 15px; color: #176c61; background: #fff; font-size: 15px; font-weight: 900; cursor: pointer; }
.home-purpose-actions .material-symbols-outlined { font-size: 21px; }
.patient-copy strong, .patient-copy small { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.yorisoi-demo-unavailable [data-public-demo-control] { display: none !important; }
.bottom-nav > a, .bottom-nav > button { min-width: 0; padding-inline: 0; }
.bottom-nav > a > span:last-child, .bottom-nav > button > span:last-child { white-space: nowrap; letter-spacing: 0; font-size: 12px; }
#demo-doctor-preview article span { white-space: pre-line; }
