:root {
  color-scheme: light;
  --ink: #17211b;
  --muted: #56645c;
  --line: #d6e0da;
  --surface: #ffffff;
  --canvas: #f3f7f9;
  --brand: #128f85;
  --brand-dark: #075c54;
  --brand-soft: #e1f6f3;
  --warning: #8a4b08;
  --warning-soft: #fff4db;
  --danger: #a32020;
  --danger-soft: #fde8e8;
  --info: #174f86;
  --info-soft: #e8f2fb;
  --shadow: 0 8px 24px rgba(22, 63, 42, 0.08);
  --radius: 18px;
  --base-size: 17px;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--base-size);
}

:root[data-text-size="large"] {
  --base-size: 20px;
}

:root[data-view-mode="simple"] {
  --base-size: 18px;
  --radius: 22px;
}

:root[data-view-mode="simple"][data-text-size="large"] {
  --base-size: 21px;
}

* {
  box-sizing: border-box;
}

.caremo-icon {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-inline-icon,
.body-inline-icon,
.status-chevron {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  vertical-align: -0.2em;
}

.body-inline-icon {
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.24em;
}

.status-chevron {
  width: 1em;
  height: 1em;
  vertical-align: -0.18em;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  /* `hidden` creates a scroll container in Chromium and breaks the sticky
     app header. `clip` still prevents accidental sideways scrolling without
     taking the header out of the viewport while the user scrolls. */
  overflow-x: clip;
  background: var(--canvas);
  color: var(--ink);
}

body {
  font-size: 1rem;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button,
.button {
  min-height: 54px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 4px solid #f0b429;
  outline-offset: 3px;
}

a {
  color: var(--brand-dark);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
p,
label,
legend,
button,
a,
summary,
strong,
small {
  overflow-wrap: break-word;
  word-break: keep-all;
}

h1,
h2,
h3,
.screen-heading .subtle {
  text-wrap: balance;
}

p,
label,
summary {
  text-wrap: pretty;
}

h1 {
  font-size: clamp(1.7rem, 7vw, 2.15rem);
  line-height: 1.25;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
  line-height: 1.4;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: #000;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

#app {
  min-height: 100dvh;
}

.app-shell {
  width: 100%;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--canvas);
}

.main-content:focus {
  outline: none;
}

.app-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) 20px 12px;
  border-bottom: 1px solid rgba(214, 224, 218, 0.9);
  background: #fff;
}

/* Cross-origin map frames can corrupt a sticky compositor layer in older Android WebViews. */
.app-shell:has(.map-preview-frame) .app-header { position: relative; }

.brand-lockup {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  color: var(--brand-dark);
  font-size: 1.15rem;
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 14px;
  background: var(--brand-soft);
  font-size: 1.25rem;
}

.brand-mark img {
  width: 25px;
  height: 25px;
}

.header-status {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 44px;
  max-width: none;
  align-items: center;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  text-align: right;
  text-decoration: none;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.header-emergency,
.header-shop {
  display: inline-grid;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  border: 1px solid #e2e8e5;
  border-radius: 14px;
  background: #fff;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
}

.header-shop svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.header-emergency {
  border-color: #f2b9b7;
  background: #fff2f1;
  color: #9f2323;
}

.app-update-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid #dfca8d;
  background: #fff7d9;
  color: #58400d;
}

.app-update-banner > div {
  display: grid;
  gap: 2px;
}

.app-update-banner span {
  font-size: 0.7rem;
}

.app-update-banner button {
  width: auto;
  min-height: 44px;
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 0;
  border-radius: 12px;
  background: #664b13;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.main-content {
  width: 100%;
  padding: 20px 18px calc(126px + env(safe-area-inset-bottom));
}

.screen-heading {
  margin-bottom: 18px;
}

.eyebrow {
  margin-bottom: 5px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.subtle {
  color: var(--muted);
}

.small {
  font-size: 0.78rem;
}

.stack {
  display: grid;
  gap: 16px;
}

/* Grid items otherwise keep their max-content minimum. The horizontally
   scrolling discovery rail can then widen every home card past the viewport. */
.stack > * {
  min-width: 0;
}

.stack-tight {
  display: grid;
  gap: 10px;
}

.card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.compact-card {
  box-shadow: none;
}

.card-flat {
  box-shadow: none;
}

.card-brand {
  border-color: #b8d9c7;
  background: linear-gradient(145deg, #f9fffb, var(--brand-soft));
}

.card-danger {
  border-color: #efb7b7;
  background: var(--danger-soft);
}

.card-warning {
  border-color: #efd59f;
  background: var(--warning-soft);
}

.card-info {
  border-color: #bdd6eb;
  background: var(--info-soft);
}

.status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status-line > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 6px 2px;
}

.status-badge {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef2ef;
  color: #34463b;
  font-size: 0.72rem;
  font-weight: 850;
  white-space: nowrap;
}

.status-badge[data-tone="ok"] {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.status-badge[data-tone="help"] {
  background: var(--danger-soft);
  color: var(--danger);
}

.status-badge[data-tone="pending"] {
  background: var(--warning-soft);
  color: var(--warning);
}

.progress-track {
  height: 12px;
  margin: 14px 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5ebe7;
}

.progress-value {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transition: width 180ms ease;
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.action-button,
.primary-button,
.secondary-button,
.danger-button,
.text-button {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 16px;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 850;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}

.primary-button {
  background: var(--brand-dark);
  color: #fff;
  box-shadow: 0 7px 16px rgba(11, 69, 44, 0.18);
}

.secondary-button {
  border: 2px solid var(--brand);
  background: #fff;
  color: var(--brand-dark);
}

.danger-button {
  background: var(--danger);
  color: #fff;
}

.text-button {
  min-height: 48px;
  padding: 10px;
  background: transparent;
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.action-button {
  min-height: 74px;
  flex-direction: column;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--ink);
}

:root[data-view-mode="simple"] .action-button {
  min-height: 104px;
}

.action-symbol {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 1rem;
  font-weight: 900;
}

.action-button[data-tone="danger"] .action-symbol {
  background: var(--danger-soft);
  color: var(--danger);
}

.action-button[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.action-button[data-tone="danger"] {
  border-color: #efb7b7;
  color: var(--danger);
}

.action-icon {
  font-size: 1.7rem;
  line-height: 1;
}

.button-row {
  display: flex;
  gap: 10px;
}

.button-row > * {
  flex: 1;
}

button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.48;
}

.form-group {
  display: grid;
  gap: 7px;
}

.form-group label,
.fieldset-label {
  color: #26342b;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border: 2px solid #aebcb3;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
}

select {
  padding-right: 48px;
  appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='m5.5 7.5 4.5 4.5 4.5-4.5' stroke='%23075c54' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 20px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.visually-hidden:focus-visible + label,
label:has(+ .visually-hidden:focus-visible) {
  outline: 4px solid #f0b429;
  outline-offset: 3px;
}

input::placeholder,
textarea::placeholder {
  color: #68776e;
}

.choice-list {
  display: grid;
  gap: 10px;
  padding: 0;
  border: 0;
  margin: 0;
}

.choice-card {
  position: relative;
  display: flex;
  min-height: 92px;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: #fff;
  cursor: pointer;
}

.choice-card:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.choice-card:has(input:focus-visible) {
  outline: 4px solid #f0b429;
  outline-offset: 3px;
}

.choice-icon {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  place-items: center;
  border-radius: 16px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.74rem;
  font-weight: 900;
}

.choice-icon .caremo-icon {
  width: 28px;
  height: 28px;
}

.choice-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  opacity: 0;
}

.choice-copy {
  display: grid;
  gap: 2px;
}

.choice-copy strong {
  font-size: 1.08rem;
}

.check-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
}

.check-row input {
  width: 24px;
  height: 24px;
  min-height: 24px;
  margin-top: 2px;
  accent-color: var(--brand);
}

.medication-item,
.request-item {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
}

.medication-item header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.time-label {
  color: var(--brand-dark);
  font-size: 1.25rem;
  font-weight: 900;
  white-space: nowrap;
}

.empty-state {
  padding: 28px 18px;
  border: 2px dashed #bdc9c1;
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.invite-code {
  padding: 14px;
  border: 2px dashed var(--brand);
  border-radius: 16px;
  background: #fff;
  color: var(--brand-dark);
  font-size: 1.45rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-align: center;
  user-select: all;
}

.notice {
  padding: 13px 15px;
  border-left: 5px solid var(--info);
  border-radius: 10px;
  background: var(--info-soft);
  color: #163d62;
}

.notice[data-tone="warning"] {
  border-left-color: var(--warning);
  background: var(--warning-soft);
  color: #683a08;
}

.notice[data-tone="danger"] {
  border-left-color: var(--danger);
  background: var(--danger-soft);
  color: #761919;
}

.bottom-nav {
  position: fixed;
  z-index: 30;
  right: auto;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 50%;
  display: grid;
  grid-template-columns: repeat(var(--nav-count, 5), 1fr);
  gap: 2px;
  width: calc(100% - 28px);
  max-width: 512px;
  margin: 0 auto;
  padding: 8px;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(22, 63, 42, 0.16);
}

.nav-link {
  display: flex;
  min-height: 62px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 18px;
  color: #4e5d54;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.nav-link[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.nav-icon {
  font-size: 1.18rem;
  line-height: 1;
}

.nav-icon svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.85;
}

.home-section {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.section-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.section-heading-row h2,
.section-heading-row .eyebrow {
  margin-bottom: 0;
}

.section-heading-row > a {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  padding: 6px 2px;
  font-size: 0.82rem;
  font-weight: 800;
}

.service-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 2px;
  overflow: visible;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.service-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto 1fr auto;
  align-content: stretch;
  gap: 12px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #cfe1d7;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.service-card:nth-child(2n) {
  border-color: #e7d9bd;
}

.service-card-compact {
  min-height: 0;
}

.service-card-media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #e9f2ef;
}

.service-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.service-card:hover .service-card-media img,
.service-card:focus-visible .service-card-media img {
  transform: scale(1.025);
}

.service-symbol {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: rgba(18, 99, 63, 0.1);
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.service-card-media .service-symbol {
  position: absolute;
  bottom: 10px;
  left: 10px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 16px rgba(16, 55, 45, 0.16);
  backdrop-filter: blur(8px);
}

.service-symbol .caremo-icon {
  width: 23px;
  height: 23px;
}

.service-copy {
  display: grid;
  gap: 5px;
  padding: 0 14px;
}

.service-copy strong {
  font-size: 1rem;
}

.service-copy span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.service-status {
  display: inline-flex;
  align-self: end;
  align-items: center;
  gap: 3px;
  padding: 0 14px 14px;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 850;
}

.editorial-list {
  display: grid;
  gap: 12px;
}

.editorial-card {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(112px, 36%) minmax(0, 1fr);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.editorial-card-compact {
  background: linear-gradient(145deg, #fff, #f6faf7);
}

.editorial-card-image {
  display: block;
  min-height: 154px;
  overflow: hidden;
  background: #e8f3ee;
}

.editorial-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial-card-body {
  min-width: 0;
  align-self: center;
  padding: 15px;
}

.editorial-meta,
.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 850;
}

.editorial-card h3,
.product-card h3 {
  margin: 0 0 8px;
  font-size: 1.06rem;
}

.editorial-card p,
.product-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.58;
}

.life-hero,
.shop-hero,
.commerce-teaser {
  padding: 24px;
  overflow: hidden;
  border-radius: 24px;
}

.life-hero {
  border: 1px solid #a9ddd0;
  background: linear-gradient(135deg, #dff6ed, #72cfc5);
  color: #12382c;
}

.shop-hero {
  background: linear-gradient(135deg, #0b452c, #126c57);
  color: #fff;
  box-shadow: 0 14px 34px rgba(11, 69, 44, 0.2);
}

.life-hero-kicker,
.shop-hero-kicker {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.life-hero h2,
.shop-hero h2,
.commerce-teaser h2 {
  margin-bottom: 8px;
}

.life-hero p,
.shop-hero p,
.commerce-teaser p {
  margin-bottom: 0;
  line-height: 1.6;
}

.life-editorial-hero {
  position: relative;
  min-height: 338px;
  padding: 0;
  border-color: #9bcfc4;
  background: #184d41;
  color: #fff;
  box-shadow: 0 18px 38px rgba(14, 71, 57, 0.18);
}

.life-editorial-hero > img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% center;
  inset: 0;
}

.life-editorial-hero::after {
  position: absolute;
  z-index: 0;
  background:
    linear-gradient(0deg, rgba(6, 44, 35, 0.95) 0%, rgba(6, 44, 35, 0.76) 38%, rgba(6, 44, 35, 0.12) 76%),
    linear-gradient(90deg, rgba(6, 44, 35, 0.34), transparent 70%);
  content: '';
  inset: 0;
}

.life-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 338px;
  align-content: end;
  justify-items: start;
  padding: 22px;
}

.life-editorial-hero .life-hero-kicker {
  margin-bottom: 9px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.17);
  color: #fff;
  backdrop-filter: blur(8px);
}

.life-editorial-hero h2 {
  max-width: 17ch;
  margin-bottom: 6px;
  color: #fff;
  font-size: clamp(1.42rem, 6.1vw, 1.72rem);
  line-height: 1.26;
  text-wrap: balance;
}

.life-editorial-hero p {
  max-width: 30ch;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  line-height: 1.55;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.32);
}

.life-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.life-hero-actions a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 999px;
  background: #fff;
  color: #124b3e;
  font-size: 0.73rem;
  font-weight: 900;
  text-decoration: none;
}

.life-hero-actions a + a {
  background: rgba(13, 65, 53, 0.7);
  color: #fff;
  backdrop-filter: blur(8px);
}

.commerce-teaser {
  border: 1px solid #b5d7c3;
  background: linear-gradient(145deg, #f9fffb, #e1f3e8);
}

.commerce-teaser .secondary-button {
  margin-top: 16px;
}

.community-card {
  border-style: dashed;
  box-shadow: none;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px 2px 8px;
  overflow: visible;
}

.category-pills span {
  display: inline-flex;
  min-height: 42px;
  flex: 0 0 auto;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #415248;
  font-size: 0.8rem;
  font-weight: 800;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.product-visual {
  position: relative;
  min-height: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, #e3f4ec, #b8ddca);
}

.product-visual[data-category="digital-accessories"] {
  background: linear-gradient(145deg, #e7f0fa, #bed7ed);
}

.product-visual[data-category="home-comfort"] {
  background: linear-gradient(145deg, #fff3d9, #f1d49a);
}

.product-visual > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-visual-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #264a39;
  box-shadow: 0 6px 18px rgba(21, 62, 49, 0.13);
  backdrop-filter: blur(8px);
}

.product-visual-badge .caremo-icon {
  width: 18px;
  height: 18px;
}

.product-visual-badge small {
  color: #315345;
  font-size: 0.62rem;
  font-weight: 900;
}

.product-body {
  display: grid;
  gap: 10px;
  padding: 15px;
}

.disabled-cta {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 14px;
  background: #eef2ef;
  color: #5c6a62;
  font-size: 0.78rem;
  font-weight: 850;
  text-align: center;
}

.urgent-card:not(.card-danger) {
  border-color: #d6e0da;
  background: #fff;
}

.onboarding-shell {
  display: grid;
  width: 100%;
  min-height: 100dvh;
  align-content: center;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 85% 5%, rgba(182, 232, 204, 0.65), transparent 35%),
    var(--canvas);
}

.onboarding-card {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
}

.onboarding-logo {
  display: inline-grid;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 22px;
  background: var(--brand-soft);
  font-size: 2rem;
}

.onboarding-shell-launch {
  align-content: start;
  background:
    linear-gradient(145deg, rgba(242, 252, 247, 0.82), rgba(255, 248, 232, 0.88)),
    url("onboarding-bg.png") center / cover fixed;
}

.onboarding-card-launch {
  max-width: 560px;
  padding: 18px;
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 24px 70px rgba(8, 66, 47, 0.18);
  backdrop-filter: blur(18px);
}

.launch-brand-row,
.launch-brand {
  display: flex;
  align-items: center;
}

.launch-brand-row {
  justify-content: space-between;
  gap: 12px;
}

.launch-brand {
  gap: 9px;
  color: var(--brand-dark);
  font-size: 1.08rem;
}

.launch-brand img {
  width: 38px;
  height: 38px;
  padding: 7px;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(18, 99, 63, 0.12);
}

.launch-badge {
  padding: 7px 11px;
  border: 1px solid rgba(18, 99, 63, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--brand-dark);
  font-size: 0.68rem;
  font-weight: 900;
}

.launch-hero {
  display: grid;
  gap: 16px;
  padding: 21px;
  overflow: hidden;
  border: 1px solid rgba(60, 183, 166, 0.28);
  border-radius: 25px;
  background:
    radial-gradient(circle at 92% 5%, rgba(255, 232, 178, 0.95), transparent 33%),
    linear-gradient(145deg, #dcf8f1, #9edfd1);
  color: #103b31;
}

.launch-copy h1 {
  margin-bottom: 9px;
  font-size: clamp(1.75rem, 8vw, 2.45rem);
  line-height: 1.17;
  letter-spacing: -0.04em;
  word-break: keep-all;
  overflow-wrap: normal;
}

.launch-copy h1 em {
  color: #0c7057;
  font-style: normal;
}

.launch-copy p:last-child {
  margin-bottom: 0;
  color: #315e52;
  font-size: 0.82rem;
  line-height: 1.55;
}

.launch-core-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.launch-core-card {
  display: flex;
  min-width: 0;
  min-height: 110px;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 9px 24px rgba(13, 91, 72, 0.08);
}

.launch-core-card[data-tone="medication"] {
  background: rgba(255, 248, 228, 0.9);
}

.launch-core-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: #dff4e8;
  color: var(--brand-dark);
  font-weight: 950;
}

.launch-core-icon .caremo-icon {
  width: 20px;
  height: 20px;
}

.launch-core-card > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.launch-core-card small {
  color: #517267;
  font-size: 0.58rem;
  font-weight: 900;
}

.launch-core-card strong {
  font-size: 0.86rem;
  line-height: 1.3;
}

.launch-core-card > div > span {
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.35;
}

.launch-life-preview {
  display: grid;
  gap: 10px;
  padding: 2px 3px;
}

.launch-life-preview h2 {
  margin: 0;
  font-size: 1rem;
}

.launch-life-preview ul,
.product-update-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.launch-life-preview li,
.product-update-card li {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f1eafb;
  color: #573b7f;
  font-size: 0.66rem;
  font-weight: 850;
}

.launch-life-preview li:nth-child(3n + 1) { background: #e2f5ee; color: #1f654d; }
.launch-life-preview li:nth-child(3n + 2) { background: #fff0df; color: #8a551e; }
.launch-primary { box-shadow: 0 12px 26px rgba(11, 69, 44, 0.2); }
.launch-trust { margin: -2px 4px 0; text-align: center; }
.launch-policy-links .text-button { min-height: 44px; }

.product-update-card {
  display: grid;
  gap: 16px;
  padding: 21px;
  border: 1px solid #d8c8ee;
  border-radius: 24px;
  margin-bottom: 17px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 221, 177, 0.8), transparent 35%),
    linear-gradient(145deg, #f2edff, #d8f3eb);
  box-shadow: 0 14px 34px rgba(71, 49, 105, 0.12);
}

.product-update-copy {
  display: grid;
  gap: 7px;
}

.product-update-kicker {
  width: max-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: #5d3e87;
  color: #fff;
  font-size: 0.64rem;
  font-weight: 900;
}

.product-update-card h2,
.product-update-card p { margin: 0; }
.product-update-card h2 { font-size: 1.25rem; line-height: 1.3; }
.product-update-card p { color: #4f5960; font-size: 0.8rem; }

.today-core-hero {
  display: grid;
  gap: 17px;
  padding: 23px;
  border: 1px solid #8bd4c5;
  border-radius: 26px;
  margin-bottom: 17px;
  overflow: hidden;
  background:
    radial-gradient(circle at 94% 4%, rgba(255, 226, 161, 0.96), transparent 31%),
    linear-gradient(140deg, #d9f8ef, #72cfc5);
  color: #103c31;
  box-shadow: 0 15px 36px rgba(24, 104, 84, 0.16);
}

.today-hero-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.today-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--brand-dark);
  font-size: 1.12rem;
  font-weight: 950;
}

.today-hero-heading .eyebrow { margin: 0; }
.today-hero-heading h1 { margin: 1px 0 0; font-size: 1.7rem; word-break: keep-all; overflow-wrap: normal; }
.today-hero-message strong { display: block; margin-bottom: 3px; font-size: 1.05rem; }
.today-hero-message p { margin: 0; color: #315e52; font-size: 0.8rem; }
.today-hero-progress {
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.7);
}
.today-hero-progress > span { font-size: 0.76rem; font-weight: 900; }
.today-hero-progress .progress-track { height: 9px; margin: 8px 0 5px; background: rgba(16, 60, 49, 0.12); }
.today-hero-progress small { color: #4c6c62; font-size: 0.66rem; }

.core-step {
  display: inline-grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.76rem;
  vertical-align: middle;
}

@media (max-width: 420px) {
  .launch-core-card {
    display: grid;
    min-height: 126px;
    align-content: start;
    gap: 7px;
  }

  .launch-core-icon {
    width: 28px;
    height: 28px;
  }

  .launch-core-card strong {
    font-size: 0.82rem;
  }
}

.step-indicator {
  margin-bottom: 18px;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 900;
}

.toast-region {
  position: fixed;
  z-index: 100;
  right: 16px;
  bottom: calc(90px + env(safe-area-inset-bottom));
  left: 16px;
  max-width: 480px;
  margin: 0 auto;
  pointer-events: none;
}

.toast {
  padding: 14px 16px;
  border-radius: 14px;
  background: #17211b;
  color: #fff;
  box-shadow: var(--shadow);
  font-weight: 750;
}

dialog {
  width: calc(100% - 32px);
  max-width: 470px;
  max-height: calc(100dvh - 40px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 24px;
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

dialog::backdrop {
  background: rgba(9, 23, 15, 0.62);
}

.dialog-body {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.policy-content {
  display: grid;
  gap: 22px;
}

.policy-content section {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.policy-content ul,
.policy-content ol {
  padding-left: 1.3rem;
}

.policy-content li + li {
  margin-top: 7px;
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.policy-table th,
.policy-table td {
  padding: 10px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.policy-table th {
  background: var(--brand-soft);
}

/* Restored Life tools: the colorful legacy card language without demo-only behavior. */
.life-detail-heading {
  display: grid;
  gap: 5px;
}

.back-link {
  display: inline-flex;
  width: max-content;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.life-feature-hero {
  display: grid;
  gap: 8px;
  min-height: 238px;
  align-content: end;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 26px;
  background: linear-gradient(135deg, #dff6ed, #85d8cc);
  color: #fff;
  box-shadow: 0 16px 36px rgba(20, 71, 58, 0.16);
}

.life-feature-hero > span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.life-feature-hero h2,
.life-feature-hero p,
.life-feature-hero strong {
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 25, 20, 0.28);
}

.life-feature-hero p { color: rgba(255, 255, 255, 0.9); }

.life-feature-calendar {
  background:
    linear-gradient(90deg, rgba(8, 54, 46, 0.94) 0%, rgba(8, 54, 46, 0.73) 57%, rgba(8, 54, 46, 0.13) 100%),
    url('assets/caremo-tool-calendar-v1.webp') center / cover no-repeat;
}

.life-feature-journal {
  background:
    linear-gradient(90deg, rgba(83, 43, 20, 0.94) 0%, rgba(112, 61, 27, 0.73) 57%, rgba(112, 61, 27, 0.12) 100%),
    url('assets/caremo-tool-journal-v1.webp') center / cover no-repeat;
}

.life-feature-movement {
  background:
    linear-gradient(90deg, rgba(18, 56, 72, 0.94) 0%, rgba(27, 79, 91, 0.72) 57%, rgba(27, 79, 91, 0.12) 100%),
    url('assets/caremo-tool-movement-v1.webp') center / cover no-repeat;
}

.life-feature-map {
  border: 1px solid rgba(174, 218, 204, 0.72);
  background:
    linear-gradient(90deg, rgba(8, 54, 46, 0.92) 0%, rgba(8, 54, 46, 0.74) 54%, rgba(8, 54, 46, 0.13) 100%),
    url('assets/caremo-tool-map-v1.webp') center / cover no-repeat;
}

.life-feature-map > span { color: #b7f0e5; }
.life-feature-album {
  background:
    linear-gradient(90deg, rgba(82, 35, 54, 0.94) 0%, rgba(112, 52, 77, 0.72) 57%, rgba(112, 52, 77, 0.12) 100%),
    url('assets/caremo-tool-album-v1.webp') center / cover no-repeat;
}

.life-feature-learning {
  background:
    linear-gradient(90deg, rgba(54, 39, 93, 0.94) 0%, rgba(75, 56, 119, 0.72) 57%, rgba(75, 56, 119, 0.12) 100%),
    url('assets/caremo-tool-learning-v1.webp') center / cover no-repeat;
}

.local-only-note,
.practice-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid #cbded3;
  border-radius: 16px;
  margin: 0;
  background: #f8fcf9;
  color: #405047;
  font-size: 0.78rem;
}

.local-only-note .caremo-icon,
.practice-banner .caremo-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.form-card h2 {
  margin-bottom: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.card.calendar-card {
  padding-inline: 4px;
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  margin-bottom: 16px;
  text-align: center;
}

.calendar-toolbar a {
  display: grid;
  min-height: 48px;
  place-items: center;
  border-radius: 14px;
  background: var(--brand-soft);
  text-decoration: none;
}

.calendar-toolbar h2 { margin: 0; }
.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays span {
  padding: 6px 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.calendar-day {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 48px;
  place-items: center;
  border-radius: 13px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}

.calendar-day.is-outside { color: #98a49d; }
.calendar-day.is-selected { background: var(--brand); color: #fff; }
.calendar-day[aria-current="date"] { box-shadow: inset 0 0 0 2px #f0b429; }
.calendar-day i {
  position: absolute;
  bottom: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e48a19;
}

.record-list,
.journal-list,
.place-grid,
.album-grid,
.guide-grid,
.practice-steps {
  display: grid;
  gap: 12px;
}

.record-item,
.place-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.record-item > div,
.place-card > div { min-width: 0; flex: 1; }
.record-item h3,
.place-card h3 { margin: 3px 0 5px; font-size: 1rem; }
.record-item p,
.place-card p { margin: 0; overflow-wrap: anywhere; color: var(--muted); font-size: 0.82rem; }
.record-meta { color: var(--brand); font-size: 0.72rem; font-weight: 850; }

.choice-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  border: 0;
  margin: 0;
}

.choice-pills legend { width: 100%; margin-bottom: 5px; font-weight: 800; }
.choice-pills label { position: relative; }
.choice-pills input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice-pills span,
.category-pills span {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.choice-pills input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.choice-pills input:focus-visible + span { outline: 4px solid #f0b429; outline-offset: 3px; }

.journal-card {
  padding: 19px;
  border: 1px solid #ecdac2;
  border-radius: 20px;
  background: linear-gradient(145deg, #fff, #fff8ed);
}

.journal-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.journal-card header div { display: grid; gap: 3px; }
.journal-card header span { color: var(--muted); font-size: 0.74rem; }
.journal-card p { margin: 14px 0; overflow-wrap: anywhere; }

.search-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.search-row button { white-space: nowrap; }
.place-card .service-symbol { flex: 0 0 auto; }
.place-card.is-selected { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.map-search-status { display: flex; align-items: center; gap: 14px; }
.map-search-status > span { display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; border-radius: 16px; background: var(--brand-soft); color: var(--brand); }
.map-search-status h2,
.map-search-status p { margin: 0; }
.map-search-status p { margin-top: 5px; color: var(--muted); }
.map-search-status.is-error { border-color: #edc4c4; background: #fff8f8; }
.map-preview-card { overflow: hidden; }
.map-preview-frame { display: block; width: 100%; height: clamp(280px, 52vh, 420px); margin-top: 14px; border: 0; border-radius: 18px; background: #e7f3ee; }
.map-attribution { margin: 8px 0 0; text-align: right; }
.map-attribution a { color: var(--muted); }
.manual-place-card summary { display: grid; cursor: pointer; gap: 4px; list-style-position: inside; }
.manual-place-card[open] summary { margin-bottom: 18px; }

.album-grid { grid-template-columns: 1fr 1fr; }
.album-card { overflow: hidden; border: 1px solid #ead4dc; border-radius: 20px; background: #fff; }
.album-image { display: grid; aspect-ratio: 1 / 1; place-items: center; overflow: hidden; background: #f5edf0; color: var(--muted); font-size: 0.72rem; }
.album-image img { width: 100%; height: 100%; object-fit: cover; }
.album-copy { display: grid; gap: 8px; padding: 14px; }
.album-copy > span { color: #8a4961; font-size: 0.7rem; font-weight: 850; }
.album-copy p { margin: 0; overflow-wrap: anywhere; font-size: 0.82rem; }

.guide-card {
  display: flex;
  min-height: 128px;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  border: 1px solid #dcd1ef;
  border-radius: 20px;
  background: linear-gradient(145deg, #fff, #f7f3ff);
  color: var(--ink);
  text-decoration: none;
}

.guide-card > span {
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 16px;
  background: #e9dffc;
  color: #57348a;
  font-size: 0.75rem;
  font-weight: 900;
}

.guide-card > span .caremo-icon {
  width: 27px;
  height: 27px;
}

.guide-card h2 { margin: 0 0 5px; font-size: 1rem; }
.guide-card p { margin: 0 0 7px; color: var(--muted); font-size: 0.78rem; }
.guide-card strong { color: #654094; font-size: 0.75rem; }

.practice-banner { display: grid; border-color: #e4c882; background: #fff8df; }
.practice-banner p { margin: 0; }
.practice-steps { padding: 0; margin: 0; list-style: none; }
.practice-steps li { display: flex; gap: 13px; padding: 19px; border: 1px solid var(--line); border-radius: 19px; background: #fff; }
.practice-steps li > span { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 900; }
.practice-steps li > span .caremo-icon { width: 19px; height: 19px; }
.practice-steps h2 { margin: 0 0 5px; font-size: 1rem; }
.practice-steps p { margin: 0; color: var(--muted); font-size: 0.82rem; }

.practice-form-card { box-shadow: 0 10px 28px rgba(24, 69, 57, 0.07); }
.practice-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; min-width: 0; padding: 0; border: 0; margin: 0; }
.practice-choice legend { grid-column: 1 / -1; margin-bottom: 2px; color: #26342b; font-weight: 900; }
.practice-choice label { position: relative; display: grid; min-width: 0; cursor: pointer; }
.practice-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.practice-choice label > span { display: grid; min-height: 104px; align-content: center; gap: 4px; padding: 14px; border: 2px solid #d5e0dc; border-radius: 17px; background: #fff; color: var(--ink); }
.practice-choice label > span small { color: var(--muted); font-size: 0.64rem; }
.practice-choice label:has(input:checked) > span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); box-shadow: 0 7px 18px rgba(18, 143, 133, 0.11); }
.practice-choice label:has(input:focus-visible) > span { outline: 4px solid #f0b429; outline-offset: 3px; }
.practice-scenario { padding: 21px; border: 1px solid #e5c986; border-radius: 23px; background: linear-gradient(145deg, #fff4d7, #fff); box-shadow: 0 10px 26px rgba(113, 72, 17, 0.07); }
.practice-scenario > span { display: inline-block; padding: 5px 9px; border-radius: 999px; background: #8a4b08; color: #fff; font-size: 0.65rem; font-weight: 950; }
.practice-scenario h2 { margin: 11px 0 7px; font-size: 1.08rem; }
.practice-scenario p { margin: 0; color: #6d5b3f; font-size: 0.78rem; }
.practice-result { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding: 20px; border: 1px solid #acd9c7; border-radius: 23px; background: linear-gradient(145deg, #e6f8f1, #fff); }
.practice-result[data-tone="warning"] { border-color: #e4c77d; background: linear-gradient(145deg, #fff3cf, #fff); }
.practice-result > span { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 17px; background: #fff; color: var(--brand-dark); }
.practice-result > span .caremo-icon { width: 29px; height: 29px; }
.practice-result h2 { margin: 2px 0 8px; font-size: 1.08rem; }
.practice-result ol,
.practice-result ul { display: grid; gap: 6px; padding-left: 1.25rem; margin: 0 0 9px; color: #40564d; font-size: 0.76rem; }
.practice-result p { margin: 0; color: var(--muted); font-size: 0.72rem; }
.lesson-ai-panel { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding: 20px; border: 1px solid #d5ceee; border-radius: 23px; background: linear-gradient(145deg, #f5f1ff, #fff); }
.lesson-ai-panel > span { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 17px; background: #fff; color: #6550a3; }
.lesson-ai-panel > span .caremo-icon { width: 28px; height: 28px; }
.lesson-ai-panel h2 { margin: 1px 0 6px; font-size: 1.08rem; }
.lesson-ai-panel p { margin-bottom: 10px; color: #5d566c; font-size: 0.75rem; }
.lesson-ai-answer { padding: 13px; border-radius: 15px; background: #fff; }
.lesson-ai-answer strong { color: #6550a3; font-size: 0.7rem; }
.lesson-ai-answer p { margin: 4px 0; color: #393444; }
.lesson-ai-answer small { color: #736b7d; font-size: 0.64rem; }
.centered { justify-self: center; }

.game-status { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.game-status > div { display: grid; gap: 4px; padding: 15px; border-radius: 17px; background: #fff; text-align: center; }
.game-status span { color: var(--muted); font-size: 0.72rem; }
.game-status strong { font-size: 1.2rem; }
.memory-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.memory-board button { display: grid; aspect-ratio: 0.82 / 1; min-height: 70px; place-items: center; border: 0; border-radius: 16px; background: linear-gradient(145deg, #5a3a89, #8b67bd); color: #fff; font-weight: 900; box-shadow: var(--shadow); }
.memory-board button:disabled { background: #e9dffc; color: #4e326f; opacity: 1; }
.memory-token-icon { width: 30px; height: 30px; }
.game-complete { padding: 16px; border-radius: 16px; margin: 0; background: var(--brand-soft); font-weight: 800; text-align: center; }
.game-panel { display: grid; gap: 18px; padding: 24px; border: 1px solid #ded3ee; border-radius: 24px; background: #fff; text-align: center; }
.game-panel > span { color: #684795; font-size: 0.75rem; font-weight: 900; }
.color-prompt,
.math-prompt { padding: 22px 10px; font-size: clamp(2.4rem, 14vw, 4.2rem); font-weight: 950; line-height: 1; }
.answer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.answer-grid button { display: flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid #d7cbe8; border-radius: 16px; background: #faf8ff; color: var(--ink); font-weight: 850; }
.answer-grid i { width: 18px; height: 18px; border-radius: 50%; }

/* Mamytalk-inspired product feed: white cards on a quiet blue-gray canvas,
   compact horizontal rails, mint navigation, and clear coral safety actions. */
.app-shell[data-view-mode="standard"] .main-content {
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
}

.app-shell[data-view-mode="simple"] .header-shop {
  display: none;
}

.simple-discovery {
  display: grid;
  gap: 11px;
  border-color: #cce7e2;
  background: linear-gradient(135deg, #fff, #eefaf7);
}

.simple-discovery p { margin-bottom: 0; }

.app-shell[data-view-mode="standard"] .bottom-nav {
  bottom: 0;
  width: 100%;
  max-width: 540px;
  padding: 7px 8px max(7px, env(safe-area-inset-bottom));
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  box-shadow: 0 -8px 28px rgba(33, 65, 72, 0.09);
}

.app-shell[data-view-mode="standard"] .nav-link {
  min-height: 60px;
  border-radius: 16px;
}

.app-shell[data-view-mode="standard"] .nav-link[aria-current="page"] {
  background: transparent;
  color: var(--brand);
}

.app-shell[data-view-mode="standard"] .nav-link[aria-current="page"] .nav-icon {
  display: grid;
  width: 34px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--brand-soft);
}

.app-shell[data-view-mode="standard"] .home-section {
  border-color: #e4ebee;
  box-shadow: none;
}

.wellbeing-teaser,
.wellbeing-hero,
.lounge-hero,
.community-beta-card,
.affiliate-readiness,
.revenue-slot {
  padding: 21px;
  border: 1px solid #dce8e8;
  border-radius: 22px;
  background: #fff;
}

.wellbeing-teaser {
  display: grid;
  gap: 12px;
  background: linear-gradient(135deg, #fff, #eefaf7);
}

.wellbeing-teaser h2,
.wellbeing-teaser p,
.wellbeing-hero h2,
.wellbeing-hero p,
.lounge-hero h2,
.lounge-hero p,
.community-beta-card p,
.affiliate-readiness p,
.revenue-slot p {
  margin-bottom: 0;
}

.wellbeing-mini-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  overflow: visible;
}

.wellbeing-mini-summary span {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 999px;
  background: #fff;
  color: #28615c;
  font-size: 0.76rem;
  font-weight: 850;
}

.wellbeing-hero {
  border-color: #b9e4dc;
  background: linear-gradient(135deg, #ddf7f1, #fff5e4);
}

.wellbeing-hero > span,
.lounge-hero > span,
.affiliate-readiness > span {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--brand);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.09em;
}

.wellbeing-choice {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-inline-size: 0;
  padding: 0;
  border: 0;
}

.wellbeing-choice legend {
  grid-column: 1 / -1;
  margin-bottom: 3px;
  font-weight: 900;
}

.wellbeing-choice input {
  position: absolute;
  width: 1px;
  min-width: 1px;
  height: 1px;
  min-height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  opacity: 0;
}

.wellbeing-choice span {
  display: grid;
  min-height: 66px;
  place-items: center;
  padding: 9px;
  border: 1px solid #dce6e4;
  border-radius: 16px;
  background: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
}

.wellbeing-choice input:checked + span {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.wellbeing-choice input:focus-visible + span {
  outline: 4px solid #f0b429;
  outline-offset: 2px;
}

.wellbeing-history {
  display: grid;
  gap: 9px;
}

.wellbeing-history article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 14px;
  padding: 15px 17px;
  border: 1px solid #e2e8e7;
  border-radius: 17px;
  background: #fff;
}

.wellbeing-history article > span {
  grid-row: 1 / 3;
  align-self: center;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
}

.wellbeing-history p { margin: 0; color: var(--muted); font-size: 0.76rem; }

.game-rail,
.channel-rail,
.lounge-rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 11px;
  padding: 2px;
  overflow: visible;
}

.game-discovery-card,
.channel-card,
.lounge-topic {
  min-width: 0;
  text-decoration: none;
}

.game-discovery-card {
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  min-height: 150px;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dbe7e4;
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
}

.game-discovery-card[data-tone="lavender"] { border-color: #e4daf3; }
.game-discovery-card[data-tone="yellow"] { border-color: #efe0af; }
.game-card-media { position: relative; display: block; min-width: 0; min-height: 150px; overflow: hidden; background: #eef5f2; }
.game-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.game-card-icon { position: absolute; bottom: 10px; left: 10px; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255, 255, 255, 0.76); border-radius: 14px; background: rgba(255, 255, 255, 0.9); color: var(--brand-dark); box-shadow: 0 6px 16px rgba(16, 55, 45, 0.16); backdrop-filter: blur(8px); }
.game-card-icon .caremo-icon { width: 23px; height: 23px; }
.game-discovery-card > div { min-width: 0; align-self: center; padding: 16px 14px; }
.game-discovery-card strong { display: block; margin-bottom: 4px; }
.game-discovery-card p { margin: 0 0 8px; color: var(--muted); font-size: 0.76rem; }
.game-discovery-card small { display: inline-flex; align-items: center; gap: 3px; color: var(--brand); font-weight: 900; }

.channel-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 17px;
  border: 1px solid #e1e7e9;
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
}

.channel-card .channel-symbol { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 16px; background: #edf8f6; color: var(--brand); font-size: 1.1rem; font-weight: 950; }
.channel-card .channel-symbol .caremo-icon { width: 25px; height: 25px; }
.channel-card small { display: block; color: var(--brand); font-size: 0.68rem; font-weight: 900; }
.channel-card strong { display: block; margin: 2px 0 5px; }
.channel-card p { margin: 0; color: var(--muted); font-size: 0.74rem; }
.channel-card em { grid-column: 2; color: var(--brand-dark); font-size: 0.72rem; font-style: normal; font-weight: 900; }
.channel-card.is-pending { opacity: 0.72; }

.lounge-heading h1 { color: #163c39; }
.lounge-hero { border-color: #9fded7; background: linear-gradient(135deg, #c9f3ee, #fff3dc); }
.topic-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 2px 8px; overflow: visible; }
.topic-tabs a { display: inline-flex; min-height: 44px; flex: 0 0 auto; align-items: center; padding: 8px 15px; border: 1px solid #dfe7e8; border-radius: 999px; background: #fff; color: #52615e; font-size: 0.8rem; font-weight: 850; text-decoration: none; }
.topic-tabs a[aria-current="page"] { border-color: var(--brand); background: var(--brand); color: #fff; }
.lounge-list { display: grid; gap: 10px; }
.lounge-topic { padding: 18px; border: 1px solid #e0e7e8; border-radius: 19px; background: #fff; color: var(--ink); }
.lounge-topic > span { display: inline-block; margin-bottom: 8px; padding: 5px 9px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); font-size: 0.68rem; font-weight: 900; }
.lounge-topic h3 { margin-bottom: 7px; }
.lounge-topic p { margin: 0 0 10px; color: var(--muted); font-size: 0.8rem; }
.lounge-topic a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 0;
  font-size: 0.76rem;
  font-weight: 900;
}
.community-beta-card { border-style: dashed; background: #fffdf6; }
.community-beta-card .status-badge { margin-bottom: 10px; }

.community-screen {
  gap: 18px;
}

.lounge-visual-hero {
  position: relative;
  min-height: 248px;
  overflow: hidden;
  border: 1px solid #b8dcd6;
  border-radius: 27px;
  background: #d9f1ec;
  box-shadow: 0 16px 38px rgba(26, 80, 70, 0.13);
}

.lounge-visual-hero > img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  inset: 0;
}

.lounge-visual-hero::after {
  position: absolute;
  background: linear-gradient(90deg, rgba(8, 48, 43, 0.91) 0%, rgba(8, 48, 43, 0.76) 45%, rgba(8, 48, 43, 0.12) 78%);
  content: '';
  inset: 0;
}

.lounge-visual-hero > div {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(70%, 330px);
  min-height: 248px;
  align-content: end;
  padding: 24px;
  color: #fff;
}

.lounge-visual-hero > div > span {
  margin-bottom: 7px;
  color: #a9eee3;
  font-size: 0.65rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.lounge-visual-hero h2 {
  margin-bottom: 7px;
  font-size: 1.45rem;
}

.lounge-visual-hero p {
  margin-bottom: 9px;
  font-size: 0.8rem;
  line-height: 1.55;
}

.lounge-visual-hero small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.62rem;
}

.community-join-card,
.community-composer,
.community-feed,
.community-account-note,
.community-blocks {
  padding: 20px;
  border: 1px solid #dce6e6;
  border-radius: 22px;
  background: #fff;
}

.community-join-card,
.community-composer {
  display: grid;
  gap: 18px;
  box-shadow: 0 10px 28px rgba(31, 65, 72, 0.07);
}

.community-composer-summary {
  display: grid;
  min-height: 64px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.community-composer-summary::-webkit-details-marker { display: none; }
.community-composer-summary > span:first-child { display: grid; gap: 3px; }
.community-composer-summary small { color: var(--brand); font-size: 0.68rem; font-weight: 900; }
.community-composer-summary strong { font-size: 1.08rem; }
.community-composer-body { display: grid; gap: 16px; padding-top: 3px; }
.community-composer-body > .small { margin: 0; }

.community-join-copy h2 {
  margin: 10px 0 7px;
}

.community-join-copy p,
.community-account-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.community-writing-help {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.68rem;
}

.community-writing-help span:first-child {
  max-width: 76%;
}

.community-writing-help span:last-child {
  flex: 0 0 auto;
  color: var(--brand-dark);
  font-weight: 850;
}

.community-feed {
  display: grid;
  gap: 11px;
  padding: 18px;
  background: #f7fafb;
}

.community-feed .section-heading-row {
  margin-bottom: 2px;
}

.community-post {
  padding: 17px;
  border: 1px solid #e0e8e8;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(29, 67, 71, 0.04);
}

.community-post-header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.community-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(145deg, #d7f3ee, #f7eedd);
  color: var(--brand-dark);
  font-weight: 950;
}

.community-post-header strong,
.community-post-header span {
  display: block;
}

.community-post-header div > span {
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.68rem;
}

.community-category {
  padding: 5px 8px;
  border-radius: 999px;
  background: #edf8f6;
  color: var(--brand-dark);
  font-size: 0.65rem;
  font-weight: 900;
  white-space: nowrap;
}

.community-post-body {
  margin: 14px 0 10px;
  color: #26332d;
  font-size: 0.91rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.community-post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding-top: 8px;
  border-top: 1px solid #edf1f1;
}

.community-post-actions .text-button {
  min-height: 44px;
  padding: 7px 0;
  color: #68746f;
  font-size: 0.72rem;
}

.community-loading {
  padding: 28px 18px;
  color: var(--muted);
  text-align: center;
}

.community-feed .empty-state strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.community-feed .empty-state p {
  margin: 0;
}

.community-blocks summary {
  min-height: 44px;
  cursor: pointer;
  font-weight: 850;
}

.community-blocks > div {
  display: grid;
  justify-items: start;
}

.community-account-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border-style: dashed;
}

.community-account-note p {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.community-account-note .text-button {
  width: auto;
  min-width: max-content;
  justify-self: start;
  color: var(--danger);
  font-size: 0.74rem;
}

:root[data-text-size="large"] .service-rail {
  grid-template-columns: minmax(0, 1fr);
}

:root[data-text-size="large"] .game-discovery-card {
  grid-template-columns: minmax(0, 1fr);
}

:root[data-text-size="large"] .game-card-media {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.revenue-slot {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  border-color: #ecdca6;
  background: #fff9e7;
}

.revenue-slot > span {
  align-self: start;
  padding: 6px 9px;
  border-radius: 8px;
  background: #fff;
  color: #8c5a08;
  font-size: 0.66rem;
  font-weight: 900;
}

.revenue-slot strong { display: block; margin-bottom: 5px; }
.revenue-slot p { color: #705c32; font-size: 0.74rem; }

.more-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.more-quick-grid a {
  display: grid;
  gap: 5px;
  min-height: 134px;
  align-content: center;
  padding: 17px;
  border: 1px solid #dfe8e8;
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.more-quick-grid a:nth-child(2) { background: #f1f8ff; }
.more-quick-grid a:nth-child(3) { background: #fff8e8; }
.more-quick-grid a:nth-child(4) { background: #f7f1ff; }
.more-quick-grid a > span { color: var(--brand); font-size: 1.2rem; font-weight: 950; }
.more-quick-grid a > span svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}
.more-quick-grid small { color: var(--muted); font-size: 0.72rem; }

.game-visual-banner,
.family-visual-banner {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
}

.game-visual-banner {
  display: grid;
  grid-template-columns: 42% 1fr;
  min-height: 144px;
  margin-bottom: 14px;
  background: #f4effb;
}

.game-visual-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-visual-banner > div {
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 16px;
}

.game-visual-banner strong {
  font-size: 1rem;
}

.game-visual-banner span {
  color: var(--muted);
  font-size: 0.74rem;
}

.game-visual-banner small,
.family-visual-banner small {
  color: #68716c;
  font-size: 0.58rem;
}

.family-visual-banner {
  min-height: 230px;
  border: 1px solid #c9ded8;
  background: #e7f4ef;
}

.family-visual-banner > img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  inset: 0;
}

.family-visual-banner::after {
  position: absolute;
  background: linear-gradient(90deg, rgba(13, 58, 48, 0.9), rgba(13, 58, 48, 0.64) 48%, rgba(13, 58, 48, 0.04) 78%);
  content: '';
  inset: 0;
}

.family-visual-banner > div {
  position: relative;
  z-index: 1;
  display: grid;
  width: 62%;
  min-height: 230px;
  align-content: end;
  padding: 21px;
  color: #fff;
}

.family-visual-banner > div > span {
  margin-bottom: 6px;
  color: #a9eee3;
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.family-visual-banner h2 {
  margin-bottom: 6px;
  font-size: 1.2rem;
}

.family-visual-banner p {
  margin-bottom: 8px;
  font-size: 0.74rem;
}

.family-visual-banner small {
  color: rgba(255, 255, 255, 0.75);
}

.affiliate-readiness {
  border-color: #ebd9ab;
  background: linear-gradient(135deg, #fff9e8, #fff);
}

.affiliate-readiness h2 { margin-bottom: 7px; }
.affiliate-readiness p { color: #675d45; font-size: 0.8rem; }

/* Today dashboard: image-led, respectful and useful after every entry. */
.today-core-hero {
  position: relative;
  display: block;
  min-height: 430px;
  padding: 0;
  background: #eef7f2;
}

.today-core-hero::after {
  position: absolute;
  z-index: 0;
  background: linear-gradient(90deg, rgba(250, 253, 249, 0.98) 0%, rgba(250, 253, 249, 0.92) 46%, rgba(250, 253, 249, 0.28) 78%, rgba(250, 253, 249, 0.08) 100%);
  content: '';
  inset: 0;
}

.today-hero-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 59% center;
  inset: 0;
}

.today-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(76%, 370px);
  min-height: 430px;
  align-content: end;
  gap: 17px;
  padding: 24px;
}

.today-hero-message,
.today-hero-progress {
  backdrop-filter: blur(9px);
}

.today-hero-message {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
}

.today-hero-message.is-ai-guided {
  border-color: rgba(108, 87, 176, 0.25);
  background: rgba(249, 247, 255, 0.86);
  box-shadow: 0 10px 25px rgba(75, 54, 132, 0.09);
}

.today-core-hero.has-ai-guidance .today-hero-content {
  width: min(96%, 500px);
  gap: 10px;
  padding: 16px;
}

.today-hero-ai-label {
  display: block;
  margin-bottom: 4px;
  color: #6550a3;
  font-size: 0.62rem;
  font-weight: 950;
}

.today-hero-ai-caution {
  display: block;
  margin-top: 6px;
  color: #675f70;
  font-size: 0.64rem;
  font-style: normal;
  line-height: 1.5;
}

.today-hero-ai-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 14px;
  margin-top: 7px;
}

.today-hero-ai-actions a,
.today-hero-ai-actions .text-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 3px;
  padding: 5px 0;
  color: #57478c;
  font-size: 0.66rem;
  font-weight: 900;
}

.today-hero-ai-actions .text-button:last-child {
  color: #766f7c;
  text-decoration-color: #b7b0bd;
}

.today-hero-ai-once {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #655f6d;
  font-size: 0.62rem;
  font-weight: 800;
}

.today-hero-ai-pending,
.today-hero-ai-fallback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(232, 247, 242, 0.78);
  color: #3f6259;
  font-size: 0.64rem;
  font-weight: 750;
  line-height: 1.5;
}

.today-hero-ai-pending > span:first-child {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(18, 143, 133, 0.12);
}

.today-hero-ai-fallback .text-button {
  min-height: 44px;
  margin: -6px 0;
  padding: 7px 0;
  color: #3b695d;
  font-size: 0.64rem;
  font-weight: 900;
}

.condition-prompt { margin: 0 0 13px; color: var(--muted); font-size: 0.8rem; }
.condition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.condition-option {
  display: grid;
  min-width: 0;
  min-height: 148px;
  align-content: start;
  justify-items: start;
  gap: 6px;
  padding: 16px;
  border: 2px solid #d9e5e0;
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}
.condition-option .action-symbol { width: 42px; height: 42px; border-radius: 14px; background: #e9f7f3; color: var(--brand-dark); }
.condition-option .action-symbol .caremo-icon { width: 24px; height: 24px; }
.condition-option strong { font-size: 0.9rem; line-height: 1.28; }
.condition-option small { color: var(--muted); font-size: 0.66rem; line-height: 1.45; }
.condition-option[data-tone="great"] { border-color: #b5dfc6; background: #f7fff9; }
.condition-option[data-tone="rest"] { border-color: #ead8ae; background: #fffaf0; }
.condition-option[data-tone="help"] { border-color: #edc2c2; background: #fff9f9; }
.condition-option[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 8px 22px rgba(19, 119, 95, 0.12); }
.condition-option[data-tone="help"][aria-pressed="true"] { border-color: var(--danger); background: var(--danger-soft); color: #8c1f1f; }
.condition-option[data-tone="rest"][aria-pressed="true"] { border-color: #b97a18; background: #fff3d8; }
.status-badge[data-tone="great"] { background: #dcf6e5; color: #146039; }
.status-badge[data-tone="rest"] { background: #fff0cc; color: #80500b; }

.today-overview,
.meal-teaser {
  padding: 20px;
  border: 1px solid #cfe1dc;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23, 76, 63, 0.07);
}
.today-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.today-summary-grid:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.today-summary-item { display: grid; min-width: 0; grid-template-columns: 34px minmax(0, 1fr); gap: 1px 9px; padding: 13px; border: 1px solid #e0e9e5; border-radius: 17px; background: #f9fcfa; color: var(--ink); text-decoration: none; }
.today-summary-item > span { display: grid; width: 34px; height: 34px; grid-row: 1 / 3; place-items: center; border-radius: 11px; background: #e5f6f1; color: var(--brand-dark); }
.today-summary-item .caremo-icon { width: 20px; height: 20px; }
.today-summary-item small { color: var(--muted); font-size: 0.62rem; }
.today-summary-item strong { min-width: 0; overflow-wrap: anywhere; font-size: 0.76rem; }
.today-suggestion {
  --suggestion-accent: var(--brand);
  display: grid;
  min-width: 0;
  min-height: 238px;
  grid-template-columns: minmax(170px, 38%) minmax(0, 1fr);
  border: 1px solid #d4e2dd;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 28px rgba(30, 76, 63, 0.1);
}

.today-suggestion[data-tone="yellow"] { --suggestion-accent: #a76308; border-color: #ead8aa; }
.today-suggestion[data-tone="warm"] { --suggestion-accent: #9b5a20; border-color: #e4d0b7; }
.today-suggestion[data-tone="danger"] { --suggestion-accent: #a22c2c; border-color: #e7c2c2; }

.today-suggestion-visual {
  min-height: 238px;
  overflow: hidden;
  background: #e7f3ee;
}

.today-suggestion-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 238px;
  object-fit: cover;
}

.today-suggestion[data-image-position="today"] .today-suggestion-visual img { object-position: 63% center; }
.today-suggestion[data-image-position="family"] .today-suggestion-visual img { object-position: 64% center; }
.today-suggestion[data-image-position="lounge"] .today-suggestion-visual img { object-position: 50% center; }
.today-suggestion[data-image-position="games"] .today-suggestion-visual img { object-position: 50% center; }

.today-suggestion-copy {
  display: grid;
  min-width: 0;
  align-content: center;
  justify-items: start;
  padding: 18px 20px;
}

.today-suggestion-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}

.today-suggestion-kicker > span {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: #e8f5f1;
  color: var(--suggestion-accent);
}

.today-suggestion[data-tone="yellow"] .today-suggestion-kicker > span { background: #fff2d5; }
.today-suggestion[data-tone="warm"] .today-suggestion-kicker > span { background: #f8eadb; }
.today-suggestion[data-tone="danger"] .today-suggestion-kicker > span { background: #fdeaea; }

.today-suggestion-kicker .caremo-icon { width: 21px; height: 21px; }
.today-suggestion small { color: var(--suggestion-accent); font-size: 0.64rem; font-weight: 950; }
.today-suggestion h3 { margin: 0 0 6px; font-size: 1rem; line-height: 1.35; word-break: keep-all; overflow-wrap: break-word; }
.today-suggestion p { margin: 0 0 7px; color: var(--muted); font-size: 0.74rem; line-height: 1.65; word-break: keep-all; overflow-wrap: break-word; }
.today-suggestion a { display: inline-flex; min-height: 44px; align-items: center; gap: 3px; padding: 7px 0; color: var(--suggestion-accent); font-size: 0.74rem; font-weight: 950; }

.ai-answer-actions { display: flex; flex-wrap: wrap; gap: 2px 16px; align-items: center; }
.ai-answer-actions .text-button:last-child,
.lesson-ai-answer .text-button { color: #766f7c; text-decoration-color: #b7b0bd; }

.ai-consent-card { border-color: #d6d0ee; background: linear-gradient(145deg, #fff, #f6f3ff); }
.ai-data-details { margin-top: 14px; padding: 12px 14px; border-radius: 15px; background: rgba(255, 255, 255, 0.78); }
.ai-data-details summary { min-height: 44px; cursor: pointer; color: #57478c; font-weight: 850; }
.ai-data-details p { margin: 8px 0 0; }

.meal-teaser { background: linear-gradient(140deg, #fffaf0, #fff); }
.meal-teaser h2 { margin-bottom: 7px; }
.meal-teaser p { color: var(--muted); font-size: 0.8rem; }
.meal-teaser-total { display: grid; gap: 2px; margin: 11px 0; }
.meal-teaser-total strong { color: #8c5a0b; font-size: 1.28rem; }
.meal-teaser-total span { color: #725f3d; font-size: 0.72rem; }
.optional-medication { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 17px; border: 1px dashed #ccd8d2; border-radius: 20px; background: #fafcfb; }
.optional-medication > span { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 14px; background: #eef4f1; color: #567067; }
.optional-medication > span .caremo-icon { width: 23px; height: 23px; }
.optional-medication strong { display: block; margin-bottom: 3px; }
.optional-medication p { margin: 0; color: var(--muted); font-size: 0.72rem; }
.optional-medication > a { display: inline-flex; min-height: 44px; grid-column: 2; align-items: center; padding: 8px 0; font-size: 0.72rem; font-weight: 900; }

.shop-principles {
  padding: 4px 16px;
  border: 1px solid #dbe5df;
  border-radius: 18px;
  background: #fff;
}

.shop-principles summary {
  display: flex;
  min-height: 52px;
  cursor: pointer;
  align-items: center;
  font-weight: 900;
}

.shop-principles p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.78rem;
}

/* Meal journal */
.meal-nutrition-hero { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 14px; padding: 22px; overflow: hidden; border: 1px solid #ead9ac; border-radius: 25px; background: linear-gradient(135deg, #fff2c9, #fffaf1 55%, #e1f5ee); box-shadow: 0 14px 32px rgba(98, 75, 28, 0.09); }
.meal-nutrition-hero::before { height: 148px; grid-column: 1 / -1; margin: -22px -22px 4px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 250, 241, 0.2)), url('assets/caremo-shop-meal-container-v1.webp') center 58% / cover no-repeat; content: ''; }
.meal-nutrition-hero > span { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 18px; background: #fff; color: #9a650e; }
.meal-nutrition-hero > span .caremo-icon { width: 29px; height: 29px; }
.meal-nutrition-hero h2 { margin: 2px 0 5px; font-size: 1.25rem; }
.meal-nutrition-hero p { margin: 0; color: #6f6044; font-size: 0.76rem; }
.meal-nutrition-hero > .nutrition-totals { grid-column: 1 / -1; }
.nutrition-totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin-top: 13px; }
.nutrition-totals > div { display: grid; min-width: 0; gap: 2px; padding: 11px 6px; border: 1px solid rgba(255, 255, 255, 0.82); border-radius: 14px; background: rgba(255, 255, 255, 0.72); text-align: center; }
.nutrition-totals strong { overflow-wrap: anywhere; font-size: 0.9rem; }
.nutrition-totals span { color: var(--muted); font-size: 0.57rem; }
.nutrition-totals.is-compact { margin-top: 8px; }
.nutrition-totals.is-compact > div { padding: 8px 4px; background: #f7faf8; }
.meal-example-row { display: flex; flex-wrap: wrap; gap: 7px; }
.meal-example-row button { min-height: 44px; padding: 8px 12px; border: 1px solid #dac997; border-radius: 999px; background: #fffaf0; color: #6d5316; font-size: 0.7rem; font-weight: 850; }
.meal-live-estimate { min-height: 76px; padding: 13px; border: 1px dashed #cbd9d3; border-radius: 17px; background: #f8fbf9; }
.meal-live-estimate > p { margin: 0; color: var(--muted); font-size: 0.74rem; }
.meal-live-estimate > strong { font-size: 0.76rem; }
.meal-live-estimate > small { display: block; margin-top: 7px; color: var(--muted); }
.meal-photo-picker { min-width: 0; padding: 0; border: 0; margin: 0; }
.meal-photo-picker legend { margin-bottom: 8px; color: #26342b; font-weight: 850; }
.meal-photo-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.meal-photo-action { display: grid; min-width: 0; min-height: 112px; align-content: center; justify-items: center; gap: 3px; padding: 13px; border: 2px solid #b9cec6; border-radius: 19px; background: linear-gradient(145deg, #fff, #eef9f6); color: var(--brand-dark); cursor: pointer; text-align: center; }
.meal-photo-action:nth-of-type(2) { border-color: #d9c9a4; background: linear-gradient(145deg, #fff, #fff7e8); color: #7a520f; }
.meal-photo-action > span { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 3px; border-radius: 14px; background: rgba(255, 255, 255, 0.9); }
.meal-photo-action .caremo-icon { width: 24px; height: 24px; }
.meal-photo-action strong { font-size: 0.85rem; }
.meal-photo-action small { color: var(--muted); font-size: 0.61rem; }
.meal-photo-name { margin: 9px 0 0; color: #5d6e66; font-size: 0.68rem; }
.meal-photo-preview { margin-top: 9px; overflow: hidden; border-radius: 17px; background: #eef3f1; }
.meal-photo-preview img { display: block; width: 100%; max-height: 250px; object-fit: cover; }
.meal-entry-list { display: grid; gap: 13px; }
.meal-entry-card { display: grid; grid-template-columns: minmax(120px, 34%) minmax(0, 1fr); overflow: hidden; border: 1px solid #dce6e2; border-radius: 22px; background: #fff; box-shadow: 0 8px 22px rgba(28, 69, 57, 0.06); }
.meal-entry-photo { position: relative; min-height: 210px; background: #ecf3ef; }
.meal-entry-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.meal-entry-photo > span { position: absolute; bottom: 8px; left: 8px; padding: 4px 7px; border-radius: 8px; background: rgba(255, 255, 255, 0.85); font-size: 0.58rem; }
.meal-entry-photo.is-empty { display: grid; place-items: center; color: #6e8d82; }
.meal-entry-photo.is-empty .caremo-icon { width: 44px; height: 44px; }
.meal-entry-body { min-width: 0; padding: 16px; }
.meal-entry-body header { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.meal-entry-body header div { min-width: 0; }
.meal-entry-body header span { display: block; color: var(--brand); font-size: 0.66rem; font-weight: 900; }
.meal-entry-body header strong { display: block; margin-top: 3px; overflow-wrap: anywhere; font-size: 0.9rem; }
.meal-entry-body header small { flex: 0 0 auto; color: var(--muted); font-size: 0.58rem; }
.meal-match-list { margin: 9px 0 2px; color: #4f665e; font-size: 0.65rem; }

/* Live owned-content feed */
.content-feed-list { display: grid; gap: 11px; }
.content-feed-card { display: grid; min-width: 0; grid-template-columns: minmax(112px, 36%) minmax(0, 1fr); overflow: hidden; border: 1px solid #dce7e3; border-radius: 20px; background: #fff; color: var(--ink); text-decoration: none; }
.content-feed-image { display: block; min-height: 150px; overflow: hidden; background: #e8f3ee; }
.content-feed-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.content-feed-card:nth-child(4n + 2) .content-feed-image img { object-position: 62% center; }
.content-feed-card:nth-child(4n + 3) .content-feed-image img { object-position: 42% center; }
.content-feed-image.uses-brand-image img,
.content-feed-card.uses-brand-image .content-feed-image img { filter: saturate(0.92) contrast(0.98); }
.content-feed-image.is-fallback { display: grid; place-items: center; color: var(--brand); }
.content-feed-image.is-fallback .caremo-icon { width: 38px; height: 38px; }
.content-feed-copy { display: grid; min-width: 0; align-content: center; gap: 5px; padding: 14px; }
.content-feed-copy small { color: var(--brand); font-size: 0.62rem; font-weight: 900; }
.content-feed-copy strong { overflow-wrap: anywhere; font-size: 0.9rem; line-height: 1.4; }
.content-feed-copy > span { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 0.68rem; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.content-feed-copy em { display: inline-flex; align-items: center; gap: 3px; color: var(--brand-dark); font-size: 0.65rem; font-style: normal; font-weight: 900; }
.content-feed-loading { padding: 24px; border: 1px dashed #c7d8d2; border-radius: 18px; color: var(--muted); text-align: center; }
.official-channel-links { padding: 15px; border: 1px solid #e0e8e5; border-radius: 20px; background: #fff; }
.official-channel-links summary { display: flex; min-height: 48px; cursor: pointer; align-items: center; color: var(--brand-dark); font-weight: 900; }
.official-channel-links[open] summary { margin-bottom: 12px; }

.community-join-card .check-row a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin: -8px 2px;
  padding: 8px 3px;
  font-weight: 850;
}

.stack:has([data-form="medication"]) > .notice:first-child {
  overflow: hidden;
  padding: 17px 18px 18px;
  border: 1px solid #bdd6d0;
  border-left: 1px solid #bdd6d0;
  border-radius: 24px;
  background: linear-gradient(145deg, #f5fbf9, #edf6f2);
  color: #25473e;
  box-shadow: 0 12px 28px rgba(27, 75, 62, 0.08);
}

.stack:has([data-form="medication"]) > .notice:first-child::before {
  display: block;
  height: 132px;
  margin: -17px -18px 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(245, 251, 249, 0.12)),
    url('assets/caremo-tool-calendar-v1.webp') center 53% / cover no-repeat;
  content: '';
}

.stack:has([data-form="medication"]) > .notice:first-child .button-row {
  margin-top: 12px;
}

/* Family connection and researched curation */
.family-connect-step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; margin-top: 16px; padding: 13px; border-radius: 16px; background: rgba(255, 255, 255, 0.64); }
.family-connect-step > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; background: var(--brand); color: #fff; font-weight: 950; }
.family-connect-step p { margin: 0; font-size: 0.72rem; }
.invite-code { overflow-wrap: anywhere; font-size: clamp(1.1rem, 5vw, 1.45rem); letter-spacing: 0.08em; }
.family-share-primary { width: 100%; margin-top: 4px; }
.manual-invite-code,
.manual-join { margin-top: 12px; padding: 12px 14px; border: 1px solid rgba(7, 92, 84, 0.2); border-radius: 16px; background: rgba(255, 255, 255, 0.72); }
.manual-invite-code summary,
.manual-join summary { min-height: 44px; cursor: pointer; color: var(--brand-dark); font-size: 0.76rem; font-weight: 900; }
.manual-invite-code .invite-code { margin: 10px 0; padding: 13px; border: 1px dashed var(--brand); border-radius: 13px; background: #fff; text-align: center; }
.manual-join .form-group { margin-top: 10px; }
.family-contact-card form { margin-top: 16px; }
.family-contact-card .button-row { margin-top: 13px; }
.family-contact-card .form-group { gap: 9px; }
.community-topic-prompt { padding: 15px; border: 1px solid #b9ddd6; border-radius: 17px; background: linear-gradient(145deg, #edf9f6, #fff); }
.community-topic-prompt > span { color: var(--brand); font-size: 0.66rem; font-weight: 950; }
.community-topic-prompt strong { display: block; margin: 3px 0 5px; font-size: 0.9rem; }
.community-topic-prompt p { margin: 0; color: var(--muted); font-size: 0.72rem; }
.product-reasons { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.product-reasons li { padding: 5px 8px; border-radius: 999px; background: #edf6f2; color: #315f50; font-size: 0.62rem; font-weight: 800; }
.product-reviewed { padding-top: 9px; border-top: 1px solid #e5ebe8; color: #6a746f !important; font-size: 0.64rem !important; }

@media (max-width: 420px) {
  .life-feature-hero {
    min-height: 224px;
    gap: 6px;
    padding: 20px;
    border-radius: 22px;
  }

  .life-feature-hero h2 { font-size: 1.06rem; }
  .life-feature-hero p { font-size: 0.74rem; line-height: 1.48; }
  .life-feature-map + .local-only-note { padding: 11px 13px; font-size: 0.7rem; line-height: 1.48; }

  .meal-nutrition-hero {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 11px;
    padding: 18px;
    border-radius: 22px;
  }

  .meal-nutrition-hero::before {
    height: 136px;
    margin: -18px -18px 3px;
  }

  .meal-nutrition-hero > span { width: 48px; height: 48px; border-radius: 16px; }
  .meal-nutrition-hero > span .caremo-icon { width: 26px; height: 26px; }
  .meal-nutrition-hero h2 { font-size: 1.12rem; }
}

@media (min-width: 540px) {
  .app-shell {
    max-width: 540px;
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  .main-content {
    padding-right: 24px;
    padding-left: 24px;
  }
}

@media (max-width: 360px) {
  .main-content {
    padding-right: 14px;
    padding-left: 14px;
  }

  .card,
  .onboarding-card {
    padding: 17px;
  }

  .button-row {
    flex-direction: column;
  }

  .service-grid,
  .service-rail,
  .product-grid,
  .album-grid,
  .form-grid,
  .search-row {
    grid-template-columns: 1fr;
  }

  .life-editorial-hero,
  .life-hero-copy {
    min-height: 320px;
  }

  .life-hero-copy {
    padding: 18px;
  }

  .life-editorial-hero h2 {
    max-width: 15ch;
  }

  .memory-board { grid-template-columns: repeat(3, 1fr); }

  .wellbeing-choice span { min-height: 54px; }

  .lounge-visual-hero,
  .lounge-visual-hero > div { min-height: 228px; }
  .lounge-visual-hero > div { width: 78%; padding: 18px; }
  .community-account-note { grid-template-columns: minmax(0, 1fr); align-items: flex-start; }
  .community-writing-help { flex-direction: column; }
  .community-writing-help span:first-child { max-width: none; }
  .family-visual-banner > div { width: 84%; padding: 17px; }
  .family-visual-banner h2 { font-size: 1.05rem; }
  .family-visual-banner p { font-size: 0.69rem; }
  .game-visual-banner { grid-template-columns: 38% 1fr; }
  .today-hero-content { width: 82%; padding: 18px; }
  .today-hero-heading h1 { font-size: 1.42rem; }
  .condition-option { min-height: 142px; padding: 13px; }
  .condition-option strong { font-size: 0.78rem; }
  .condition-option small { font-size: 0.6rem; }
  .today-summary-item { grid-template-columns: 30px minmax(0, 1fr); padding: 10px; }
  .today-summary-item > span { width: 30px; height: 30px; }
  .nutrition-totals strong { font-size: 0.72rem; }
  .nutrition-totals span { font-size: 0.5rem; }
  .content-feed-card { grid-template-columns: 32% minmax(0, 1fr); }
  .content-feed-image { min-height: 136px; }
  .content-feed-copy { padding: 11px; }
  .practice-choice { grid-template-columns: minmax(0, 1fr); }
  .practice-choice label > span { min-height: 86px; }
  .practice-result,
  .lesson-ai-panel { grid-template-columns: 42px minmax(0, 1fr); padding: 15px; }
  .practice-result > span,
  .lesson-ai-panel > span { width: 42px; height: 42px; }

  .bottom-nav {
    width: calc(100% - 16px);
  }
}

/* Consented daily reassurance handoff. One card owns the whole routine flow. */
.today-routine-status {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #cfe1db;
  border-radius: 18px;
  background: #f8fcfa;
  color: #173c35;
}

.today-routine-status > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: #def4ef;
  color: #08766d;
}

.today-routine-status svg {
  width: 24px;
  height: 24px;
}

.today-routine-status div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.today-routine-status strong,
.today-routine-status small {
  overflow-wrap: anywhere;
}

.today-routine-status small {
  color: #5e7169;
}

.today-routine-status a,
.today-routine-status .text-button {
  min-height: 44px;
  padding: 10px 6px;
  white-space: nowrap;
  color: #075c54;
  font-weight: 850;
}

.routine-reassurance-card {
  display: grid;
  gap: 18px;
  overflow: hidden;
  border: 1px solid #cfe1db;
  background:
    radial-gradient(circle at 96% 4%, rgba(18, 143, 133, .12), transparent 34%),
    #fff;
}

.routine-reassurance-card.is-active {
  border-color: #65b9ab;
  background:
    radial-gradient(circle at 96% 4%, rgba(18, 143, 133, .2), transparent 38%),
    linear-gradient(145deg, #f2fcf9, #fff);
}

.routine-reassurance-card.is-quiet {
  background: #fbfdfc;
}

.today-routine-status[data-state="expired"],
.routine-reassurance-card.is-expired {
  border-color: #e6b96f;
  background:
    radial-gradient(circle at 96% 4%, rgba(218, 149, 48, .16), transparent 38%),
    linear-gradient(145deg, #fffaf0, #fff);
}

.today-routine-status[data-state="expired"] > span,
.routine-reassurance-card.is-expired .routine-reassurance-heading > span:first-child {
  background: #fff0cf;
  color: #8a4d00;
}

.routine-next-action {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 244, 219, .78);
  color: #573d19;
}

.routine-next-action strong,
.routine-next-action span {
  overflow-wrap: anywhere;
}

.routine-reassurance-heading {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.routine-reassurance-heading > span:first-child {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 18px;
  background: #def4ef;
  color: #08766d;
}

.routine-reassurance-heading svg {
  width: 30px;
  height: 30px;
}

.routine-reassurance-heading h2,
.routine-reassurance-heading p {
  margin: 0;
}

.routine-reassurance-settings {
  border-top: 1px solid #d9e6e1;
  padding-top: 14px;
}

.routine-reassurance-settings > summary {
  min-height: 48px;
  color: #075c54;
  font-weight: 850;
  cursor: pointer;
}

.routine-reassurance-settings[open] > summary {
  margin-bottom: 14px;
}

.routine-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.routine-settings-grid label {
  display: grid;
  gap: 8px;
  color: #31483f;
  font-weight: 800;
}

.routine-settings-grid label:last-child {
  grid-column: 1 / -1;
}

.routine-settings-grid input,
.routine-settings-grid select {
  width: 100%;
  min-height: 52px;
  box-sizing: border-box;
}

.routine-settings-grid small {
  color: #63756d;
  font-weight: 600;
}

.routine-result-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.routine-result-actions button {
  min-height: 58px;
  padding-inline: 12px;
  white-space: normal;
}

.routine-resolution {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: #eaf8f4;
}

@media (max-width: 430px) {
  .today-routine-status {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 13px;
  }

  .today-routine-status > span {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .today-routine-status a,
  .today-routine-status .text-button {
    grid-column: 2;
    justify-self: start;
    min-height: 40px;
    padding: 6px 0;
  }

  .routine-reassurance-card {
    gap: 14px;
  }

  .routine-reassurance-heading {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 11px;
  }

  .routine-reassurance-heading > span:first-child {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .routine-reassurance-heading > .status-badge {
    grid-column: 2;
    justify-self: start;
  }

  .routine-settings-grid,
  .routine-result-actions {
    grid-template-columns: 1fr;
  }

  .routine-settings-grid label:last-child {
    grid-column: auto;
  }
}

/* Verified family access and record summaries. Paid states are rendered only
   from a server-verified store entitlement; local storage never opens them. */
.membership-current-access {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding: 16px 18px;
  border: 1px solid #d9e7e2;
  border-radius: 18px;
  background: #fff;
}

.membership-current-access strong {
  color: var(--brand-dark);
  font-size: max(0.9rem, 16px);
}

.membership-current-access span {
  color: var(--muted);
  font-size: max(0.76rem, 13px);
  line-height: 1.5;
  text-align: right;
  word-break: keep-all;
}

.membership-benefit-grid article[data-access="active"] {
  border-color: rgba(18, 143, 133, 0.35);
  background: #f1fbf8;
}

.membership-benefit-grid article small {
  display: inline-flex;
  margin-top: 7px;
  color: var(--brand-dark);
  font-size: max(0.68rem, 12px);
  font-weight: 900;
}

.family-seat-limit {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid #ead6a4;
  border-radius: 18px;
  background: #fff9e9;
}

.family-next-step {
  display: grid;
  min-width: 0;
  gap: 13px;
  scroll-margin-top: 84px;
}

.community-guest-preview {
  display: grid;
  min-width: 0;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: stretch;
  gap: 16px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid #cee1da;
  border-radius: 22px;
  background: linear-gradient(135deg, #eefaf6, #fff8ed);
}

.community-guest-preview > img {
  width: 100%;
  height: 100%;
  min-height: 132px;
  border-radius: 16px;
  object-fit: cover;
}

.community-guest-preview > div {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 6px;
}

.community-guest-preview h2,
.community-guest-preview p {
  margin: 0;
  word-break: keep-all;
}

.community-guest-preview h2 {
  font-size: clamp(1.05rem, 4.6vw, 1.35rem);
  line-height: 1.35;
}

.community-guest-preview p,
.community-guest-preview span {
  color: var(--muted);
  font-size: max(0.76rem, 13px);
  line-height: 1.5;
}

.community-guest-preview span {
  color: var(--brand-dark);
  font-weight: 850;
}

.family-seat-limit p {
  margin: 0;
  color: #655c45;
  line-height: 1.55;
  word-break: keep-all;
}

.family-insights-card {
  overflow: hidden;
}

.family-insights-card[data-access="locked"] {
  border-color: #ddd7f3;
  background: linear-gradient(135deg, #fbf9ff, #f4fbf9);
}

.family-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}

.family-summary-grid article {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 13px 10px;
  border: 1px solid #dbe8e3;
  border-radius: 16px;
  background: #f8fcfa;
  text-align: center;
}

.family-summary-grid strong {
  color: var(--brand-dark);
  font-size: max(1.05rem, 19px);
}

.family-summary-grid span {
  color: var(--muted);
  font-size: max(0.68rem, 12px);
  line-height: 1.35;
  word-break: keep-all;
}

.family-trend {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  align-items: end;
  gap: 4px;
  min-height: 92px;
  margin: 16px 0 10px;
  padding: 12px 10px 8px;
  border-radius: 16px;
  background: #f5f8f7;
}

.family-trend > span {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 5px;
}

.family-trend i {
  display: block;
  width: 100%;
  min-width: 5px;
  height: 36px;
  border-radius: 999px;
  background: #dce4e1;
}

.family-trend [data-status="great"] i { height: 62px; background: #46b7a7; }
.family-trend [data-status="usual"] i { height: 50px; background: #82cdbd; }
.family-trend [data-status="rest"] i { height: 38px; background: #f0bd69; }
.family-trend [data-status="help"] i { height: 28px; background: #ec8d89; }

.family-trend small {
  overflow: hidden;
  width: 100%;
  color: #6c7873;
  font-size: 9px;
  text-align: center;
  text-overflow: clip;
  white-space: nowrap;
}

@media (max-width: 430px) {
  .membership-current-access {
    align-items: flex-start;
    flex-direction: column;
  }

  .membership-current-access span {
    text-align: left;
  }

  .family-summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .family-summary-grid article {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    text-align: left;
  }

  .family-trend {
    gap: 3px;
    padding-inline: 7px;
  }

  .family-trend small {
    font-size: 8px;
  }

  .community-guest-preview {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 11px;
    padding: 11px;
  }

  .community-guest-preview > img {
    min-height: 112px;
  }

  .community-guest-preview p {
    display: none;
  }
}

@media (max-width: 480px) {
  .header-status { display: none; }
  .community-account-note { grid-template-columns: minmax(0, 1fr); align-items: flex-start; }
  .meal-entry-card { grid-template-columns: 1fr; }
  .meal-entry-photo { min-height: 180px; max-height: 230px; }
  .today-suggestion { min-height: 0; grid-template-columns: minmax(0, 1fr); }
  .today-suggestion-visual,
  .today-suggestion-visual img { min-height: 148px; height: 148px; }
  .today-suggestion-copy { padding: 15px 16px 12px; }
  .today-suggestion h3 { font-size: 0.94rem; }
  .today-suggestion p { font-size: 0.7rem; line-height: 1.58; }
}

:root[data-text-size="large"] .practice-choice,
:root[data-text-size="large"] .meal-photo-actions {
  grid-template-columns: minmax(0, 1fr);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:root[data-reduced-motion="true"] *,
:root[data-reduced-motion="true"] *::before,
:root[data-reduced-motion="true"] *::after {
  scroll-behavior: auto !important;
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

.guardian-test-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px clamp(16px, 4vw, 24px);
  border-bottom: 1px solid #c9b9ef;
  background: #f3efff;
  color: #49377d;
  font-size: 0.84rem;
  line-height: 1.45;
}

.onboarding-shell > .guardian-test-banner {
  width: min(100%, 1120px);
  margin: 0 auto 14px;
  border: 1px solid #c9b9ef;
  border-radius: 16px;
}

.guardian-test-banner strong { flex: 0 0 auto; }
.guardian-test-banner span { flex: 1 1 auto; }
.guardian-test-banner a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 8px;
  box-sizing: border-box;
  flex: 0 0 auto;
  color: inherit;
  font-weight: 800;
  text-underline-offset: 3px;
}

.guardian-test-settings {
  border-color: #d7ccf4;
  background: linear-gradient(145deg, #fbf9ff 0%, #f3f8ff 100%);
}

@media (max-width: 520px) {
  .guardian-test-banner { align-items: flex-start; flex-wrap: wrap; }
  .guardian-test-banner span { flex-basis: calc(100% - 120px); }
  .guardian-test-banner a { margin-left: auto; }
}

/* Easy Sudoku and local-only Hwatu picture game */
.extra-game-shell {
  width: 100%;
  min-width: 0;
}

.game-intro-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid #cce7e0;
  border-radius: 22px;
  background: linear-gradient(135deg, #f4fcf9, #e4f5ef);
}

.game-intro-card > span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 18px;
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 8px 18px rgba(21, 81, 66, 0.1);
}

.game-intro-card > span .caremo-icon { width: 29px; height: 29px; }
.game-intro-card strong { display: block; margin-bottom: 4px; line-height: 1.42; }
.game-intro-card p { margin: 0; color: var(--muted); font-size: 0.76rem; line-height: 1.62; }
.hwatu-intro { border-color: #eadbb6; background: linear-gradient(135deg, #fffaf0, #f7ecd0); }
.hwatu-intro > span { color: #a4513d; }

.hwatu-mode-switch {
  display: grid;
  gap: 8px;
  padding: 6px;
  border: 1px solid #d9e4e1;
  border-radius: 18px;
  background: #edf4f2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hwatu-mode-switch button {
  min-width: 0;
  min-height: 50px;
  padding: 8px 10px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #49635d;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
}

.hwatu-mode-switch button.is-active {
  background: #fff;
  color: #0c665a;
  box-shadow: 0 5px 14px rgba(20, 67, 57, 0.12);
}

.friend-hwatu-intro {
  border-color: #c7ddd7;
  background: linear-gradient(135deg, #f4fbf8, #e9f3ff);
}

.friend-hwatu-intro > span { color: #386c8f; }

.friend-player-scores {
  display: grid;
  min-width: 0;
  gap: 9px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.friend-player-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid #d9e4e1;
  border-radius: 17px;
  background: #fff;
}

.friend-player-card.is-current {
  border-color: #62b9a9;
  background: #ecfaf6;
  box-shadow: inset 0 0 0 1px #62b9a9;
}

.friend-player-card span,
.friend-player-card strong,
.friend-player-card small { display: block; }
.friend-player-card span { overflow-wrap: anywhere; color: #426159; font-size: 0.7rem; font-weight: 850; }
.friend-player-card strong { margin: 3px 0; color: #123e36; font-size: 1.08rem; }
.friend-player-card small { color: var(--muted); font-size: 0.62rem; line-height: 1.45; }

.game-status-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.game-status-three > div { min-width: 0; padding-inline: 8px; }
.game-status-three strong { font-size: clamp(0.88rem, 4vw, 1.12rem); white-space: nowrap; }

.sudoku-panel,
.hwatu-table {
  display: grid;
  min-width: 0;
  gap: 16px;
  padding: clamp(13px, 4vw, 20px);
  border: 1px solid #d9e5e2;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(20, 67, 57, 0.08);
}

.sudoku-board {
  display: grid;
  width: min(100%, 520px);
  margin-inline: auto;
  overflow: hidden;
  border: 3px solid #275f55;
  border-radius: 10px;
  background: #275f55;
  grid-template-columns: repeat(9, minmax(0, 1fr));
}

.sudoku-cell {
  display: grid;
  min-width: 0;
  aspect-ratio: 1;
  place-items: center;
  padding: 0;
  border: 0;
  border-right: 1px solid #b8ccc7;
  border-bottom: 1px solid #b8ccc7;
  border-radius: 0;
  background: #fff;
  color: #194d44;
  font: inherit;
  font-size: clamp(0.72rem, 3.8vw, 1.05rem);
  font-weight: 850;
  line-height: 1;
}

.sudoku-cell:nth-child(3n) { border-right: 3px solid #275f55; }
.sudoku-cell:nth-child(9n) { border-right: 0; }
.sudoku-cell:nth-child(n+19):nth-child(-n+27),
.sudoku-cell:nth-child(n+46):nth-child(-n+54) { border-bottom: 3px solid #275f55; }
.sudoku-cell:nth-child(n+73) { border-bottom: 0; }
.sudoku-cell:disabled { opacity: 1; }
.sudoku-cell.is-fixed { background: #eef4f2; color: #172c28; font-weight: 950; }
.sudoku-cell.is-related { background: #eefaf7; }
.sudoku-cell.is-same-number { background: #d2f0e8; }
.sudoku-cell.is-selected {
  position: relative;
  z-index: 3;
  min-width: 44px;
  min-height: 44px;
  border-radius: 7px;
  background: #f8e8ad;
  box-shadow: inset 0 0 0 3px #d79c21, 0 3px 10px rgba(72, 54, 18, 0.2);
  transform: scale(1.08);
}
.sudoku-cell:focus-visible { position: relative; z-index: 2; outline: 3px solid #315fc2; outline-offset: -3px; }

.sudoku-cell-navigator {
  display: grid;
  width: min(100%, 520px);
  margin-inline: auto;
  align-items: center;
  gap: 7px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.sudoku-cell-navigator button {
  display: inline-flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 7px;
  border: 1px solid #bfd6d0;
  border-radius: 14px;
  background: #f7fcfa;
  color: #134b42;
  font: inherit;
  font-size: 0.67rem;
  font-weight: 900;
}

.sudoku-cell-navigator strong {
  min-width: 64px;
  text-align: center;
  font-size: 0.68rem;
}

.game-feedback {
  min-height: 46px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 15px;
  background: #f4f8f7;
  color: #31564f;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.55;
  text-align: center;
}

.sudoku-keypad {
  display: grid;
  width: min(100%, 520px);
  margin-inline: auto;
  gap: 7px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.sudoku-keypad button {
  min-width: 0;
  min-height: 50px;
  padding: 5px;
  border: 1px solid #bfd6d0;
  border-radius: 14px;
  background: #f7fcfa;
  color: #134b42;
  font: inherit;
  font-size: 1rem;
  font-weight: 900;
}

.sudoku-keypad button:active { background: #dff3ed; transform: translateY(1px); }
.sudoku-keypad .is-erase { color: #676f6c; font-size: 0.72rem; }
.sudoku-hint-button { width: min(100%, 520px); margin-inline: auto; }

.game-finish-card {
  padding: 19px;
  border: 1px solid #9bd7c9;
  border-radius: 18px;
  background: linear-gradient(135deg, #e2f7f1, #fff8e7);
  text-align: center;
}

.game-finish-card strong { display: block; margin-bottom: 5px; font-size: 1.04rem; }
.game-finish-card p { margin: 0; color: var(--muted); font-size: 0.76rem; }

.hwatu-table {
  border-color: #d8cdb4;
  background: linear-gradient(150deg, #fbfaf6, #f5f0e6);
}

.hwatu-zone-heading {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.hwatu-zone-heading > div { flex: 0 0 auto; }
.hwatu-zone-heading span { display: block; color: #7b513f; font-size: 0.69rem; font-weight: 900; }
.hwatu-zone-heading strong { display: block; margin-top: 2px; }
.hwatu-zone-heading p { max-width: 60%; margin: 0; color: var(--muted); font-size: 0.68rem; line-height: 1.5; text-align: right; }

.hwatu-scoreboard {
  display: grid;
  gap: 7px;
  padding: 13px;
  border: 1px solid #dfd3b8;
  border-radius: 18px;
  background: #fffdf8;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hwatu-scoreboard > div {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 9px 10px;
  border-radius: 12px;
  background: #f7f2e7;
  font-size: 0.68rem;
}

.hwatu-scoreboard span { color: #8f463a; font-weight: 900; }
.hwatu-scoreboard strong { font-size: 0.67rem; white-space: nowrap; }
.hwatu-scoreboard p { margin: 1px 4px 0; color: #76523e; font-size: 0.68rem; font-weight: 850; grid-column: 1 / -1; }

.hwatu-decision {
  padding: 18px;
  border: 2px solid #d8a338;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff4cf, #fffdf5);
  text-align: center;
}

.hwatu-decision h2 { margin: 3px 0 14px; font-size: 1rem; }
.hwatu-decision > div { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hwatu-decision button { min-width: 0; min-height: 52px; padding-inline: 8px; }

.friend-hwatu-handoff {
  display: grid;
  justify-items: center;
  padding: clamp(22px, 7vw, 34px) 18px;
  border: 2px solid #79b8aa;
  border-radius: 22px;
  background: linear-gradient(145deg, #e6f7f2, #fffdf4);
  text-align: center;
}

.friend-hwatu-handoff > span {
  display: grid;
  width: 64px;
  height: 72px;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 14px;
  background: #166c60;
  color: #fff;
  box-shadow: 0 10px 22px rgba(21, 87, 73, 0.2);
}

.friend-hwatu-handoff .caremo-icon { width: 35px; height: 35px; }
.friend-hwatu-handoff h2 { margin: 2px 0 7px; font-size: 1.1rem; }
.friend-hwatu-handoff > p:not(.eyebrow) { max-width: 430px; margin: 0 0 17px; color: var(--muted); font-size: 0.74rem; line-height: 1.6; }
.friend-hwatu-handoff .primary-button { width: min(100%, 430px); min-height: 54px; }
.friend-hwatu-result p { overflow-wrap: anywhere; }

.hwatu-grid {
  display: grid;
  min-width: 0;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.hwatu-card {
  position: relative;
  display: grid;
  min-width: 0;
  aspect-ratio: 0.64 / 1;
  align-content: space-between;
  justify-items: center;
  overflow: hidden;
  padding: 7px 3px 6px;
  border: 2px solid #d54c4c;
  border-radius: 10px;
  background:
    radial-gradient(circle at 68% 31%, color-mix(in srgb, var(--hwatu-tone) 62%, white) 0 13%, transparent 14%),
    linear-gradient(160deg, #fffef9 0 62%, color-mix(in srgb, var(--hwatu-tone) 19%, white) 63% 100%);
  color: #2a3431;
  font: inherit;
  box-shadow: 0 5px 10px rgba(63, 47, 30, 0.12);
}

.hwatu-card::before,
.hwatu-card::after {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 5px solid var(--hwatu-tone);
  border-radius: 50% 10% 50% 10%;
  content: "";
  opacity: 0.72;
  transform: rotate(28deg);
}

.hwatu-card::before { top: 27%; left: 13%; }
.hwatu-card::after { right: 8%; bottom: 21%; transform: rotate(110deg) scale(.72); }
.hwatu-card:disabled { opacity: 1; }
.hwatu-card.is-selectable { cursor: pointer; }
.hwatu-card.is-selectable:hover,
.hwatu-card.is-selectable:focus-visible,
.hwatu-card.is-selected { border-color: #0a8274; outline: 4px solid #75d4c5; outline-offset: 2px; transform: translateY(-2px); }
.hwatu-month,
.hwatu-card small,
.hwatu-mark { position: relative; z-index: 1; }
.hwatu-month { color: #9d3838; font-size: clamp(0.55rem, 2.5vw, 0.66rem); font-weight: 950; }
.hwatu-mark { color: var(--hwatu-tone); font-family: serif; font-size: clamp(1rem, 5.4vw, 1.55rem); font-weight: 950; text-shadow: 0 1px #fff; }
.hwatu-card small { color: #665a50; font-size: clamp(0.48rem, 2vw, 0.58rem); font-weight: 850; }

@media (max-width: 370px) {
  .sudoku-panel,
  .hwatu-table { padding: 10px; }
  .sudoku-keypad,
  .hwatu-grid { gap: 5px; }
  .hwatu-card { border-width: 1.5px; border-radius: 8px; }
  .sudoku-cell.is-selected { min-width: 44px; min-height: 44px; transform: scale(1.03); }
}

:root[data-text-size="large"] .game-intro-card { grid-template-columns: minmax(0, 1fr); }
:root[data-text-size="large"] .game-intro-card > span { width: 48px; height: 48px; }
:root[data-text-size="large"] .hwatu-zone-heading { align-items: flex-start; flex-direction: column; }
:root[data-text-size="large"] .hwatu-zone-heading p { max-width: none; text-align: left; }

/* 2026-07-20 mobile product polish
   One clear task per viewport, editorial imagery, and no horizontal rails. */
html,
body,
#app,
.app-shell,
.main-content {
  max-width: 100%;
  min-width: 0;
}

html,
body {
  overflow-x: clip;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
}

.main-content {
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
}

.main-content > *,
.today-focused-flow > *,
.together-screen > *,
.nearby-care-screen > * {
  min-width: 0;
}

.screen-heading {
  margin-bottom: 15px;
}

.screen-heading > h1 {
  margin-bottom: 6px;
}

.screen-heading > .subtle {
  max-width: 34rem;
  margin-bottom: 0;
  font-size: max(0.86rem, 15px);
  line-height: 1.58;
}

/* Launch: one image, one promise, one primary action. */
.onboarding-shell-launch {
  min-height: 100dvh;
  align-content: center;
  padding: max(10px, env(safe-area-inset-top)) 12px max(10px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 235, 211, 0.78), transparent 34%),
    linear-gradient(155deg, #effaf6 0%, #fbf5ed 100%);
}

.onboarding-card-launch {
  width: min(100%, 520px);
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 70px rgba(24, 72, 60, 0.14);
}

.onboarding-card-launch.stack {
  gap: 11px;
}

.launch-brand-row {
  min-height: 42px;
  padding: 0 3px;
}

.launch-brand {
  font-size: 1rem;
}

.launch-brand img {
  width: 36px;
  height: 36px;
  padding: 7px;
  border-radius: 13px;
}

.launch-badge {
  max-width: 52%;
  padding: 6px 10px;
  border-color: rgba(7, 92, 84, 0.13);
  background: #f0f8f5;
  font-size: max(0.68rem, 12px);
  line-height: 1.3;
  text-align: center;
}

.launch-hero {
  position: relative;
  display: flex;
  min-height: clamp(286px, 47dvh, 384px);
  align-items: flex-end;
  padding: 0;
  overflow: hidden;
  border: 1px solid #b7e0d7;
  border-radius: 24px;
  background: #d9eee7;
  isolation: isolate;
}

.launch-hero::after {
  position: absolute;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(250, 253, 250, 0.99) 0%, rgba(250, 253, 250, 0.94) 42%, rgba(250, 253, 250, 0.45) 70%, rgba(250, 253, 250, 0.08) 100%),
    linear-gradient(0deg, rgba(250, 253, 250, 0.92) 0%, rgba(250, 253, 250, 0) 52%);
  content: "";
  inset: 0;
}

.launch-hero-image {
  position: absolute;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 63% center;
  inset: 0;
}

.launch-copy {
  width: min(78%, 390px);
  padding: clamp(18px, 5vw, 27px);
}

.launch-copy .eyebrow {
  margin-bottom: 7px;
  font-size: max(0.73rem, 13px);
}

.launch-copy h1 {
  max-width: 12ch;
  margin-bottom: 9px;
  font-size: clamp(1.62rem, 7.3vw, 2.25rem);
  line-height: 1.13;
}

.launch-copy p:last-child {
  max-width: 25ch;
  color: #345d53;
  font-size: max(0.82rem, 14px);
  line-height: 1.55;
}

.launch-primary {
  min-height: 56px;
  border-radius: 18px;
  box-shadow: 0 11px 25px rgba(7, 92, 84, 0.2);
}

.launch-trust {
  margin: -1px 7px 0;
  color: #586962;
  font-size: max(0.7rem, 12px);
  line-height: 1.45;
}

.launch-policy-links {
  gap: 4px;
  justify-content: center;
}

.launch-policy-links .text-button {
  width: auto;
  min-height: 40px;
  padding: 6px 8px;
  color: #64716b;
  font-size: max(0.68rem, 12px);
}

/* Fixed five-tab navigation: stable position and equal touch targets. */
.bottom-nav {
  right: 0;
  bottom: 0;
  left: 0;
  width: min(100%, 540px);
  max-width: none;
  gap: 2px;
  margin: 0 auto;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  transform: none;
  border: 1px solid rgba(205, 219, 213, 0.94);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -8px 28px rgba(24, 66, 56, 0.11);
  backdrop-filter: blur(15px);
}

.nav-link {
  min-width: 0;
  min-height: 57px;
  gap: 3px;
  padding: 5px 2px;
  border-radius: 16px;
  font-size: max(0.7rem, 12px);
  line-height: 1.2;
  white-space: nowrap;
}

.nav-link[aria-current="page"] {
  background: linear-gradient(145deg, #e5f7f2, #f8f3e8);
  box-shadow: inset 0 0 0 1px rgba(18, 143, 133, 0.08);
}

.nav-icon,
.nav-icon svg {
  width: 23px;
  height: 23px;
}

/* Today: shorter image hero with the AI copy inside the image composition. */
.today-core-hero {
  min-height: 350px;
  border-radius: 27px;
  margin-bottom: 13px;
  box-shadow: 0 16px 38px rgba(25, 93, 77, 0.13);
}

.today-core-hero::after {
  background:
    linear-gradient(90deg, rgba(250, 253, 250, 0.99) 0%, rgba(250, 253, 250, 0.93) 44%, rgba(250, 253, 250, 0.34) 76%, rgba(250, 253, 250, 0.06) 100%),
    linear-gradient(0deg, rgba(250, 253, 250, 0.65), transparent 45%);
}

.today-hero-image {
  object-position: 61% center;
}

.today-hero-content {
  width: min(78%, 390px);
  min-height: 350px;
  gap: 11px;
  padding: 20px;
}

.today-core-hero.has-ai-guidance {
  min-height: 386px;
}

.today-core-hero.has-ai-guidance .today-hero-content {
  width: min(90%, 455px);
  min-height: 386px;
  align-content: end;
  gap: 9px;
  padding: 17px;
}

.today-avatar {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  font-size: 1.02rem;
}

.today-hero-heading {
  gap: 10px;
}

.today-hero-heading .eyebrow {
  font-size: max(0.7rem, 12px);
}

.today-hero-heading h1 {
  font-size: clamp(1.35rem, 6.2vw, 1.72rem);
  line-height: 1.22;
}

.today-hero-message {
  padding: 12px 13px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.82);
}

.today-hero-message strong {
  margin-bottom: 4px;
  font-size: max(1rem, 17px);
  line-height: 1.38;
}

.today-hero-message p {
  color: #315a50;
  font-size: max(0.78rem, 14px);
  line-height: 1.55;
}

.today-hero-ai-label,
.today-hero-ai-caution,
.today-hero-ai-actions a,
.today-hero-ai-actions .text-button,
.today-hero-ai-once,
.today-hero-ai-pending,
.today-hero-ai-fallback {
  font-size: max(0.7rem, 12px);
}

.today-hero-ai-actions {
  gap: 1px 12px;
  margin-top: 5px;
}

.today-hero-ai-actions a,
.today-hero-ai-actions .text-button,
.today-hero-ai-once {
  min-height: 44px;
}

.today-hero-progress {
  padding: 11px 13px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
}

.today-hero-progress > span,
.today-hero-progress small {
  font-size: max(0.7rem, 12px);
}

.today-hero-progress .progress-track {
  height: 8px;
  margin: 7px 0 4px;
}

.today-focused-flow {
  gap: 12px;
}

.condition-card {
  padding: 17px;
}

.condition-card .status-line {
  margin-bottom: 10px;
}

.condition-card .status-line h2 {
  margin: 0;
}

.condition-prompt {
  font-size: max(0.82rem, 14px);
  line-height: 1.55;
}

.condition-complete {
  display: grid;
  min-width: 0;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #cbe4dc;
  border-radius: 18px;
  background: linear-gradient(145deg, #f3fbf8, #fff);
}

.condition-complete[data-tone="rest"] {
  border-color: #ead9b4;
  background: linear-gradient(145deg, #fff9eb, #fff);
}

.condition-complete[data-tone="help"] {
  border-color: #efc4c4;
  background: linear-gradient(145deg, #fff4f4, #fff);
}

.condition-complete .action-symbol {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  background: #dff4ee;
  color: var(--brand-dark);
}

.condition-complete .caremo-icon {
  width: 25px;
  height: 25px;
}

.condition-complete strong {
  display: block;
  font-size: max(0.94rem, 16px);
}

.condition-complete p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: max(0.76rem, 13px);
  line-height: 1.5;
}

.condition-feedback {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 12px 13px;
  border-left: 4px solid var(--brand);
  border-radius: 15px;
  background: #f2faf7;
  color: var(--ink);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.condition-feedback[data-tone="rest"] {
  border-left-color: #b97a18;
  background: #fff8e9;
}

.condition-feedback[data-tone="help"] {
  border-left-color: var(--danger);
  background: #fff3f3;
}

.condition-feedback strong {
  font-size: max(0.84rem, 15px);
  line-height: 1.4;
}

.condition-feedback p,
.condition-feedback small {
  margin: 0;
  color: var(--muted);
  font-size: max(0.72rem, 12px);
  line-height: 1.5;
}

.condition-feedback small {
  color: var(--brand-dark);
  font-weight: 850;
}

.today-checkin-loop {
  display: grid;
  min-width: 0;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin-top: 11px;
  padding: 13px;
  border: 1px solid #d9e7e2;
  border-radius: 17px;
  background: #f8fbfa;
}

.today-checkin-loop > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: #e5f5f0;
  color: var(--brand-dark);
}

.today-checkin-loop[data-state="replied"] {
  border-color: #c8dfd7;
  background: linear-gradient(145deg, #eefaf6, #fffaf0);
}

.today-checkin-loop[data-state="replied"] > span {
  background: #fff0c9;
  color: #7f5a00;
}

.today-checkin-loop[data-state="requested"] {
  border-color: #c9d8ee;
  background: linear-gradient(145deg, #f2f6ff, #f7fbfa);
}

.today-checkin-loop[data-state="requested"] > span {
  background: #e5edfb;
  color: #315d94;
}

.today-checkin-loop strong,
.today-checkin-loop p,
.today-checkin-loop ul {
  margin: 0;
}

.today-checkin-loop p {
  margin-top: 4px;
  color: var(--muted);
  font-size: max(0.74rem, 13px);
  line-height: 1.5;
}

.today-checkin-loop a {
  display: inline-block;
  margin-top: 7px;
  color: var(--brand-dark);
  font-weight: 900;
}

.today-checkin-loop ul {
  display: grid;
  gap: 5px;
  margin-top: 8px;
  padding: 0;
  list-style: none;
}

.today-checkin-loop li {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 3px 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  font-size: max(0.72rem, 12px);
}

.today-checkin-loop li span {
  color: var(--muted);
}

.today-reply-card .status-line {
  align-items: flex-start;
}

.today-reply-card .status-line h2 {
  margin: 2px 0 0;
}

.today-reply-actions {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.today-reply-actions button {
  display: grid;
  min-width: 0;
  min-height: 84px;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 10px 6px;
  border: 1px solid #cfe1db;
  border-radius: 16px;
  background: #fff;
  color: var(--brand-dark);
  text-align: center;
}

.today-reply-actions button[aria-pressed="true"] {
  border-color: var(--brand);
  background: #e8f7f3;
  box-shadow: inset 0 0 0 1px var(--brand);
}

.today-reply-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.today-reply-actions .caremo-icon {
  width: 25px;
  height: 25px;
}

.today-reply-actions strong {
  overflow-wrap: anywhere;
  font-size: max(0.72rem, 12px);
  line-height: 1.25;
}

.check-request-actions {
  grid-template-columns: minmax(0, 1fr);
}

.check-request-actions button {
  min-height: 62px;
  grid-template-columns: auto auto;
  place-content: center;
  gap: 9px;
}

.today-activity-strip {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.today-activity-strip article {
  display: grid;
  min-width: 0;
  min-height: 132px;
  align-content: start;
  justify-items: start;
  gap: 3px;
  padding: 13px 11px 10px;
  overflow: hidden;
  border: 1px solid #d9e8e2;
  border-radius: 19px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(237, 248, 244, 0.9));
  box-shadow: 0 8px 20px rgba(24, 73, 61, 0.055);
}

.today-activity-strip article:nth-child(2) {
  border-color: #eadcbd;
  background: linear-gradient(160deg, #fff, #fff7e9);
}

.today-activity-strip article:nth-child(3) {
  border-color: #ded9ec;
  background: linear-gradient(160deg, #fff, #f6f2ff);
}

.today-activity-strip article > span:first-child {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 3px;
  place-items: center;
  border-radius: 12px;
  background: #ddf3ed;
  color: var(--brand-dark);
}

.today-activity-strip article > span:first-child .caremo-icon {
  width: 20px;
  height: 20px;
}

.today-activity-strip small {
  color: #64736d;
  font-size: max(0.68rem, 12px);
  font-weight: 750;
}

.today-activity-strip strong {
  max-width: 100%;
  color: #173f36;
  font-size: clamp(0.78rem, 3.6vw, 0.92rem);
  line-height: 1.3;
}

.today-activity-strip article > button,
.today-activity-strip article > a,
.today-activity-strip article > span:last-child {
  display: inline-flex;
  width: auto;
  min-height: 36px;
  align-items: center;
  align-self: end;
  margin-top: auto;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  font: inherit;
  font-size: max(0.69rem, 12px);
  font-weight: 900;
  line-height: 1.25;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.today-secondary-actions {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.today-secondary-actions > a {
  display: grid;
  min-width: 0;
  min-height: 78px;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid #d8e5e0;
  border-radius: 19px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(23, 67, 56, 0.05);
  text-decoration: none;
}

.today-secondary-actions > a:first-child {
  background: linear-gradient(145deg, #fffaf0, #fff);
}

.today-secondary-actions > a:last-child {
  background: linear-gradient(145deg, #eef9f6, #fff);
}

.today-secondary-actions > a > .caremo-icon {
  width: 27px;
  height: 27px;
  color: var(--brand);
}

.today-secondary-actions strong,
.today-secondary-actions small {
  display: block;
}

.today-secondary-actions strong {
  font-size: max(0.82rem, 14px);
}

.today-secondary-actions small {
  margin-top: 2px;
  color: var(--muted);
  font-size: max(0.68rem, 12px);
  line-height: 1.4;
}

/* Together: person-first choices and a visible three-step connection path. */
.together-screen {
  gap: 12px;
}

.connection-choice {
  padding: 18px;
  border: 1px solid #cfe4dd;
  border-radius: 24px;
  background:
    radial-gradient(circle at 98% 0, rgba(255, 225, 190, 0.55), transparent 34%),
    linear-gradient(145deg, #f5fcf9, #fff);
  box-shadow: 0 12px 30px rgba(24, 72, 60, 0.07);
}

.connection-choice > div:first-child > h2 {
  margin-bottom: 5px;
}

.connection-choice > div:first-child > p:last-child {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: max(0.78rem, 14px);
  line-height: 1.52;
}

.connection-choice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.connection-choice-grid > button {
  display: grid;
  min-width: 0;
  min-height: 72px;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0 11px;
  padding: 11px 13px;
  border: 1px solid #d9e6e1;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  text-align: left;
}

.connection-choice-grid > button > span {
  display: grid;
  width: 44px;
  height: 44px;
  grid-row: 1 / 3;
  place-items: center;
  border-radius: 15px;
  background: #e5f5f0;
  color: var(--brand-dark);
}

.connection-choice-grid > button > span .caremo-icon {
  width: 24px;
  height: 24px;
}

.connection-choice-grid > button > strong {
  align-self: end;
  font-size: max(0.9rem, 15px);
}

.connection-choice-grid > button > small {
  align-self: start;
  color: var(--muted);
  font-size: max(0.7rem, 12px);
  line-height: 1.35;
}

.connection-choice-grid > button[aria-pressed="true"] {
  border: 2px solid var(--brand);
  background: #eaf8f4;
  box-shadow: 0 7px 18px rgba(18, 143, 133, 0.1);
}

.connection-choice-grid > button[aria-pressed="true"] > span {
  background: var(--brand-dark);
  color: #fff;
}

.solo-mode-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 13px;
  padding: 17px;
  border: 1px solid #cfe0da;
  border-radius: 22px;
  background: #fff;
}

.solo-mode-card > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  background: #e7f6f1;
  color: var(--brand-dark);
}

.solo-mode-card h2 {
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.solo-mode-card p {
  margin: 0;
  color: var(--muted);
  font-size: max(0.78rem, 14px);
  line-height: 1.55;
}

.connection-consent-card,
.family-connect-card,
.connected-together-card,
.family-pending-card,
.family-join-card {
  padding: 18px;
}

.received-invite-entry {
  padding: 18px;
  text-align: left;
}

.received-invite-entry input {
  width: 100%;
  min-height: 48px;
  font-size: max(1rem, 18px);
  letter-spacing: 0.04em;
}

.received-invite-entry button {
  min-height: 48px;
}

.connection-steps {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 14px 0;
  list-style: none;
  counter-reset: none;
}

.connection-steps li {
  display: grid;
  min-width: 0;
  min-height: 52px;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border: 1px solid rgba(18, 143, 133, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.72);
}

.connection-steps li > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: var(--brand);
  color: #fff;
  font-size: max(0.75rem, 13px);
  font-weight: 950;
}

.connection-steps li > strong {
  font-size: max(0.8rem, 14px);
  line-height: 1.4;
}

.connection-privacy-note {
  margin: 13px 0 0;
  padding: 11px 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: #3f6259;
  font-size: max(0.72rem, 13px);
  line-height: 1.5;
}

.manual-invite-code,
.manual-join {
  padding: 9px 12px;
}

.manual-invite-code summary,
.manual-join summary {
  font-size: max(0.72rem, 13px);
}

/* Lounge: comments feel like a conversation, not a settings panel. */
.community-feed {
  gap: 10px;
  padding: 14px;
  border-radius: 22px;
}

.community-post {
  padding: 15px;
  border-radius: 19px;
}

.community-post-body {
  font-size: max(0.86rem, 15px);
}

.community-post-actions {
  align-items: center;
}

.community-comment-toggle {
  display: inline-flex;
  width: auto;
  min-height: 42px;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid #c7e1db;
  border-radius: 999px;
  background: #edf8f5;
  color: var(--brand-dark);
  font: inherit;
  font-size: max(0.72rem, 13px);
  font-weight: 900;
}

.community-comments {
  display: grid;
  gap: 10px;
  margin-top: 11px;
  padding: 12px;
  border: 1px solid #dae8e4;
  border-radius: 17px;
  background: #f7fbfa;
}

.community-comment-list {
  display: grid;
  gap: 8px;
}

.community-comment-list > .empty-state {
  padding: 16px 12px;
  border-width: 1px;
  border-radius: 14px;
  background: #fff;
  font-size: max(0.75rem, 13px);
}

.community-comment {
  display: grid;
  min-width: 0;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  padding: 10px;
  border: 1px solid #e1ebe8;
  border-radius: 15px;
  background: #fff;
}

.community-comment-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #dff4ee, #fff1dc);
  color: var(--brand-dark);
  font-size: max(0.72rem, 13px);
  font-weight: 950;
}

.community-comment-content {
  min-width: 0;
}

.community-comment-content > header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 3px 8px;
}

.community-comment-content > header strong {
  font-size: max(0.76rem, 13px);
}

.community-comment-content > header span {
  color: var(--muted);
  font-size: max(0.66rem, 12px);
}

.community-comment-content > p {
  margin: 5px 0 2px;
  color: #2f3d37;
  font-size: max(0.78rem, 14px);
  line-height: 1.55;
}

.community-comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
}

.community-comment-actions .text-button {
  width: auto;
  min-height: 36px;
  padding: 5px 0;
  color: #6b756f;
  font-size: max(0.66rem, 12px);
}

.community-comment-form {
  display: grid;
  gap: 8px;
  padding-top: 11px;
  border-top: 1px solid #dfe9e6;
}

.community-comment-form textarea {
  width: 100%;
  min-height: 78px;
  resize: vertical;
  border: 1px solid #bccfc9;
  border-radius: 14px;
  background: #fff;
}

.community-comment-form > p {
  margin: 0;
  color: var(--muted);
  font-size: max(0.66rem, 12px);
  line-height: 1.45;
}

.community-comment-form > .secondary-button {
  width: auto;
  min-height: 44px;
  justify-self: end;
  padding-inline: 18px;
}

/* Nearby care: location is requested only after a clear hospital/pharmacy choice. */
.nearby-care-screen {
  gap: 12px;
}

.nearby-care-intro {
  position: relative;
  display: grid;
  gap: 15px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid #b9ded5;
  border-radius: 25px;
  background:
    linear-gradient(90deg, rgba(247, 253, 250, 0.98) 0%, rgba(247, 253, 250, 0.92) 53%, rgba(247, 253, 250, 0.36) 100%),
    url("assets/caremo-tool-map-v1.webp") 78% center / cover no-repeat;
  box-shadow: 0 14px 34px rgba(25, 83, 68, 0.09);
}

.nearby-care-intro > div {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.nearby-care-location-disclosure {
  display: grid;
  gap: 4px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.9);
  color: #173f36;
  box-shadow: 0 7px 20px rgba(5, 45, 38, 0.11);
}

.nearby-care-location-disclosure summary {
  min-height: 44px;
  align-content: center;
  cursor: pointer;
  font-size: max(0.76rem, 13px);
  font-weight: 850;
}

.nearby-care-location-disclosure[open] summary { margin-bottom: 5px; }

.nearby-care-location-disclosure strong {
  font-size: max(0.76rem, 13px);
}

.nearby-care-location-disclosure p {
  margin: 0;
  color: #3f5f57;
  font-size: max(0.69rem, 12px);
  line-height: 1.48;
}

.nearby-care-intro h2 {
  margin-bottom: 7px;
  font-size: clamp(1.55rem, 7vw, 2rem);
}

.nearby-care-intro > div:first-child > p:last-child {
  max-width: 31ch;
  margin-bottom: 0;
  color: #345b51;
  font-size: max(0.8rem, 14px);
  line-height: 1.58;
}

.nearby-care-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.nearby-care-choice > button {
  display: grid;
  min-width: 0;
  min-height: 91px;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0 8px;
  padding: 11px;
  border: 1px solid rgba(18, 143, 133, 0.24);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 7px 18px rgba(28, 80, 67, 0.07);
}

.nearby-care-choice > button > span {
  display: grid;
  width: 36px;
  height: 36px;
  grid-row: 1 / 3;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-dark);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
}

.nearby-care-choice strong {
  align-self: end;
  font-size: max(0.8rem, 14px);
}

.nearby-care-choice small {
  align-self: start;
  color: var(--muted);
  font-size: max(0.66rem, 12px);
}

.nearby-care-loading,
.nearby-care-results {
  padding: 17px;
  border: 1px solid #d5e5df;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(24, 73, 61, 0.07);
}

.nearby-care-loading {
  display: grid;
  justify-items: center;
  gap: 5px;
  color: #345a50;
  text-align: center;
}

.nearby-care-loading > span {
  width: 24px;
  height: 24px;
  border: 3px solid #ccebe3;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: nearby-care-spin 0.8s linear infinite;
}

.nearby-care-loading p {
  margin: 0;
  color: var(--muted);
  font-size: max(0.72rem, 13px);
}

@keyframes nearby-care-spin {
  to { transform: rotate(360deg); }
}

.nearby-care-results {
  display: grid;
  gap: 10px;
}

.nearby-care-results > .section-heading-row {
  margin-bottom: 2px;
}

.nearby-care-results > .section-heading-row > span {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e7f6f2;
  color: var(--brand-dark);
  font-size: max(0.7rem, 12px);
  font-weight: 900;
}

.nearby-care-place {
  display: grid;
  min-width: 0;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px 12px;
  padding: 13px;
  border: 1px solid #dce8e4;
  border-radius: 17px;
  background: #fbfdfc;
}

.nearby-care-distance {
  display: grid;
  width: 58px;
  min-height: 58px;
  align-content: center;
  place-items: center;
  border-radius: 17px;
  background: #e5f5f0;
  color: var(--brand-dark);
}

.nearby-care-distance strong {
  font-size: max(0.78rem, 14px);
}

.nearby-care-distance span {
  font-size: max(0.64rem, 11px);
}

.nearby-care-place-copy {
  min-width: 0;
}

.nearby-care-place-copy h3 {
  margin-bottom: 2px;
  font-size: max(0.94rem, 16px);
}

.nearby-care-place-copy p,
.nearby-care-place-copy > span {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: max(0.72rem, 13px);
  line-height: 1.45;
}

.nearby-care-place-copy > span {
  margin-top: 3px;
  color: #315e52;
  font-weight: 800;
}

.nearby-care-place-actions {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.nearby-care-place-actions > a {
  min-height: 46px;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: max(0.75rem, 13px);
}

.nearby-care-results > .small {
  margin: 2px 2px 0;
  font-size: max(0.68rem, 12px);
  line-height: 1.5;
}

/* Pedometer and movement: large number, compact input, no competitive tone. */
.movement-step-hero {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) 108px;
  align-items: center;
  gap: 14px;
  padding: 19px;
  overflow: hidden;
  border: 1px solid #b9ddd3;
  border-radius: 25px;
  background:
    linear-gradient(90deg, rgba(244, 252, 248, 0.99), rgba(244, 252, 248, 0.88) 58%, rgba(244, 252, 248, 0.28)),
    url("assets/caremo-tool-movement-v1.webp") right center / cover no-repeat;
  box-shadow: 0 13px 32px rgba(23, 77, 63, 0.09);
}

.movement-step-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.movement-step-copy > strong {
  display: block;
  color: #0c5d50;
  font-size: clamp(2rem, 10vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.movement-step-copy > strong small {
  font-size: max(0.78rem, 14px);
  letter-spacing: -0.01em;
}

.movement-step-copy > p:last-child {
  margin: 7px 0 0;
  color: #426158;
  font-size: max(0.74rem, 13px);
}

.movement-step-progress {
  position: relative;
  z-index: 1;
  display: grid;
  width: 108px;
  aspect-ratio: 1;
  place-items: center;
}

.movement-step-progress > span {
  position: absolute;
  border-radius: 50%;
  background: conic-gradient(var(--brand) var(--step-progress), rgba(255, 255, 255, 0.76) 0);
  box-shadow: 0 7px 20px rgba(25, 84, 69, 0.12);
  inset: 0;
}

.movement-step-progress > span::after {
  position: absolute;
  border-radius: 50%;
  background: rgba(250, 253, 251, 0.94);
  content: "";
  inset: 11px;
}

.movement-step-progress > b {
  position: relative;
  z-index: 1;
  color: var(--brand-dark);
  font-size: max(0.86rem, 15px);
}

.movement-step-hero > .primary-button,
.movement-step-form {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
}

.movement-step-form {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
}

.movement-step-form > label {
  color: #285247;
  font-size: max(0.76rem, 13px);
  font-weight: 900;
}

.movement-step-form > div {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.movement-step-form input {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  border-radius: 14px;
}

.movement-step-form .secondary-button {
  width: auto;
  min-height: 50px;
  padding-inline: 17px;
  border-radius: 14px;
}

.movement-step-form > small {
  color: var(--muted);
  font-size: max(0.68rem, 12px);
  line-height: 1.45;
}

/* Reduce large empty blocks without shrinking touch targets. */
.main-content .card > h2:first-child {
  margin-bottom: 8px;
}

.main-content .card > p:last-child {
  margin-bottom: 0;
}

.main-content .empty-state {
  padding: 20px 15px;
}

@media (max-width: 430px) {
  .main-content {
    padding: 15px 14px calc(96px + env(safe-area-inset-bottom));
  }

  .stack {
    gap: 13px;
  }

  .card {
    padding: 17px;
  }

  .screen-heading {
    margin-bottom: 13px;
  }

  .screen-heading h1 {
    font-size: clamp(1.6rem, 8vw, 1.94rem);
  }

  .launch-hero {
    min-height: clamp(280px, 45dvh, 348px);
  }

  .launch-copy {
    width: 81%;
    padding: 19px;
  }

  .today-core-hero,
  .today-hero-content {
    min-height: 338px;
  }

  .today-core-hero.has-ai-guidance,
  .today-core-hero.has-ai-guidance .today-hero-content {
    min-height: 374px;
  }

  .today-hero-content {
    width: 82%;
    padding: 17px;
  }

  .today-core-hero.has-ai-guidance .today-hero-content {
    width: 94%;
    padding: 15px;
  }

  .today-activity-strip {
    gap: 7px;
  }

  .today-activity-strip article {
    min-height: 126px;
    padding: 11px 9px 9px;
    border-radius: 17px;
  }

  .today-activity-strip article > span:first-child {
    width: 32px;
    height: 32px;
  }

  .community-post-header {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .community-avatar {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  .community-category {
    width: max-content;
    max-width: 100%;
    grid-column: 2;
  }
}

@media (max-width: 390px) {
  .onboarding-card-launch {
    padding: 10px;
    border-radius: 24px;
  }

  .launch-brand-row {
    min-height: 38px;
  }

  .launch-brand img {
    width: 34px;
    height: 34px;
  }

  .launch-hero {
    min-height: clamp(270px, 43dvh, 326px);
    border-radius: 21px;
  }

  .launch-copy {
    width: 84%;
    padding: 17px;
  }

  .launch-copy h1 {
    font-size: clamp(1.52rem, 7.8vw, 1.86rem);
  }

  .today-core-hero,
  .today-hero-content {
    min-height: 326px;
  }

  .today-core-hero.has-ai-guidance,
  .today-core-hero.has-ai-guidance .today-hero-content {
    min-height: 364px;
  }

  .today-hero-content {
    width: 86%;
    gap: 9px;
    padding: 15px;
  }

  .today-avatar {
    width: 40px;
    height: 40px;
  }

  .today-activity-strip article {
    min-height: 122px;
    padding-inline: 8px;
  }

  .today-activity-strip strong {
    font-size: max(0.73rem, 12.5px);
  }

  .today-secondary-actions > a {
    min-height: 74px;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px;
    padding: 11px;
  }

  .today-secondary-actions > a > .caremo-icon {
    width: 24px;
    height: 24px;
  }

  .nearby-care-intro {
    padding: 17px;
  }

  .nearby-care-choice > button {
    min-height: 86px;
    grid-template-columns: 32px minmax(0, 1fr);
    padding: 9px;
  }

  .nearby-care-choice > button > span {
    width: 32px;
    height: 32px;
  }

  .movement-step-hero {
    grid-template-columns: minmax(0, 1fr) 94px;
    padding: 17px;
  }

  .movement-step-progress {
    width: 94px;
  }
}

@media (max-width: 360px) {
  .main-content {
    padding-right: 12px;
    padding-left: 12px;
  }

  .onboarding-shell-launch {
    padding-right: 8px;
    padding-left: 8px;
  }

  .launch-badge {
    max-width: 48%;
    padding-inline: 8px;
  }

  .launch-hero {
    min-height: 268px;
  }

  .launch-copy {
    width: 88%;
    padding: 15px;
  }

  .launch-copy p:last-child {
    max-width: 23ch;
  }

  .today-core-hero,
  .today-hero-content {
    min-height: 318px;
  }

  .today-core-hero.has-ai-guidance,
  .today-core-hero.has-ai-guidance .today-hero-content {
    min-height: 356px;
  }

  .today-hero-heading h1 {
    font-size: 1.3rem;
  }

  .today-activity-strip {
    gap: 5px;
  }

  .today-activity-strip article {
    min-height: 119px;
    padding: 9px 7px 7px;
    border-radius: 15px;
  }

  .today-activity-strip article > span:first-child {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .today-activity-strip strong {
    font-size: 12px;
  }

  .today-activity-strip article > button,
  .today-activity-strip article > a,
  .today-activity-strip article > span:last-child {
    font-size: 11.5px;
  }

  .today-secondary-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .today-secondary-actions > a {
    min-height: 68px;
  }

  .connection-choice,
  .nearby-care-intro,
  .nearby-care-loading,
  .nearby-care-results,
  .movement-step-hero {
    padding: 15px;
    border-radius: 21px;
  }

  .nearby-care-choice {
    grid-template-columns: minmax(0, 1fr);
  }

  .nearby-care-choice > button {
    min-height: 70px;
  }

  .nearby-care-place {
    grid-template-columns: 52px minmax(0, 1fr);
    padding: 11px;
  }

  .nearby-care-distance {
    width: 52px;
    min-height: 52px;
    border-radius: 15px;
  }

  .movement-step-hero {
    grid-template-columns: minmax(0, 1fr) 84px;
    gap: 10px;
  }

  .movement-step-progress {
    width: 84px;
  }

  .movement-step-progress > span::after {
    inset: 9px;
  }

  .movement-step-form > div {
    grid-template-columns: minmax(0, 1fr) 72px;
  }

  .movement-step-form .secondary-button {
    padding-inline: 10px;
  }
}

:root[data-text-size="large"] .today-activity-strip {
  grid-template-columns: minmax(0, 1fr);
}

:root[data-text-size="large"] .today-activity-strip article {
  min-height: 0;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 1px 11px;
}

:root[data-text-size="large"] .today-activity-strip article > span:first-child {
  grid-row: 1 / 3;
  margin: 0;
}

:root[data-text-size="large"] .today-activity-strip article > button,
:root[data-text-size="large"] .today-activity-strip article > a,
:root[data-text-size="large"] .today-activity-strip article > span:last-child {
  grid-column: 3;
  grid-row: 1 / 3;
  margin: 0;
}

:root[data-text-size="large"] .today-secondary-actions,
:root[data-text-size="large"] .nearby-care-choice,
:root[data-text-size="large"] .nearby-care-place-actions {
  grid-template-columns: minmax(0, 1fr);
}

:root[data-text-size="large"] .today-core-hero,
:root[data-text-size="large"] .today-hero-content,
:root[data-text-size="large"] .today-core-hero.has-ai-guidance,
:root[data-text-size="large"] .today-core-hero.has-ai-guidance .today-hero-content {
  min-height: 410px;
}

:root[data-text-size="large"] .today-hero-content,
:root[data-text-size="large"] .today-core-hero.has-ai-guidance .today-hero-content {
  width: 96%;
}

:root[data-text-size="large"] .movement-step-hero {
  grid-template-columns: minmax(0, 1fr);
}

:root[data-text-size="large"] .movement-step-progress {
  width: 112px;
}

/* 2026-07-20 integration refinements: compact record hub and inline day summary. */
.record-primary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.record-primary-grid > * {
  min-width: 0;
}

.record-primary-card {
  position: relative;
  display: grid;
  min-height: 196px;
  grid-template-columns: 42px minmax(0, 1fr);
  align-content: end;
  gap: 10px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(17, 118, 104, 0.18);
  border-radius: 23px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(25, 83, 68, 0.1);
}

.record-primary-card::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(7, 48, 41, 0.02) 26%, rgba(7, 48, 41, 0.88) 100%);
}

.record-primary-card > img {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: cover;
}

.record-primary-card > span,
.record-primary-card > div {
  position: relative;
  z-index: 1;
}

.record-primary-card > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-dark);
}

.record-primary-card > span .caremo-icon {
  width: 24px;
  height: 24px;
}

.record-primary-card > div {
  display: grid;
  align-content: center;
  gap: 2px;
}

.record-primary-card strong {
  font-size: max(1rem, 16px);
  line-height: 1.3;
}

.record-primary-card small {
  color: rgba(255, 255, 255, 0.84);
  font-size: max(0.75rem, 12px);
  line-height: 1.4;
}

.record-primary-grid > .service-card {
  grid-template-columns: minmax(0, 1fr);
}

.compact-service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.today-summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 15px;
}

.today-summary-chips > a {
  display: grid;
  min-width: 0;
  min-height: 46px;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0 7px;
  padding: 7px 11px 7px 8px;
  border: 1px solid #dce9e4;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  text-decoration: none;
}

.today-summary-chips > a > span {
  display: grid;
  width: 28px;
  height: 28px;
  grid-row: 1 / 3;
  place-items: center;
  border-radius: 50%;
  background: #e4f6f1;
  color: var(--brand-dark);
}

.today-summary-chips .caremo-icon {
  width: 17px;
  height: 17px;
}

.today-summary-chips small {
  color: var(--muted);
  font-size: max(0.66rem, 11.5px);
  line-height: 1.2;
}

.today-summary-chips strong {
  max-width: 18ch;
  overflow: hidden;
  font-size: max(0.72rem, 12.5px);
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nearby-care-intro {
  min-height: 330px;
  align-content: end;
  background: #e5f5ef;
}

.nearby-care-intro::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(6, 49, 42, 0.05) 12%, rgba(6, 49, 42, 0.92) 79%);
}

.nearby-care-intro > img {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: cover;
}

.nearby-care-intro-copy,
.nearby-care-intro > .nearby-care-choice {
  position: relative;
  z-index: 1;
}

.nearby-care-intro-copy h2,
.nearby-care-intro-copy .eyebrow,
.nearby-care-intro-copy > p:last-child {
  color: #fff;
}

.nearby-care-intro-copy > p:last-child {
  max-width: 34ch;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: max(0.82rem, 14px);
  line-height: 1.55;
}

@media (max-width: 430px) {
  .record-primary-grid,
  .compact-service-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .record-primary-card {
    min-height: 178px;
  }

  .today-summary-chips > a {
    flex: 1 1 calc(50% - 4px);
    border-radius: 17px;
  }

  .nearby-care-intro {
    min-height: 350px;
  }
}

@media (max-width: 360px) {
  .today-summary-chips > a {
    flex-basis: 100%;
  }
}

:root[data-text-size="large"] .record-primary-grid,
:root[data-text-size="large"] .compact-service-grid {
  grid-template-columns: minmax(0, 1fr);
}

:root[data-text-size="large"] .today-summary-chips > a {
  flex-basis: 100%;
  border-radius: 18px;
}

@media (max-width: 430px) {
  .today-activity-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .today-activity-strip strong {
    font-size: max(0.8rem, 14px);
  }

  .today-activity-strip article > button,
  .today-activity-strip article > a,
  .today-activity-strip article > span:last-child {
    min-height: 44px;
    font-size: max(0.74rem, 13px);
  }

  .today-activity-strip article:nth-child(3) {
    min-height: 84px;
    grid-column: 1 / -1;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0 11px;
  }

  .today-activity-strip article:nth-child(3) > span:first-child {
    grid-row: 1 / 3;
    margin: 0;
  }

  .today-activity-strip article:nth-child(3) > button,
  .today-activity-strip article:nth-child(3) > a,
  .today-activity-strip article:nth-child(3) > span:last-child {
    grid-column: 3;
    grid-row: 1 / 3;
    margin: 0;
  }
}

@media (max-width: 360px) {
  .today-activity-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .today-activity-strip article,
  .today-activity-strip article:nth-child(3) {
    min-height: 82px;
    grid-column: auto;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0 11px;
    padding: 11px 13px;
  }

  .today-activity-strip article > span:first-child {
    grid-row: 1 / 3;
    margin: 0;
  }

  .today-activity-strip article > button,
  .today-activity-strip article > a,
  .today-activity-strip article > span:last-child {
    grid-column: 3;
    grid-row: 1 / 3;
    margin: 0;
  }
}

/* Revenue preview: hidden by release flags and only reachable with ?revenue=preview. */
.membership-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid #c7d8ef;
  border-radius: 24px;
  background:
    radial-gradient(circle at 96% 4%, rgba(120, 103, 213, 0.16), transparent 32%),
    linear-gradient(145deg, #fff 0%, #f1f3ff 100%);
  box-shadow: var(--shadow);
}

.membership-entry h2,
.membership-entry p {
  margin-bottom: 4px;
}

.membership-entry .secondary-button {
  width: auto;
  min-width: 190px;
}

.membership-preview-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding: 12px 16px;
  border: 1px solid #d8cef8;
  border-radius: 16px;
  background: #f5f1ff;
  color: #4f3e93;
}

.membership-preview-note span {
  color: #625880;
  font-size: max(0.76rem, 13px);
}

.membership-active-note {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border: 1px solid #89cdbc;
  border-radius: 18px;
  background: #e7f8f3;
  color: var(--brand-dark);
}

.membership-active-note > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: #fff;
}

.membership-active-note p {
  margin: 2px 0 0;
  color: #41635a;
  font-size: max(0.76rem, 13px);
}

.membership-hero {
  position: relative;
  display: grid;
  min-height: 360px;
  align-content: end;
  overflow: hidden;
  border: 1px solid #8bd5c6;
  border-radius: 30px;
  background: #dff5ef;
  box-shadow: 0 16px 38px rgba(15, 89, 74, 0.12);
}

.membership-hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(4, 49, 42, 0.92) 0%, rgba(4, 49, 42, 0.76) 42%, rgba(4, 49, 42, 0.04) 78%);
}

.membership-hero > img {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center;
}

.membership-hero > div {
  position: relative;
  z-index: 2;
  display: grid;
  max-width: 56%;
  gap: 9px;
  padding: clamp(24px, 6vw, 48px);
  color: #fff;
}

.membership-hero span {
  color: #a7f0df;
  font-size: max(0.74rem, 12px);
  font-weight: 950;
  letter-spacing: 0.13em;
}

.membership-hero h2 {
  margin: 0;
  font-size: clamp(1.6rem, 5.5vw, 2.4rem);
  line-height: 1.22;
}

.membership-hero p {
  max-width: 34ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.membership-free-core,
.membership-benefits,
.membership-plans,
.membership-trust {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.membership-free-core {
  border-color: #a8d8cb;
  background: linear-gradient(145deg, #fff 0%, #eaf9f5 100%);
}

.membership-section-heading {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
}

.membership-section-heading > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  background: #d9f4ed;
  color: var(--brand-dark);
}

.membership-section-heading h2,
.membership-section-heading p {
  margin-bottom: 0;
}

.membership-free-core ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.membership-free-core li {
  display: grid;
  min-width: 0;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.membership-free-core li .caremo-icon {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--brand);
}

.membership-benefit-grid,
.membership-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.membership-benefit-grid article {
  display: grid;
  min-width: 0;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  padding: 15px;
  border: 1px solid #e0e8e3;
  border-radius: 18px;
  background: #fbfdfc;
}

.membership-benefit-grid article > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 950;
}

.membership-benefit-grid strong {
  display: block;
  margin-bottom: 3px;
}

.membership-benefit-grid p {
  margin: 0;
  color: var(--muted);
  font-size: max(0.76rem, 13px);
  line-height: 1.5;
}

.membership-plan-card {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 12px;
  padding: 18px;
  border: 1px solid #cbd9d2;
  border-radius: 22px;
  background: #fff;
}

.membership-plan-card[data-plan="annual"] {
  border-color: #7fcdbb;
  background: linear-gradient(145deg, #fff 0%, #e9f9f4 100%);
  box-shadow: 0 10px 24px rgba(10, 102, 84, 0.1);
}

.membership-plan-card > div {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.membership-plan-card > div > span {
  font-weight: 900;
}

.membership-plan-card em {
  padding: 4px 8px;
  border-radius: 999px;
  background: #d9f4ed;
  color: var(--brand-dark);
  font-size: max(0.66rem, 11px);
  font-style: normal;
  font-weight: 900;
}

.membership-plan-card > strong {
  font-size: clamp(1.25rem, 4.8vw, 1.7rem);
  line-height: 1.25;
}

.membership-plan-card > small {
  min-height: 3em;
  color: var(--muted);
  line-height: 1.5;
}

.membership-plan-card button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.membership-plan-card > :is(.primary-button, .secondary-button) {
  min-height: 52px;
  padding-inline: 14px;
  text-align: center;
  text-wrap: balance;
}

.membership-restore {
  width: min(100%, 440px);
  margin: 12px auto 0;
}

.membership-prelaunch-actions {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.membership-prelaunch-actions .text-button {
  text-align: center;
}

.membership-billing-note {
  max-width: 68ch;
  margin: 4px auto 0;
  color: var(--muted);
  font-size: max(0.72rem, 12px);
  text-align: center;
}

.membership-trust {
  border-color: #d8cef8;
  background: linear-gradient(145deg, #faf8ff 0%, #f3f7ff 100%);
}

.membership-trust strong {
  display: block;
  margin-bottom: 5px;
  color: #493b84;
  font-size: 1.08rem;
}

.membership-trust p {
  margin: 0;
  color: #625880;
}

.product-affiliate-disclosure {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff5da;
  color: #69470e;
  font-size: max(0.7rem, 12px);
  line-height: 1.5;
}

@media (max-width: 430px) {
  .membership-entry {
    grid-template-columns: minmax(0, 1fr);
    padding: 17px;
  }

  .membership-entry .secondary-button {
    width: 100%;
    min-width: 0;
  }

  .membership-preview-note {
    display: grid;
  }

  .membership-hero {
    min-height: 410px;
  }

  .membership-hero::after {
    background: linear-gradient(0deg, rgba(4, 49, 42, 0.94) 0%, rgba(4, 49, 42, 0.7) 44%, rgba(4, 49, 42, 0.02) 78%);
  }

  .membership-hero > img {
    object-position: 62% center;
  }

  .membership-hero > div {
    max-width: none;
    padding: 22px;
  }

  .membership-free-core,
  .membership-benefits,
  .membership-plans,
  .membership-trust {
    padding: 17px;
    border-radius: 21px;
  }

  .membership-free-core ul,
  .membership-benefit-grid,
  .membership-plan-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .membership-plan-card > small {
    min-height: 0;
  }
}

@media (max-width: 360px) {
  .membership-section-heading {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .membership-section-heading > span {
    width: 42px;
    height: 42px;
  }

  .membership-hero h2 br {
    display: none;
  }

  .membership-plan-card > div {
    align-items: flex-start;
    flex-direction: column;
  }
}

:root[data-text-size="large"] .membership-entry,
:root[data-text-size="large"] .membership-free-core ul,
:root[data-text-size="large"] .membership-benefit-grid,
:root[data-text-size="large"] .membership-plan-grid {
  grid-template-columns: minmax(0, 1fr);
}

.revenue-journey {
  display: grid;
  min-width: 0;
  gap: 16px;
  padding: clamp(18px, 4vw, 26px);
  overflow: hidden;
  border: 1px solid #b7dcd1;
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0, rgba(106, 202, 181, 0.2), transparent 34%),
    linear-gradient(145deg, #f7fffc 0%, #fffaf0 100%);
  box-shadow: var(--shadow);
}

.revenue-journey[data-stage="starting"] {
  border-color: #d7dfd8;
  background:
    radial-gradient(circle at 100% 0, rgba(249, 211, 133, 0.18), transparent 34%),
    #fff;
}

.revenue-journey-heading {
  display: grid;
  min-width: 0;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
}

.revenue-journey-heading > span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 17px;
  background: #dff5ef;
  color: var(--brand-dark);
}

.revenue-journey-heading svg {
  width: 28px;
  height: 28px;
}

.revenue-journey-heading h2,
.revenue-journey-heading p,
.revenue-journey-lead {
  margin: 0;
}

.revenue-journey-lead {
  max-width: 62ch;
  color: #4c625a;
}

.revenue-free-promise {
  display: grid;
  gap: 3px;
  padding: 13px 15px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--brand-dark);
}

.revenue-free-promise span {
  color: var(--muted);
  font-size: max(0.74rem, 13px);
}

.revenue-interest-open {
  width: min(100%, 420px);
}

.revenue-no-pressure {
  color: var(--muted);
  font-size: max(0.7rem, 12px);
}

.revenue-interest-details {
  display: grid;
  min-width: 0;
  gap: 16px;
  padding-top: 2px;
}

.revenue-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.revenue-facts > div {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 14px;
  border: 1px solid #dbe7e2;
  border-radius: 17px;
  background: #fff;
}

.revenue-facts dt {
  color: var(--muted);
  font-size: max(0.68rem, 12px);
  font-weight: 800;
}

.revenue-facts dd {
  margin: 0;
  color: var(--ink);
  font-weight: 950;
  line-height: 1.45;
  word-break: keep-all;
}

.revenue-benefit-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.revenue-benefit-list article {
  display: grid;
  min-width: 0;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  padding: 14px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.76);
}

.revenue-benefit-list article > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  background: #dff5ef;
  color: var(--brand-dark);
}

.revenue-benefit-list strong {
  display: block;
  margin-bottom: 3px;
  line-height: 1.35;
}

.revenue-benefit-list p {
  margin: 0;
  color: var(--muted);
  font-size: max(0.7rem, 12px);
  line-height: 1.45;
}

.revenue-pilot {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.34fr);
  align-items: center;
  gap: 16px;
  padding: 17px;
  border-radius: 20px;
  background: #073f36;
  color: #fff;
}

.revenue-pilot strong {
  display: block;
  margin-bottom: 3px;
  font-size: max(0.96rem, 17px);
}

.revenue-pilot p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: max(0.76rem, 13px);
}

.revenue-pilot .eyebrow {
  color: #97e4d3;
}

.revenue-pilot .primary-button {
  background: #fff;
  color: var(--brand-dark);
}

.revenue-price-note {
  margin: 0;
  color: var(--muted);
  font-size: max(0.7rem, 12px);
  line-height: 1.5;
}

.revenue-interest-close {
  width: fit-content;
}

.membership-pilot-link {
  width: min(100%, 440px);
  margin: 12px auto 0;
}

@media (max-width: 430px) {
  .revenue-journey {
    gap: 14px;
    padding: 17px;
    border-radius: 22px;
  }

  .revenue-journey-heading {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 11px;
  }

  .revenue-journey-heading > span {
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }

  .revenue-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .revenue-facts > div {
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
  }

  .revenue-facts dd {
    text-align: right;
  }

  .revenue-facts > div:nth-child(2) {
    grid-template-columns: minmax(0, 1fr);
  }

  .revenue-facts > div:nth-child(2) dd {
    text-align: left;
  }

  .revenue-benefit-list,
  .revenue-pilot {
    grid-template-columns: minmax(0, 1fr);
  }

  .revenue-benefit-list p {
    display: none;
  }

  .revenue-pilot .primary-button {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .revenue-facts > div {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .revenue-journey-heading {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .revenue-journey-heading > span {
    width: 42px;
    height: 42px;
  }
}

:root[data-text-size="large"] .revenue-facts,
:root[data-text-size="large"] .revenue-benefit-list,
:root[data-text-size="large"] .revenue-pilot {
  grid-template-columns: minmax(0, 1fr);
}

/* Foldables and small tablets can report the Android taskbar height as a
   bottom safe-area even though the WebView viewport already ends above it.
   Reusing that inset lifts the navigation far into the page. Keep a small,
   predictable visual gap from the actual viewport edge instead. */
@media (min-width: 540px) and (max-width: 1024px) {
  .app-shell[data-view-mode] .main-content {
    padding-bottom: 98px;
  }

  .app-shell[data-view-mode] .bottom-nav {
    right: 0;
    bottom: 8px;
    left: 0;
    width: min(calc(100% - 32px), 480px);
    max-height: 78px;
    padding: 6px 8px;
    border: 1px solid rgba(205, 219, 213, 0.94);
    border-radius: 22px;
  }
}

/* Core reassurance loop: one role, one check-in, one reply, one next action. */
.launch-role-actions {
  display: grid;
  min-width: 0;
  gap: 9px;
}

.launch-role-button {
  display: grid;
  width: 100%;
  min-height: 62px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 14px;
  padding: 11px 17px;
  border-radius: 18px;
  text-align: left;
}

.launch-role-button > span {
  font-size: max(0.92rem, 16px);
  font-weight: 950;
  word-break: keep-all;
}

.launch-role-button > small {
  font-size: max(0.7rem, 12px);
  font-weight: 750;
  line-height: 1.35;
  opacity: 0.82;
  text-align: right;
  word-break: keep-all;
}

.today-role-heading {
  margin: 2px 2px 14px;
}

.today-role-heading .eyebrow {
  margin-bottom: 5px;
}

.today-role-heading h1 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(1.65rem, 7vw, 2.15rem);
  line-height: 1.18;
  word-break: keep-all;
}

.today-role-heading > p:last-child {
  max-width: 34rem;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: max(0.82rem, 14px);
  line-height: 1.58;
  word-break: keep-all;
}

.condition-card .status-line > div {
  min-width: 0;
}

.condition-card .status-line .eyebrow {
  margin-bottom: 3px;
}

.condition-card .status-line h2 {
  max-width: 18ch;
  line-height: 1.3;
  word-break: keep-all;
}

.reassurance-strip {
  display: grid;
  min-width: 0;
  min-height: 76px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  overflow: hidden;
  border: 1px solid #d4e4df;
  border-radius: 19px;
  background: linear-gradient(135deg, #f5faf8, #fff);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 7px 20px rgba(24, 73, 61, 0.045);
}

.reassurance-strip:hover,
.reassurance-strip:focus-visible {
  border-color: #8bcabd;
  box-shadow: 0 9px 24px rgba(24, 73, 61, 0.09);
}

.reassurance-strip-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 15px;
  background: #e3f3ee;
  color: var(--brand-dark);
}

.reassurance-strip-icon .caremo-icon {
  width: 24px;
  height: 24px;
}

.reassurance-strip-copy {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 2px 9px;
}

.reassurance-strip-copy small {
  color: var(--brand);
  font-size: max(0.69rem, 12px);
  font-weight: 950;
  white-space: nowrap;
}

.reassurance-strip-copy strong {
  min-width: 0;
  overflow: hidden;
  font-size: max(0.86rem, 15px);
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reassurance-strip-copy > span {
  grid-column: 1 / -1;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: max(0.72rem, 13px);
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reassurance-strip-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 2px;
  color: var(--brand-dark);
  font-size: max(0.72rem, 13px);
  font-weight: 900;
  white-space: nowrap;
}

.reassurance-strip-link .caremo-icon {
  width: 18px;
  height: 18px;
}

.reassurance-strip[data-state="steady"] {
  border-color: #b9ddd3;
  background: linear-gradient(135deg, #edf9f5, #fff);
}

.reassurance-strip[data-state="late"] {
  border-color: #ead7a8;
  background: linear-gradient(135deg, #fff8e8, #fff);
}

.reassurance-strip[data-state="late"] .reassurance-strip-icon {
  background: #fff0c8;
  color: #8a5b00;
}

.reassurance-strip[data-state="check-requested"],
.reassurance-strip[data-state="direct-help"] {
  border-color: #edc3ba;
  background: linear-gradient(135deg, #fff3ef, #fff);
}

.reassurance-strip[data-state="check-requested"] .reassurance-strip-icon,
.reassurance-strip[data-state="direct-help"] .reassurance-strip-icon {
  background: #ffe1da;
  color: #a44536;
}

.reassurance-detail-heading > p:last-child {
  max-width: 34rem;
}

.reassurance-signals-screen {
  min-width: 0;
  gap: 14px;
}

.reassurance-signal-hero {
  display: grid;
  min-width: 0;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid #c9e2da;
  border-radius: 24px;
  background: linear-gradient(135deg, #eaf7f3, #fff);
  box-shadow: 0 10px 28px rgba(24, 73, 61, 0.07);
}

.reassurance-signal-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--brand-dark);
  box-shadow: 0 7px 18px rgba(24, 73, 61, 0.08);
}

.reassurance-signal-icon .caremo-icon {
  width: 31px;
  height: 31px;
}

.reassurance-signal-hero .eyebrow {
  margin: 0 0 4px;
}

.reassurance-signal-hero h2 {
  margin: 0;
  font-size: clamp(1.25rem, 5.4vw, 1.7rem);
  line-height: 1.25;
  word-break: keep-all;
}

.reassurance-signal-hero p:last-child {
  max-width: 40rem;
  margin: 7px 0 0;
  color: #3f5e56;
  line-height: 1.58;
  word-break: keep-all;
}

.reassurance-signal-hero.is-late {
  border-color: #ead7a8;
  background: linear-gradient(135deg, #fff5dc, #fff);
}

.reassurance-signal-hero.is-late .reassurance-signal-icon {
  color: #8a5b00;
}

.reassurance-signal-hero.is-check-requested,
.reassurance-signal-hero.is-direct-help {
  border-color: #edc3ba;
  background: linear-gradient(135deg, #ffebe6, #fff);
}

.reassurance-signal-hero.is-check-requested .reassurance-signal-icon,
.reassurance-signal-hero.is-direct-help .reassurance-signal-icon {
  color: #a44536;
}

.reassurance-signals-screen > .card {
  min-width: 0;
  padding: 18px;
  border-radius: 22px;
}

.reassurance-signals-screen .section-heading-row {
  margin-bottom: 13px;
}

.reassurance-signals-screen .section-heading-row h2,
.reassurance-pause-card h2 {
  margin: 3px 0 0;
  font-size: max(1.04rem, 18px);
  line-height: 1.38;
  word-break: keep-all;
}

.reassurance-reason-list,
.reassurance-fact-list,
.reassurance-limit-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reassurance-reason {
  display: grid;
  min-width: 0;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 15px;
  background: #f1f8f5;
  color: #294b43;
  font-weight: 800;
  line-height: 1.48;
  word-break: keep-all;
}

.reassurance-reason > span:first-child {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: #dcefe9;
  color: var(--brand-dark);
}

.reassurance-reason[data-kind="concern"],
.reassurance-reason[data-kind="direct"] {
  background: #fff4eb;
  color: #714629;
}

.reassurance-reason[data-kind="concern"] > span:first-child,
.reassurance-reason[data-kind="direct"] > span:first-child {
  background: #ffe2d2;
  color: #9e4d34;
}

.reassurance-reasons-card > .small {
  margin: 11px 0 0;
  line-height: 1.5;
}

.reassurance-fact-list li {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(92px, 0.3fr) minmax(0, 1fr);
  gap: 8px 16px;
  padding: 11px 0;
  border-bottom: 1px solid #e4ece9;
}

.reassurance-fact-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.reassurance-fact-list strong {
  color: var(--brand-dark);
  word-break: keep-all;
}

.reassurance-fact-list span,
.reassurance-exclusions-card > p,
.reassurance-pause-card > p {
  color: var(--muted);
  line-height: 1.58;
  word-break: keep-all;
}

.reassurance-exclusions-card {
  background: linear-gradient(145deg, #f4faf8, #fff);
}

.reassurance-limitations-card {
  border-color: #e5d8ba;
  background: linear-gradient(145deg, #fffaf0, #fff);
}

.reassurance-limit-list li {
  position: relative;
  padding-left: 20px;
  color: #5f5849;
  line-height: 1.55;
  word-break: keep-all;
}

.reassurance-limit-list li::before {
  position: absolute;
  top: 0.66em;
  left: 4px;
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: #b98a32;
  content: "";
}

.reassurance-pause-card {
  display: grid;
  gap: 10px;
  background: linear-gradient(135deg, #f6f1ff, #fff);
}

.reassurance-pause-card .eyebrow,
.reassurance-pause-card > p {
  margin: 0;
}

.reassurance-pause-card .secondary-button {
  width: fit-content;
  margin-top: 3px;
}

.today-core-hero,
.today-core-hero.has-ai-guidance,
.today-hero-content,
.today-core-hero.has-ai-guidance .today-hero-content {
  min-height: 238px;
}

.today-core-hero,
.today-core-hero.has-ai-guidance {
  margin: 0;
  border-radius: 23px;
}

.today-core-hero::after {
  background:
    linear-gradient(90deg, rgba(250, 253, 250, 0.99) 0%, rgba(250, 253, 250, 0.94) 56%, rgba(250, 253, 250, 0.28) 85%, rgba(250, 253, 250, 0.06) 100%);
}

.today-hero-content,
.today-core-hero.has-ai-guidance .today-hero-content {
  width: min(82%, 430px);
  align-content: center;
  gap: 8px;
  padding: 17px;
}

.today-next-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--brand-dark);
  font-size: max(0.72rem, 13px);
  font-weight: 950;
}

.today-next-kicker .caremo-icon {
  width: 20px;
  height: 20px;
}

.today-hero-message {
  padding: 13px 14px;
}

.today-hero-message strong {
  font-size: max(1rem, 17px);
}

.today-hero-ai-actions {
  align-items: center;
  justify-content: space-between;
}

.today-ai-tools {
  position: relative;
  min-width: 0;
}

.today-ai-tools > summary {
  min-height: 44px;
  padding: 12px 0;
  color: #5f6e68;
  cursor: pointer;
  font-size: max(0.7rem, 12px);
  font-weight: 800;
  list-style: none;
}

.today-ai-tools > summary::-webkit-details-marker {
  display: none;
}

.today-ai-tools[open] {
  display: flex;
  flex-basis: 100%;
  flex-wrap: wrap;
  gap: 2px 12px;
  padding-top: 2px;
}

.today-overview {
  display: grid;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.daily-return-loop {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #d6e8e1;
  border-radius: 24px;
  background: linear-gradient(145deg, #fff 15%, #f2fbf7 100%);
  box-shadow: 0 10px 28px rgba(24, 73, 61, 0.06);
}

.daily-return-loop > header {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.daily-return-loop > header .eyebrow,
.daily-return-loop > header h2 {
  margin: 0;
}

.daily-return-loop > header h2 {
  margin-top: 3px;
  font-size: clamp(1.2rem, 3.5vw, 1.55rem);
  word-break: keep-all;
}

.daily-return-loop > header > a {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 12px 0 10px 10px;
  color: var(--brand-dark);
  font-weight: 900;
}

.daily-return-actions {
  display: grid;
  overflow: hidden;
  border: 1px solid #dce9e4;
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.92);
}

.daily-return-actions > a {
  display: grid;
  min-width: 0;
  min-height: 76px;
  align-items: center;
  grid-template-columns: 44px minmax(0, 1fr) 20px;
  gap: 11px;
  padding: 12px 14px;
  color: var(--ink);
  text-decoration: none;
}

.daily-return-actions > a + a {
  border-top: 1px solid #e2ece8;
}

.daily-return-actions > a > span:first-child,
.daily-return-reading-head > span:first-child {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: #e4f6f1;
  color: var(--brand-dark);
}

.daily-return-actions .caremo-icon,
.daily-return-reading-head .caremo-icon {
  width: 23px;
  height: 23px;
}

.daily-return-actions > a > span:nth-child(2),
.daily-return-reading-head > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.daily-return-actions small,
.daily-return-reading-head small {
  color: var(--brand);
  font-size: max(0.68rem, 12px);
  font-weight: 900;
}

.daily-return-actions strong,
.daily-return-reading-head strong {
  line-height: 1.35;
  word-break: keep-all;
}

.daily-return-actions em {
  overflow: hidden;
  color: var(--muted);
  font-size: max(0.68rem, 12px);
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-return-reading {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #eadfbd;
  border-radius: 17px;
  background: #fffaf0;
}

.daily-return-reading-head {
  display: grid;
  min-width: 0;
  align-items: center;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 11px;
}

.today-record-details,
.today-secondary-panel,
.guardian-shared-details {
  overflow: hidden;
  border: 1px solid #d7e5e0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(24, 73, 61, 0.05);
}

.today-record-details > summary,
.today-secondary-panel > summary,
.guardian-shared-details > summary {
  display: flex;
  min-width: 0;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.today-record-details > summary::-webkit-details-marker,
.today-secondary-panel > summary::-webkit-details-marker,
.guardian-shared-details > summary::-webkit-details-marker {
  display: none;
}

.today-record-details > summary > span,
.today-secondary-panel > summary > span,
.guardian-shared-details > summary > span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.today-record-details > summary > span {
  display: grid;
  gap: 2px;
}

.today-record-details > summary small,
.today-secondary-panel > summary small,
.guardian-shared-details > summary small {
  color: var(--muted);
  font-size: max(0.7rem, 12px);
}

.today-record-details > summary strong,
.today-secondary-panel > summary strong,
.guardian-shared-details > summary strong {
  font-size: max(0.84rem, 15px);
  word-break: keep-all;
}

.today-record-details > summary > b {
  flex: 0 0 auto;
  color: var(--brand-dark);
  font-size: max(0.72rem, 13px);
}

.today-secondary-panel > summary .caremo-icon,
.guardian-shared-details > summary .caremo-icon {
  width: 23px;
  height: 23px;
  color: var(--brand-dark);
}

.today-record-details-body,
.today-secondary-panel-body,
.guardian-shared-details-body {
  display: grid;
  gap: 11px;
  padding: 0 14px 14px;
}

.today-record-details-body {
  padding-top: 4px;
}

.today-record-details-body > .eyebrow {
  margin: 0;
}

.guardian-role-heading h1 {
  max-width: 21ch;
}

.guardian-connect-card .primary-button {
  width: 100%;
  margin-top: 12px;
}

.guardian-status-card .status-line {
  align-items: flex-start;
}

.guardian-status-card .status-line .eyebrow {
  margin-bottom: 3px;
}

.guardian-status-card .status-line h2 {
  margin: 0;
  word-break: keep-all;
}

@media (max-width: 430px) {
  .launch-role-button {
    min-height: 60px;
    padding: 10px 14px;
  }

  .today-role-heading {
    margin-bottom: 12px;
  }

  .reassurance-strip {
    min-height: 72px;
    grid-template-columns: 40px minmax(0, 1fr) 22px;
    gap: 9px;
    padding: 9px 10px;
    border-radius: 17px;
  }

  .reassurance-strip-icon {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .reassurance-strip-copy {
    grid-template-columns: minmax(0, 1fr);
    gap: 1px;
  }

  .reassurance-strip-copy small,
  .reassurance-strip-copy strong,
  .reassurance-strip-copy > span {
    grid-column: 1;
  }

  .reassurance-strip-copy > span {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .reassurance-strip-link {
    width: 22px;
    min-height: 44px;
    overflow: hidden;
    color: transparent;
    font-size: 0;
  }

  .reassurance-strip-link .caremo-icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    color: var(--brand-dark);
  }

  .reassurance-signal-hero {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 12px;
    padding: 15px;
    border-radius: 20px;
  }

  .reassurance-signal-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  .reassurance-signal-icon .caremo-icon {
    width: 27px;
    height: 27px;
  }

  .reassurance-signal-hero p:last-child {
    grid-column: 1 / -1;
  }

  .reassurance-signals-screen > .card {
    padding: 15px;
    border-radius: 19px;
  }

  .reassurance-fact-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }

  .reassurance-pause-card .secondary-button {
    width: 100%;
  }

  .today-core-hero,
  .today-core-hero.has-ai-guidance,
  .today-hero-content,
  .today-core-hero.has-ai-guidance .today-hero-content {
    min-height: 224px;
  }

  .today-hero-content,
  .today-core-hero.has-ai-guidance .today-hero-content {
    width: 88%;
    padding: 14px;
  }

  .today-record-details > summary,
  .today-secondary-panel > summary,
  .guardian-shared-details > summary {
    min-height: 64px;
    padding: 11px 13px;
  }

  .daily-return-loop {
    gap: 10px;
    padding: 14px;
    border-radius: 20px;
  }

  .daily-return-actions > a {
    min-height: 72px;
    grid-template-columns: 40px minmax(0, 1fr) 18px;
    gap: 9px;
    padding: 10px 11px;
  }

  .daily-return-actions > a > span:first-child,
  .daily-return-reading-head > span:first-child {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .daily-return-reading {
    padding: 11px;
  }

  .daily-return-reading-head {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 9px;
  }
}

@media (max-width: 360px) {
  .launch-role-button {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .launch-role-button > small {
    text-align: left;
  }

  .today-core-hero,
  .today-core-hero.has-ai-guidance,
  .today-hero-content,
  .today-core-hero.has-ai-guidance .today-hero-content {
    min-height: 218px;
  }

  .today-hero-content,
  .today-core-hero.has-ai-guidance .today-hero-content {
    width: 94%;
    padding: 12px;
  }

  .today-record-details > summary,
  .today-secondary-panel > summary,
  .guardian-shared-details > summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .daily-return-loop > header {
    align-items: flex-start;
  }

  .daily-return-loop > header > a {
    padding-top: 8px;
  }

  .daily-return-actions em {
    white-space: normal;
  }
}

.invitation-role-choice .secondary-button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: start;
  white-space: normal;
  padding: 18px;
  line-height: 1.6;
}

.invitation-role-choice .secondary-button > br {
  display: none;
}

.family-contact-card > summary {
  min-height: 48px;
  cursor: pointer;
  font-weight: 700;
  padding-block: 10px;
}
