:root {
  --navy: #061421;
  --navy-2: #081c2b;
  --panel: #0b2635;
  --panel-2: #0e3140;
  --green: #a9c945;
  --teal: #36c2b5;
  --gold: #d6c34f;
  --ivory: #f5eee4;
  --ink: #09131d;
  --muted: #d5dee3;
  --soft: #9aaeb5;
  --line: rgba(255, 255, 255, 0.14);
  --font-body: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --font-ui: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: white;
  font-family: var(--font-body);
  background: var(--navy);
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.page-shell.app-page a:focus-visible,
.page-shell.app-page button:focus-visible,
.page-shell.app-page input:focus-visible,
.page-shell.app-page select:focus-visible,
.page-shell.app-page textarea:focus-visible,
.page-shell.app-page [tabindex]:focus-visible {
  outline-color: var(--app-aqua);
}

.page-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 44% 22%, rgba(54, 194, 181, 0.16), transparent 28rem),
    linear-gradient(135deg, #03101a 0%, var(--navy) 48%, #03101a 100%);
}

.page-shell.app-page {
  --app-base: #03101a;
  --app-base-2: #071c2b;
  --app-shell: rgba(3, 14, 24, 0.98);
  --app-panel: rgba(4, 24, 38, 0.9);
  --app-panel-strong: rgba(2, 10, 19, 0.96);
  --app-panel-soft: rgba(255, 255, 255, 0.045);
  --app-text: #f5eee4;
  --app-muted: #d5dee3;
  --app-soft: #9aaeb5;
  --app-line: rgba(255, 255, 255, 0.13);
  --app-gold: #f2d84f;
  --app-green: #a9df45;
  --app-teal: #36c2b5;
  --app-aqua: #54e2d6;
  --app-red: #ff4f5f;
  --app-yellow: #ffd95a;
  --app-ink: #09131d;
  background:
    radial-gradient(circle at 84% 12%, color-mix(in srgb, var(--app-teal) 16%, transparent), transparent 28rem),
    linear-gradient(135deg, var(--app-base) 0%, var(--app-base-2) 52%, var(--app-base) 100%);
}

body[data-app-theme="black_gold"] .page-shell.app-page,
.page-shell.app-page[data-app-theme="black_gold"] {
  --app-base: #020303;
  --app-base-2: #090b0d;
  --app-shell: rgba(4, 5, 6, 0.98);
  --app-panel: rgba(15, 16, 16, 0.9);
  --app-panel-strong: rgba(6, 7, 7, 0.96);
  --app-text: #f8f1dc;
  --app-muted: #d8d1bc;
  --app-soft: #a9a18f;
  --app-line: rgba(242, 216, 79, 0.18);
  --app-gold: #f6db4e;
  --app-green: #a9df45;
  --app-teal: #32c9bd;
  --app-aqua: #61e5d8;
}

body[data-app-theme="rooted_light"] .page-shell.app-page,
.page-shell.app-page[data-app-theme="rooted_light"] {
  --app-base: #f5eee4;
  --app-base-2: #ecf0df;
  --app-shell: rgba(250, 247, 239, 0.96);
  --app-panel: rgba(255, 255, 255, 0.82);
  --app-panel-strong: rgba(255, 255, 255, 0.94);
  --app-panel-soft: rgba(9, 19, 29, 0.045);
  --app-text: #09131d;
  --app-muted: #30424d;
  --app-soft: #5d717b;
  --app-line: rgba(9, 19, 29, 0.14);
  --app-gold: #caa80c;
  --app-green: #5d8f18;
  --app-teal: #008e84;
  --app-aqua: #0da99d;
  --app-ink: #09131d;
}

body[data-app-theme="evergreen_dark"] .page-shell.app-page,
.page-shell.app-page[data-app-theme="evergreen_dark"] {
  --app-base: #04140f;
  --app-base-2: #09281d;
  --app-shell: rgba(4, 19, 14, 0.98);
  --app-panel: rgba(9, 49, 37, 0.84);
  --app-panel-strong: rgba(4, 28, 20, 0.95);
  --app-text: #f3f1df;
  --app-muted: #d4dfd5;
  --app-soft: #9bb0a4;
  --app-line: rgba(242, 216, 79, 0.15);
  --app-gold: #f2d84f;
  --app-green: #b8e64d;
  --app-teal: #37c8a3;
  --app-aqua: #5ae6ce;
}

body[data-app-theme="midnight_teal"] .page-shell.app-page,
.page-shell.app-page[data-app-theme="midnight_teal"] {
  --app-base: #021016;
  --app-base-2: #062a32;
  --app-shell: rgba(2, 15, 22, 0.98);
  --app-panel: rgba(5, 48, 58, 0.84);
  --app-panel-strong: rgba(3, 28, 37, 0.95);
  --app-gold: #f1d94f;
  --app-green: #a8df42;
  --app-teal: #34d1c2;
  --app-aqua: #74efe3;
}

body[data-app-theme="legacy_slate"] .page-shell.app-page,
.page-shell.app-page[data-app-theme="legacy_slate"] {
  --app-base: #0a1118;
  --app-base-2: #172633;
  --app-shell: rgba(9, 18, 27, 0.98);
  --app-panel: rgba(25, 42, 54, 0.84);
  --app-panel-strong: rgba(12, 24, 35, 0.95);
  --app-gold: #ead053;
  --app-green: #9fd05a;
  --app-teal: #40b9ad;
  --app-aqua: #74d8d0;
}

body[data-app-theme="pink_blossom"] .page-shell.app-page,
.page-shell.app-page[data-app-theme="pink_blossom"] {
  --app-base: #26101c;
  --app-base-2: #42182f;
  --app-shell: rgba(36, 14, 26, 0.98);
  --app-panel: rgba(75, 31, 54, 0.86);
  --app-panel-strong: rgba(45, 17, 32, 0.95);
  --app-text: #fff1f6;
  --app-muted: #f0d2de;
  --app-soft: #c7a2b3;
  --app-line: rgba(255, 211, 225, 0.18);
  --app-gold: #f4bfd1;
  --app-green: #a9df91;
  --app-teal: #71d7c7;
  --app-aqua: #9dece2;
}

body[data-app-theme="christmas"] .page-shell.app-page,
.page-shell.app-page[data-app-theme="christmas"] {
  --app-base: #07170f;
  --app-base-2: #2b0d12;
  --app-shell: rgba(8, 22, 15, 0.98);
  --app-panel: rgba(19, 56, 36, 0.86);
  --app-panel-strong: rgba(36, 12, 17, 0.94);
  --app-text: #fff7e8;
  --app-muted: #e7d8c1;
  --app-soft: #b8aa95;
  --app-line: rgba(232, 196, 96, 0.2);
  --app-gold: #f0c85a;
  --app-green: #9fda72;
  --app-teal: #59c7a5;
  --app-aqua: #8fe5cf;
  --app-red: #ff6a6f;
}

body[data-app-theme="easter"] .page-shell.app-page,
.page-shell.app-page[data-app-theme="easter"] {
  --app-base: #f7f2ff;
  --app-base-2: #ecf7ee;
  --app-shell: rgba(255, 252, 255, 0.96);
  --app-panel: rgba(255, 255, 255, 0.84);
  --app-panel-strong: rgba(255, 255, 255, 0.94);
  --app-panel-soft: rgba(66, 41, 82, 0.05);
  --app-text: #241b2e;
  --app-muted: #54465d;
  --app-soft: #766a80;
  --app-line: rgba(95, 72, 112, 0.16);
  --app-gold: #c7a548;
  --app-green: #6ba75d;
  --app-teal: #5aa99d;
  --app-aqua: #6fcac1;
  --app-ink: #241b2e;
}

body[data-app-theme="fourth_july"] .page-shell.app-page,
.page-shell.app-page[data-app-theme="fourth_july"] {
  --app-base: #06142d;
  --app-base-2: #102e60;
  --app-shell: rgba(5, 19, 43, 0.98);
  --app-panel: rgba(14, 43, 84, 0.86);
  --app-panel-strong: rgba(6, 20, 46, 0.95);
  --app-text: #f9fbff;
  --app-muted: #d6deef;
  --app-soft: #9cabc8;
  --app-line: rgba(255, 255, 255, 0.16);
  --app-gold: #f4d35e;
  --app-green: #8fddae;
  --app-teal: #5fd2d0;
  --app-aqua: #89e9ef;
  --app-red: #ff6b6b;
}

body[data-app-theme="canada_day"] .page-shell.app-page,
.page-shell.app-page[data-app-theme="canada_day"] {
  --app-base: #2d0710;
  --app-base-2: #5b101c;
  --app-shell: rgba(43, 7, 15, 0.98);
  --app-panel: rgba(94, 19, 32, 0.86);
  --app-panel-strong: rgba(48, 8, 16, 0.95);
  --app-text: #fff7f4;
  --app-muted: #f0d7d2;
  --app-soft: #caa39c;
  --app-line: rgba(255, 255, 255, 0.16);
  --app-gold: #ffffff;
  --app-green: #a4d7b0;
  --app-teal: #76d3ce;
  --app-aqua: #a6ece8;
  --app-red: #ff6c78;
}

body[data-app-theme="halloween"] .page-shell.app-page,
.page-shell.app-page[data-app-theme="halloween"] {
  --app-base: #120e19;
  --app-base-2: #2b1838;
  --app-shell: rgba(18, 14, 25, 0.98);
  --app-panel: rgba(43, 27, 56, 0.86);
  --app-panel-strong: rgba(24, 16, 31, 0.95);
  --app-text: #fff2df;
  --app-muted: #dfcbb2;
  --app-soft: #ae9881;
  --app-line: rgba(255, 173, 71, 0.2);
  --app-gold: #ffad47;
  --app-green: #9adb5f;
  --app-teal: #67cbb4;
  --app-aqua: #95ead8;
}

body[data-app-theme="thanksgiving"] .page-shell.app-page,
.page-shell.app-page[data-app-theme="thanksgiving"] {
  --app-base: #21140d;
  --app-base-2: #3a2214;
  --app-shell: rgba(32, 19, 12, 0.98);
  --app-panel: rgba(71, 43, 25, 0.86);
  --app-panel-strong: rgba(38, 22, 13, 0.95);
  --app-text: #fff4e3;
  --app-muted: #e7d0b5;
  --app-soft: #b89c7b;
  --app-line: rgba(238, 173, 92, 0.18);
  --app-gold: #e9b65b;
  --app-green: #9dbb69;
  --app-teal: #6ec2ad;
  --app-aqua: #95dfcf;
}

body[data-app-theme="hanukkah"] .page-shell.app-page,
.page-shell.app-page[data-app-theme="hanukkah"] {
  --app-base: #051426;
  --app-base-2: #123964;
  --app-shell: rgba(5, 20, 38, 0.98);
  --app-panel: rgba(16, 57, 101, 0.86);
  --app-panel-strong: rgba(7, 25, 48, 0.95);
  --app-text: #f8fbff;
  --app-muted: #d3dfed;
  --app-soft: #9baec5;
  --app-line: rgba(221, 234, 255, 0.18);
  --app-gold: #dbe9ff;
  --app-green: #93d7ba;
  --app-teal: #5bc8cf;
  --app-aqua: #8ce8f0;
}

body[data-app-theme="passover"] .page-shell.app-page,
.page-shell.app-page[data-app-theme="passover"] {
  --app-base: #0f1b18;
  --app-base-2: #27382b;
  --app-shell: rgba(14, 25, 22, 0.98);
  --app-panel: rgba(42, 61, 48, 0.86);
  --app-panel-strong: rgba(18, 30, 26, 0.95);
  --app-text: #fff7e8;
  --app-muted: #e4d8c5;
  --app-soft: #b2a692;
  --app-line: rgba(218, 190, 122, 0.18);
  --app-gold: #dabe7a;
  --app-green: #a9d37a;
  --app-teal: #65c6ad;
  --app-aqua: #91e3d1;
}

body[data-app-theme="rosh_hashanah"] .page-shell.app-page,
.page-shell.app-page[data-app-theme="rosh_hashanah"] {
  --app-base: #151b12;
  --app-base-2: #26351d;
  --app-shell: rgba(20, 27, 17, 0.98);
  --app-panel: rgba(45, 62, 31, 0.86);
  --app-panel-strong: rgba(23, 31, 18, 0.95);
  --app-text: #fff8e9;
  --app-muted: #e6d9bd;
  --app-soft: #b6a77f;
  --app-line: rgba(240, 199, 89, 0.2);
  --app-gold: #f0c759;
  --app-green: #b8dc70;
  --app-teal: #6cc8ad;
  --app-aqua: #99e6d2;
}

body[data-font-theme="rooted_standard"],
.page-shell.app-page[data-font-theme="rooted_standard"] {
  --font-body: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --font-ui: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

body[data-font-theme="timeless"],
.page-shell.app-page[data-font-theme="timeless"] {
  --font-body: Georgia, "Times New Roman", serif;
  --font-display: "Trajan Pro", Georgia, "Times New Roman", serif;
  --font-ui: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

body[data-font-theme="modern"],
.page-shell.app-page[data-font-theme="modern"] {
  --font-body: "Segoe UI", "Avenir Next", Arial, sans-serif;
  --font-display: "Segoe UI", "Avenir Next", Arial, sans-serif;
  --font-ui: "Segoe UI", "Avenir Next", Arial, sans-serif;
}

body[data-font-theme="warm_editorial"],
.page-shell.app-page[data-font-theme="warm_editorial"] {
  --font-body: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --font-ui: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

.page-shell.app-page > .nav {
  display: none;
}

.launch {
  position: relative;
  min-height: min(100vh, 920px);
  padding-bottom: 18px;
  overflow: hidden;
}

.launch::before {
  content: "";
  position: absolute;
  inset: -8px;
  background:
    linear-gradient(90deg, rgba(3, 16, 26, 0.94) 0%, rgba(3, 16, 26, 0.64) 34%, rgba(3, 16, 26, 0.14) 72%),
    linear-gradient(to bottom, rgba(3, 16, 26, 0.18), rgba(3, 16, 26, 0.96)),
    url("./assets/rooted-hero-family-tree.webp") center / cover no-repeat;
}

.launch > * {
  position: relative;
  z-index: 1;
}

.nav {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.launch .nav {
  width: min(1220px, calc(100% - 40px));
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 128px;
}

.logo-lockup {
  width: 572px;
  max-width: 100%;
  height: 202px;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.brand-mark {
  width: 62px;
  height: 62px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-text {
  display: grid;
  gap: 4px;
  color: #f4efe8;
  justify-items: center;
}

.brand-text span {
  font-family: "Trajan Pro", Georgia, "Times New Roman", serif;
  font-size: 28px;
  letter-spacing: 0.17em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-text small {
  display: block;
  color: #f4efe8;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
}

.nav-links {
  display: flex;
  gap: 26px;
  color: white;
  font-size: 14px;
}

.nav-actions {
  display: grid;
  justify-items: end;
  justify-content: flex-end;
  gap: 8px;
}

.nav-action-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.launch .nav-actions {
  display: grid;
  justify-items: end;
  justify-content: flex-end;
  gap: 8px;
}

.launch .member-signin {
  grid-area: auto;
}

.launch .nav-cta {
  grid-area: auto;
}

.nav-store-links {
  display: flex;
  gap: 8px;
}

.nav-store-links a {
  min-height: 42px;
  min-width: 128px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  color: var(--ivory);
  border: 1px solid rgba(245, 238, 228, 0.34);
  border-radius: 7px;
  background: rgba(3, 16, 26, 0.5);
}

.nav-store-links span:not(.store-mark),
.nav-store-links small,
.nav-store-links strong {
  display: block;
  line-height: 1;
}

.nav-store-links small {
  color: rgba(245, 238, 228, 0.72);
  font-size: 9px;
  font-weight: 800;
}

.nav-store-links strong {
  color: var(--ivory);
  font-size: 13px;
  font-weight: 900;
}

.store-mark {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  position: relative;
}

.apple-mark::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 5px;
  width: 10px;
  height: 11px;
  border-radius: 46% 46% 50% 50%;
  background: var(--ivory);
}

.apple-mark::after {
  content: "";
  position: absolute;
  right: 3px;
  top: 0;
  width: 7px;
  height: 6px;
  border-radius: 7px 0 7px 0;
  background: var(--ivory);
  transform: rotate(-28deg);
}

.play-mark {
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid var(--ivory);
  filter: drop-shadow(2px 0 0 rgba(54, 194, 181, 0.38));
}

.member-signin {
  min-height: 42px;
  min-width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  color: var(--ivory);
  font-size: 14px;
  font-weight: 800;
}

.nav-cta,
.button,
.plan-button,
.mini-card a,
.memory-card a,
.activity-card a {
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.nav-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 0 24px;
  color: var(--ink);
  font-weight: 700;
  background: linear-gradient(135deg, var(--green), var(--teal));
}

.hero {
  width: min(1220px, calc(100% - 40px));
  min-height: 520px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(330px, 0.76fr) minmax(520px, 1.24fr);
  align-items: center;
  gap: 24px;
}

.eyebrow {
  display: none;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 70px;
  font-weight: 400;
  line-height: 1.02;
}

h1 span {
  color: var(--green);
}

.hero-copy p:not(.eyebrow) {
  max-width: 445px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.store-links a {
  min-height: 46px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 0 18px;
  color: var(--ivory);
  border: 1px solid rgba(245, 238, 228, 0.34);
  border-radius: 7px;
  background: rgba(3, 16, 26, 0.42);
}

.store-links small,
.store-links strong {
  display: block;
  line-height: 1;
}

.store-links small {
  color: rgba(245, 238, 228, 0.7);
  font-size: 10px;
  font-weight: 700;
}

.store-links strong {
  color: var(--ivory);
  font-size: 14px;
  font-weight: 900;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 20px;
  font-weight: 700;
}

.primary {
  color: var(--ink);
  background: linear-gradient(135deg, var(--green), var(--teal));
}

.secondary {
  color: var(--ivory);
}

.hero-spacer {
  min-height: 500px;
}

.pillar-row {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.pillar-row article,
.pillar-row a {
  min-height: 128px;
  padding: 12px 30px;
  display: block;
  color: inherit;
  text-align: center;
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.pillar-row article:last-child,
.pillar-row a:last-child {
  border-right: 0;
}

.pillar-row strong {
  display: block;
  margin-top: 8px;
  color: var(--gold);
  text-transform: uppercase;
}

.pillar-row p {
  margin: 8px auto 0;
  max-width: 180px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.feature-icon {
  width: 80px;
  height: 80px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.72));
}

.memory-feature-icon {
  width: 80px;
  height: 80px;
}

.wide-icon {
  width: 80px;
  height: 80px;
}

.feature-strip {
  width: min(1220px, calc(100% - 40px));
  margin: 12px auto 0;
  padding: 16px 20px 18px;
  color: var(--ink);
  text-align: center;
  border: 0;
  border-radius: 8px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='120' viewBox='0 0 180 120'%3E%3Cfilter id='paper'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' seed='17'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='table' tableValues='0 .095'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='180' height='120' filter='url(%23paper)'/%3E%3C/svg%3E"),
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), transparent 42%),
    linear-gradient(135deg, #faf6ee 0%, #f1eadf 52%, #fbf8f1 100%);
  background-blend-mode: multiply, screen, normal;
  box-shadow:
    0 14px 32px rgba(9, 19, 29, 0.08),
    inset 0 0 0 1px rgba(117, 101, 76, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.feature-strip p {
  margin: 0 0 14px;
  font-size: 19px;
}

.feature-strip div {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
}

.feature-strip span,
.feature-strip a {
  min-height: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
  border-right: 1px solid rgba(9, 19, 29, 0.2);
}

.feature-strip img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.42));
}

.feature-strip span:last-child,
.feature-strip a:last-child {
  border-right: 0;
}

.feature-link-strip {
  margin-top: 46px;
  margin-bottom: 26px;
}

.feature-link-strip p {
  font-size: 20px;
}

.feature-link-strip a {
  border-radius: 10px;
  transition: background 0.18s ease, transform 0.18s ease;
}

.feature-link-strip img {
  width: 58px;
  height: 58px;
}

.feature-link-strip strong {
  font: inherit;
  color: inherit;
}

.home-feature-strip {
  position: relative;
  margin-top: 6px;
  isolation: isolate;
}

.home-feature-strip::before {
  content: "";
  position: absolute;
  inset: -8px -10px;
  z-index: -1;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 252, 0.28), rgba(224, 215, 198, 0.16));
  box-shadow: 0 18px 44px rgba(3, 16, 26, 0.12);
  pointer-events: none;
}

.home-feature-strip strong {
  font: inherit;
  color: inherit;
}

.scenario-story-section {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.46fr) minmax(420px, 1fr);
  gap: 32px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.scenario-story-section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 400;
  line-height: 1.1;
}

.scenario-story-section p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.story-flow {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
}

.story-flow li {
  min-height: 156px;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid rgba(214, 195, 79, 0.18);
  border-radius: 8px;
  background: rgba(13, 47, 64, 0.74);
}

.story-flow strong {
  color: var(--gold);
  font-size: 17px;
}

.story-flow span {
  color: var(--muted);
  line-height: 1.5;
}

.dashboard-story-section {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 52px 0;
}

.emergency-story-section {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(420px, 1fr);
  gap: 28px;
  align-items: center;
}

.emergency-copy h2 {
  margin: 0;
  max-width: 600px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 400;
  line-height: 1.12;
}

.emergency-copy p {
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.emergency-story-section img {
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(214, 195, 79, 0.22);
  border-radius: 8px;
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.35);
}

.emergency-status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.emergency-status-list span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(214, 195, 79, 0.18);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--ivory);
  background: rgba(13, 47, 64, 0.72);
}

.emergency-status-list b {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
}

.emergency-status-list .yes {
  background: linear-gradient(135deg, var(--green), var(--teal));
}

.emergency-status-list .maybe {
  background: var(--gold);
}

.compact-dashboard-story {
  padding-top: 44px;
}

.surface-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.surface-grid article {
  min-height: 220px;
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid rgba(214, 195, 79, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(13, 47, 64, 0.76), rgba(3, 16, 26, 0.84)),
    rgba(13, 47, 64, 0.74);
}

.surface-grid span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.surface-grid strong {
  color: var(--gold);
  font-size: 20px;
  line-height: 1.18;
}

.surface-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.feature-link-strip a:hover,
.feature-link-strip a.active {
  background: rgba(141, 196, 74, 0.13);
}

.feature-link-strip a:focus-visible {
  outline: 0;
  background: rgba(141, 196, 74, 0.16);
  box-shadow: inset 0 0 0 2px rgba(58, 194, 191, 0.55);
}

.purpose-section {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 34px;
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr) minmax(320px, 0.92fr);
  gap: 44px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.purpose-section h2 {
  max-width: 480px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 400;
  line-height: 1.12;
}

.purpose-section p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.pricing-section {
  width: min(1220px, calc(100% - 40px));
  min-height: 720px;
  margin: 0 auto;
  padding: 38px 0 26px;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.pricing-page-section {
  border-top: 0;
}

.pricing-page-section .pricing-copy h1 {
  max-width: 330px;
  margin: 0 0 30px;
  font-size: 38px;
}

.scenario-section {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.feature-showcase-section {
  padding-top: 30px;
}

.feature-showcase-section .scenario-header {
  margin-bottom: 22px;
}

.scenario-header {
  max-width: 840px;
  margin-bottom: 28px;
}

.scenario-header h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  font-weight: 400;
  line-height: 1.12;
}

.scenario-header p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.scenario-grid article {
  min-height: 300px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(13, 47, 64, 0.76);
}

.scenario-grid img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.72));
}

.scenario-grid h3 {
  margin: 18px 0 10px;
  color: var(--gold);
  font-size: 22px;
}

.scenario-grid p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.55;
}

.scenario-grid a {
  color: #bcebdd;
  font-weight: 900;
}

.feature-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  min-height: 410px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  border: 1px solid rgba(214, 195, 79, 0.18);
  border-radius: 8px;
  background: rgba(13, 47, 64, 0.74);
}

.feature-card-heading {
  min-height: 66px;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.feature-card-media {
  min-height: 155px;
  overflow: hidden;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(214, 195, 79, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(245, 238, 228, 0.94), rgba(244, 248, 219, 0.88)),
    url("./assets/family-snapshot-care-bg.webp") center / cover no-repeat;
  color: var(--ink);
}

.profile-card-media {
  place-items: center;
  align-content: center;
  gap: 4px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(245, 238, 228, 0.9), rgba(188, 235, 221, 0.82)),
    url("./assets/family-snapshot-care-bg.webp") center / cover no-repeat;
}

.profile-card-media img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 7px 7px rgba(3, 16, 26, 0.22));
}

.profile-card-media span {
  color: var(--ink);
  font-weight: 900;
}

.image-card-media {
  padding: 0;
  background: rgba(3, 16, 26, 0.78);
}

.image-card-media img {
  width: 100%;
  height: 100%;
  min-height: 155px;
  display: block;
  object-fit: cover;
}

.feature-card .card-icon {
  width: 62px;
  height: 62px;
  object-fit: contain;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.72));
}

.feature-card h3 {
  margin: 0;
  color: var(--gold);
  font-size: 21px;
  line-height: 1.12;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.feature-card > a {
  align-self: center;
  margin-top: auto;
  color: #bcebdd;
  font-weight: 900;
  text-align: center;
}

.snapshot-card-demo p,
.wellbeing-card-demo p,
.document-card-demo p {
  margin: 0;
  padding: 10px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 2px 10px;
  align-items: center;
  color: rgba(9, 19, 29, 0.74);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.snapshot-card-demo span {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(169, 201, 69, 0.2);
  font-size: 20px;
}

.snapshot-card-demo strong,
.snapshot-card-demo small,
.wellbeing-card-demo strong,
.wellbeing-card-demo small {
  display: block;
}

.snapshot-card-demo small,
.wellbeing-card-demo small {
  color: rgba(9, 19, 29, 0.58);
  font-weight: 700;
}

.wellbeing-card-demo {
  background:
    linear-gradient(135deg, rgba(245, 238, 228, 0.94), rgba(226, 247, 235, 0.9)),
    url("./assets/family-snapshot-care-bg.webp") center / cover no-repeat;
}

.wellbeing-card-demo p {
  grid-template-columns: 1fr;
}

.wellbeing-card-demo .feeling-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.wellbeing-card-demo .feeling-row span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
}

.wellbeing-card-demo .feeling-row .active {
  background: linear-gradient(135deg, var(--green), var(--teal));
}

.event-card-demo {
  position: relative;
  background:
    linear-gradient(135deg, rgba(245, 238, 228, 0.96), rgba(251, 241, 214, 0.9)),
    url("./assets/feature-events-keepsakes-journey-v2.png") center / cover no-repeat;
}

.event-card-demo > div {
  width: 112px;
  min-height: 96px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 26px rgba(9, 19, 29, 0.13);
}

.event-card-demo > div strong {
  color: #255c4e;
  font-size: 24px;
}

.event-card-demo > div span,
.event-card-demo small {
  color: rgba(9, 19, 29, 0.66);
  font-weight: 800;
  text-align: center;
}

.event-card-demo p {
  max-width: 100%;
  padding: 9px 11px;
  color: var(--ink);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

.event-card-demo .rsvp-summary,
.rsvp-tally {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.event-card-demo .rsvp-summary span,
.rsvp-tally span {
  min-height: 58px;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 1px 7px;
  align-items: center;
  padding: 8px;
  color: var(--ink);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 22px rgba(9, 19, 29, 0.12);
}

.event-card-demo .rsvp-summary b,
.rsvp-tally b {
  grid-row: span 2;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--ink);
  border-radius: 50%;
  font-style: normal;
  font-weight: 950;
}

.event-card-demo .rsvp-summary b.yes,
.rsvp-tally b.yes {
  background: #95cf68;
}

.event-card-demo .rsvp-summary b.maybe,
.rsvp-tally b.maybe {
  background: #f1d35c;
}

.event-card-demo .rsvp-summary b.no,
.rsvp-tally b.no {
  color: white;
  background: #c95346;
}

.event-card-demo .rsvp-summary strong,
.event-card-demo .rsvp-summary em,
.rsvp-tally strong,
.rsvp-tally em {
  display: block;
  color: rgba(9, 19, 29, 0.78);
  font-style: normal;
  line-height: 1.05;
}

.event-card-demo .rsvp-summary strong,
.rsvp-tally strong {
  font-size: 11px;
}

.event-card-demo .rsvp-summary em,
.rsvp-tally em {
  font-size: 19px;
  font-weight: 950;
}

.document-card-demo {
  background:
    linear-gradient(135deg, rgba(245, 238, 228, 0.95), rgba(242, 235, 219, 0.9)),
    url("./assets/dashboard-snapshot-reference.png") center / cover no-repeat;
}

.document-card-demo p {
  grid-template-columns: 1fr auto;
}

.document-card-demo span {
  color: #255c4e;
  font-size: 12px;
  font-weight: 900;
}

.scenario-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.outcome-section {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 64px;
}

.outcome-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(260px, 0.72fr);
  gap: 18px;
}

.outcome-card {
  min-height: 310px;
  padding: 24px;
  display: grid;
  gap: 18px;
  align-content: start;
  border: 1px solid rgba(214, 195, 79, 0.18);
  border-radius: 8px;
  background: rgba(13, 47, 64, 0.74);
}

.outcome-card img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 7px;
}

.outcome-card > div > img,
.outcome-card > img[src*="icon-"] {
  width: 74px;
  height: 74px;
  object-fit: contain;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.72));
}

.outcome-card h3 {
  margin: 0;
  color: var(--gold);
  font-size: 24px;
}

.outcome-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.outcome-card a {
  color: #bcebdd;
  font-weight: 900;
}

.primary-outcome {
  grid-row: span 2;
  grid-template-columns: minmax(250px, 0.9fr) minmax(260px, 1fr);
  align-items: center;
  background:
    linear-gradient(135deg, rgba(245, 238, 228, 0.96), rgba(244, 248, 219, 0.92)),
    url("./assets/family-snapshot-care-bg.webp") center / cover no-repeat;
  color: var(--ink);
}

.primary-outcome h3 {
  color: #234530;
  font-size: 30px;
}

.primary-outcome p {
  color: rgba(9, 19, 29, 0.72);
}

.primary-outcome a {
  color: #255c4e;
}

.snapshot-example {
  display: grid;
  gap: 12px;
}

.snapshot-example p {
  min-height: 74px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 2px 12px;
  align-items: center;
  margin: 0;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 30px rgba(9, 19, 29, 0.08);
}

.snapshot-example span {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(169, 201, 69, 0.2);
  font-size: 24px;
}

.snapshot-example strong,
.snapshot-example small {
  display: block;
}

.snapshot-example small {
  color: rgba(9, 19, 29, 0.58);
  font-weight: 700;
}

.screenshot-card img {
  aspect-ratio: 16 / 10;
}

.family-tree-card {
  background:
    linear-gradient(135deg, rgba(13, 47, 64, 0.78), rgba(3, 16, 26, 0.9)),
    url("./assets/rooted-hero-family-tree.webp") center / cover no-repeat;
}

.family-tree-mini {
  min-height: 190px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: center;
  justify-items: center;
  position: relative;
  padding: 10px;
}

.family-tree-mini::before {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(214, 195, 79, 0.92), rgba(54, 194, 181, 0.72), transparent);
  box-shadow:
    0 -48px 0 -0.5px rgba(214, 195, 79, 0.38),
    0 48px 0 -0.5px rgba(54, 194, 181, 0.28);
}

.family-tree-mini span {
  position: relative;
  z-index: 1;
  width: 74px;
  min-height: 74px;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 38px 8px 10px;
  color: var(--gold);
  font-size: 11px;
  line-height: 1.08;
  font-weight: 900;
  text-align: center;
  border: 1px solid rgba(214, 195, 79, 0.76);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 34%, rgba(214, 195, 79, 0.22), transparent 32%),
    rgba(3, 16, 26, 0.92);
  box-shadow:
    0 0 0 3px rgba(214, 195, 79, 0.08),
    0 12px 28px rgba(0, 0, 0, 0.34);
}

.family-tree-mini span::before,
.family-tree-mini span::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.family-tree-mini span::before {
  width: 16px;
  height: 16px;
  top: 12px;
  background: linear-gradient(135deg, var(--gold), var(--green));
  box-shadow:
    -15px 18px 0 -4px rgba(214, 195, 79, 0.9),
    15px 18px 0 -4px rgba(54, 194, 181, 0.86);
}

.family-tree-mini span::after {
  left: 50%;
  top: 30px;
  width: 38px;
  height: 24px;
  border: 2px solid rgba(214, 195, 79, 0.82);
  border-top: 0;
  transform: translateX(-50%);
}

.feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.feature-shot {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 68px;
  padding: 14px;
  border: 1px solid rgba(214, 195, 79, 0.24);
  border-radius: 8px;
  background: rgba(245, 238, 228, 0.08);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.feature-shot img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
}

.document-feature-shot {
  background:
    linear-gradient(135deg, rgba(13, 47, 64, 0.84), rgba(3, 16, 26, 0.94)),
    url("./assets/family-snapshot-care-bg.webp") center / cover no-repeat;
}

.document-showcase {
  min-height: 420px;
  padding: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-content: center;
}

.document-showcase article {
  min-height: 130px;
  padding: 20px;
  display: grid;
  align-content: center;
  gap: 8px;
  color: var(--ink);
  border: 1px solid rgba(214, 195, 79, 0.18);
  border-radius: 8px;
  background: rgba(245, 238, 228, 0.92);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
}

.document-showcase strong {
  font-size: 21px;
}

.document-showcase span {
  color: #255c4e;
  font-weight: 900;
}

.document-showcase small {
  color: rgba(9, 19, 29, 0.62);
  font-weight: 800;
}

.keepsake-list,
.preparedness-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.keepsake-list li,
.preparedness-list li {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 7px;
  background: rgba(9, 19, 29, 0.055);
  font-weight: 800;
}

.keepsake-list span,
.preparedness-list span {
  color: rgba(9, 19, 29, 0.62);
  font-size: 13px;
}

.small-logo {
  margin-bottom: 34px;
}

.small-logo .logo-lockup {
  width: 430px;
  height: 154px;
}

.small-logo .brand-mark {
  width: 58px;
  height: 58px;
}

.small-logo .brand-text span {
  font-size: 25px;
}

.pricing-copy h2 {
  max-width: 280px;
  margin: 0 0 30px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.12;
}

.trust-list {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  position: relative;
  padding-left: 48px;
}

.trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--gold);
  border-radius: 50%;
}

.trust-list strong {
  display: block;
  color: var(--gold);
  font-size: 14px;
}

.trust-list span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.pricing-panel {
  padding: 54px 30px 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 28px;
  min-width: 0;
  color: var(--ink);
  border-radius: 12px;
  background: var(--ivory);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
}

.price-card {
  position: relative;
  min-width: 0;
  min-height: 490px;
  display: flex;
  flex-direction: column;
  padding: 32px 24px 24px;
  border: 1px solid rgba(9, 19, 29, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
}

.price-card.featured {
  border-color: var(--green);
  box-shadow: 0 0 0 1px rgba(169, 201, 69, 0.3);
}

.badge {
  position: absolute;
  left: -1px;
  right: -1px;
  top: -29px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(135deg, var(--green), var(--teal));
}

.price-card h3 {
  margin: 0;
  text-align: center;
  font-size: 22px;
}

.price-card > p {
  margin: 8px 0 18px;
  text-align: center;
  font-size: 12px;
}

.price {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2px;
  font-size: 52px;
  line-height: 0.9;
  font-weight: 700;
}

.price span {
  flex: 0 0 auto;
  margin-top: 4px;
  font-size: 24px;
  white-space: nowrap;
}

.price small {
  align-self: flex-end;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
}

.price-card ul {
  display: grid;
  gap: 13px;
  margin: 30px 0 24px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.price-card li::before {
  content: "\2713";
  margin-right: 8px;
  color: #27694f;
  font-weight: 800;
}

.plan-button {
  min-height: 46px;
  margin-top: auto;
  display: grid;
  place-items: center;
  padding: 0 14px;
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0;
  text-align: center;
  white-space: normal;
  border: 1px solid rgba(9, 19, 29, 0.28);
  border-radius: 7px;
}

.plan-button.filled {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, var(--green), var(--teal));
}

.pricing-note {
  grid-column: 1 / -1;
  padding-top: 10px;
  text-align: center;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.dashboard-section {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 54px;
}

.tablet {
  min-height: 620px;
  display: grid;
  grid-template-columns: var(--sidebar-width, 232px) minmax(0, 1fr);
  padding: 20px;
  color: var(--app-text);
  font-family: var(--font-body);
  border: 2px solid color-mix(in srgb, var(--app-gold) 34%, transparent);
  border-radius: 34px;
  background:
    radial-gradient(circle at 86% 4%, color-mix(in srgb, var(--app-teal) 12%, transparent), transparent 20rem),
    linear-gradient(135deg, color-mix(in srgb, var(--app-shell) 86%, var(--app-teal) 14%), var(--app-shell)),
    var(--app-base-2);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.app-sidebar {
  position: relative;
  padding: 20px 18px;
  border-right: 1px solid var(--app-line);
  display: flex;
  flex-direction: column;
}

.tablet:has(.app-sidebar.collapsed),
.tablet.sidebar-collapsed {
  --sidebar-width: 86px;
}

.app-logo {
  min-height: 112px;
  justify-content: center;
}

.app-logo-rule {
  width: 44px;
  height: 2px;
  margin: 8px auto 0;
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(217, 180, 74, 0.76), transparent);
}

.app-logo .app-mark {
  width: 112px;
  height: 112px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.46));
}

.app-logo .brand-mark {
  width: 40px;
  height: 40px;
}

.app-logo .brand-text span {
  font-size: 18px;
  letter-spacing: 0.14em;
}

.app-logo .brand-text small {
  font-size: 9.5px;
}

.app-sidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.app-sidebar nav a {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  color: var(--app-muted);
  font-size: 13px;
  border-radius: 7px;
}

.nav-collapse-toggle {
  width: 34px;
  height: 34px;
  position: absolute;
  right: -17px;
  top: 92px;
  z-index: 3;
  display: grid;
  place-items: center;
  color: var(--app-ink);
  font-weight: 900;
  border: 1px solid color-mix(in srgb, var(--app-gold) 70%, transparent);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--app-green), var(--app-teal));
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.app-sidebar nav img {
  width: 33px;
  height: 33px;
  flex: 0 0 33px;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.6));
}

.app-sidebar nav a.active {
  color: var(--app-text);
  outline: 1px solid color-mix(in srgb, var(--app-gold) 36%, transparent);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--app-teal) 34%, transparent), color-mix(in srgb, var(--app-green) 18%, transparent));
}

.app-sidebar.collapsed {
  align-items: center;
  padding-inline: 12px;
}

.app-sidebar.collapsed .app-logo .logo-lockup {
  width: 54px;
  height: 54px;
  object-fit: contain;
  object-position: left center;
}

.app-sidebar.collapsed .app-logo .app-mark {
  width: 58px;
  height: 58px;
}

.app-sidebar.collapsed nav a {
  width: 48px;
  justify-content: center;
  padding-inline: 0;
}

.app-sidebar.collapsed nav a span,
.app-sidebar.collapsed .profile-chip div,
.app-sidebar.collapsed .profile-actions {
  display: none;
}

.app-sidebar.collapsed .profile-chip {
  justify-content: center;
}

.profile-chip {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--app-text);
  font-size: 13px;
}

button.profile-chip {
  width: 100%;
  border: 0;
  padding: 0;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.profile-chip span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--app-gold) 70%, transparent);
  background: linear-gradient(135deg, var(--app-gold), var(--app-teal));
}

.profile-chip small {
  display: block;
  color: var(--app-muted);
  font-size: 11px;
}

.profile-menu {
  margin-top: auto;
  padding-top: 20px;
}

.profile-actions {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 88px;
  z-index: 10;
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--app-gold) 24%, transparent);
  border-radius: 8px;
  color: #f6efe3;
  background:
    radial-gradient(circle at 12% 0%, rgba(217, 180, 74, 0.1), transparent 10rem),
    linear-gradient(145deg, rgba(5, 18, 30, 0.98), rgba(1, 8, 17, 0.99));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

.profile-actions[hidden] {
  display: none;
}

.profile-actions a,
.profile-actions button {
  min-height: 32px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  color: #f6efe3;
  -webkit-text-fill-color: #f6efe3;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  background: rgba(9, 22, 36, 0.82);
  cursor: pointer;
}

.profile-actions a:hover,
.profile-actions button:hover {
  color: #fff5cf;
  -webkit-text-fill-color: #fff5cf;
  background: rgba(217, 180, 74, 0.12);
}

.app-main {
  padding: 20px 24px;
}

.app-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.app-header h2 {
  margin: 0;
  color: var(--app-text);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
}

.app-header p,
.app-header time {
  margin: 6px 0 0;
  color: var(--app-muted);
  font-size: 13px;
}

.app-header p:empty {
  display: none;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 0.96fr 0.74fr 0.74fr;
  gap: 18px;
}

.snapshot-card,
.mini-card,
.memory-card,
.activity-card {
  min-height: 142px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(13, 47, 64, 0.76);
}

.snapshot-card {
  grid-row: span 2;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(245, 238, 228, 0.9), rgba(225, 236, 178, 0.44)),
    url("./assets/family-snapshot-care-bg.webp") center / cover no-repeat;
  overflow: hidden;
}

.snapshot-card h3,
.memory-card h3,
.activity-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.activity-card h3,
.mini-card strong {
  display: flex;
  align-items: center;
  gap: 9px;
}

.activity-card h3 img,
.mini-card strong img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.62));
}

.snapshot-card p,
.mini-card p,
.memory-card p,
.activity-card p {
  margin: 0 0 12px;
  color: inherit;
  font-size: 14px;
  line-height: 1.45;
}

.snapshot-card ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.snapshot-card li::before {
  content: none;
}

.snapshot-card li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.snapshot-card li span {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  font-size: 13px;
  border: 1px solid rgba(39, 105, 79, 0.24);
  border-radius: 50%;
  background: rgba(245, 238, 228, 0.62);
}

.mini-card strong {
  margin-bottom: 12px;
  color: var(--gold);
}

.mini-card a,
.memory-card a,
.activity-card a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  padding: 0 18px;
  color: #bcebdd;
  font-size: 13px;
  border: 1px solid rgba(54, 194, 181, 0.25);
  border-radius: 20px;
}

.memory-card {
  grid-column: 1 / 3;
  min-height: 174px;
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: 18px;
}

.memory-image {
  width: 100%;
  height: 100%;
  min-height: 132px;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 7px;
}

.activity-card {
  min-height: 174px;
}

.draggable-tile {
  cursor: grab;
}

.draggable-tile.dragging {
  opacity: 0.68;
  cursor: grabbing;
}

.emotion-row,
.feeling-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}

.emotion-row span,
.feeling-row span,
.feeling-row button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 18px;
  border: 1px solid rgba(54, 194, 181, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.emotion-row span.active,
.feeling-row span.active,
.feeling-row button.active {
  border-color: rgba(214, 195, 79, 0.7);
  background: rgba(214, 195, 79, 0.16);
  box-shadow: 0 0 0 2px rgba(214, 195, 79, 0.08);
}

.feeling-row button {
  cursor: pointer;
}

.inline-emoji {
  width: 21px;
  height: 21px;
  display: inline-grid;
  place-items: center;
  margin-right: 6px;
  font-size: 13px;
  border-radius: 50%;
  background: rgba(214, 195, 79, 0.12);
}

.site-footer {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 42px;
  display: flex;
  justify-content: center;
  gap: 20px;
  color: var(--soft);
  font-size: 13px;
}

.site-footer.full-footer {
  padding: 34px 0 44px;
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) repeat(3, minmax(150px, 0.7fr));
  align-items: start;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-brand p {
  max-width: 230px;
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.35;
}

.site-footer.full-footer nav {
  display: grid;
  gap: 9px;
}

.site-footer.full-footer strong {
  color: color-mix(in srgb, var(--ivory) 84%, var(--gold) 16%);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  text-align: center;
}

.site-footer a {
  color: color-mix(in srgb, var(--ivory) 76%, var(--teal) 24%);
  font-weight: 800;
}

.footer-brand p strong,
.footer-brand p span { display: block; }
.footer-brand p strong { color: var(--gold); font-weight: 500; }
.footer-brand p span { color: var(--ivory); }

.family-owned-note {
  max-width: 760px;
  margin: 24px auto 0;
  padding: 14px 18px;
  border-left: 3px solid var(--green);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}
.family-owned-note strong { color: var(--ivory); }
.legal-effective-date { color: var(--gold) !important; font-size: 14px !important; font-weight: 800; }

.legal-page {
  min-height: 100vh;
}

.legal-hero,
.legal-grid {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.legal-hero {
  padding: 90px 0 54px;
}

.legal-hero h1 {
  max-width: 720px;
}

.legal-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.legal-grid {
  padding-bottom: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.legal-grid article {
  min-height: 210px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(13, 47, 64, 0.76);
}

.legal-grid h2 {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 20px;
}

.legal-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.legal-copy {
  width: min(1120px, calc(100% - 40px));
  margin: -28px auto 80px;
  padding: 26px;
  border: 1px solid rgba(214, 195, 79, 0.22);
  border-radius: 8px;
  background: rgba(13, 47, 64, 0.72);
}

.legal-copy h2 {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 26px;
}

.legal-copy p {
  max-width: 920px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.legal-copy p + p {
  margin-top: 12px;
}

.demo-shell {
  min-height: 100vh;
}

.demo-hero {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 66px 0 76px;
}

.demo-hero h1 {
  max-width: 820px;
}

.demo-hero p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.demo-panel {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto 72px;
  padding: 30px;
  min-width: 0;
  color: var(--ink);
  border-radius: 12px;
  background: var(--ivory);
}

.native-commerce-boundary {
  box-sizing: border-box;
}

.native-commerce-boundary .demo-hero {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 58px 20px 70px;
}

.native-commerce-boundary .demo-hero p:not(.eyebrow) {
  color: rgba(9, 19, 29, 0.72);
}

.native-commerce-boundary .button.secondary {
  color: var(--ink);
  border-color: rgba(9, 19, 29, 0.18);
  background: rgba(9, 19, 29, 0.04);
}

.native-boundary-nav {
  justify-content: center;
  overflow: hidden;
}

.native-boundary-nav .nav-actions {
  display: none;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.demo-card {
  padding: 20px;
  border: 1px solid rgba(9, 19, 29, 0.14);
  border-radius: 8px;
}

.demo-card h2,
.demo-card h3 {
  margin: 0 0 10px;
}

.demo-card p {
  color: rgba(9, 19, 29, 0.74);
  line-height: 1.5;
}

.login-panel {
  width: min(460px, calc(100% - 40px));
}

.login-mode-actions {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.text-link-button {
  border: 0;
  background: transparent;
  color: var(--leaf);
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.text-link-button:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 4px;
}

.checkout-panel {
  width: min(1120px, calc(100% - 40px));
}

.page-shell.checkout-page {
  color: white;
  background:
    radial-gradient(circle at 72% 16%, rgba(62, 190, 183, 0.16), transparent 34%),
    radial-gradient(circle at 18% 12%, rgba(169, 201, 69, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(1, 23, 35, 0.98), rgba(0, 13, 22, 0.99)),
    var(--navy);
}

.checkout-page .nav {
  color: white;
}

.checkout-page .logo {
  min-height: 92px;
}

.checkout-page .logo-lockup {
  filter: none;
}

.checkout-page .nav-links a {
  color: white;
}

.checkout-page .demo-hero {
  padding-bottom: 38px;
}

.checkout-page .demo-hero p:not(.eyebrow) {
  color: var(--muted);
}

.checkout-page .nav-cta,
.checkout-page .segmented button[aria-pressed="true"],
.checkout-page .state-buttons button[aria-pressed="true"] {
  color: var(--ink);
  border-color: rgba(39, 105, 79, 0.34);
  background: #dce7b4;
}

.checkout-page .demo-panel {
  border: 1px solid rgba(245, 238, 228, 0.22);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.36);
}

.checkout-page label small {
  display: block;
  margin-top: 7px;
  color: rgba(9, 19, 29, 0.62);
  font-size: 12px;
  font-weight: 800;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 20px;
  min-width: 0;
}

.plan-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.plan-choice {
  min-width: 0;
  min-height: 118px;
  padding: 18px;
  color: var(--ink);
  text-align: left;
  border: 1px solid rgba(9, 19, 29, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.plan-choice[aria-pressed="true"] {
  border-color: var(--green);
  background: linear-gradient(135deg, rgba(169, 201, 69, 0.74), rgba(54, 194, 181, 0.74));
  box-shadow: 0 0 0 2px rgba(169, 201, 69, 0.28);
}

.plan-choice strong {
  display: block;
  font-size: 20px;
}

.plan-choice span {
  display: block;
  margin-top: 8px;
  color: rgba(9, 19, 29, 0.66);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.checkout-note {
  margin: 12px 0 0;
  color: rgba(9, 19, 29, 0.68);
  font-size: 13px;
  line-height: 1.45;
}

.billing-cadence-picker {
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(9, 19, 29, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.billing-cadence-picker legend {
  padding: 0 6px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.billing-cadence-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.billing-cadence-choice {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}

.billing-cadence-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.billing-cadence-choice span {
  display: grid;
  gap: 4px;
  min-height: 76px;
  padding: 14px;
  border: 1px solid rgba(9, 19, 29, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.billing-cadence-choice strong {
  color: var(--ink);
  font-size: 16px;
}

.billing-cadence-choice small {
  color: rgba(9, 19, 29, 0.66);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.billing-cadence-choice input:checked + span {
  border-color: var(--green);
  background: rgba(220, 231, 180, 0.82);
  box-shadow: 0 0 0 2px rgba(169, 201, 69, 0.24);
}

.billing-cadence-choice input:focus-visible + span {
  outline: 3px solid rgba(54, 194, 181, 0.64);
  outline-offset: 3px;
}

.checkout-step-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.checkout-step-list li {
  position: relative;
  padding-left: 24px;
  color: rgba(9, 19, 29, 0.72);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.checkout-step-list li::before {
  position: absolute;
  left: 0;
  top: 1px;
  content: "✓";
  color: var(--green);
  font-weight: 950;
}

.checkout-payment-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.72fr);
  gap: 10px;
  margin-top: 14px;
}

.checkout-payment-actions button {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  color: var(--ink);
  font-weight: 900;
  border: 1px solid rgba(39, 105, 79, 0.34);
  border-radius: 8px;
  background: #dce7b4;
  cursor: pointer;
}

.checkout-payment-actions button[data-payment-method="paypal"] {
  background: #fff7dd;
}

.checkout-payment-actions button:disabled {
  opacity: 0.64;
  cursor: wait;
}

.payment-card-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(9, 19, 29, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.payment-card-form legend {
  padding: 0 6px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.payment-card-form input {
  min-height: 44px;
}

.payment-card-form .modal-full {
  grid-column: 1 / -1;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.segmented button,
.state-buttons button {
  min-height: 42px;
  color: var(--ink);
  font-weight: 800;
  border: 1px solid rgba(9, 19, 29, 0.2);
  border-radius: 7px;
  background: white;
  cursor: pointer;
}

.segmented button[aria-pressed="true"],
.state-buttons button[aria-pressed="true"] {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, var(--green), var(--teal));
}

.state-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.weather-card {
  position: relative;
  min-height: 132px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--app-gold) 20%, transparent);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(3, 13, 24, 0.18), rgba(3, 13, 24, 0.86)),
    radial-gradient(circle at 80% 10%, color-mix(in srgb, var(--app-teal) 20%, transparent), transparent 48%),
    color-mix(in srgb, var(--app-panel-strong) 72%, transparent);
  overflow: hidden;
}

.weather-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.74;
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 226, 122, 0.42), transparent 4.6rem),
    linear-gradient(160deg, rgba(46, 125, 154, 0.6), rgba(5, 24, 43, 0.92));
  z-index: 0;
}

.weather-card[data-weather-scene="clear"]::before {
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 231, 126, 0.72), transparent 4.8rem),
    linear-gradient(160deg, rgba(50, 142, 180, 0.74), rgba(8, 32, 52, 0.96));
}

.weather-card[data-weather-scene="cloud"]::before {
  background:
    radial-gradient(ellipse at 60% 28%, rgba(235, 238, 225, 0.42), transparent 5rem),
    radial-gradient(ellipse at 82% 38%, rgba(201, 213, 207, 0.32), transparent 4.8rem),
    linear-gradient(160deg, rgba(71, 101, 116, 0.72), rgba(8, 29, 48, 0.96));
}

.weather-card[data-weather-scene="rain"]::before {
  background:
    repeating-linear-gradient(115deg, rgba(216, 234, 246, 0.24) 0 2px, transparent 2px 13px),
    linear-gradient(160deg, rgba(38, 82, 109, 0.76), rgba(5, 18, 34, 0.98));
}

.weather-card[data-weather-scene="snow"]::before {
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.68), transparent 0.16rem),
    radial-gradient(circle at 72% 42%, rgba(255, 255, 255, 0.54), transparent 0.13rem),
    linear-gradient(160deg, rgba(101, 126, 143, 0.72), rgba(8, 28, 45, 0.98));
}

.weather-card[data-weather-scene="storm"]::before,
.weather-card[data-weather-scene="fog"]::before {
  background:
    radial-gradient(ellipse at 50% 34%, rgba(216, 224, 220, 0.28), transparent 6rem),
    linear-gradient(160deg, rgba(49, 57, 68, 0.82), rgba(5, 14, 27, 0.98));
}

.weather-card > * {
  position: relative;
  z-index: 1;
}

.weather-menu-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 30px;
  height: 30px;
  color: var(--app-text);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(2, 8, 16, 0.42);
  cursor: pointer;
}

.weather-card span {
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.weather-card strong {
  color: var(--app-text);
  font-size: 15px;
  line-height: 1.1;
}

.weather-card b {
  color: var(--app-gold);
  font-size: 42px;
  line-height: 1;
}

.weather-card small {
  color: var(--app-text);
  line-height: 1.45;
}

.weather-settings-menu {
  position: absolute;
  top: 48px;
  right: 10px;
  z-index: 4;
  width: min(260px, calc(100% - 20px));
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(217, 180, 74, 0.28);
  border-radius: 8px;
  background: rgba(4, 13, 24, 0.98);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.weather-settings-menu[hidden] {
  display: none;
}

.weather-settings-menu label {
  display: grid;
  gap: 5px;
  color: var(--app-muted);
  font-size: 11px;
  font-weight: 850;
}

.checkout-modal[hidden] {
  display: none;
}

#checkout-management-link[hidden],
.checkout-operator-note[hidden] {
  display: none;
}

.site-popup[hidden] {
  display: none;
}

.checkout-modal,
.site-popup {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 12, 20, 0.68);
}

.checkout-modal-panel,
.site-popup-panel {
  position: relative;
  width: min(480px, 100%);
  padding: 30px;
  color: var(--ink);
  border: 1px solid rgba(217, 180, 74, 0.32);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(245, 238, 228, 0.98));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.checkout-modal-panel h2,
.site-popup-panel h2 {
  margin: 4px 0 10px;
  color: var(--ink);
  font-size: 30px;
}

.checkout-modal-panel p:not(.eyebrow),
.site-popup-panel p:not(.eyebrow) {
  color: rgba(9, 19, 29, 0.74);
  line-height: 1.55;
}

.checkout-operator-note {
  border: 1px solid rgba(22, 123, 105, 0.18);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(22, 123, 105, 0.08);
  font-size: 13px;
}

.summary-list,
.app-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.summary-list li,
.app-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(9, 19, 29, 0.12);
}

.summary-list li[hidden] {
  display: none;
}

.summary-list strong,
.app-list strong {
  min-width: 0;
  color: var(--ink);
  text-align: right;
  overflow-wrap: anywhere;
}

.app-panel:not(.featured-panel) .app-list li {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.app-panel:not(.featured-panel) .app-list strong {
  color: var(--app-gold);
}

.app-panel:not(.featured-panel) .app-list span {
  color: var(--app-text);
}

.app-frame {
  width: min(1800px, calc(100% - 28px));
  margin: 0 auto 60px;
}

.app-frame .tablet {
  min-height: 780px;
}

.app-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.rooted-widget-canvas {
  --widget-min: 230px;
  grid-template-columns: repeat(auto-fit, minmax(var(--widget-min), 1fr));
  grid-auto-flow: dense;
  align-items: stretch;
  gap: 14px;
}

.rooted-widget {
  position: relative;
  min-height: 188px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--app-gold) 25%, transparent);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--app-panel-strong) 96%, var(--app-base) 4%), color-mix(in srgb, var(--app-base) 74%, var(--app-panel) 26%)),
    radial-gradient(circle at 92% 12%, color-mix(in srgb, var(--app-teal) 9%, transparent), transparent 34%),
    var(--app-panel-strong);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--app-gold) 7%, transparent),
    0 18px 44px rgba(0, 0, 0, 0.2);
}

.rooted-widget::after {
  content: "";
  position: absolute;
  inset: auto -44px -64px auto;
  width: 180px;
  height: 180px;
  opacity: 0.055;
  background: url("./assets/rooted-mark-organic-pcb-v4-transparent.png") center / contain no-repeat;
  pointer-events: none;
}

.rooted-widget.widget-wide {
  grid-column: span 2;
}

.rooted-widget.widget-xl,
.rooted-widget.widget-hero {
  grid-column: span 3;
}

.rooted-widget.widget-tall,
.rooted-widget.widget-hero {
  grid-row: span 2;
  min-height: 410px;
}

.rooted-widget.dragging {
  opacity: 0.62;
  cursor: grabbing;
}

.rooted-widget.drag-over {
  outline: 2px solid color-mix(in srgb, var(--app-gold) 72%, transparent);
  outline-offset: 3px;
}

.rooted-widget-titlebar {
  position: relative;
  z-index: 1;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: grab;
}

.rooted-widget-titlebar:active {
  cursor: grabbing;
}

.rooted-widget-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rooted-widget-heading img {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
}

.rooted-widget-heading span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.rooted-widget-heading small {
  color: var(--app-gold);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rooted-widget-heading strong {
  color: var(--app-text);
  font-size: 16px;
  line-height: 1.15;
}

.rooted-widget-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 5px;
}

.rooted-widget-tools button {
  min-height: 26px;
  padding: 0 7px;
  color: var(--app-muted);
  border: 1px solid color-mix(in srgb, var(--app-gold) 22%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--app-base) 38%, transparent);
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.rooted-widget-tools button:hover,
.rooted-widget-tools button:focus-visible {
  color: var(--app-ink);
  background: var(--app-gold);
}

.rooted-widget-body,
.rooted-widget-footer {
  position: relative;
  z-index: 1;
}

.rooted-widget-body {
  flex: 1;
  min-height: 0;
}

.dashboard-card-identity {
  display: none;
}

.legacy-widget .rooted-widget-body > h2:first-child,
.legacy-widget .rooted-widget-body > h3:first-child,
.legacy-widget .rooted-widget-body > h4:first-child {
  display: none;
}

.rooted-widget-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.rooted-widget-footer .quiet-emergency-action {
  margin-left: auto;
}

.rooted-widget-canvas .page-command-strip {
  padding: 0;
  border-bottom: 0;
}

.rooted-widget .family-snapshot-panel,
.rooted-widget .calendar-board,
.rooted-widget .file-manager-panel,
.rooted-widget .settings-workspace,
.rooted-widget .help-list-panel,
.rooted-widget .family-news-board {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.command-widget .rooted-widget-body {
  display: grid;
  align-content: center;
  gap: 12px;
}

.widget-summary-list {
  margin-top: 4px;
}

.image-widget .rooted-widget-body,
.news-reference-widget .rooted-widget-body {
  display: grid;
  grid-template-columns: minmax(180px, 0.78fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.image-widget .rooted-widget-body > img,
.news-reference-media img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  max-height: 260px;
  object-fit: cover;
  border: 1px solid color-mix(in srgb, var(--app-gold) 28%, transparent);
  border-radius: 8px;
}

.news-reference-media {
  min-height: 150px;
  overflow: hidden;
}

.news-reference-copy {
  display: grid;
  align-content: center;
  gap: 10px;
}

.people-orbit-widget .mini-portrait-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.timeline-stage-widget .rooted-widget-body {
  display: grid;
  gap: 14px;
}

.timeline-stage-widget .timeline-workspace {
  width: 100%;
  margin: 0;
  padding: 0;
}

.timeline-stage-widget .timeline-header {
  display: none;
}

.timeline-stage-widget .timeline-event-stage {
  min-height: 360px;
}

.timeline-stage-widget .member-timeline {
  position: relative;
  width: 100%;
  margin: 0;
}

.timeline-photo-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.timeline-photo-strip img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid color-mix(in srgb, var(--app-gold) 24%, transparent);
  border-radius: 8px;
}

.family-news-reference-board .rooted-widget-body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  gap: 14px;
  min-height: 100%;
}

.family-news-hero-media {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--app-gold) 28%, transparent);
  border-radius: 8px;
}

.family-news-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: left center;
}

.family-update-board {
  display: grid;
  gap: 10px;
  align-content: start;
}

.family-news-gallery {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  padding-left: 14px;
  border-left: 1px solid color-mix(in srgb, var(--app-gold) 16%, transparent);
}

.family-news-gallery strong {
  color: var(--app-gold);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.family-news-gallery > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}

.family-news-gallery a,
.family-news-gallery img,
.family-news-gallery video,
.family-news-gallery .news-audio-tile {
  min-height: 104px;
  overflow: hidden;
  border-radius: 8px;
}

.family-news-gallery img,
.family-news-gallery video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: 1px solid color-mix(in srgb, var(--app-gold) 20%, transparent);
}

.image-news-row {
  min-height: 88px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  grid-template-areas:
    "image marker"
    "image title"
    "image meta"
    "image actions";
  gap: 4px 12px;
  align-items: center;
}

.image-news-row > a {
  grid-area: image;
  display: block;
}

.image-news-row img,
.image-news-row video {
  width: 100%;
  height: 68px;
  object-fit: cover;
  border-radius: 7px;
}

.image-news-row video {
  display: block;
  border: 1px solid color-mix(in srgb, var(--app-gold) 20%, transparent);
  background: #020812;
}

.news-audio-tile {
  min-height: 68px;
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 8px;
  color: #f6efe3;
  border: 1px solid color-mix(in srgb, var(--app-gold) 20%, transparent);
  border-radius: 7px;
  background:
    radial-gradient(circle at 50% 0%, rgba(217, 180, 74, 0.12), transparent 5rem),
    rgba(2, 10, 18, 0.88);
  text-align: center;
}

.news-audio-tile img {
  width: 26px;
  height: 26px;
  min-height: 0;
  border: 0;
  object-fit: contain;
}

.news-audio-tile strong {
  color: #fff4d2;
  font-size: 10px;
  text-transform: uppercase;
}

.news-audio-tile small {
  max-width: 100%;
  color: #d7e2e6;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-news-row span {
  grid-area: marker;
}

.image-news-row h3 {
  grid-area: title;
  margin: 0;
  font-size: 17px;
}

.image-news-row p {
  grid-area: meta;
  margin: 0;
}

.image-news-row .signal-dot-row {
  grid-area: dots;
}

.image-news-row .memory-social-row {
  grid-area: actions;
}

.memory-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.memory-social-row button {
  min-height: 26px;
  border: 1px solid color-mix(in srgb, var(--app-gold) 22%, transparent);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--app-muted);
  background: color-mix(in srgb, var(--app-panel-strong) 44%, transparent);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
}

.memory-social-row button:hover,
.memory-social-row button:focus-visible {
  color: var(--app-ink);
  background: var(--app-gold);
}

.signal-dot-row {
  display: flex;
  gap: 7px;
  align-items: center;
}

.signal-dot-row span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--app-teal);
}

.signal-dot-row .gold {
  background: var(--app-gold);
}

.signal-dot-row .warn {
  background: var(--app-yellow);
}

.family-tree-widget .interactive-family-tree {
  min-height: 620px;
}

.family-tree-widget .tree-canvas {
  min-height: 620px;
  background:
    radial-gradient(circle at 50% 100%, color-mix(in srgb, var(--app-gold) 16%, transparent), transparent 24%),
    radial-gradient(circle at 48% 44%, color-mix(in srgb, var(--app-teal) 10%, transparent), transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--app-base) 94%, black 6%), color-mix(in srgb, var(--app-panel) 84%, var(--app-teal) 16%));
}

.family-tree-widget .person-photo {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  color: var(--app-ink);
  border: 2px solid color-mix(in srgb, var(--app-gold) 80%, transparent);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--app-gold), var(--app-teal));
  box-shadow:
    inset 0 0 0 3px color-mix(in srgb, var(--app-base) 92%, black 8%),
    0 14px 28px rgba(0, 0, 0, 0.34);
  font-size: 13px;
  font-weight: 950;
}

.family-tree-widget img.person-photo {
  object-fit: cover;
  object-position: center;
}

.family-tree-widget .family-person.active .person-photo,
.family-tree-widget .family-person:hover .person-photo,
.family-tree-widget .family-person:focus-visible .person-photo {
  box-shadow:
    inset 0 0 0 3px color-mix(in srgb, var(--app-base) 92%, black 8%),
    0 0 0 5px color-mix(in srgb, var(--app-gold) 20%, transparent),
    0 0 26px color-mix(in srgb, var(--app-gold) 48%, transparent),
    0 18px 36px rgba(0, 0, 0, 0.42);
}

.family-tree-widget .tree-actions-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.family-tree-widget .tree-actions-menu a,
.family-tree-widget .tree-actions-menu button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--app-gold) 28%, transparent);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--app-text);
  background: color-mix(in srgb, var(--app-panel-strong) 55%, transparent);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.family-tree-widget .tree-actions-menu a:hover,
.family-tree-widget .tree-actions-menu button:hover {
  color: var(--app-ink);
  background: var(--app-gold);
}

.small-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--app-ink);
  border: 1px solid color-mix(in srgb, var(--app-gold) 70%, transparent);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--app-gold), var(--app-teal));
  font-size: 12px;
  font-weight: 950;
}

img.small-avatar {
  object-fit: cover;
}

.compact-toolbar,
.inline-event-composer,
.journal-inline-composer,
.document-inline-composer,
.member-inline-composer,
.settings-inline-form,
.emergency-inline-composer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.compact-toolbar {
  margin-bottom: 10px;
}

.compact-toolbar input,
.compact-toolbar select,
.inline-event-composer input,
.inline-event-composer select,
.journal-inline-composer input,
.journal-inline-composer select,
.document-inline-composer input,
.document-inline-composer select,
.member-inline-composer input,
.member-inline-composer select,
.settings-inline-form select,
.emergency-inline-composer input,
.emergency-inline-composer select {
  min-width: 0;
}

.inline-event-composer textarea,
.journal-inline-composer textarea,
.document-inline-composer textarea,
.emergency-inline-composer textarea {
  grid-column: 1 / -1;
  min-height: 74px;
}

.inline-event-composer .app-action,
.document-inline-composer .app-action,
.member-inline-composer .app-action,
.settings-inline-form .app-action,
.emergency-inline-composer .app-action {
  justify-content: center;
}

.compact-control-form {
  gap: 10px;
}

.compact-control-form .app-action {
  margin-top: 4px;
}

.emergency-inline-copy {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
  color: var(--app-muted);
  font-size: 13px;
}

.emergency-inline-copy strong {
  color: var(--app-text);
  font-size: 14px;
}

.event-memory-tile {
  display: grid;
  gap: 12px;
}

.event-memory-tile img {
  width: 100%;
  max-height: 170px;
  object-fit: cover;
  border: 1px solid color-mix(in srgb, var(--app-gold) 22%, transparent);
  border-radius: 8px;
}

.calendar-board-widget .calendar-board {
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.document-library-widget .file-manager-panel {
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.calendar-board-widget .rooted-widget-body {
  display: grid;
  align-content: start;
  justify-items: center;
}

.document-library-widget .rooted-widget-body {
  display: grid;
  align-content: stretch;
}

.members-profile-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.people-dashboard-strip .person-mini-panel,
.members-profile-grid .person-mini-panel {
  grid-template-columns: 52px minmax(0, 1fr);
}

.people-dashboard-strip .person-mini-panel em,
.members-profile-grid .person-mini-panel em {
  grid-column: 2;
  justify-self: start;
}

.settings-widget .status-box,
.document-library-widget .status-box {
  margin: 0 0 10px;
}

.rooted-widget .app-list {
  margin-top: 12px;
}

.rooted-widget .app-list li,
.rooted-widget .metric-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--app-gold) 14%, transparent);
}

.rooted-widget .app-list span,
.rooted-widget .app-list small,
.rooted-widget .metric-list span,
.rooted-widget .metric-list strong {
  display: block;
  min-width: 0;
}

.rooted-widget .app-list small {
  margin-top: 3px;
  color: var(--app-muted);
  font-size: 12px;
}

.rooted-widget .app-list strong,
.rooted-widget .metric-list strong {
  color: var(--app-gold);
  text-align: right;
  white-space: nowrap;
}

.rooted-widget .metric-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rooted-widget .mini-action {
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--app-gold) 24%, transparent);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--app-text);
  background: color-mix(in srgb, var(--app-panel-strong) 54%, transparent);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
}

.rooted-widget .mini-action:not(.ghost),
.rooted-widget .mini-action:hover,
.rooted-widget .mini-action:focus-visible {
  color: var(--app-ink);
  background: var(--app-gold);
}

@media (min-width: 1500px) {
  .rooted-widget-canvas {
    --widget-min: 250px;
  }
}

@media (min-width: 2100px) {
  .app-frame {
    width: min(96vw, 2320px);
  }

  .rooted-widget-canvas {
    --widget-min: 280px;
  }
}

.app-panel {
  min-height: 172px;
  padding: 20px;
  color: var(--app-text);
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--app-panel) 92%, var(--app-teal) 8%), var(--app-panel));
}

.app-panel.featured-panel {
  grid-column: span 2;
  color: var(--app-text);
  background: var(--app-panel);
}

.emergency-dashboard-panel {
  grid-column: 1 / -1;
  min-height: 0;
  background:
    radial-gradient(circle at 96% 8%, color-mix(in srgb, var(--app-red) 12%, transparent), transparent 16rem),
    linear-gradient(90deg, color-mix(in srgb, var(--app-base) 94%, black 6%), color-mix(in srgb, var(--app-panel) 86%, transparent));
  border-color: color-mix(in srgb, var(--app-gold) 34%, transparent);
  box-shadow: inset 0 0 0 1px rgba(3, 16, 26, 0.48);
}

.emergency-dashboard-panel.active-alert {
  border-color: color-mix(in srgb, var(--app-red) 78%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--app-red) 32%, transparent),
    0 0 32px color-mix(in srgb, var(--app-red) 24%, transparent),
    inset 0 0 0 1px rgba(3, 16, 26, 0.48);
}

.emergency-dashboard-panel h3 {
  font-size: 28px;
}

.near-source {
  max-width: 620px;
  color: var(--app-muted);
}

.emergency-safe-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.emergency-safe-grid div {
  min-height: 86px;
  padding: 12px;
  display: grid;
  gap: 4px;
  align-content: center;
  border: 1px solid rgba(169, 201, 69, 0.24);
  border-radius: 8px;
  background: rgba(3, 16, 26, 0.68);
}

.emergency-safe-grid span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  font-weight: 950;
  background: linear-gradient(135deg, var(--green), var(--teal));
}

.emergency-safe-grid strong {
  color: var(--ivory);
}

.emergency-safe-grid small {
  color: var(--muted);
  font-weight: 800;
}

.family-snapshot-panel,
.moment-panel,
.calendar-board,
.file-manager-panel,
.settings-workspace,
.help-list-panel,
.family-news-board {
  grid-column: 1 / -1;
}

.family-tree-app-panel {
  grid-column: 1 / -1;
}

.family-tree-app-panel .interactive-family-tree {
  min-height: 600px;
}

.app-frame,
.app-main,
.app-panel,
.calendar-board,
.calendar-month,
.file-manager-panel,
.settings-workspace,
.timeline-workspace,
.timeline-event-stage,
.timeline-memory,
.member-timeline {
  min-width: 0;
  max-width: 100%;
}

.premium-actions {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
}

.premium-actions h3 {
  white-space: nowrap;
}

.premium-actions .app-action-row {
  justify-content: end;
  margin: 0;
}

.dashboard-action-bar {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: -8px 0 2px;
}

.dashboard-date-script {
  grid-column: 1 / -1;
  margin: -4px 0 2px;
  color: var(--app-gold);
  font-family: "Brush Script MT", "Segoe Script", Georgia, serif;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
  letter-spacing: 0;
  text-shadow:
    0 0 18px color-mix(in srgb, var(--app-gold) 22%, transparent),
    0 2px 10px rgba(0, 0, 0, 0.38);
}

.premium-snapshot {
  position: relative;
  overflow: hidden;
  min-height: 0;
  border-color: color-mix(in srgb, var(--app-gold) 36%, transparent);
  background:
    radial-gradient(circle at 88% 8%, color-mix(in srgb, var(--app-teal) 14%, transparent), transparent 16rem),
    linear-gradient(135deg, color-mix(in srgb, var(--app-panel-strong) 96%, black 4%), color-mix(in srgb, var(--app-panel) 86%, var(--app-base) 14%));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--app-gold) 10%, transparent),
    0 22px 60px rgba(0, 0, 0, 0.24);
}

.premium-snapshot.emergency-snapshot {
  border-color: color-mix(in srgb, var(--app-red) 72%, var(--app-gold) 28%);
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--app-red) 13%, transparent), transparent 18rem),
    radial-gradient(circle at 8% 94%, color-mix(in srgb, var(--app-gold) 10%, transparent), transparent 16rem),
    linear-gradient(135deg, color-mix(in srgb, var(--app-panel-strong) 96%, black 4%), color-mix(in srgb, var(--app-base) 90%, var(--app-red) 10%)),
    var(--app-panel-strong);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--app-red) 30%, transparent),
    0 0 34px color-mix(in srgb, var(--app-red) 16%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--app-gold) 12%, transparent);
}

.premium-snapshot.emergency-snapshot .snapshot-ornament {
  display: none;
}

.snapshot-ornament {
  position: absolute;
  inset: auto -40px -70px auto;
  width: 270px;
  height: 270px;
  opacity: 0.12;
  background: url("./assets/rooted-mark-organic-pcb-v4-transparent.png") center / contain no-repeat;
  pointer-events: none;
}

.snapshot-topline,
.snapshot-content,
.premium-actions {
  position: relative;
  z-index: 1;
}

.snapshot-topline,
.section-title-with-icon {
  display: flex;
  align-items: center;
  gap: 12px;
}

.snapshot-topline {
  justify-content: space-between;
  margin-bottom: 18px;
}

.snapshot-emergency-band {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin: -4px 0 18px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--app-red) 42%, var(--app-gold) 18%);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--app-panel-strong) 86%, black 14%), color-mix(in srgb, var(--app-base) 72%, transparent)),
    color-mix(in srgb, var(--app-red) 10%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--app-gold) 10%, transparent);
}

.emergency-band-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.snapshot-emergency-band h4 {
  margin: 0;
  color: var(--app-text);
  font-family: var(--font-display);
  font-size: 18px;
}

.section-title-with-icon img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--app-gold) 22%, transparent));
}

.section-title-with-icon.small {
  gap: 8px;
  margin-bottom: 10px;
}

.section-title-with-icon.small img {
  width: 28px;
  height: 28px;
}

.section-title-with-icon h3,
.section-title-with-icon h4 {
  margin: 0;
  color: var(--app-text);
}

.section-title-with-icon h3 {
  font-family: var(--font-display);
  font-size: 24px;
}

.section-title-with-icon h4 {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 900;
}

.snapshot-content {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 16px;
}

.snapshot-side,
.glance-card,
.next-action-card {
  display: grid;
  gap: 12px;
}

.glance-card,
.next-action-card {
  align-content: start;
  padding: 0 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.next-action-card {
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--app-gold) 18%, transparent);
}

.icon-summary-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.icon-summary-list li {
  min-height: 34px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: var(--app-muted);
  font-weight: 800;
}

.icon-summary-list img,
.app-action img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.next-action-card p {
  margin: 0;
  color: var(--app-muted);
}

.status-pill.quiet {
  color: var(--app-text);
  border: 1px solid color-mix(in srgb, var(--app-green) 30%, transparent);
  background: color-mix(in srgb, var(--app-green) 12%, transparent);
}

.warm-checkin-list,
.emergency-safe-list,
.file-table,
.family-news-board,
.help-list-panel,
.settings-sections {
  display: grid;
  gap: 10px;
}

.warm-checkin-list > div,
.warm-checkin-list > a,
.emergency-safe-list > div,
.emergency-safe-list > a,
.share-link-row {
  min-height: 72px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--app-teal) 18%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--app-panel-strong) 58%, transparent);
}

.warm-checkin-list > a,
.emergency-safe-list > a,
.person-mini-panel,
.person-memory-grid a {
  color: inherit;
  text-decoration: none;
}

.warm-checkin-list .status-safe,
.emergency-safe-list .status-safe {
  border-color: color-mix(in srgb, var(--app-green) 30%, transparent);
}

.warm-checkin-list .status-needs-help,
.emergency-safe-list .status-needs-help {
  border-color: color-mix(in srgb, var(--app-red) 42%, transparent);
}

.warm-checkin-list .status-unknown,
.emergency-safe-list .status-unknown {
  border-color: color-mix(in srgb, var(--app-yellow) 42%, transparent);
}

.emergency-safe-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.emergency-safe-list > div,
.emergency-safe-list > a {
  grid-template-columns: 42px minmax(0, 1fr);
}

.emergency-safe-list em {
  grid-column: 1 / -1;
  color: var(--app-green);
  font-style: normal;
  font-weight: 900;
}

.emergency-safe-list .status-needs-help em {
  color: var(--app-red);
}

.emergency-safe-list .status-unknown em {
  color: var(--app-yellow);
}

.avatar-dot {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid color-mix(in srgb, var(--app-gold) 68%, transparent);
  border-radius: 50%;
  color: var(--app-ink);
  font-size: 12px;
  font-weight: 950;
  background: linear-gradient(135deg, var(--app-gold), var(--app-teal));
  box-shadow: 0 0 0 2px rgba(3, 16, 26, 0.8);
}

.avatar-photo {
  object-fit: cover;
  object-position: center;
  padding: 0;
  background: color-mix(in srgb, var(--app-panel-strong) 84%, transparent);
}

.warm-checkin-list strong,
.emergency-safe-list strong,
.share-link-row strong {
  display: block;
}

.warm-checkin-list small,
.emergency-safe-list small,
.share-link-row small {
  display: block;
  color: var(--app-muted);
  font-size: 12px;
}

.warm-checkin-list em {
  color: var(--app-green);
  font-style: normal;
  font-weight: 950;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.warm-checkin-list em i,
.emergency-safe-list em i,
.status-count i {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  font-style: normal;
  font-weight: 950;
}

.warm-checkin-list .status-safe em,
.emergency-safe-list .status-safe em {
  color: var(--app-green);
}

.warm-checkin-list .status-safe em i,
.emergency-safe-list .status-safe em i,
.status-count.status-safe i {
  color: var(--app-ink);
  background: var(--app-green);
}

.warm-checkin-list .status-needs-help em,
.emergency-safe-list .status-needs-help em {
  color: var(--app-red);
}

.warm-checkin-list .status-needs-help em i,
.emergency-safe-list .status-needs-help em i,
.status-count.status-needs-help i {
  color: white;
  background: var(--app-red);
}

.warm-checkin-list .status-unknown em,
.emergency-safe-list .status-unknown em {
  color: var(--app-yellow);
}

.warm-checkin-list .status-unknown em i,
.emergency-safe-list .status-unknown em i,
.status-count.status-unknown i {
  color: var(--app-ink);
  background: var(--app-yellow);
}

.emergency-status-strip {
  min-height: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--app-gold) 24%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--app-panel-strong) 58%, transparent);
}

.emergency-status-strip.compact {
  min-height: 0;
  margin-top: 0;
  padding: 9px;
}

.emergency-safe-list.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.emergency-safe-list.compact > div {
  min-height: 66px;
}

.status-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  color: var(--app-muted);
  font-weight: 950;
  white-space: nowrap;
}

.status-count.status-safe {
  color: var(--app-green);
}

.status-count.status-needs-help {
  color: var(--app-red);
}

.status-count.status-unknown {
  color: var(--app-yellow);
}

.page-command-strip,
.person-command-strip {
  grid-column: 1 / -1;
  min-height: 58px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--app-gold) 18%, transparent);
}

.page-command-strip .status-box {
  margin: 0;
}

#checkin-snapshot-slot,
.people-dashboard-strip,
.person-dashboard-hero,
.person-subnav,
.person-memory-panel.wide {
  grid-column: 1 / -1;
}

.people-dashboard-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.person-mini-panel {
  min-height: 84px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--app-gold) 24%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--app-panel-strong) 48%, transparent);
}

.person-mini-panel strong,
.person-mini-panel small {
  display: block;
}

.person-mini-panel small {
  color: var(--app-muted);
}

.person-mini-panel em {
  color: var(--app-gold);
  font-style: normal;
  font-weight: 900;
}

.emergency-snapshot-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 18px;
  margin-top: 18px;
}

.emergency-roster {
  display: grid;
  gap: 12px;
}

.emergency-snapshot .emergency-safe-list {
  grid-template-columns: 1fr;
  margin-top: 0;
}

.emergency-snapshot .emergency-safe-list > a {
  grid-template-columns: 52px minmax(0, 1fr) auto;
  min-height: 68px;
}

.all-safe-card {
  min-height: 66px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--app-gold) 25%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--app-panel-strong) 58%, transparent);
}

.all-safe-card img {
  width: 38px;
  height: 38px;
  grid-row: span 2;
  object-fit: contain;
}

.all-safe-card span,
.all-safe-card small {
  display: block;
}

.all-safe-card.good span {
  color: var(--app-green);
}

.all-safe-card.attention span {
  color: var(--app-yellow);
}

.all-safe-card small {
  color: var(--app-muted);
  font-weight: 800;
}

.emergency-location-card {
  display: grid;
  grid-template-rows: minmax(180px, 0.9fr) auto;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--app-gold) 24%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--app-panel-strong) 54%, transparent);
}

.emergency-location-card iframe {
  width: 100%;
  height: 100%;
  min-height: 190px;
  border: 0;
  filter: saturate(0.9) contrast(1.08);
}

.location-copy {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.location-copy strong {
  display: flex;
  align-items: center;
  gap: 8px;
}

.location-copy strong span {
  color: var(--app-yellow);
}

.location-copy p {
  margin: 0;
  color: var(--app-muted);
  font-size: 13px;
  line-height: 1.45;
}

.source-link,
.location-copy a {
  color: color-mix(in srgb, var(--app-teal) 70%, white 30%);
  font-weight: 900;
}

.location-copy a {
  font-size: 12px;
}

.dashboard-side-band {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  padding: 0 0 10px;
}

.person-dashboard-hero {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) minmax(280px, auto);
  gap: 18px;
  align-items: center;
  padding: 18px 0 22px;
  border-bottom: 1px solid color-mix(in srgb, var(--app-gold) 20%, transparent);
}

.person-hero-avatar {
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  border: 2px solid color-mix(in srgb, var(--app-gold) 76%, transparent);
  border-radius: 50%;
  color: var(--app-ink);
  font-size: 22px;
  font-weight: 950;
  background: linear-gradient(135deg, var(--app-gold), var(--app-teal));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

img.person-hero-avatar {
  object-fit: cover;
  object-position: center;
}

.person-hero-copy h3 {
  margin: 4px 0 10px;
  font-family: var(--font-display);
  font-size: 32px;
}

.person-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.person-status-row span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--app-gold) 22%, transparent);
  border-radius: 999px;
  color: var(--app-muted);
  background: color-mix(in srgb, var(--app-panel-strong) 45%, transparent);
  font-size: 12px;
  font-weight: 900;
}

.person-command-strip {
  grid-column: auto;
  justify-content: end;
  padding: 0;
  border-bottom: 0;
}

.person-activity-panel,
.person-care-panel,
.person-context-panel {
  min-height: 260px;
}

.person-memory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.person-memory-grid a {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(130px, 0.58fr) minmax(0, 1fr);
  min-height: 118px;
  border: 1px solid color-mix(in srgb, var(--app-gold) 20%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--app-panel-strong) 44%, transparent);
}

.person-memory-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-memory-grid span {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 12px;
}

.person-memory-grid small {
  color: var(--app-muted);
  font-weight: 800;
}

.person-hero-widget .rooted-widget-footer {
  padding-top: 8px;
}

.person-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.person-hero-actions .app-action {
  min-height: 34px;
  margin-top: 0;
  padding-inline: 12px;
  font-size: 12px;
}

.person-care-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.person-care-form .app-action-row {
  grid-column: 1 / -1;
}

.private-care-action-strip {
  margin-bottom: 12px;
}

.person-care-form label,
.person-care-form input,
.person-care-form select {
  min-width: 0;
}

.person-status-row span {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.person-widget-grid .person-hero-widget {
  grid-column: span 8;
  min-width: min(100%, 340px);
}

.person-widget-grid .rooted-widget[data-widget-id="person-context"] {
  grid-column: span 4;
}

.person-widget-grid .person-memory-panel {
  grid-column: 1 / -1;
}

.person-widget-grid .rooted-widget {
  min-width: min(100%, 280px);
}

.person-widget-grid .rooted-widget-body,
.person-widget-grid .rooted-widget-footer {
  min-width: 0;
}

.profile-checkin-inline {
  width: min(100%, 360px);
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--app-gold) 20%, transparent);
  border-radius: 999px;
  background: rgba(2, 9, 18, 0.62);
}

.profile-checkin-inline i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #061421;
  font-style: normal;
  font-weight: 900;
  background: var(--app-yellow);
}

.profile-checkin-inline.status-safe i {
  background: var(--app-green);
}

.profile-checkin-inline.status-needs_help i,
.profile-checkin-inline.status-needs-assistance i {
  color: white;
  background: var(--app-red);
}

.profile-checkin-inline span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.profile-checkin-inline strong {
  color: #e5ded0;
  font-weight: 620;
}

.profile-checkin-inline small {
  color: var(--app-muted);
  font-size: 11px;
}

.person-timeline-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 320px);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-color: rgba(217, 180, 74, 0.5) transparent;
}

.person-timeline-strip a {
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(130px, 1fr) auto;
  min-height: 238px;
  color: var(--app-text);
  border: 1px solid color-mix(in srgb, var(--app-gold) 18%, transparent);
  border-radius: 10px;
  background: rgba(3, 14, 25, 0.72);
}

.person-timeline-strip img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.person-timeline-strip span {
  display: grid;
  gap: 5px;
  padding: 12px;
}

.person-timeline-strip small,
.person-timeline-strip em {
  color: var(--app-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 580;
}

.person-timeline-strip strong {
  color: #e8dfce;
  font-weight: 620;
}

.family-tree-widget .interactive-family-tree {
  grid-template-columns: minmax(420px, 1fr) minmax(260px, 0.42fr);
}

.family-tree-widget .tree-person-card {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.family-tree-widget .tree-person-card h2,
.family-tree-widget .tree-person-card p,
.family-tree-widget .tree-person-card dd {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.family-tree-widget .tree-person-card * {
  min-width: 0;
}

.family-tree-widget .tree-person-card h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.family-tree-widget .tree-person-card dl {
  gap: 8px;
  margin-top: 14px;
}

.family-tree-widget .tree-person-card dl > div {
  padding: 10px;
}

.family-tree-widget .tree-actions-menu {
  margin-top: 12px;
}

.status-pill.attention {
  color: white;
  background: linear-gradient(135deg, var(--app-red), #9b1522);
}

.moment-panel {
  min-height: 230px;
  display: grid;
  grid-template-columns: minmax(280px, 0.58fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.dashboard-home-grid .dashboard-moment-panel,
.dashboard-home-grid .family-news-panel {
  grid-column: auto;
}

.dashboard-home-grid .dashboard-moment-panel {
  display: block;
}

.dashboard-home-grid .dashboard-moment-panel > img {
  height: 118px;
  margin-bottom: 14px;
}

.moment-panel img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 8px;
}

.document-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.document-toolbar input,
.document-toolbar select,
.state-form label input,
.state-form label select {
  min-height: 40px;
}

.calendar-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.56fr);
  gap: 18px;
}

.calendar-month {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-month span,
.calendar-month a {
  min-height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(3, 16, 26, 0.38);
  color: inherit;
  text-decoration: none;
}

.calendar-month .has-event {
  color: var(--ink);
  font-weight: 950;
  background: linear-gradient(135deg, var(--green), var(--teal));
}

.calendar-month .active {
  border-color: rgba(217, 180, 74, 0.68);
  box-shadow: 0 0 0 2px rgba(217, 180, 74, 0.2);
}

.rsvp-pills,
.settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rsvp-pills span,
.settings-tabs a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  color: #d9d3c7;
  border: 1px solid rgba(217, 180, 74, 0.12);
  background: rgba(217, 180, 74, 0.055);
  font-size: 13px;
  font-weight: 600;
}

.file-table-header,
.file-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(104px, 0.7fr) minmax(104px, 0.7fr) minmax(124px, auto);
  gap: 12px;
  align-items: center;
}

.file-table {
  overflow-x: auto;
}

.file-table-header {
  margin-bottom: 8px;
  color: var(--app-gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.file-row {
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--app-panel-strong) 46%, transparent);
}

.file-row small {
  display: block;
  color: var(--app-muted);
}

.file-row span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.document-record-preview {
  display: grid;
  gap: 16px;
}

.document-record-preview dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.document-record-preview dl div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.document-record-preview dt {
  color: var(--app-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.document-record-preview dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: var(--app-cream);
  font-weight: 850;
}

.document-record-preview p {
  margin: 0;
  color: var(--app-muted);
}

.news-item,
.help-list-panel section,
.settings-sections section {
  padding: 16px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--app-panel-strong) 46%, transparent);
}

.news-item span {
  color: var(--app-gold);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.settings-tabs {
  margin-bottom: 16px;
}

.settings-sections {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.source-link {
  display: inline-block;
  margin-top: 14px;
  color: #bcebdd;
  font-weight: 900;
}

.app-panel h3 {
  margin: 0 0 10px;
}

.app-panel p {
  margin: 0 0 14px;
  color: inherit;
  line-height: 1.5;
}

.dashboard-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.card-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--app-green);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-pill {
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  white-space: nowrap;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--app-ink);
  font-size: 12px;
  font-weight: 950;
}

.status-pill.good {
  background: linear-gradient(135deg, var(--app-green), var(--app-teal));
}

.family-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.family-status-grid div {
  min-height: 94px;
  padding: 12px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  border: 1px solid rgba(9, 19, 29, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  text-align: center;
}

.family-status-grid span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(169, 201, 69, 0.18);
  font-size: 22px;
}

.family-status-grid strong {
  color: var(--ink);
}

.family-status-grid small {
  color: rgba(9, 19, 29, 0.72);
  font-weight: 800;
}

.compact-list {
  margin-top: 12px;
}

.app-action {
  min-height: 38px;
  display: inline-grid;
  grid-auto-flow: column;
  place-items: center;
  gap: 8px;
  margin-top: 6px;
  border: 0;
  border-radius: 7px;
  padding: 0 14px;
  color: var(--app-ink);
  font-weight: 900;
  background: linear-gradient(135deg, var(--app-green), var(--app-teal));
  cursor: pointer;
}

.app-action img {
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--app-gold) 22%, transparent));
}

.app-action.ghost-action,
.ghost-action {
  color: var(--app-text);
  border: 1px solid color-mix(in srgb, var(--app-gold) 32%, transparent);
  background: var(--app-panel-soft);
}

.app-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.app-demo-form {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.app-demo-form input,
.app-demo-form select,
.app-demo-form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--app-line);
  border-radius: 7px;
  padding: 0 12px;
  color: var(--app-text);
  font: inherit;
  background: color-mix(in srgb, var(--app-panel-strong) 62%, transparent);
}

.app-demo-form textarea {
  min-height: 92px;
  padding-top: 10px;
  resize: vertical;
}

.check-row {
  min-height: 38px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: var(--app-text);
  line-height: 1.35;
}

.check-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--app-green);
}

.app-status {
  color: var(--app-text);
  background: color-mix(in srgb, var(--app-panel-strong) 46%, transparent);
}

.app-status {
  margin-top: 14px;
  color: var(--app-text);
  background: var(--app-panel-soft);
}

.app-status a {
  color: var(--app-gold);
  font-weight: 900;
}

.app-status:empty {
  display: none;
}

.app-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  max-width: min(360px, calc(100% - 32px));
  padding: 13px 16px;
  color: var(--ink);
  border: 1px solid rgba(214, 195, 79, 0.4);
  border-radius: 8px;
  background: var(--ivory);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.app-toast[data-visible="true"] {
  opacity: 1;
  transform: translateY(0);
}

.shared-hero {
  padding-bottom: 34px;
}

.shared-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
}

.shared-story-card,
.join-card {
  min-height: 360px;
}

.shared-story-card h2,
.join-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.shared-story-card p:not(.eyebrow),
.join-card p:not(.eyebrow) {
  color: rgba(9, 19, 29, 0.74);
}

.form-grid {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.checkout-account-form {
  border: 1px solid rgba(205, 174, 92, 0.3);
  border-radius: 18px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.checkout-account-form legend {
  padding: 0 8px;
  color: var(--gold);
  font-weight: 800;
}

.checkout-account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.checkout-account-grid label {
  display: grid;
  gap: 7px;
  color: var(--cream);
  font-weight: 700;
}

.checkout-account-grid input {
  width: 100%;
}

@media (max-width: 720px) {
  .checkout-account-grid {
    grid-template-columns: 1fr;
  }
}

.form-grid [hidden] {
  display: none !important;
}

.form-grid label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(9, 19, 29, 0.22);
  border-radius: 7px;
  background: white;
}

.form-grid textarea {
  min-height: 150px;
  padding-top: 12px;
  font: inherit;
  resize: vertical;
}

.contact-panel {
  width: min(720px, calc(100% - 40px));
}

.contact-route-grid {
  width: min(980px, calc(100% - 40px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 auto 22px;
}

.contact-route-grid article {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(9, 19, 29, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
}

.contact-route-grid h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 18px;
}

.contact-route-grid p {
  margin: 0;
  color: rgba(9, 19, 29, 0.68);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.contact-route-grid a {
  overflow-wrap: anywhere;
}

.status-box[data-state="error"] {
  color: #7a231d;
  background: rgba(185, 58, 45, 0.12);
}

.status-box[data-state="success"] {
  color: #214f3d;
  background: rgba(54, 194, 181, 0.16);
}

.form-grid button {
  min-height: 46px;
  border: 0;
  border-radius: 7px;
  color: var(--ink);
  font-weight: 900;
  background: linear-gradient(135deg, var(--green), var(--teal));
  cursor: pointer;
}

.form-grid .ghost-form-button {
  color: var(--green);
  border: 1px solid rgba(39, 105, 79, 0.24);
  background: rgba(255, 255, 255, 0.72);
}

.checkout-page .plan-choice:not([aria-pressed="true"]),
.checkout-page .segmented button:not([aria-pressed="true"]),
.checkout-page .state-buttons button:not([aria-pressed="true"]) {
  border: 1px solid rgba(9, 19, 29, 0.16);
  background: rgba(255, 255, 255, 0.72);
}

.status-box {
  min-height: 46px;
  display: grid;
  align-items: center;
  margin-top: 16px;
  padding: 12px;
  border-radius: 7px;
  background: rgba(54, 194, 181, 0.12);
  color: var(--ink);
  font-size: 13px;
}

.page-shell.app-page .status-box.app-status {
  color: #f7efe2;
  border: 1px solid rgba(217, 180, 74, 0.18);
  background:
    linear-gradient(145deg, rgba(5, 18, 30, 0.82), rgba(2, 9, 18, 0.9)),
    rgba(2, 9, 18, 0.86);
}

.page-shell.app-page .status-box.app-status[data-state="success"] {
  color: #d7ffe8;
  border-color: rgba(104, 218, 120, 0.3);
  background: rgba(15, 70, 48, 0.38);
}

.page-shell.app-page .status-box.app-status[data-state="error"] {
  color: #ffe1e4;
  border-color: rgba(255, 106, 118, 0.34);
  background: rgba(92, 21, 30, 0.34);
}

.page-shell.app-page .family-checkin-board .status-box.app-status,
.page-shell.app-page .family-checkin-board + .status-box.app-status {
  min-height: 40px;
  margin-top: 10px;
  color: #f8f0df !important;
  border-color: rgba(217, 180, 74, 0.18);
  background:
    linear-gradient(145deg, rgba(3, 18, 31, 0.92), rgba(1, 9, 18, 0.96)),
    rgba(1, 9, 18, 0.9);
}

.app-fallback-panel {
  grid-column: 1 / -1;
  justify-self: stretch;
  width: min(100%, 860px);
  min-width: min(100%, 280px);
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: 22px;
  color: #f7efe2;
  border: 1px solid rgba(217, 180, 74, 0.22);
  border-radius: 10px;
  background:
    radial-gradient(circle at 88% 0%, rgba(54, 194, 181, 0.12), transparent 14rem),
    linear-gradient(145deg, rgba(5, 18, 30, 0.94), rgba(2, 9, 18, 0.98));
}

.app-panel-grid > .app-fallback-panel {
  grid-column: 1 / -1 !important;
  width: min(100%, 920px);
  min-width: min(100%, 320px);
}

.app-fallback-panel h3,
.app-fallback-panel p {
  max-width: 48ch;
  margin: 0;
  color: #f7efe2;
  -webkit-text-fill-color: #f7efe2;
  overflow-wrap: anywhere;
}

.app-fallback-panel .app-action {
  max-width: 100%;
  min-width: 150px;
  white-space: nowrap;
  text-align: center;
}

.memory-vault-page {
  padding-bottom: 128px;
}

.vault-hero {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 62px 0 46px;
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(420px, 0.68fr);
  gap: 48px;
  align-items: center;
}

.vault-hero > * {
  min-width: 0;
}

.vault-hero h1 {
  max-width: 760px;
  font-size: 62px;
}

.vault-hero p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.vault-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(214, 195, 79, 0.24);
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
}

.vault-feature-grid,
.vault-story {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.vault-feature-grid {
  padding: 22px 0 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.vault-feature-grid article {
  min-height: 178px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(13, 47, 64, 0.74);
}

.tree-feature-shot {
  padding: 18px;
}

.app-loading-surface {
  grid-column: 1 / -1;
  min-width: 0;
  border-bottom: 1px solid rgba(217, 180, 74, 0.12);
}

.app-loading-surface .tree-loading-panel {
  min-height: 220px;
  border: 0;
  background:
    radial-gradient(circle at 14% 0%, rgba(217, 180, 74, 0.08), transparent 14rem),
    radial-gradient(circle at 88% 10%, rgba(34, 184, 170, 0.08), transparent 16rem),
    transparent;
}

.app-loading-surface.family-tree-app-panel .tree-loading-panel {
  min-height: calc(100vh - 160px);
  background:
    linear-gradient(180deg, rgba(1, 7, 14, 0.42), rgba(1, 7, 14, 0.84)),
    url("./assets/family-tree-oak-prairie-bg.png") center / cover no-repeat;
}

.tree-loading-panel {
  min-height: 420px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(1, 7, 14, 0.42), rgba(1, 7, 14, 0.84)),
    url("./assets/family-tree-oak-prairie-bg.png") center / cover no-repeat;
}

.tree-loading-panel img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.tree-loading-panel strong {
  color: var(--app-gold);
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 520;
}

.tree-loading-panel span {
  max-width: 520px;
  color: var(--app-muted);
}

.timeline-loading-panel,
.family-tree-loading-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: var(--app-gold);
  text-align: center;
  background:
    linear-gradient(180deg, rgba(1, 7, 14, 0.62), rgba(1, 7, 14, 0.86)),
    url("./assets/family-tree-oak-prairie-bg.png") center / cover no-repeat;
}

.timeline-loading-panel img,
.family-tree-loading-panel img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.timeline-loading-panel span,
.family-tree-loading-panel span {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 520;
}

.feature-tree-landscape {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(280px, 0.72fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(214, 195, 79, 0.24);
  border-radius: 12px;
  background: rgba(3, 16, 26, 0.72);
}

.feature-tree-landscape img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center;
}

.feature-tree-landscape > div {
  padding: clamp(20px, 4vw, 42px);
}

.feature-tree-landscape h2 {
  margin: 8px 0 14px;
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 50px);
  font-weight: 500;
  line-height: 1.1;
}

.feature-tree-landscape p {
  color: var(--muted);
  line-height: 1.6;
}

.interactive-family-tree {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(280px, 0.42fr);
  gap: 18px;
}

.tree-canvas {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(214, 195, 79, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 98%, rgba(214, 195, 79, 0.18), transparent 22%),
    radial-gradient(circle at 48% 44%, rgba(54, 194, 181, 0.08), transparent 32%),
    linear-gradient(135deg, rgba(3, 16, 26, 0.72), rgba(13, 47, 64, 0.86)),
    url("./assets/rooted-hero-family-tree.webp") center / cover no-repeat;
}

.family-person {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  width: 116px;
  min-height: 144px;
  display: grid;
  justify-items: center;
  gap: 4px;
  border: 0;
  color: var(--ivory);
  text-align: center;
  background: transparent;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.family-person strong,
.family-person em {
  position: relative;
  z-index: 1;
  display: block;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.family-person strong {
  color: var(--ivory);
  font-size: 13px;
}

.family-person em {
  color: var(--gold);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.tree-person-card {
  position: relative;
  min-height: 520px;
  padding: 24px;
  display: grid;
  align-content: center;
  border: 1px solid rgba(214, 195, 79, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(214, 195, 79, 0.1), transparent 30%),
    rgba(3, 16, 26, 0.82);
}

.tree-person-card span {
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tree-person-card h2 {
  margin: 9px 0 12px;
  color: var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-weight: 400;
}

.tree-person-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.tree-person-card dl {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
}

.tree-person-card div {
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.tree-person-card dt,
.tree-person-card dd {
  margin: 0;
}

.tree-person-card dt {
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
}

.tree-person-card dd {
  margin-top: 4px;
  color: var(--ivory);
}

.tree-actions-menu {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.tree-actions-menu a {
  min-height: 36px;
  display: grid;
  align-items: center;
  border-radius: 7px;
  padding: 0 12px;
  color: #bcebdd;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.06);
}

.vault-feature-grid img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.72));
}

.vault-feature-grid h2 {
  margin: 18px 0 10px;
  color: var(--gold);
  font-size: 22px;
}

.vault-feature-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.feature-page .vault-hero {
  padding-top: 72px;
}

.feature-visual {
  min-width: 0;
  min-height: 390px;
  padding: 30px;
  display: grid;
  align-content: center;
  gap: 20px;
  border: 1px solid rgba(214, 195, 79, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(7, 19, 34, 0.42), rgba(13, 47, 64, 0.86)),
    var(--feature-image) center / cover no-repeat;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
}

.feature-visual img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 7px 7px rgba(0, 0, 0, 0.72));
}

.feature-visual strong {
  max-width: 420px;
  color: var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.12;
}

.feature-tree-preview {
  overflow: hidden;
  border: 1px solid rgba(214, 195, 79, 0.24);
  border-radius: 8px;
  background: rgba(3, 16, 26, 0.72);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.34);
}

.feature-visual .feature-tree-preview img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: none;
}

.feature-proof-list {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 64px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.feature-proof-list article {
  min-height: 170px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(13, 47, 64, 0.74);
}

.feature-proof-list h2 {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 23px;
}

.feature-proof-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.vault-feature-grid article > header,
.feature-proof-list article > header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.vault-feature-grid article > header img,
.feature-proof-list article > header img {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  object-fit: contain;
}
.vault-feature-grid article > header h2,
.feature-proof-list article > header h2 { margin: 0; }
.three-up-proof-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.family-owned-card {
  border-color: rgba(169, 201, 69, 0.34) !important;
  background: linear-gradient(135deg, rgba(13, 47, 64, 0.82), rgba(8, 31, 42, 0.76)) !important;
}
#family-emergency { scroll-margin-top: 24px; }

.feature-demo-panel {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 70px;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(340px, 1fr);
  gap: 24px;
  align-items: center;
  color: var(--ink);
  border-radius: 10px;
  background: var(--ivory);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.3);
}

.feature-demo-panel h2 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 400;
}

.feature-demo-panel p {
  margin: 0;
  color: rgba(9, 19, 29, 0.72);
  line-height: 1.55;
}

.demo-schedule,
.news-demo-list,
.event-demo-card,
.vault-file-demo,
.wellness-demo,
.checkin-outcome-widget {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(9, 19, 29, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
}

.checkins-feature-visual {
  min-height: 440px;
  align-content: end;
  background:
    linear-gradient(180deg, rgba(3, 16, 26, 0.08), rgba(3, 16, 26, 0.7)),
    var(--feature-image) center / cover no-repeat;
}

.checkins-feature-visual strong {
  display: none;
}

.checkin-outcome-widget {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.checkin-outcome-widget div {
  min-height: 116px;
  display: grid;
  align-content: center;
  justify-items: center;
  border-radius: 8px;
  background: rgba(9, 19, 29, 0.06);
  text-align: center;
}

.checkin-outcome-widget strong {
  color: var(--ink);
  font-size: 44px;
  line-height: 1;
}

.checkin-outcome-widget span {
  margin-top: 8px;
  color: rgba(9, 19, 29, 0.72);
  font-weight: 900;
}

.checkin-outcome-widget p {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(9, 19, 29, 0.72);
  text-align: center;
  font-weight: 900;
}

.segmented-demo,
.day-row,
.event-demo-card > div:not(.rsvp-tally) {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segmented-demo span,
.day-row span,
.event-demo-card > div:not(.rsvp-tally) span {
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(9, 19, 29, 0.15);
  border-radius: 999px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
}

.segmented-demo .active,
.day-row .active {
  color: var(--ink);
  border-color: rgba(39, 105, 79, 0.34);
  background: #dce7b4;
}

.path-demo {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.path-demo li,
.news-demo-list article,
.vault-file-demo p,
.wellness-demo p {
  padding: 12px;
  border-radius: 7px;
  background: rgba(9, 19, 29, 0.055);
}

.path-demo strong,
.path-demo span,
.news-demo-list strong,
.news-demo-list span,
.vault-file-demo strong,
.vault-file-demo span,
.wellness-demo strong {
  display: block;
}

.news-demo-list article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 4px 12px;
}

.news-demo-list article span {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(214, 195, 79, 0.16);
}

.event-demo-card button {
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  color: var(--ink);
  font-weight: 900;
  background: linear-gradient(135deg, var(--green), var(--teal));
}

.vault-file-demo meter {
  width: 100%;
  height: 14px;
  accent-color: var(--green);
}

.vault-story {
  display: grid;
  gap: 22px;
}

.vault-event {
  min-height: 330px;
  padding: 42px;
  display: grid;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(13, 47, 64, 0.88), rgba(3, 16, 26, 0.86)),
    url("./assets/family-snapshot-care-bg.webp") center / cover no-repeat;
  opacity: 0.72;
  transform: scale(0.985);
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease;
  scroll-margin: 150px;
}

.vault-event.active {
  border-color: rgba(214, 195, 79, 0.58);
  opacity: 1;
  transform: scale(1);
}

.vault-event span {
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.vault-event h2 {
  max-width: 720px;
  margin: 12px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 46px;
  font-weight: 400;
}

.vault-event p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.timeline-dock {
  position: sticky;
  bottom: 18px;
  z-index: 5;
  width: min(980px, calc(100% - 40px));
  min-height: 86px;
  margin: 54px auto 0;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  color: var(--ink);
  border: 1px solid rgba(214, 195, 79, 0.28);
  border-radius: 8px;
  background: rgba(245, 238, 228, 0.96);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(10px);
}

.timeline-line {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 31px;
  height: 2px;
  background: rgba(9, 19, 29, 0.18);
}

.timeline-dock button {
  position: relative;
  min-height: 50px;
  display: grid;
  gap: 5px;
  justify-items: center;
  color: rgba(9, 19, 29, 0.68);
  border: 0;
  background: transparent;
  cursor: pointer;
}

.timeline-dock button::before {
  content: "";
  width: 15px;
  height: 15px;
  display: block;
  border: 2px solid rgba(9, 19, 29, 0.28);
  border-radius: 50%;
  background: var(--ivory);
}

.timeline-dock button.active {
  color: var(--ink);
}

.timeline-dock button.active::before {
  border-color: var(--green);
  background: linear-gradient(135deg, var(--green), var(--teal));
  box-shadow: 0 0 0 5px rgba(169, 201, 69, 0.18);
}

.timeline-dock span {
  font-size: 12px;
  font-weight: 900;
}

.timeline-dock strong {
  font-size: 12px;
}

.vault-preview-frame {
  padding: 12px;
  border: 1px solid rgba(214, 195, 79, 0.26);
  border-radius: 8px;
  background: rgba(245, 238, 228, 0.08);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
}

.vault-preview-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
}

.vault-explainer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 72px;
  padding: 36px 0 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(320px, 1fr) auto;
  gap: 28px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.vault-explainer h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.12;
}

.vault-explainer p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.58;
}

.timeline-page {
  min-height: 100vh;
  padding-bottom: 150px;
}

.timeline-workspace {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 0;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.timeline-header h1 {
  max-width: 780px;
  font-size: 58px;
}

.timeline-header p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.58;
}

.timeline-controls {
  align-self: start;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  max-width: 310px;
}

.timeline-controls button {
  min-height: 42px;
  border: 1px solid rgba(214, 195, 79, 0.34);
  border-radius: 7px;
  padding: 0 16px;
  color: var(--ivory);
  font-weight: 900;
  background: rgba(13, 47, 64, 0.74);
  cursor: pointer;
}

.timeline-controls button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.timeline-hint {
  flex-basis: 100%;
  color: rgba(245, 238, 228, 0.68);
  font-size: 12px;
  text-align: right;
}

.timeline-event-stage {
  overflow: hidden;
  border: 1px solid rgba(214, 195, 79, 0.28);
  border-radius: 10px;
  background: rgba(4, 18, 30, 0.58);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.timeline-memory-track {
  display: flex;
  height: 100%;
  transition: transform 460ms cubic-bezier(0.22, 0.86, 0.28, 1);
  will-change: transform;
}

.timeline-memory {
  min-width: 100%;
  min-height: 560px;
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.62fr);
  gap: 28px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(13, 47, 64, 0.72), rgba(3, 16, 26, 0.9)),
    rgba(13, 47, 64, 0.78);
  opacity: 0.26;
  transform: scale(0.985);
  transition: opacity 220ms ease, transform 220ms ease;
}

.timeline-memory.active {
  opacity: 1;
  transform: scale(1);
}

.timeline-memory img {
  width: 100%;
  height: min(62vh, 520px);
  object-fit: cover;
  object-position: center;
  border-radius: 7px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.38);
}

.timeline-memory span {
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.timeline-memory h2 {
  margin: 10px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 400;
  line-height: 1.08;
}

.timeline-memory p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.58;
}

.member-timeline {
  position: sticky;
  bottom: 16px;
  z-index: 8;
  width: min(1180px, calc(100% - 28px));
  min-height: 116px;
  margin: 46px auto 0;
  padding: 34px 18px 18px;
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 2px;
  border: 1px solid rgba(214, 195, 79, 0.34);
  border-radius: 8px;
  background: rgba(4, 18, 30, 0.92);
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
}

.member-timeline-track {
  position: absolute;
  left: 28px;
  right: 28px;
  top: 40px;
  height: 2px;
  background: rgba(245, 238, 228, 0.22);
}

.member-timeline button {
  position: relative;
  min-height: 56px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  color: rgba(245, 238, 228, 0.5);
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 160ms ease, color 160ms ease;
}

.member-timeline button::before {
  content: "";
  width: 2px;
  height: 18px;
  display: block;
  background: rgba(245, 238, 228, 0.38);
}

.member-timeline button.has-event::before {
  width: 12px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), var(--green));
  box-shadow: 0 0 18px rgba(169, 201, 69, 0.3);
}

.member-timeline button.point-of-interest::before {
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 999px;
  background: rgba(214, 195, 79, 0.86);
  box-shadow: 0 0 14px rgba(214, 195, 79, 0.22);
}

.member-timeline button.has-event:hover,
.member-timeline button.has-event:focus,
.member-timeline button.has-event.active,
.member-timeline button.point-of-interest:hover,
.member-timeline button.point-of-interest:focus {
  color: var(--ivory);
  transform: translateY(-8px) scale(1.22);
}

.member-timeline button.has-event.active::before {
  background: linear-gradient(180deg, var(--green), var(--teal));
}

.member-timeline button.today-marker::before {
  width: 16px;
  height: 26px;
  background: linear-gradient(180deg, var(--teal), var(--gold));
}

.member-timeline span {
  font-size: 10px;
  font-weight: 900;
  writing-mode: vertical-rl;
}

.timeline-preview {
  position: absolute;
  bottom: 98px;
  width: 176px;
  padding: 9px;
  color: var(--ink);
  border: 1px solid rgba(214, 195, 79, 0.28);
  border-radius: 8px;
  background: var(--ivory);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
  transform: translateX(-50%);
}

.timeline-preview img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 5px;
}

.timeline-preview span,
.timeline-preview strong {
  display: block;
}

.timeline-preview span {
  margin-top: 7px;
  color: #27694f;
  font-size: 11px;
  font-weight: 900;
}

.timeline-preview strong {
  margin-top: 3px;
  font-size: 12px;
}

@media (hover: hover) {
  .nav-cta:hover,
  .button:hover,
  .plan-button:hover,
  .mini-card a:hover,
  .memory-card a:hover,
  .activity-card a:hover {
    transform: translateY(-1px);
  }
}

@media (max-width: 980px) {
  .nav,
  .hero,
  .pillar-row,
  .feature-strip,
  .purpose-section,
  .scenario-story-section,
  .dashboard-story-section,
  .scenario-section,
  .feature-showcase-section,
  .outcome-section,
  .vault-hero,
  .vault-feature-grid,
  .timeline-workspace,
  .pricing-section,
  .dashboard-section {
    width: min(100% - 28px, 1220px);
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-store-links {
    display: none;
  }

  .member-signin {
    min-width: 84px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid rgba(214, 169, 70, 0.55);
    border-radius: 7px;
    background: rgba(3, 16, 26, 0.48);
  }

  .nav-cta {
    padding-inline: 16px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 26px;
  }

  h1 {
    font-size: 58px;
  }

  .hero-spacer {
    min-height: 380px;
  }

  .pillar-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .pillar-row article,
  .pillar-row a {
    border-right: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .feature-strip div {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-strip span,
  .feature-strip a {
    border-right: 0;
    border-top: 1px solid rgba(9, 19, 29, 0.12);
  }

  .pricing-section,
  .purpose-section,
  .scenario-story-section,
  .emergency-story-section,
  .scenario-grid,
  .feature-card-grid,
  .outcome-grid,
  .vault-hero,
  .vault-feature-grid,
  .feature-proof-list,
  .feature-demo-panel,
  .vault-explainer,
  .timeline-memory,
  .pricing-panel,
  .tablet,
  .dashboard-grid,
  .demo-grid,
  .legal-grid,
  .memory-card,
  .checkout-grid,
  .contact-route-grid,
  .shared-panel,
  .app-panel-grid {
    grid-template-columns: 1fr;
  }

  .app-panel.featured-panel {
    grid-column: auto;
  }

  .feature-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .interactive-family-tree {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .tree-canvas {
    min-height: 560px;
  }

  .tree-person-card {
    min-height: auto;
  }

  .story-flow,
  .surface-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-copy h2 {
    max-width: 100%;
  }

  .purpose-section {
    gap: 18px;
  }

  .vault-hero h1 {
    font-size: 48px;
  }

  .timeline-dock {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-header {
    flex-direction: column;
  }

  .member-timeline {
    position: static;
    overflow-x: auto;
    grid-template-columns: repeat(14, minmax(42px, 1fr));
  }

  .timeline-line {
    display: none;
  }

  .emergency-story-section {
    overflow: hidden;
  }

  .emergency-story-section img {
    height: auto;
    max-height: none;
  }

  .tablet {
    padding: 14px;
  }

  .app-sidebar {
    display: none;
  }

  .app-header {
    flex-direction: column;
  }

  .snapshot-content,
  .emergency-snapshot-layout,
  .emergency-status-strip,
  .emergency-safe-list.compact,
  .people-dashboard-strip,
  .dashboard-side-band,
  .person-dashboard-hero,
  .person-memory-grid {
    grid-template-columns: 1fr;
  }

  .person-command-strip {
    justify-content: start;
  }

  .snapshot-topline,
  .emergency-band-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    width: min(100% - 28px, 1220px);
    flex-direction: column;
  }

  .site-footer.full-footer {
    grid-template-columns: 1fr 1fr;
  }

  .rooted-widget-canvas {
    --widget-min: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rooted-widget.widget-wide,
  .rooted-widget.widget-xl,
  .rooted-widget.widget-hero {
    grid-column: 1 / -1;
  }

  .rooted-widget.widget-tall,
  .rooted-widget.widget-hero {
    grid-row: auto;
    min-height: 0;
  }
}

@media (max-width: 980px) {
  .nav-store-links {
    display: none;
  }
}

@media (max-width: 700px) {
  .page-shell.app-page,
  .app-frame,
  .tablet,
  .app-main {
    max-width: 100%;
    overflow-x: hidden;
  }

  .app-frame {
    width: calc(100% - 16px);
  }

  .tablet {
    padding: 8px;
    border-radius: 20px;
  }

  .app-main {
    padding: 16px 8px;
  }

  .rooted-widget-canvas {
    grid-template-columns: minmax(0, 1fr);
  }

  .rooted-widget {
    grid-column: auto;
    padding: 12px;
  }

  .rooted-widget-titlebar {
    align-items: flex-start;
    flex-direction: column;
  }

  .rooted-widget-tools {
    justify-content: start;
  }

  .rooted-widget-heading,
  .rooted-widget-heading span,
  .snapshot-topline,
  .section-title-with-icon,
  .family-snapshot-panel h3,
  .person-hero-copy h3 {
    min-width: 0;
  }

  .family-snapshot-panel h3,
  .person-hero-copy h3 {
    font-size: clamp(23px, 8vw, 30px);
    max-width: 10ch;
    overflow-wrap: anywhere;
  }

  .dashboard-action-bar,
  .app-action-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    justify-items: start;
  }

  .app-action {
    width: auto;
    max-width: 100%;
    min-width: 0;
    grid-auto-flow: column;
    justify-content: start;
    white-space: normal;
    text-align: left;
  }

  .warm-checkin-list > div,
  .warm-checkin-list > a,
  .emergency-safe-list > div,
  .emergency-safe-list > a,
  .share-link-row,
  .person-mini-panel {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .warm-checkin-list em,
  .emergency-safe-list em,
  .share-link-row > strong,
  .person-mini-panel em {
    grid-column: 2;
    justify-self: start;
    white-space: normal;
  }

  .file-table-header,
  .file-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .file-row span:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .file-table-header span:not(:first-child) {
    display: none;
  }
}

@media (max-width: 560px) {
  .native-commerce-boundary {
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
    margin-right: auto;
    margin-left: auto;
    padding: 26px 18px;
    overflow: hidden;
  }

  .native-commerce-boundary .demo-hero {
    padding: 48px 0 62px;
  }

  .native-commerce-boundary .demo-hero h1,
  .native-commerce-boundary .demo-hero p:not(.eyebrow) {
    max-width: 286px;
  }

  .launch {
    min-height: auto;
    padding-bottom: 10px;
  }

  .launch::before {
    background:
      linear-gradient(to bottom, rgba(3, 16, 26, 0.68) 0%, rgba(3, 16, 26, 0.44) 38%, rgba(3, 16, 26, 0.98) 100%),
      url("./assets/rooted-hero-family-tree.webp") 58% 20% / auto 74vh no-repeat;
    transform: none;
  }

  .logo {
    min-height: 74px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .brand-text span {
    font-size: 20px;
  }

  .logo-lockup {
    width: 216px;
    height: 82px;
  }

  .nav {
    gap: 10px;
    padding-top: 14px;
    padding-bottom: 4px;
  }

  .launch .nav-action-row {
    gap: 8px;
  }

  .nav-cta {
    display: none;
  }

  .member-signin {
    min-width: 68px;
    padding-inline: 8px;
    font-size: 12px;
  }

  .checkout-page .demo-hero,
  .checkout-page .checkout-panel {
    width: min(100% - 28px, 1120px);
  }

  .checkout-page .demo-hero {
    padding-top: 44px;
    padding-bottom: 58px;
  }

  .checkout-page .demo-hero h1 {
    font-size: 38px;
    overflow-wrap: anywhere;
  }

  .checkout-page .demo-hero p:not(.eyebrow) {
    max-width: 100%;
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .checkout-page .demo-panel {
    padding: 22px 16px;
    overflow: hidden;
  }

  .checkout-page .demo-card,
  .checkout-page .plan-choice,
  .checkout-page .summary-list li {
    min-width: 0;
  }

  .checkout-page .plan-choice {
    width: 100%;
    min-height: 0;
    padding: 16px;
  }

  .checkout-page .summary-list li {
    gap: 8px;
  }

  .checkout-page .summary-list span {
    min-width: 0;
  }

  .hero {
    min-height: 560px;
    padding-top: 34px;
    align-items: start;
  }

  .hero-copy {
    padding-top: 18px;
  }

  .three-up-proof-list { grid-template-columns: 1fr; }

  h1 {
    font-size: 40px;
  }

  .hero-copy p:not(.eyebrow) {
    max-width: 330px;
    font-size: 16px;
    line-height: 1.52;
  }

  .actions {
    margin-top: 18px;
  }

  .store-links {
    margin-top: 12px;
  }

  .hero-spacer {
    min-height: 165px;
  }

  .pillar-row article,
  .pillar-row a {
    min-height: 112px;
    padding: 8px 18px 14px;
  }

  .feature-icon {
    width: 72px;
    height: 72px;
  }

  .tree-feature-shot {
    padding: 10px;
  }

  .tree-canvas {
    min-height: 620px;
  }

  .family-person {
    width: 92px;
    min-height: 118px;
  }

  .person-photo {
    width: 66px;
    height: 66px;
  }

  .family-person strong {
    font-size: 11px;
  }

  .family-person em {
    font-size: 10px;
  }

  .memory-feature-icon,
  .wide-icon {
    width: 72px;
    height: 72px;
  }

  .feature-strip {
    margin-top: 4px;
    padding: 14px;
    overflow: hidden;
  }

  .feature-strip p {
    max-width: 28ch;
    margin-inline: auto;
    font-size: 17px;
    line-height: 1.35;
    overflow-wrap: normal;
  }

  .purpose-section,
  .scenario-story-section,
  .dashboard-story-section,
  .scenario-section,
  .outcome-section {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .feature-showcase-section {
    padding-top: 24px;
  }

  .feature-showcase-section,
  .emergency-story-section {
    overflow: hidden;
  }

  .purpose-section h2,
  .scenario-header h2 {
    font-size: 32px;
  }

  .scenario-grid article {
    min-height: 230px;
  }

  .primary-outcome {
    grid-template-columns: 1fr;
  }

  .pricing-panel {
    padding-inline: 18px;
  }

  .pillar-row,
  .feature-strip div,
  .scenario-story-section,
  .story-flow,
  .surface-grid,
  .scenario-grid,
  .feature-card-grid,
  .document-showcase,
  .outcome-grid,
  .site-footer.full-footer,
  .plan-picker,
  .payment-card-form,
  .state-buttons,
  .timeline-dock {
    grid-template-columns: 1fr;
  }

  .timeline-header h1,
  .vault-hero h1 {
    font-size: 40px;
  }

  .vault-hero,
  .vault-feature-grid,
  .vault-story,
  .feature-proof-list,
  .feature-shot {
    width: min(100% - 48px, 1120px);
  }

  .feature-page .vault-hero {
    padding-top: 42px;
  }

  .vault-hero p:not(.eyebrow) {
    font-size: 17px;
    line-height: 1.55;
  }

  .feature-visual {
    min-height: 300px;
    padding: 16px;
  }

  .feature-visual strong {
    max-width: 100%;
    font-size: 28px;
  }

  .emergency-story-section img {
    height: auto;
    max-height: none;
  }

  .file-table-header,
  .file-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .file-table-header span:not(:first-child) {
    display: none;
  }

  .timeline-memory {
    padding: 16px;
  }

  .timeline-memory h2 {
    font-size: 32px;
  }

  .vault-event {
    min-height: 280px;
    padding: 28px;
  }

  .vault-event h2 {
    font-size: 34px;
  }

  .memory-image {
    min-height: 150px;
  }
}

/* Reference-guided signed-in app correction */
.page-shell.app-page {
  --app-base: #020b16;
  --app-base-2: #082338;
  --app-shell: rgba(2, 11, 22, 0.98);
  --app-panel: rgba(5, 29, 46, 0.86);
  --app-panel-strong: rgba(2, 16, 30, 0.94);
  --app-panel-soft: rgba(52, 187, 177, 0.055);
  --app-text: #f4ecdc;
  --app-muted: #cfe0e6;
  --app-soft: #93abb5;
  --app-line: rgba(225, 185, 70, 0.2);
  --app-gold: #e0bb46;
  --app-green: #66d26e;
  --app-teal: #28c7bb;
  --app-red: #e94e5d;
  --app-yellow: #f4c84f;
  color: var(--app-text);
  background:
    radial-gradient(circle at 86% 0%, rgba(40, 199, 187, 0.16), transparent 28rem),
    radial-gradient(circle at 12% 96%, rgba(224, 187, 70, 0.11), transparent 24rem),
    linear-gradient(135deg, #020b16 0%, #082338 48%, #03111f 100%);
}

.page-shell.app-page .app-frame {
  width: 100%;
  min-height: 100vh;
  margin: 0;
}

.page-shell.app-page .tablet {
  min-height: 100vh;
  grid-template-columns: 136px minmax(0, 1fr);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page-shell.app-page .app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  align-items: center;
  padding: 18px 12px;
  border-right: 1px solid var(--app-line);
  background:
    linear-gradient(180deg, rgba(5, 14, 25, 0.98), rgba(1, 6, 13, 0.98)),
    var(--app-base);
}

.page-shell.app-page .app-logo {
  min-height: 74px;
}

.page-shell.app-page .app-logo::after {
  content: none;
}

.page-shell.app-page .app-logo .app-mark {
  width: 52px;
  height: 52px;
}

.page-shell.app-page .app-sidebar nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  margin-top: 16px;
}

.page-shell.app-page .app-sidebar nav a {
  width: 108px;
  min-height: 54px;
  justify-content: center;
  gap: 6px;
  padding: 8px 7px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--app-gold);
  background: transparent;
  text-align: center;
  line-height: 1.15;
  flex-direction: column;
}

.page-shell.app-page .app-sidebar nav a span {
  display: block;
  max-width: 100%;
  color: var(--app-muted);
  font-size: 10px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.page-shell.app-page .app-sidebar nav img {
  width: 35px;
  height: 35px;
  filter: saturate(0.9) sepia(0.1) drop-shadow(0 3px 4px rgba(0, 0, 0, 0.55));
}

.page-shell.app-page .app-sidebar nav a.active,
.page-shell.app-page .app-sidebar nav a:hover {
  border-color: rgba(217, 180, 74, 0.55);
  background:
    radial-gradient(circle, rgba(217, 180, 74, 0.2), rgba(217, 180, 74, 0.05) 60%, transparent 70%);
  box-shadow: 0 0 24px rgba(217, 180, 74, 0.14);
}

.page-shell.app-page .profile-menu:not(.top-profile-menu),
.page-shell.app-page .nav-collapse-toggle {
  display: none;
}

.page-shell.app-page .app-main {
  min-width: 0;
  padding: 14px clamp(20px, 3vw, 56px) 42px;
}

.app-utility-row {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(217, 180, 74, 0.12);
}

.app-utility-spacer {
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  flex: 1;
}

.app-utility-row .dashboard-date-script {
  display: block;
  color: var(--app-gold);
  font-family: "Brush Script MT", "Segoe Script", Georgia, serif;
  font-size: clamp(24px, 2.1vw, 38px);
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow: 0 0 16px rgba(217, 180, 74, 0.16);
}

.app-utility-row .dashboard-date-script[hidden] {
  display: none;
}

.utility-icon {
  min-width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: var(--app-gold);
  border: 1px solid rgba(217, 180, 74, 0.2);
  border-radius: 999px;
  background: rgba(2, 8, 16, 0.48);
  font: 760 13px/1 var(--font-ui);
  cursor: pointer;
}

.utility-icon:hover,
.utility-icon:focus-visible {
  color: #061421;
  background: var(--app-gold);
}

.top-profile-menu {
  position: relative;
  margin: 0;
  padding: 0;
}

.top-profile-menu .profile-chip {
  min-width: 42px;
  margin: 0;
  gap: 8px;
}

.top-profile-menu .profile-chip span {
  width: 38px;
  height: 38px;
}

.top-profile-menu .profile-chip div {
  max-width: 150px;
  font-size: 12px;
}

.top-profile-menu .profile-actions {
  left: auto;
  right: 0;
  bottom: auto;
  top: 46px;
  width: min(300px, calc(100vw - 24px));
  min-width: 260px;
  border-color: rgba(217, 180, 74, 0.34);
  background:
    radial-gradient(circle at 10% 0%, rgba(54, 194, 181, 0.1), transparent 12rem),
    linear-gradient(145deg, rgba(5, 18, 30, 0.99), rgba(1, 8, 17, 0.99));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.46);
}

.top-profile-menu .profile-actions :where(a, button),
.top-profile-menu .profile-actions :where(strong, span, small) {
  color: #f6efe3;
  -webkit-text-fill-color: #f6efe3;
  opacity: 1;
}

.top-profile-menu .profile-actions :where(a, button) {
  width: 100%;
  min-height: 42px;
  justify-content: flex-start;
  text-align: left;
  overflow-wrap: anywhere;
}

.top-profile-menu .profile-actions small,
.profile-status-menu > span {
  color: #d7e2e6;
  -webkit-text-fill-color: #d7e2e6;
}

.profile-status-menu {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(217, 180, 74, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.profile-status-menu > span {
  color: var(--app-muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-status-menu > div {
  display: flex;
  gap: 6px;
}

.profile-status-menu > div button {
  width: 34px;
  min-height: 34px;
  justify-content: center;
  padding: 0;
  font-size: 17px;
}

.profile-status-menu + :where(a, button),
.top-profile-menu .profile-actions > :where(a, button) {
  background: rgba(9, 22, 36, 0.92);
}

.top-profile-menu .profile-chip :where(strong, small),
.top-profile-menu .profile-actions :where(a, button, strong, span, small),
.top-profile-menu .profile-status-menu > span {
  color: #f6efe3 !important;
  -webkit-text-fill-color: #f6efe3 !important;
  opacity: 1;
}

.top-profile-menu .profile-chip small,
.top-profile-menu .profile-actions small,
.top-profile-menu .profile-status-menu > span {
  color: #d8e6e8 !important;
  -webkit-text-fill-color: #d8e6e8 !important;
}

.top-profile-menu .profile-actions,
.top-profile-menu .profile-status-menu {
  color: #f6efe3;
}

.top-profile-menu .profile-actions a,
.top-profile-menu .profile-actions button,
.top-profile-menu .profile-status-menu button {
  color: #f6efe3 !important;
  -webkit-text-fill-color: #f6efe3 !important;
  background: rgba(9, 22, 36, 0.94);
}

.top-profile-menu .profile-actions a:hover,
.top-profile-menu .profile-actions a:focus-visible,
.top-profile-menu .profile-actions button:hover,
.top-profile-menu .profile-actions button:focus-visible,
.top-profile-menu .profile-status-menu button:hover,
.top-profile-menu .profile-status-menu button:focus-visible {
  color: #fff5cf !important;
  -webkit-text-fill-color: #fff5cf !important;
  border-color: rgba(217, 180, 74, 0.34);
  background: rgba(217, 180, 74, 0.14);
}

.page-shell.app-page .app-header {
  align-items: flex-end;
  margin: 16px 0 12px;
}

.page-shell.app-page .app-header h2 {
  color: var(--app-text);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0;
}

.page-shell.app-page .app-header p {
  color: var(--app-soft);
}

.page-shell.app-page .app-header time {
  color: var(--app-gold);
  font-family: "Brush Script MT", "Segoe Script", Georgia, serif;
  font-size: clamp(25px, 3vw, 39px);
  letter-spacing: 0.02em;
}

.dashboard-page .page-shell.app-page .app-header {
  min-height: 0;
  margin: 0;
}

.dashboard-page .page-shell.app-page .app-header h2,
.dashboard-page .page-shell.app-page .app-header p {
  display: none;
}

.rooted-widget-canvas {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}

.rooted-widget {
  min-height: 168px;
  padding: 13px 15px;
  border: 1px solid rgba(224, 187, 70, 0.2);
  border-radius: 9px;
  background:
    radial-gradient(circle at 100% 0%, rgba(40, 199, 187, 0.08), transparent 15rem),
    linear-gradient(145deg, rgba(5, 29, 46, 0.9), rgba(2, 13, 25, 0.95)),
    var(--app-panel);
  box-shadow:
    inset 0 0 0 1px rgba(40, 199, 187, 0.035),
    0 16px 28px rgba(0, 0, 0, 0.18);
}

.rooted-widget-titlebar {
  min-height: 34px;
  cursor: default;
}

.customizing-layout .rooted-widget-titlebar {
  cursor: grab;
}

.rooted-widget-heading img {
  width: 29px;
  height: 29px;
  flex-basis: 29px;
}

.rooted-widget-heading small {
  color: var(--app-gold);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.rooted-widget-heading strong {
  color: #d9d3c7;
  font-size: 14px;
  font-weight: 560;
}

.rooted-widget-tools {
  display: none;
}

.customizing-layout .rooted-widget-tools {
  display: flex;
}

body:not(.customizing-layout) .dashboard-home-grid .rooted-widget-titlebar {
  display: none;
}

body:not(.customizing-layout).page-shell.app-page .rooted-widget-titlebar,
.page-shell.app-page:not(.customizing-layout) .rooted-widget-titlebar {
  display: none !important;
}

body:not(.customizing-layout) .dashboard-home-grid .rooted-widget {
  padding: 10px 12px;
}

.dashboard-home-grid .dashboard-card-identity {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  margin-bottom: 9px;
}

.customizing-layout .dashboard-home-grid .dashboard-card-identity {
  display: none;
}

.dashboard-card-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(58, 205, 186, 0.72);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 45%, rgba(63, 216, 196, 0.2), rgba(5, 23, 34, 0.58) 70%),
    rgba(2, 13, 24, 0.52);
  box-shadow:
    inset 0 0 0 1px rgba(226, 251, 246, 0.05),
    0 0 0 4px rgba(28, 190, 173, 0.08),
    0 6px 14px rgba(0, 0, 0, 0.2);
}

.dashboard-card-icon img {
  width: 21px;
  height: 21px;
  object-fit: contain;
  filter: drop-shadow(0 1px 4px rgba(43, 215, 194, 0.34));
}

.dashboard-card-identity > span:last-child {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.dashboard-card-identity small {
  color: rgba(64, 211, 193, 0.86);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-card-identity strong {
  color: #ebe4d5;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
}

.dashboard-home-grid .rooted-widget::after {
  opacity: 0.14;
}

.rooted-widget.widget-base {
  grid-column: span 4;
}

.rooted-widget.widget-wide {
  grid-column: span 7;
}

.rooted-widget.widget-xl {
  grid-column: span 8;
}

.rooted-widget.widget-hero {
  grid-column: span 8;
  grid-row: span 3;
}

.dashboard-home-grid .status-strip-widget {
  grid-column: span 8;
  grid-row: auto;
  min-height: 240px;
}

.dashboard-home-grid {
  width: min(100%, 1880px);
  margin-inline: auto;
  grid-auto-flow: dense;
  align-items: stretch;
}

.dashboard-home-grid > .rooted-widget {
  width: 100%;
  min-width: 0;
  height: 100%;
  justify-self: stretch;
}

.dashboard-home-grid .rooted-widget {
  color: #efe5d1;
}

.dashboard-home-grid .rooted-widget :where(h2, h3, h4, strong),
.dashboard-home-grid .rooted-widget :where(.dashboard-card-identity strong, .status-lead strong, .due-checkin-card strong, .reference-memory-card h3, .morning-news-section header strong, .weather-card strong) {
  color: #efe5d1;
}

.dashboard-home-grid .rooted-widget :where(p, small, li, .status-count-row, .reference-memory-card p, .status-lead small, .due-checkin-card small, .morning-news-section .app-list a, .morning-news-section .app-list span, .weather-card small, .weather-card span) {
  color: #c8d3d7;
}

.dashboard-home-grid .rooted-widget :where(.app-list span, .app-list small, .metric-list span) {
  color: #c8d3d7;
}

.dashboard-home-grid .rooted-widget :where(.app-list strong, .metric-list strong, .inline-widget-link) {
  color: #f0d64f;
}

.dashboard-home-grid .rooted-widget :where(.ghost-action, .app-action.ghost-action) {
  color: #efe5d1;
}

.dashboard-home-grid .rooted-widget :where(.family-status-grid strong, .family-status-grid small, .family-status-grid p, .morning-news-section .app-list small, .reference-memory-card time, .reference-memory-card a) {
  color: #c8d3d7;
}

.dashboard-home-grid .rooted-widget :where(.family-status-grid strong, .morning-news-section .app-list strong, .reference-memory-card h3) {
  color: #efe5d1;
}

.dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list > li > span {
  color: #efe5d1;
}

.dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list small {
  color: #b9c9cf;
}

.dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list strong {
  color: #f3e6cf;
}

.dashboard-home-grid .reference-memory-feed {
  grid-column: span 8;
  grid-row: span 2;
}

.dashboard-home-grid .right-rail-widget,
.dashboard-home-grid .people-orbit-widget,
.dashboard-home-grid .rooted-widget[data-widget-id="documents"] {
  grid-column: 9 / -1;
}

.dashboard-home-grid .public-news-widget {
  grid-column: span 8;
}

.dashboard-home-grid.dashboard-simple-grid {
  width: min(100%, 1180px);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
}

.simplified-dashboard-mode .page-shell.app-page .app-sidebar nav {
  justify-content: center;
}

.simplified-dashboard-mode .page-shell.app-page .app-sidebar nav a[data-nav-feature="family-tree"],
.simplified-dashboard-mode .page-shell.app-page .app-sidebar nav a[data-nav-feature="family-news"],
.simplified-dashboard-mode .page-shell.app-page .app-sidebar nav a[data-nav-feature="timeline"] {
  display: none;
}

.dashboard-home-grid.dashboard-simple-grid .simplified-family-status-widget {
  grid-column: 1 / -1 !important;
  grid-row: auto !important;
  min-height: 0;
}

.dashboard-home-grid.dashboard-simple-grid .simplified-family-status-widget .rooted-widget-titlebar {
  display: none !important;
}

.dashboard-home-grid.dashboard-simple-grid .simplified-family-status-widget .dashboard-card-identity {
  display: none;
}

.dashboard-home-grid.dashboard-simple-grid .right-rail-widget {
  grid-column: span 6 !important;
  grid-row: auto !important;
}

.dashboard-home-grid.dashboard-simple-grid .simple-checkin-due-widget {
  grid-column: span 7 !important;
  grid-row: auto !important;
}

.dashboard-home-grid.dashboard-simple-grid [data-widget-id="dashboard-next-step"] {
  grid-column: 1 / -1 !important;
  grid-row: auto !important;
  min-height: 0;
}

.dashboard-home-grid.dashboard-simple-grid [data-widget-id="calendar"] {
  grid-column: span 5 !important;
  grid-row: auto !important;
}

.simplified-dashboard-mode .dashboard-home-grid.dashboard-simple-grid .weather-menu-button,
.simplified-dashboard-mode .dashboard-home-grid.dashboard-simple-grid .weather-settings-menu {
  display: none !important;
}

.simple-checkin-due-widget .due-checkin-card {
  min-height: 118px;
  align-items: center;
}

.simple-checkin-due-widget .due-checkin-card strong {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.08;
}

.simple-checkin-due-widget .due-checkin-card small {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.45;
}

.simple-checkin-due-widget .inline-widget-link {
  min-height: 52px;
  align-items: center;
  padding-inline: 18px;
}

.simplified-dashboard-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.simplified-dashboard-lead {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: clamp(16px, 2.4vw, 24px);
  border: 1px solid rgba(217, 180, 74, 0.18);
  border-radius: 8px;
  background: rgba(4, 18, 29, 0.72);
}

.simplified-dashboard-lead .status-orb {
  width: clamp(60px, 7vw, 86px);
  height: clamp(60px, 7vw, 86px);
  flex-basis: clamp(60px, 7vw, 86px);
  font-size: clamp(22px, 3vw, 34px);
}

.simplified-dashboard-lead strong {
  display: block;
  color: var(--app-text);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 760;
  line-height: 1.06;
}

.simplified-dashboard-lead small {
  display: block;
  max-width: 760px;
  margin-top: 8px;
  color: var(--app-muted);
  font-size: 15px;
  line-height: 1.45;
}

.simplified-dashboard-actions {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(140px, 1fr));
  gap: 12px;
}

.simplified-dashboard-actions .app-action {
  min-height: 68px;
  justify-content: center;
  text-align: center;
  white-space: normal;
}

.simplified-helper-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(217, 180, 74, 0.14);
  border-radius: 8px;
  background: rgba(3, 14, 24, 0.68);
}

.simplified-helper-strip strong,
.simplified-helper-strip small {
  display: block;
}

.simplified-helper-strip strong {
  color: var(--app-text);
  font-size: 16px;
  line-height: 1.15;
}

.simplified-helper-strip small {
  margin-top: 3px;
  color: var(--app-muted);
  font-size: 13px;
  line-height: 1.35;
}

.simplified-primary-action {
  font-size: 22px;
}

.simplified-dashboard-status {
  min-height: 52px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.simplified-checkin-focus {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(106, 220, 190, 0.25);
  border-radius: 8px;
  background: rgba(5, 35, 43, 0.72);
  color: var(--app-text);
  text-decoration: none;
}

.simplified-checkin-focus .status-orb {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
}

.simplified-checkin-focus strong,
.simplified-checkin-focus small {
  display: block;
  min-width: 0;
}

.simplified-checkin-focus strong {
  color: var(--app-text);
  font-size: 18px;
  line-height: 1.15;
}

.simplified-checkin-focus small {
  margin-top: 4px;
  color: #e6f8f5;
  font-size: 14px;
  line-height: 1.35;
}

.simplified-checkin-focus em {
  color: #fff5cf;
  font-style: normal;
  font-weight: 900;
}

.simple-contact-panel {
  display: grid;
  gap: 14px;
}

.simple-contact-panel p {
  margin: 0;
  color: var(--app-muted);
  line-height: 1.5;
}

.simple-contact-list {
  display: grid;
  gap: 10px;
}

.simple-contact-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(217, 180, 74, 0.16);
  border-radius: 8px;
  padding: 12px;
  background: rgba(3, 14, 24, 0.48);
}

.simple-contact-card span,
.simple-contact-card strong,
.simple-contact-card small {
  display: block;
  min-width: 0;
}

.simple-contact-card strong {
  color: var(--app-text);
  font-size: 15px;
}

.simple-contact-card small {
  margin-top: 3px;
  color: var(--app-muted);
}

.simple-contact-card > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.simple-contact-card .app-action {
  min-height: 42px;
}

.simplified-status-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.simplified-status-row {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(217, 180, 74, 0.14);
  border-radius: 8px;
  background: rgba(3, 14, 24, 0.48);
  text-decoration: none;
}

.simplified-status-row strong,
.simplified-status-row small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.simplified-status-row strong {
  color: var(--app-text);
  font-size: 14px;
}

.simplified-status-row small {
  margin-top: 2px;
  color: var(--app-muted);
  font-size: 12px;
}

.simplified-status-row em {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--app-muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .simplified-dashboard-actions,
  .simplified-status-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-home-grid.dashboard-simple-grid .right-rail-widget,
  .dashboard-home-grid.dashboard-simple-grid .simple-checkin-due-widget,
  .dashboard-home-grid.dashboard-simple-grid [data-widget-id="calendar"] {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 640px) {
  .simplified-dashboard-panel {
    gap: 14px;
  }

  .simplified-dashboard-lead {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    padding: 16px;
  }

  .simplified-dashboard-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .simplified-dashboard-actions .simplified-primary-action {
    grid-column: 1 / -1;
  }

  .simplified-dashboard-actions .app-action {
    min-height: 64px;
  }

  .simplified-status-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .simplified-checkin-focus {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .simplified-checkin-focus em {
    grid-column: 2;
    justify-self: start;
  }

  .simple-contact-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .simple-contact-card > div {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .simple-contact-card .app-action {
    flex: 1 1 120px;
    justify-content: center;
  }

  .simplified-status-row em {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .simplified-dashboard-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .simplified-dashboard-actions .simplified-primary-action,
  .simplified-dashboard-actions .simplified-action {
    grid-column: 1 / -1;
  }

  .simplified-dashboard-actions .app-action {
    min-height: 76px;
    font-size: 16px;
  }

  .simplified-dashboard-actions .simplified-primary-action {
    min-height: 86px;
    font-size: 20px;
  }

  .simple-contact-card {
    gap: 10px;
    padding: 14px;
  }

  .simple-contact-card > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .simple-contact-card .app-action {
    min-height: 50px;
    width: 100%;
  }
}

.morning-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.morning-news-section {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(217, 180, 74, 0.14);
  border-radius: 8px;
  background: rgba(4, 14, 25, 0.52);
}

.morning-news-section header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.morning-news-section header strong {
  color: var(--app-text);
  font-size: 13px;
  font-weight: 850;
}

.morning-news-section header span {
  color: var(--app-gold);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.morning-news-section .app-list {
  margin-top: 0;
}

.morning-news-section .app-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.morning-news-section .app-list a,
.morning-news-section .app-list span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.morning-news-section .app-list strong {
  min-width: max-content;
}

.reference-status-strip {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(260px, 1.35fr) minmax(250px, auto);
  gap: 16px;
  align-items: center;
  min-height: 86px;
}

.status-lead,
.status-count-row,
.status-face-row,
.due-checkin-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-lead strong,
.due-checkin-card strong {
  display: block;
  color: var(--app-text);
  font-size: 15px;
  font-weight: 560;
}

.status-lead small,
.due-checkin-card small {
  display: block;
  margin-top: 4px;
  color: var(--app-muted);
  font-size: 12px;
}

.status-orb,
.status-count-row i {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 34px;
  border-radius: 50%;
  font-style: normal;
  font-weight: 900;
}

.status-safe .status-orb,
.status-safe i,
.status-count-row .status-safe i {
  color: #061421;
  background: var(--app-green);
}

.status-needs-help .status-orb,
.status-needs-help i,
.status-count-row .status-needs-help i {
  color: white;
  background: var(--app-red);
}

.status-unknown .status-orb,
.status-unknown i,
.status-count-row .status-unknown i {
  color: #061421;
  background: var(--app-yellow);
}

.status-face-row {
  justify-content: center;
}

.status-face {
  position: relative;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 180, 74, 0.58);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
}

.status-face img,
.status-face .small-avatar {
  width: 48px;
  height: 48px;
}

.status-face > span {
  position: absolute;
  right: 2px;
  bottom: 3px;
  width: 12px;
  height: 12px;
  border: 2px solid #061421;
  border-radius: 50%;
  background: var(--app-green);
}

.status-face.status-needs-help > span {
  background: var(--app-red);
}

.status-face.status-unknown > span {
  background: var(--app-yellow);
}

.add-face {
  color: var(--app-gold);
  font-size: 24px;
  border-style: dashed;
}

.status-count-row {
  justify-content: center;
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 800;
}

.status-count-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.memory-card-stack {
  display: grid;
  gap: 12px;
}

.reference-memory-card {
  position: relative;
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(118px, 0.34fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(217, 180, 74, 0.14);
  border-radius: 8px;
  background: rgba(4, 14, 25, 0.76);
}

.reference-memory-card .memory-image-link {
  min-height: 66px;
  display: block;
}

.reference-memory-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reference-memory-card .memory-copy {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 8px 36px 8px 12px;
}

.memory-type {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--app-teal);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.memory-type img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.reference-memory-card h3 {
  margin: 0;
  color: var(--app-text);
  font-size: 14px;
  font-weight: 560;
}

.reference-memory-card p {
  margin: 0;
  color: var(--app-muted);
  font-size: 11px;
  line-height: 1.25;
}

.memory-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  padding-top: 6px;
}

.memory-actions button,
.memory-actions a {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--app-gold);
  border: 0;
  background: transparent;
  font: 900 18px/1 var(--font-ui);
  cursor: pointer;
}

.memory-status-dot {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--app-teal);
  box-shadow: 0 0 14px rgba(34, 184, 170, 0.5);
}

.compact-event-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(217, 180, 74, 0.13);
}

.compact-event-row span {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(34, 184, 170, 0.42);
  border-radius: 50%;
}

.compact-event-row img {
  width: 24px;
  height: 24px;
}

.compact-event-row strong {
  color: var(--app-text);
  font-size: 14px;
}

.compact-event-row small {
  color: var(--app-muted);
}

.dashboard-mini-calendar {
  position: relative;
  display: grid;
  gap: 8px;
  width: min(100%, 252px);
  justify-self: center;
  align-self: start;
}

.mini-calendar-widget .rooted-widget-body {
  justify-items: center;
}

.dashboard-home-grid .mini-calendar-widget {
  width: 100%;
  max-width: none;
  justify-self: stretch;
}

.dashboard-mini-calendar header,
.mini-calendar-weekdays,
.mini-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.dashboard-mini-calendar header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  color: var(--app-text);
}

.dashboard-mini-calendar header strong {
  font-size: 14px;
  font-weight: 720;
}

.dashboard-mini-calendar header span,
.mini-calendar-weekdays span {
  color: #b7c7cd;
  font-size: 10px;
  font-weight: 850;
}

.mini-calendar-weekdays {
  text-align: center;
}

.mini-calendar-days {
  overflow: hidden;
  border: 1px solid rgba(217, 180, 74, 0.14);
  border-radius: 7px;
}

.mini-calendar-days .empty,
.mini-calendar-day {
  min-height: 31px;
  border: 0;
  border-right: 1px solid rgba(217, 180, 74, 0.1);
  border-bottom: 1px solid rgba(217, 180, 74, 0.1);
  background: rgba(2, 8, 16, 0.42);
}

.mini-calendar-day {
  position: relative;
  display: grid;
  place-items: center;
  color: #c2d0d5;
  cursor: pointer;
}

.mini-calendar-day b {
  font-size: 10px;
}

.mini-calendar-day i {
  position: absolute;
  right: 3px;
  bottom: 1px;
  font-style: normal;
  font-size: 10px;
}

.mini-calendar-day.today {
  color: #061421;
  background: color-mix(in srgb, var(--app-teal) 72%, white 28%);
}

.mini-calendar-day.has-event:not(.today) {
  color: var(--app-text);
  background: rgba(217, 180, 74, 0.12);
}

.mini-calendar-day.selected {
  color: #061421;
  outline: 2px solid rgba(217, 180, 74, 0.58);
  outline-offset: -2px;
  background: color-mix(in srgb, var(--app-gold) 78%, white 22%);
}

.dashboard-date-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  width: min(280px, 100%);
  display: grid;
  gap: 7px;
  padding: 11px;
  border: 1px solid rgba(217, 180, 74, 0.28);
  border-radius: 8px;
  background: rgba(4, 13, 24, 0.98);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.dashboard-date-menu[hidden] {
  display: none;
}

.dashboard-date-menu strong {
  color: var(--app-gold);
  font-size: 12px;
}

.dashboard-date-menu p {
  margin: 0;
  color: var(--app-muted);
  font-size: 12px;
}

.dashboard-date-menu a {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 2px 8px;
  align-items: center;
  color: var(--app-text);
  font-size: 12px;
  font-weight: 760;
}

.dashboard-date-menu a span {
  grid-row: span 2;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(217, 180, 74, 0.1);
}

.dashboard-date-menu a em,
.dashboard-date-menu a small {
  min-width: 0;
  overflow: hidden;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-date-menu a small {
  color: var(--app-muted);
  font-size: 10px;
  font-weight: 650;
}

.dashboard-event-list {
  display: grid;
  gap: 5px;
}

.dashboard-event-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 2px 8px;
  align-items: center;
  min-height: 48px;
  padding: 6px 0;
  color: var(--app-text);
  border-bottom: 1px solid rgba(217, 180, 74, 0.12);
}

.dashboard-event-row span {
  grid-row: span 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 180, 74, 0.22);
  border-radius: 50%;
  background: rgba(217, 180, 74, 0.08);
}

.dashboard-event-row strong {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-event-row small {
  min-width: 0;
  color: var(--app-muted);
  font-size: 10.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-calendar-grid {
  width: min(100%, 460px);
  max-width: 460px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  justify-self: start;
  border: 1px solid rgba(217, 180, 74, 0.14);
  border-radius: 7px;
  overflow: hidden;
}

.mini-calendar-grid span {
  min-height: 30px;
  display: grid;
  place-items: center;
  color: var(--app-soft);
  border-right: 1px solid rgba(217, 180, 74, 0.1);
  border-bottom: 1px solid rgba(217, 180, 74, 0.1);
  font-size: 11px;
}

.mini-calendar-grid .active {
  color: #061421;
  background: var(--app-teal);
}

.mini-calendar-grid .gold {
  background: var(--app-gold);
}

.dashboard-image-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.dashboard-image-gallery a {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(217, 180, 74, 0.22);
  border-radius: 8px;
}

.dashboard-image-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inline-widget-link {
  color: var(--app-gold);
  font-size: 12px;
  font-weight: 800;
}

.person-context-menu {
  position: fixed;
  z-index: 1000;
  width: 220px;
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(217, 180, 74, 0.35);
  border-radius: 9px;
  background: rgba(4, 13, 24, 0.98);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

.person-context-menu[hidden] {
  display: none;
}

.person-context-menu strong {
  color: var(--app-gold);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.person-context-menu a {
  min-height: 32px;
  display: flex;
  align-items: center;
  padding: 0 9px;
  color: var(--app-text);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 760;
}

.person-context-menu a:hover {
  color: #061421;
  background: var(--app-gold);
}

.due-checkin-card {
  min-height: 92px;
}

.tree-status-line {
  min-height: 34px;
  margin: 0 0 10px;
  padding: 8px 10px;
  color: var(--app-soft);
  border-color: rgba(217, 180, 74, 0.12);
  background: rgba(34, 184, 170, 0.06);
  font-size: 12px;
}

@media (min-width: 1700px) {
  .rooted-widget-canvas {
    grid-template-columns: repeat(16, minmax(0, 1fr));
  }

  .rooted-widget.widget-base,
  .dashboard-home-grid .people-orbit-widget,
  .dashboard-home-grid .rooted-widget[data-widget-id="documents"] {
    grid-column: span 4;
  }

  .dashboard-home-grid .right-rail-widget {
    grid-column: 13 / -1;
  }

  .dashboard-home-grid .status-strip-widget,
  .dashboard-home-grid .reference-memory-feed,
  .dashboard-home-grid .public-news-widget,
  .rooted-widget.widget-hero {
    grid-column: 1 / span 12;
  }
}

@media (max-width: 980px) {
  .page-shell.app-page .tablet {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .page-shell.app-page .app-sidebar {
    display: flex;
    padding-inline: 8px;
  }

  .page-shell.app-page .app-sidebar nav a {
    width: 88px;
    min-height: 52px;
  }

  .page-shell.app-page .app-sidebar nav a span {
    font-size: 9px;
  }

  .rooted-widget-canvas,
  .dashboard-home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rooted-widget.widget-base,
  .rooted-widget.widget-wide,
  .rooted-widget.widget-xl,
  .rooted-widget.widget-hero,
  .dashboard-home-grid .status-strip-widget,
  .dashboard-home-grid .reference-memory-feed,
  .dashboard-home-grid .public-news-widget,
  .dashboard-home-grid .right-rail-widget,
  .dashboard-home-grid .people-orbit-widget,
  .dashboard-home-grid .rooted-widget[data-widget-id="documents"] {
    grid-column: 1 / -1;
  }

  .dashboard-home-grid .status-strip-widget {
    grid-row: auto;
    min-height: 0;
  }

  .morning-news-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .reference-status-strip {
    grid-template-columns: 1fr;
  }

  .reference-memory-card {
    grid-template-columns: 94px minmax(0, 1fr);
  }

  .status-count-row {
    justify-content: start;
  }

  .family-news-reference-board .rooted-widget-body,
  .compact-toolbar,
  .inline-event-composer,
  .journal-inline-composer,
  .document-inline-composer,
  .member-inline-composer,
  .settings-inline-form,
  .emergency-inline-composer,
  .members-profile-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .family-news-gallery {
    padding-top: 12px;
    padding-left: 0;
    border-top: 1px solid color-mix(in srgb, var(--app-gold) 16%, transparent);
    border-left: 0;
  }

  .family-tree-widget .interactive-family-tree {
    grid-template-columns: minmax(0, 1fr);
  }

  .family-tree-widget .tree-canvas {
    min-height: 600px;
  }
}

@media (max-width: 640px) {
  .page-shell.app-page .tablet {
    grid-template-columns: 1fr;
  }

  .page-shell.app-page .app-sidebar {
    position: fixed;
    inset: auto 0 0;
    z-index: 50;
    width: 100%;
    height: 78px;
    flex-direction: row;
    padding: 8px 10px;
    border-top: 1px solid var(--app-line);
    border-right: 0;
  }

  .page-shell.app-page .app-logo {
    display: none;
  }

  .page-shell.app-page .app-sidebar nav {
    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .page-shell.app-page .app-sidebar nav a {
    width: 82px;
    min-width: 82px;
    height: 66px;
    padding: 6px 4px;
  }

  .page-shell.app-page .app-sidebar nav a span {
    display: block;
    font-size: 8.5px;
    line-height: 1.05;
  }

  .simplified-dashboard-mode .page-shell.app-page .app-sidebar nav {
    justify-content: center;
    overflow-x: visible;
  }

  .simplified-dashboard-mode .page-shell.app-page .app-sidebar nav a[data-nav-feature="family-tree"],
  .simplified-dashboard-mode .page-shell.app-page .app-sidebar nav a[data-nav-feature="family-news"],
  .simplified-dashboard-mode .page-shell.app-page .app-sidebar nav a[data-nav-feature="timeline"] {
    display: none;
  }

  .simplified-dashboard-mode .page-shell.app-page .app-main {
    padding-bottom: 132px;
    overflow-x: hidden;
  }

  .simplified-dashboard-mode .app-utility-row {
    gap: 8px;
  }

  .simplified-dashboard-mode .app-utility-row > .utility-icon {
    display: none;
  }

  .simplified-dashboard-mode .top-profile-menu .profile-chip div {
    display: none;
  }

  .page-shell.app-page .app-sidebar nav img {
    width: 29px;
    height: 29px;
  }

  .rooted-widget-footer .quiet-emergency-action {
    margin-left: auto;
  }

  .page-shell.app-page .app-main {
    padding: 12px 12px 100px;
  }

  .page-shell.app-page .app-header {
    align-items: flex-start;
  }

  .page-shell.app-page .app-header time {
    max-width: 100%;
    font-size: 27px;
    overflow-wrap: anywhere;
  }

  .app-utility-row {
    gap: 6px;
    overflow-x: auto;
  }

  .top-profile-menu .profile-chip div,
  .utility-icon[data-toggle-customize-layout] {
    display: none;
  }

  .rooted-widget-canvas,
  .dashboard-home-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .status-face-row {
    justify-content: start;
    overflow-x: auto;
  }

  .rooted-widget {
    min-height: 0;
  }

  .person-dashboard-hero {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    padding-block: 8px 14px;
  }

  .person-hero-avatar {
    width: 64px;
    height: 64px;
    font-size: 15px;
  }

  .person-command-strip {
    grid-column: 1 / -1;
    justify-content: start;
  }

  .person-hero-copy h3 {
    font-size: 26px;
  }

  .person-status-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    justify-items: start;
  }

  .person-status-row span {
    min-height: 26px;
    width: auto;
    max-width: 100%;
    padding-inline: 8px;
    font-size: 11px;
    white-space: normal;
  }

  .person-hero-actions,
  .person-care-form,
  .person-care-form .app-action-row {
    display: grid;
  }

  .person-care-form,
  .person-care-form .app-action-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .person-hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .person-hero-actions .app-action {
    justify-content: start;
    padding-inline: 10px;
  }

  .person-memory-grid,
  .family-news-gallery > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .image-news-row {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .image-news-row img {
    height: 62px;
  }

  .family-tree-widget .tree-canvas {
    min-height: 580px;
  }

  .family-tree-widget .tree-person-card {
    width: 100%;
    max-width: 100%;
  }

  .family-tree-widget .tree-actions-menu {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .family-tree-widget .tree-actions-menu a,
  .family-tree-widget .tree-actions-menu button {
    justify-content: center;
    width: 100%;
  }
}

.page-shell.app-page select,
.page-shell.app-page option,
.page-shell.app-page input,
.page-shell.app-page textarea,
.app-demo-form select,
.form-grid select,
.document-toolbar select,
.state-form select {
  color: var(--app-text);
  background-color: var(--app-panel-strong);
}

.page-shell.app-page select option {
  color: #f5eee4;
  background: #061421;
}

body[data-app-theme="rooted_light"] .page-shell.app-page select,
body[data-app-theme="rooted_light"] .page-shell.app-page option,
body[data-app-theme="rooted_light"] .page-shell.app-page input,
body[data-app-theme="rooted_light"] .page-shell.app-page textarea {
  color: #09131d;
  background-color: #fffaf0;
}

body[data-app-theme="rooted_light"] .page-shell.app-page select option {
  color: #09131d;
  background: #fffaf0;
}

/* Rooted app completion overrides: calmer scaling, true circles, modals, and immersive tree. */
.page-shell.app-page .app-main {
  width: 100%;
  max-width: min(2880px, calc(100vw - 88px));
  margin-inline: auto;
}

@media (min-width: 1500px) {
  .page-shell.app-page .app-main {
    padding-inline: clamp(36px, 3.2vw, 88px);
  }
}

@media (min-width: 2200px) {
  .rooted-widget-canvas {
    grid-template-columns: repeat(20, minmax(0, 1fr));
  }

  .rooted-widget.widget-base {
    grid-column: span 5;
  }

  .rooted-widget.widget-hero {
    grid-column: span 11;
  }
}

@media (min-width: 1180px) {
  .dashboard-home-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-flow: dense;
    grid-auto-rows: minmax(124px, auto);
    align-items: stretch;
  }

  .dashboard-home-grid .status-strip-widget {
    grid-column: 1 / span 8;
    grid-row: 1;
    min-height: 300px;
  }

  .dashboard-home-grid .reference-memory-feed {
    grid-column: 1 / span 8;
    grid-row: 2 / span 2;
    max-width: none;
  }

  .dashboard-home-grid .right-rail-widget {
    grid-column: 9 / -1;
  }

  .dashboard-home-grid [data-widget-id="dashboard-next-step"] {
    grid-row: 1;
    min-height: 300px;
  }

  .dashboard-home-grid [data-widget-id="local-weather"] {
    grid-row: 2;
  }

  .dashboard-home-grid [data-widget-id="calendar"] {
    grid-row: 3;
    min-height: 300px;
  }

  .dashboard-home-grid [data-widget-id="events"] {
    grid-row: 4;
  }

  .dashboard-home-grid [data-widget-id="memory-spotlight"] {
    grid-column: 1 / span 8;
    grid-row: 4;
  }

  .dashboard-home-grid .public-news-widget {
    grid-column: 1 / -1;
    grid-row: 5;
  }

  .dashboard-home-grid [data-widget-id="image-gallery"] {
    grid-row: 6;
  }
}

@media (min-width: 1700px) {
  .dashboard-home-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: minmax(124px, auto);
    align-items: stretch;
    width: min(100%, 1780px);
  }

  .dashboard-home-grid .status-strip-widget {
    grid-column: 1 / span 6;
    max-width: none;
  }

  .dashboard-home-grid .status-strip-widget {
    grid-row: 1;
    min-height: 280px;
  }

  .dashboard-home-grid .reference-memory-feed {
    grid-column: 1 / span 6;
    grid-row: 2 / span 2;
    max-width: none;
  }

  .dashboard-home-grid [data-widget-id="local-weather"],
  .dashboard-home-grid [data-widget-id="events"] {
    grid-column: 7 / span 3;
  }

  .dashboard-home-grid [data-widget-id="dashboard-next-step"] {
    grid-column: 7 / span 3;
  }

  .dashboard-home-grid [data-widget-id="calendar"],
  .dashboard-home-grid [data-widget-id="memory-spotlight"] {
    grid-column: 10 / -1;
    justify-self: stretch;
    width: 100%;
    max-width: none;
  }

  .dashboard-home-grid .status-strip-widget,
  .dashboard-home-grid [data-widget-id="dashboard-next-step"] {
    grid-row: 1;
  }

  .dashboard-home-grid [data-widget-id="local-weather"] {
    grid-row: 2;
  }

  .dashboard-home-grid [data-widget-id="calendar"] {
    grid-row: 1;
  }

  .dashboard-home-grid [data-widget-id="memory-spotlight"] {
    grid-row: 2 / span 2;
  }

  .dashboard-home-grid [data-widget-id="events"] {
    grid-row: 3;
  }

  .dashboard-home-grid .public-news-widget {
    grid-column: 1 / -1;
    grid-row: 4;
  }

  .dashboard-home-grid [data-widget-id="image-gallery"] {
    grid-column: 1 / -1;
    grid-row: 5;
  }

  .dashboard-home-grid .morning-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-home-grid .morning-news-section:first-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 2200px) {
  .dashboard-home-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    width: min(100%, 2020px);
    gap: 14px;
  }

  .dashboard-home-grid .status-strip-widget {
    grid-column: 1 / span 6;
  }

  .dashboard-home-grid .reference-memory-feed {
    grid-column: 1 / span 6;
  }

  .dashboard-home-grid [data-widget-id="local-weather"] {
    grid-column: 7 / span 3;
  }

  .dashboard-home-grid [data-widget-id="calendar"] {
    grid-column: 10 / -1;
  }

  .dashboard-home-grid [data-widget-id="events"] {
    grid-column: 7 / span 3;
  }

  .dashboard-home-grid [data-widget-id="memory-spotlight"] {
    grid-column: 10 / -1;
  }

  .dashboard-home-grid [data-widget-id="image-gallery"] {
    grid-column: 7 / -1;
  }

  .dashboard-home-grid .public-news-widget {
    grid-column: 1 / -1;
  }
}

.avatar-shell,
.avatar-dot,
.small-avatar,
.person-photo,
.person-hero-avatar,
.tree-popup-avatar {
  box-sizing: border-box;
  aspect-ratio: 1 / 1;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  line-height: 1;
}

.avatar-shell {
  inline-size: 44px;
  block-size: 44px;
  min-inline-size: 44px;
  min-block-size: 44px;
  max-inline-size: 44px;
  max-block-size: 44px;
  color: #061421;
  background: linear-gradient(135deg, var(--app-green), var(--app-teal));
  border: 1px solid var(--app-gold);
  font: 850 13px/1 var(--font-ui);
}

.avatar-shell > span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.avatar-shell .avatar-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

.small-avatar {
  inline-size: 48px;
  block-size: 48px;
  min-inline-size: 48px;
  min-block-size: 48px;
  max-inline-size: 48px;
  max-block-size: 48px;
}

.person-hero-avatar {
  inline-size: 94px;
  block-size: 94px;
  min-inline-size: 94px;
  min-block-size: 94px;
  max-inline-size: 94px;
  max-block-size: 94px;
  font-size: 20px;
}

.tree-popup-avatar {
  inline-size: 96px;
  block-size: 96px;
  min-inline-size: 96px;
  min-block-size: 96px;
  max-inline-size: 96px;
  max-block-size: 96px;
}

.status-face .small-avatar,
.status-face img.small-avatar,
.status-face .avatar-shell {
  inline-size: 48px;
  block-size: 48px;
  min-inline-size: 48px;
  min-block-size: 48px;
  max-inline-size: 48px;
  max-block-size: 48px;
}

.mini-portrait-row a,
.status-face,
.person-portrait-shell,
.connection-tree-portrait {
  flex: 0 0 auto;
}

.page-action-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 12px 0;
  padding: 10px 0 14px;
  border-bottom: 1px solid rgba(217, 180, 74, 0.12);
}

.page-action-strip > div {
  display: grid;
  gap: 3px;
}

.page-action-strip strong {
  color: var(--app-text);
  font-size: 16px;
  font-weight: 560;
}

.checkins-action-strip {
  justify-content: flex-start;
  margin-top: 0;
  padding-bottom: 8px;
  border-bottom: 0;
}

.calendar-action-strip,
.documents-action-strip,
.news-action-strip,
.members-action-strip {
  justify-content: flex-start;
  margin-top: 0;
  padding-bottom: 8px;
  border-bottom: 0;
}

.danger-action {
  color: white;
  background: linear-gradient(135deg, #ff4f5f, #9e1724);
}

.danger-action.quiet-emergency-action {
  color: var(--app-text);
  border: 1px solid color-mix(in srgb, var(--app-red) 34%, var(--app-gold) 12%);
  background: color-mix(in srgb, var(--app-red) 9%, var(--app-panel-strong));
  box-shadow: none;
}

.danger-action:not(.quiet-emergency-action):hover,
.danger-action:not(.quiet-emergency-action):focus-visible {
  color: white;
  filter: brightness(1.08);
}

.danger-action.quiet-emergency-action:hover,
.danger-action.quiet-emergency-action:focus-visible {
  color: var(--app-text);
  border-color: color-mix(in srgb, var(--app-red) 54%, var(--app-gold) 18%);
  background: color-mix(in srgb, var(--app-red) 16%, var(--app-panel-strong));
}

.app-modal[hidden] {
  display: none;
}

.app-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.app-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 4, 10, 0.72);
  backdrop-filter: blur(5px);
}

.app-modal-panel {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 28px));
  max-height: min(86vh, 900px);
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(217, 180, 74, 0.34);
  border-radius: 12px;
  background:
    radial-gradient(circle at 90% 0%, rgba(54, 194, 181, 0.14), transparent 18rem),
    linear-gradient(145deg, rgba(5, 17, 29, 0.98), rgba(1, 8, 17, 0.98));
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.54);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  color: var(--app-gold);
  border: 1px solid rgba(217, 180, 74, 0.28);
  border-radius: 50%;
  background: rgba(2, 8, 16, 0.72);
  cursor: pointer;
}

.app-modal-heading h2 {
  margin: 6px 40px 18px 0;
  color: #f1e4ca;
  font-family: var(--font-display);
  font-size: clamp(25px, 2vw, 34px);
  font-weight: 520;
  line-height: 1.08;
}

.app-modal-heading .card-kicker {
  color: var(--app-gold);
  letter-spacing: 0.14em;
}

.modal-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.modal-form-grid label,
.document-toolbar label {
  display: grid;
  gap: 6px;
  color: var(--app-muted);
  font-size: 12px;
}

.field-label {
  margin: 0 0 6px;
  color: var(--app-muted);
  font-size: 12px;
}

.modal-full,
.modal-actions {
  grid-column: 1 / -1;
}

.modal-warning-copy {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 79, 95, 0.32);
  border-radius: 9px;
  background: rgba(255, 79, 95, 0.08);
}

.modal-warning-copy strong {
  color: #ffd9dc;
}

.modal-warning-copy span {
  color: var(--app-muted);
  font-size: 13px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.family-update-media-picker {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(217, 180, 74, 0.18);
  border-radius: 10px;
  background: rgba(3, 14, 25, 0.72);
}

.family-update-media-picker label {
  display: grid;
  gap: 8px;
  color: #f6efe3;
  font-weight: 760;
}

.family-update-media-picker .media-attachment-control {
  grid-template-columns: minmax(0, 1fr);
  padding: 12px;
  border: 1px dashed rgba(217, 180, 74, 0.36);
  border-radius: 8px;
  background:
    radial-gradient(circle at 0% 0%, rgba(64, 211, 193, 0.12), transparent 13rem),
    rgba(2, 8, 16, 0.82);
}

.media-attachment-control span {
  display: grid;
  gap: 3px;
}

.media-attachment-control strong {
  color: #fff4d2;
  font-size: 14px;
}

.media-attachment-control small {
  color: #c8d3d7;
  font-size: 12px;
  line-height: 1.35;
}

.family-update-media-picker input[type="file"] {
  min-height: 44px;
  padding: 10px;
  color: #d7e2e6;
  border: 1px dashed rgba(217, 180, 74, 0.36);
  border-radius: 8px;
  background: rgba(2, 8, 16, 0.82);
}

.family-update-media-picker input[type="file"]::file-selector-button {
  min-height: 34px;
  margin-right: 10px;
  padding: 7px 12px;
  color: #061421;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--app-green), var(--app-teal));
  font-weight: 850;
  cursor: pointer;
}

.family-update-media-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
  gap: 8px;
}

.family-update-media-preview span {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid rgba(217, 180, 74, 0.12);
  border-radius: 8px;
  background: rgba(8, 22, 34, 0.76);
}

.family-update-media-preview .media-preview-tile {
  position: relative;
  overflow: hidden;
  min-height: 168px;
  grid-template-rows: 94px auto auto auto;
  align-content: start;
}

.family-update-media-preview .media-preview-empty {
  min-height: 52px;
  align-content: center;
  color: #d7e2e6;
}

.family-update-media-preview .media-preview-summary {
  grid-column: 1 / -1;
  min-height: 46px;
  align-content: center;
  border-color: rgba(64, 211, 193, 0.24);
  background: rgba(4, 26, 31, 0.72);
}

.media-preview-tile > img,
.media-preview-tile > video {
  width: 100%;
  height: 94px;
  object-fit: cover;
  border-radius: 6px;
  background: rgba(1, 8, 17, 0.84);
}

.media-preview-tile.audio > img,
.media-preview-tile.file > img {
  object-fit: contain;
  padding: 20px;
  border: 1px solid rgba(217, 180, 74, 0.12);
}

.family-update-media-preview strong {
  color: #fff4d2;
  font-size: 11px;
  text-transform: uppercase;
}

.family-update-media-preview small {
  color: #d7e2e6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.family-update-media-preview em,
.family-update-media-preview i {
  color: #9fb3bb;
  font-size: 11px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subtle-status:empty {
  display: none;
}

.person-context-menu {
  width: 250px;
  background:
    radial-gradient(circle at 10% 0%, rgba(217, 180, 74, 0.12), transparent 9rem),
    rgba(4, 13, 24, 0.985);
}

.person-context-menu strong {
  color: #d9b44a;
  font-weight: 750;
}

.person-context-menu a {
  color: #d9d3c7;
  border: 1px solid transparent;
  font-weight: 600;
}

.person-context-menu a:hover,
.person-context-menu a:focus-visible {
  color: #f2df9b;
  border-color: rgba(217, 180, 74, 0.22);
  background: rgba(217, 180, 74, 0.08);
}

.profile-snapshot-hero {
  position: relative;
  min-height: 240px;
  grid-template-columns: 112px minmax(0, 1fr);
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(217, 180, 74, 0.16);
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(1, 8, 17, 0.96), rgba(1, 8, 17, 0.72)), var(--profile-bg) right center / min(48%, 480px) 100% no-repeat;
}

.profile-snapshot-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0 54%, rgba(1, 8, 17, 0.18));
}

.profile-snapshot-hero > * {
  position: relative;
  z-index: 1;
}

.profile-rights-note {
  max-width: 58ch;
  margin: 10px 0 0;
  color: var(--app-muted);
  font-size: 13px;
}

.person-care-panel {
  scroll-margin-top: 80px;
}

.settings-list-widget {
  grid-column: span 8;
}

.settings-sections {
  display: grid;
  gap: 14px;
}

.settings-section {
  display: grid;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(217, 180, 74, 0.13);
}

.settings-section:last-child {
  border-bottom: 0;
}

.settings-section header {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.settings-section header img {
  width: 32px;
  height: 32px;
}

.settings-section header strong,
.settings-row > span {
  color: var(--app-text);
  font-weight: 560;
}

.settings-section header small,
.settings-row strong {
  color: var(--app-muted);
  font-weight: 560;
}

.settings-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.42fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.settings-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  color: var(--app-muted);
}

.document-toolbar {
  align-items: end;
}

.document-toolbar.compact-toolbar {
  grid-template-columns: minmax(170px, 1.1fr) repeat(4, minmax(130px, 0.7fr));
}

.preparedness-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.document-readiness-panel {
  display: grid;
  gap: 12px;
  margin: 4px 0 10px;
  padding: 14px 0;
  border-top: 1px solid rgba(217, 180, 74, 0.13);
  border-bottom: 1px solid rgba(217, 180, 74, 0.13);
}

.document-readiness-panel header {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.document-readiness-panel header img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.document-readiness-panel header strong {
  color: #e8dfce;
  font-weight: 640;
}

.document-readiness-panel header small {
  color: var(--app-muted);
}

.preparedness-grid span {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 2px 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid rgba(217, 180, 74, 0.13);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
}

.preparedness-grid i {
  grid-row: span 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-style: normal;
  font-weight: 900;
}

.preparedness-grid .ready i {
  color: #061421;
  background: var(--app-green);
}

.preparedness-grid .attention i {
  color: #061421;
  background: var(--app-yellow);
}

.calendar-board {
  width: min(100%, 880px);
  grid-template-columns: minmax(0, 520px) minmax(250px, 300px);
  align-items: start;
  justify-content: start;
  column-gap: clamp(18px, 2vw, 34px);
}

.calendar-board-widget .calendar-board {
  max-width: 880px;
  justify-self: center;
}

.calendar-month {
  width: min(100%, 520px);
  grid-template-columns: repeat(7, minmax(48px, 68px));
  justify-content: start;
  align-content: start;
  gap: clamp(7px, 0.7vw, 12px);
}

.calendar-month span,
.calendar-month a {
  position: relative;
  aspect-ratio: 1 / 1.04;
  min-height: 0;
  inline-size: 100%;
  max-height: 72px;
  color: #d9d3c7;
  font-weight: 520;
}

.calendar-month a b {
  font-size: inherit;
}

.calendar-month a i {
  position: absolute;
  right: 5px;
  bottom: 3px;
  font-style: normal;
  font-size: 12px;
}

.calendar-month a.active {
  color: #061421;
  background: color-mix(in srgb, var(--app-gold) 76%, white 24%);
}

.calendar-detail > span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 4px 8px;
  color: #061421;
  border-radius: 999px;
  background: var(--app-gold);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.calendar-detail {
  margin-left: clamp(10px, 1vw, 22px);
  padding: clamp(16px, 1.6vw, 24px) 0 clamp(16px, 1.6vw, 24px) clamp(18px, 2vw, 28px);
  border-left: 1px solid rgba(217, 180, 74, 0.14);
  background: linear-gradient(90deg, rgba(217, 180, 74, 0.035), transparent 58%);
}

.calendar-detail h3 {
  color: #e5ded0;
  font-size: clamp(20px, 1.4vw, 26px);
  font-weight: 560;
}

.calendar-detail p {
  color: var(--app-muted);
  font-size: 14px;
  line-height: 1.5;
}

.event-memory-tile img,
.memory-spotlight-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
}

.memory-spotlight-card {
  display: grid;
  gap: 8px;
}

.memory-spotlight-card span {
  width: fit-content;
  padding: 4px 8px;
  color: #061421;
  border-radius: 999px;
  background: var(--app-gold);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.timeline-single-grid {
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: auto;
}

.timeline-page .page-shell.app-page .app-header,
.timeline-page .app-header {
  display: none;
}

.timeline-page .page-shell.app-page .app-main,
.timeline-page .app-main {
  padding-top: 8px;
}

.timeline-single-grid .timeline-full-widget {
  grid-column: 1 / -1;
}

.timeline-single-grid .timeline-full-widget.widget-hero {
  grid-row: auto;
  min-height: 0;
}

body:not(.customizing-layout) .timeline-single-grid .rooted-widget-titlebar {
  display: none;
}

.timeline-single-grid .timeline-full-widget {
  padding: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.timeline-single-grid .timeline-full-widget::after {
  display: none;
}

.timeline-full-widget .rooted-widget-body {
  display: grid;
  gap: 12px;
}

.timeline-command-row {
  display: flex;
  justify-content: flex-end;
  padding: 0 0 6px;
}

.timeline-full-workspace {
  --timeline-dock-height: 88px;
  --timeline-stage-height: clamp(300px, calc(100dvh - 400px), 440px);
  width: 100%;
  display: grid;
  grid-template-rows: var(--timeline-stage-height) minmax(var(--timeline-dock-height), auto);
  gap: 12px;
  margin: 0;
  padding: 0;
  min-height: 0;
}

.timeline-full-workspace .timeline-event-stage {
  height: var(--timeline-stage-height);
  min-height: var(--timeline-stage-height);
  max-height: var(--timeline-stage-height);
  overflow: hidden;
  overscroll-behavior: contain;
  border-color: rgba(217, 180, 74, 0.2);
  background: rgba(3, 12, 22, 0.82);
}

.timeline-full-workspace .timeline-memory-track {
  display: block;
  transform: none !important;
  height: var(--timeline-stage-height);
  min-height: 0;
}

.timeline-memory.detailed-memory {
  width: 100%;
  min-width: 0;
  height: var(--timeline-stage-height);
  min-height: var(--timeline-stage-height);
  max-height: var(--timeline-stage-height);
  grid-template-columns: minmax(0, 1.28fr) minmax(290px, 0.42fr);
  gap: clamp(14px, 1.6vw, 24px);
  padding: clamp(10px, 1.1vw, 16px);
  align-items: stretch;
  background:
    radial-gradient(circle at 6% 0%, rgba(217, 180, 74, 0.08), transparent 18rem),
    rgba(2, 10, 19, 0.9);
}

.timeline-full-workspace .timeline-memory.detailed-memory:not(.active) {
  display: none;
}

.memory-slideshow {
  position: relative;
  justify-self: stretch;
  width: 100%;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(217, 180, 74, 0.14);
  border-radius: 10px;
  background: #020812;
}

.memory-slide-frame {
  position: absolute;
  inset: 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  animation-delay: var(--slide-delay, 0s);
}

.memory-slide-frame:first-child {
  opacity: 1;
  animation: none;
}

.memory-slide-frame:not(:first-child) {
  animation: rooted-memory-slide var(--slide-duration, 30s) linear infinite;
}

.memory-slideshow.manual .memory-slide-frame {
  opacity: 0;
  animation: none;
}

.memory-slideshow.manual .memory-slide-frame.is-selected {
  opacity: 1;
}

.memory-slide {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
}

.memory-slide img,
.memory-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.timeline-full-workspace .memory-slideshow .memory-slide img,
.timeline-full-workspace .memory-slideshow .memory-slide video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain !important;
  object-position: center center;
  background: #020812;
  border-radius: 0;
  box-shadow: none;
}

.memory-slide figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  max-width: min(420px, calc(100% - 28px));
  padding: 7px 10px;
  color: #ece3d2;
  border: 1px solid rgba(217, 180, 74, 0.2);
  border-radius: 999px;
  background: rgba(2, 8, 16, 0.72);
  font-size: 12px;
  font-weight: 620;
}

.call-clip-visual {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  gap: 10px;
  background:
    linear-gradient(180deg, rgba(2, 8, 16, 0.46), rgba(2, 8, 16, 0.84)),
    var(--call-bg) center / cover no-repeat;
  filter: saturate(0.82);
}

.call-clip-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(4px);
}

.call-clip-visual > * {
  position: relative;
  z-index: 1;
}

.call-clip-visual span {
  color: #f1e4ca;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.memory-sidecar {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  max-height: 100%;
  overflow: auto;
  padding: clamp(14px, 1.4vw, 22px);
  border-left: 1px solid rgba(217, 180, 74, 0.16);
  background:
    linear-gradient(90deg, rgba(217, 180, 74, 0.045), transparent 55%),
    rgba(2, 9, 18, 0.52);
}

.memory-sidecar h2 {
  max-width: 14ch;
  margin: 0;
  color: #efe5d1;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.1vw, 42px);
  font-weight: 460;
  line-height: 1.02;
}

.memory-sidecar time {
  color: var(--app-gold);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.memory-sidecar p {
  margin: 0;
  color: var(--app-muted);
  font-size: 15px;
  line-height: 1.55;
}

.memory-side-section {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(217, 180, 74, 0.12);
}

.memory-side-section > strong {
  color: #e4dac8;
  font-size: 12px;
  font-weight: 680;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.memory-curator-summary {
  padding: 10px;
  border: 1px solid rgba(54, 194, 181, 0.16);
  border-radius: 10px;
  background: rgba(54, 194, 181, 0.055);
}

.memory-people-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.memory-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.memory-media-grid button {
  position: relative;
  overflow: hidden;
  min-height: 74px;
  padding: 0;
  color: var(--app-gold);
  border: 1px solid rgba(217, 180, 74, 0.18);
  border-radius: 8px;
  background: rgba(3, 14, 25, 0.78);
  cursor: pointer;
}

.memory-media-grid button.is-selected,
.memory-media-grid button:hover {
  border-color: rgba(217, 180, 74, 0.62);
  box-shadow: 0 0 0 1px rgba(217, 180, 74, 0.18), 0 0 18px rgba(217, 180, 74, 0.16);
}

.memory-media-grid img,
.memory-media-grid video,
.memory-media-grid .small-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  border-radius: 0;
}

.memory-media-grid video {
  display: block;
  background: #020812;
}

.memory-media-grid span {
  position: absolute;
  left: 6px;
  bottom: 5px;
  padding: 3px 5px;
  color: #f0e4cc;
  border-radius: 999px;
  background: rgba(2, 8, 16, 0.72);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.memory-audio-actions {
  display: grid;
  gap: 7px;
}

.memory-audio-link {
  width: 100%;
  min-height: 52px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  color: #efe5d1;
  border: 1px solid rgba(217, 180, 74, 0.2);
  border-radius: 8px;
  background: rgba(217, 180, 74, 0.065);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.memory-audio-link:hover,
.memory-audio-link:focus-visible,
.memory-audio-link.is-selected {
  border-color: rgba(217, 180, 74, 0.58);
  background: rgba(217, 180, 74, 0.11);
}

.memory-audio-link img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.memory-audio-link span {
  display: grid;
  gap: 2px;
}

.memory-audio-link b {
  color: #f0d64f;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.memory-audio-link small {
  color: #c8d3d7;
  font-size: 11px;
  line-height: 1.25;
}

.memory-review-callout,
.capture-review-note {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  color: #efe5d1;
  border: 1px solid rgba(217, 180, 74, 0.2);
  border-radius: 10px;
  background: rgba(217, 180, 74, 0.06);
  text-decoration: none;
}

.memory-review-callout img,
.capture-review-note img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.memory-review-callout span,
.capture-review-note span {
  display: grid;
  gap: 2px;
}

.memory-review-callout small,
.capture-review-note small {
  color: var(--app-muted);
  font-size: 11px;
}

.timeline-memory-dock {
  position: relative;
  bottom: auto;
  width: 100%;
  min-height: var(--timeline-dock-height, 88px);
  margin: 0;
  padding: 18px 16px 8px;
  grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
  gap: 4px;
  border-color: rgba(217, 180, 74, 0.2);
  background: rgba(2, 8, 16, 0.74);
  overscroll-behavior: contain;
}

.timeline-memory-dock button {
  min-height: 48px;
  color: #c4bfaf;
}

.timeline-memory-dock button::before {
  width: 18px;
  height: 18px;
  background: url("./assets/timeline-marker-gold-silver.png") center / contain no-repeat;
  border: 0;
  box-shadow: none;
}

.timeline-memory-dock button.active::before,
.timeline-memory-dock button.has-event::before {
  background-image: url("./assets/timeline-marker-active-gold-silver.png");
}

.timeline-memory-dock button span {
  color: #cfc7b7;
  font-size: 10px;
  font-weight: 620;
}

.capture-date-picker {
  display: grid;
  gap: 10px;
}

.capture-date-picker > strong {
  color: var(--app-gold);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 520;
}

.capture-date-picker > div {
  display: grid;
  grid-template-columns: repeat(10, minmax(30px, 1fr));
  gap: 5px;
}

.capture-date-picker button {
  min-height: 34px;
  color: var(--app-muted);
  border: 1px solid rgba(217, 180, 74, 0.14);
  border-radius: 7px;
  background: rgba(3, 14, 25, 0.78);
  cursor: pointer;
}

.capture-date-picker button.active,
.capture-date-picker button:hover {
  color: #061421;
  background: linear-gradient(135deg, var(--app-gold), var(--app-teal));
}

@keyframes rooted-memory-slide {
  0%,
  30% {
    opacity: 1;
  }
  33%,
  100% {
    opacity: 0;
  }
}

.family-connection-tree {
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 64px);
  padding: 28px 12px;
}

.family-connection-tree::before {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  top: 50%;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(217, 180, 74, 0.35), transparent);
}

.family-connection-node {
  position: relative;
  z-index: 1;
  min-width: 160px;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 12px;
  color: var(--app-muted);
  border: 1px solid rgba(217, 180, 74, 0.18);
  border-radius: 12px;
  background: rgba(2, 9, 18, 0.84);
  cursor: pointer;
}

.connection-tree-portrait {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 180, 74, 0.42);
  border-radius: 50%;
  background: rgba(217, 180, 74, 0.08);
}

.connection-tree-portrait img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.family-connection-node em {
  color: var(--app-yellow);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.immersive-tree-widget {
  grid-column: 1 / -1;
  min-height: calc(100vh - 120px);
  padding: 0;
  overflow: hidden;
  border-color: rgba(217, 180, 74, 0.18);
  background: #020812;
}

.family-tree-widget-grid .rooted-widget.immersive-tree-widget {
  grid-column: 1 / -1;
  min-height: calc(100vh - 120px);
}

body[data-rooted-app-tree="true"] .app-header {
  display: none !important;
}

body[data-rooted-app-tree="true"] .page-shell.app-page > .app-header,
body[data-rooted-app-tree="true"] .app-main > .app-header,
body[data-rooted-app-tree="true"] .family-tree-widget-grid > .app-header {
  display: none !important;
}

body[data-rooted-app-tree="true"] .app-main {
  padding-top: 0;
}

body:not(.customizing-layout) .family-tree-widget-grid .rooted-widget-titlebar {
  display: none;
}

.immersive-family-tree {
  position: relative;
  display: block;
}

.oak-tree-canvas {
  position: relative;
  min-height: calc(100vh - 120px);
  overflow: hidden;
  cursor: grab;
  background:
    radial-gradient(circle at 50% 36%, rgba(217, 180, 74, 0.12), transparent 21rem),
    linear-gradient(180deg, rgba(1, 7, 14, 0.05), rgba(1, 7, 14, 0.68)),
    url("./assets/family-tree-oak-prairie-bg.png") center / cover no-repeat;
}

.family-tree-widget .oak-tree-canvas {
  min-height: max(720px, calc(100vh - 120px));
  background:
    radial-gradient(circle at 50% 36%, rgba(217, 180, 74, 0.12), transparent 21rem),
    linear-gradient(180deg, rgba(1, 7, 14, 0.05), rgba(1, 7, 14, 0.68)),
    url("./assets/family-tree-oak-prairie-bg.png") center / cover no-repeat;
}

.oak-tree-canvas::before,
.oak-tree-canvas::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.oak-tree-canvas::before {
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(2, 8, 16, 0.02), rgba(2, 8, 16, 0.52) 72%),
    linear-gradient(180deg, rgba(2, 8, 16, 0.05), rgba(2, 8, 16, 0.42));
  box-shadow: inset 0 0 96px rgba(0, 0, 0, 0.48);
}

.oak-tree-canvas::after {
  inset: 0;
  z-index: 7;
  border: 1px solid rgba(217, 180, 74, 0.24);
  box-shadow:
    inset 0 0 0 1px rgba(255, 239, 180, 0.12),
    inset 0 0 22px rgba(63, 36, 11, 0.18);
}

.oak-tree-canvas.panning {
  cursor: grabbing;
}

.oak-tree-canvas > .family-person,
.oak-tree-canvas > .family-connection-branch,
.oak-tree-canvas > .family-tree-connectors {
  transform: translate(var(--pan-x), var(--pan-y));
}

.tree-layout-title {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 8;
  color: var(--app-gold);
  text-shadow:
    0 2px 0 rgba(42, 28, 5, 0.62),
    0 10px 28px rgba(0, 0, 0, 0.82);
  pointer-events: none;
  translate: -50% 0;
  width: min(520px, 72vw);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-family: "Brush Script MT", "Segoe Script", Georgia, serif;
  font-size: clamp(36px, 3vw, 58px);
  font-weight: 500;
  line-height: 0.95;
  text-align: center;
}

.tree-layout-title strong {
  font-family: inherit;
  font-size: clamp(34px, 3.25vw, 58px);
  font-weight: inherit;
  line-height: 0.95;
}

.family-tree-connectors {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.tree-segment,
.tree-connector-jewel,
.tree-connector-leaf {
  position: absolute;
  display: block;
  pointer-events: none;
}

.gold-family-connectors .tree-segment {
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(217, 180, 74, 0.16), rgba(238, 219, 146, 0.62) 50%, rgba(217, 180, 74, 0.16)),
    linear-gradient(180deg, rgba(255, 247, 190, 0.2), rgba(217, 180, 74, 0.34));
  box-shadow:
    0 0 0 1px rgba(217, 180, 74, 0.08),
    0 0 5px rgba(217, 180, 74, 0.1);
}

.tree-segment-vertical {
  left: calc(var(--x) * 1%);
  top: calc(var(--top) * 1%);
  width: 1px;
  height: calc(var(--h) * 1%);
  transform: translateX(-50%);
}

.tree-segment-horizontal {
  left: calc(var(--left) * 1%);
  top: calc(var(--y) * 1%);
  width: calc(var(--w) * 1%);
  height: 1px;
  transform: translateY(-50%);
}

.tree-segment-direct {
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: calc(var(--len) * 1%);
  height: 1px;
  transform: translateY(-50%) rotate(var(--angle));
  transform-origin: left center;
}

.tree-connectors-fan-ancestors .tree-segment-direct,
.tree-connectors-fan-descendants .tree-segment-direct,
.tree-connectors-bowtie .tree-segment-direct {
  height: 1px;
  opacity: 0.86;
}

.gold-family-connectors .tree-connector-spouse_of .tree-segment,
.gold-family-connectors .tree-connector-pet .tree-segment {
  opacity: 0.5;
  background: linear-gradient(90deg, rgba(242, 204, 99, 0.22), rgba(242, 204, 99, 0.52), rgba(242, 204, 99, 0.22));
}

.connection-family-connectors {
  z-index: 2;
}

.connection-family-connectors .tree-segment {
  height: 1px;
  opacity: 0.18;
  background: linear-gradient(90deg, rgba(98, 202, 181, 0.06), rgba(98, 202, 181, 0.32), rgba(98, 202, 181, 0.06));
  box-shadow: 0 0 5px rgba(98, 202, 181, 0.08);
}

.connection-family-connectors .connection-tie-direct {
  opacity: 0.26;
}

.connection-family-connectors .tree-connector-jewel {
  width: 6px;
  height: 6px;
  opacity: 0.7;
  background:
    radial-gradient(circle, rgba(255, 246, 188, 0.95) 0 22%, rgba(98, 202, 181, 0.78) 24% 44%, rgba(2, 10, 18, 0.92) 46% 100%);
}

.tree-connector-jewel {
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: 11px;
  height: 11px;
  border: 1px solid rgba(242, 204, 99, 0.8);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 246, 188, 0.96) 0 20%, rgba(217, 180, 74, 0.88) 22% 38%, rgba(2, 10, 18, 0.94) 42% 100%);
  box-shadow: 0 0 12px rgba(217, 180, 74, 0.24);
  transform: translate(-50%, -50%);
}

.tree-connector-leaf {
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: 18px;
  height: 10px;
  border: 1px solid rgba(242, 204, 99, 0.55);
  border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, rgba(242, 204, 99, 0.72), rgba(75, 174, 118, 0.38));
  transform: translate(4px, -11px) rotate(-24deg);
}

.tree-connectors-traditional .tree-connector-leaf {
  display: none;
}

.tree-connectors-traditional .tree-segment {
  opacity: 0.66;
  background: linear-gradient(90deg, rgba(178, 144, 54, 0.12), rgba(238, 219, 146, 0.64), rgba(178, 144, 54, 0.12));
  box-shadow: 0 0 4px rgba(217, 180, 74, 0.08);
}

.tree-connectors-traditional .tree-parent-bar {
  display: none;
}

.tree-connectors-traditional .tree-parent-drop,
.tree-connectors-traditional .tree-child-drop,
.tree-connectors-traditional .tree-family-rail,
.tree-connectors-traditional .tree-child-rail,
.tree-connectors-traditional .tree-parent-rail {
  opacity: 0.58;
}

.tree-connectors-traditional .tree-family-rail,
.tree-connectors-traditional .tree-child-rail,
.tree-connectors-traditional .tree-parent-rail {
  height: 1px;
}

.tree-connectors-traditional .tree-family-rail {
  opacity: 0.56;
}

.tree-connectors-traditional .tree-parent-rail {
  opacity: 0.38;
}

.tree-connectors-traditional .tree-child-rail {
  opacity: 0.38;
}

.tree-connectors-traditional .tree-child-drop {
  opacity: 0.62;
}

.tree-connectors-traditional .tree-parent-drop {
  opacity: 0.48;
}

.tree-connectors-traditional .tree-connector-jewel,
.connection-family-connectors-traditional .tree-connector-jewel {
  display: none;
}

.tree-connectors-traditional .tree-connector-pet .tree-segment,
.tree-connectors-traditional .tree-connector-spouse_of .tree-segment {
  opacity: 0.28;
  background: rgba(98, 202, 181, 0.3);
}

.tree-connectors-traditional .tree-connector-pet {
  display: none;
}

.tree-connectors-traditional .tree-connector-pet .companion-tree-tie {
  height: 2px;
  opacity: 0.28;
  background: rgba(98, 202, 181, 0.34);
}

.connection-family-connectors-traditional .connection-tie-direct {
  display: none;
}

.tree-layout-traditional .connection-family-connectors,
.tree-layout-traditional .connection-family-connectors * {
  display: none !important;
}

.tree-layout-traditional .family-connection-branch {
  display: none;
}

.family-person {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 3;
  translate: -50% -50%;
  width: 92px;
  min-height: 0;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 0;
  color: #d9d3c7;
  border: 0;
  background: transparent;
  cursor: pointer;
  rotate: var(--person-tilt, 0deg);
}

.family-person .person-photo {
  inline-size: 58px;
  block-size: 58px;
  min-inline-size: 58px;
  min-block-size: 58px;
  max-inline-size: 58px;
  max-block-size: 58px;
  padding: 2px;
  border: 1px solid rgba(107, 78, 31, 0.68);
  background:
    linear-gradient(180deg, rgba(255, 252, 238, 0.96), rgba(224, 211, 184, 0.94)),
    rgba(2, 9, 18, 0.88);
  box-shadow: 0 4px 14px rgba(91, 62, 25, 0.18);
}

.family-person::after {
  content: "";
  width: 56px;
  height: 9px;
  margin-top: -9px;
  border: 1px solid rgba(107, 78, 31, 0.28);
  border-top: 0;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(180deg, rgba(107, 78, 31, 0.06), transparent);
  order: 1;
}

.family-person .person-photo.has-photo .avatar-photo {
  inline-size: 100%;
  block-size: 100%;
  min-inline-size: 0;
  min-block-size: 0;
  border: 0;
  object-fit: cover;
  object-position: center;
}

.family-person strong {
  order: 2;
  max-width: 88px;
  padding: 3px 7px;
  overflow: hidden;
  color: #3f2b15;
  border: 1px solid rgba(107, 78, 31, 0.16);
  border-radius: 4px;
  background: rgba(255, 252, 242, 0.76);
  font-size: 10px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.family-person em {
  order: 3;
  color: rgba(238, 232, 220, 0.78);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.64);
  font-style: normal;
  font-size: 10px;
}

.family-person.active .person-photo,
.family-person:hover .person-photo {
  box-shadow: 0 0 0 2px rgba(217, 180, 74, 0.38), 0 0 28px rgba(217, 180, 74, 0.24);
}

.family-connection-branch {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 4;
  width: clamp(104px, 9vw, 128px);
  translate: -50% -50%;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 9px;
  color: var(--app-muted);
  border: 1px solid rgba(217, 180, 74, 0.5);
  border-radius: 8px;
  background: rgba(1, 8, 17, 0.7);
  cursor: pointer;
}

.family-connection-branch.connected-placeholder {
  border-color: rgba(98, 202, 181, 0.56);
  background:
    radial-gradient(circle at 50% 0%, rgba(98, 202, 181, 0.12), transparent 6rem),
    rgba(1, 8, 17, 0.82);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.family-connection-branch span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(217, 180, 74, 0.09);
}

.family-connection-branch img {
  width: 32px;
  height: 32px;
}

.family-connection-branch em {
  color: var(--app-teal);
  font-style: normal;
  font-size: 11px;
}

.family-connection-branch b {
  max-width: 100%;
  padding: 3px 7px;
  color: #071522;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(217, 180, 74, 0.94), rgba(98, 202, 181, 0.88));
  font-size: 10px;
  font-weight: 850;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tree-popup-card {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 20;
  width: min(390px, calc(100% - 36px));
  padding: 16px;
  border: 1px solid rgba(217, 180, 74, 0.32);
  border-radius: 12px;
  background: rgba(3, 11, 21, 0.94);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.38);
}

.family-tree-widget .tree-popup-card {
  position: absolute;
  top: 18px;
  right: 18px;
  left: auto;
  width: min(390px, calc(100% - 36px));
  min-height: 0;
  max-height: calc(100% - 36px);
  display: block;
  box-sizing: border-box;
  overflow-y: auto;
}

.tree-popup-card[hidden] {
  display: none;
}

.tree-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  color: var(--app-gold);
  border: 1px solid rgba(217, 180, 74, 0.26);
  border-radius: 50%;
  background: rgba(2, 8, 16, 0.72);
}

.tree-popup-profile {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding-right: 28px;
}

.tree-popup-profile > div {
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.family-tree-widget .tree-popup-profile > div {
  padding: 0;
  background: transparent;
}

.tree-popup-profile h2 {
  margin: 2px 0 4px;
  color: #e5ded0;
  font-size: 24px;
  font-weight: 560;
}

.family-tree-widget .tree-popup-profile h2 {
  font-size: 24px;
}

.tree-popup-profile span {
  color: var(--app-gold);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tree-popup-profile p {
  margin: 0;
  color: var(--app-muted);
  font-size: 12px;
}

.tree-popup-memory-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.tree-popup-memory-strip a {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(217, 180, 74, 0.18);
  border-radius: 8px;
}

.tree-popup-memory-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.family-tree-widget .tree-popup-card .tree-actions-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.family-tree-widget .tree-popup-card .tree-actions-menu a {
  width: auto;
  justify-content: start;
}

.connection-family-view {
  display: grid;
  gap: 12px;
}

.connection-family-mark {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 180, 74, 0.28);
  border-radius: 50%;
  background: rgba(217, 180, 74, 0.08);
}

.connection-family-mark img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.connection-family-view .modal-note {
  margin: 0;
  color: var(--app-muted);
  font-size: 13px;
  line-height: 1.45;
}

.family-growth-section {
  width: min(1220px, calc(100% - 40px));
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 1fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
  margin: 54px auto;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid rgba(214, 195, 79, 0.24);
  border-radius: 12px;
  background: rgba(5, 18, 30, 0.72);
}

.family-growth-section h2 {
  margin: 8px 0 12px;
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 500;
}

.family-growth-section p,
.growth-proof-list {
  color: var(--muted);
}

.family-growth-section img {
  width: 100%;
  border: 1px solid rgba(214, 195, 79, 0.24);
  border-radius: 10px;
  object-fit: cover;
}

.growth-proof-list {
  display: grid;
  gap: 9px;
  padding-left: 20px;
}

@media (max-width: 980px) {
  .document-toolbar.compact-toolbar,
  .modal-form-grid,
  .settings-row,
  .preparedness-grid,
  .family-growth-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-snapshot-hero {
    background:
      linear-gradient(180deg, rgba(1, 8, 17, 0.84), rgba(1, 8, 17, 0.96)),
      var(--profile-bg) center / cover no-repeat;
  }

  .calendar-board {
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
  }

  .calendar-month {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .feature-tree-landscape {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-tree-landscape img {
    min-height: 320px;
  }

  .calendar-detail {
    margin-left: 0;
    padding: 18px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(217, 180, 74, 0.14);
  }

  .timeline-memory.detailed-memory {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    min-height: 0;
  }

  .memory-slideshow {
    height: auto;
    min-height: min(56vh, 460px);
  }

  .memory-sidecar {
    border-top: 1px solid rgba(217, 180, 74, 0.16);
    border-left: 0;
  }

  .memory-sidecar h2 {
    max-width: 100%;
  }

  .timeline-memory-dock {
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  }
}

@media (max-width: 640px) {
  .page-shell.app-page .app-main {
    max-width: 100%;
  }

  .page-action-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .page-action-strip .app-action {
    width: 100%;
    justify-content: center;
  }

  .profile-snapshot-hero {
    grid-template-columns: 72px minmax(0, 1fr);
    min-height: 220px;
    padding: 14px;
  }

  .person-hero-avatar {
    width: 72px;
    height: 72px;
  }

  .calendar-month span {
    max-height: none;
  }

  .oak-tree-canvas {
    min-height: calc(100vh - 92px);
  }

  .family-person {
    width: 88px;
  }

  .family-person .person-photo {
    inline-size: 62px;
    block-size: 62px;
    min-inline-size: 62px;
    min-block-size: 62px;
    max-inline-size: 62px;
    max-block-size: 62px;
  }

  .tree-popup-card {
    top: 10px;
    right: 10px;
    left: 10px;
    width: auto;
  }

  .timeline-command-row {
    justify-content: stretch;
  }

  .timeline-command-row .app-action {
    width: 100%;
    justify-content: center;
  }

  .timeline-full-workspace .timeline-event-stage,
  .timeline-memory.detailed-memory {
    height: auto;
    max-height: none;
    min-height: 0;
  }

  .timeline-memory-track {
    display: block;
    transform: none !important;
  }

  .timeline-memory.detailed-memory {
    min-width: 0;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  .timeline-memory.detailed-memory:not(.active) {
    display: none;
  }

  .memory-slideshow {
    height: auto;
    min-height: 280px;
  }

  .memory-media-grid,
  .capture-date-picker > div {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Continuation polish: signed-in app completion */
.checkins-widget-grid .checkin-outcome-widget {
  display: block;
  padding: 13px 15px;
  color: var(--app-text);
  border-color: rgba(217, 180, 74, 0.16);
  background:
    linear-gradient(145deg, rgba(5, 17, 29, 0.84), rgba(2, 9, 18, 0.88)),
    var(--app-panel);
}

.checkins-widget-grid .checkins-feature-visual {
  min-height: 168px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(217, 180, 74, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 0%, rgba(255, 217, 90, 0.1), transparent 10rem),
    rgba(2, 9, 18, 0.64);
}

.checkins-widget-grid .checkins-feature-visual strong,
.checkins-widget-grid .checkins-feature-visual span {
  display: block;
  color: #e8dfce;
}

.checkins-widget-grid .checkins-feature-visual span {
  color: var(--app-muted);
  font-size: 13px;
  font-weight: 650;
}

.person-widget-grid .person-life-panel {
  grid-column: span 4;
}

.person-widget-grid .person-care-panel {
  border-style: dashed;
  border-color: rgba(217, 180, 74, 0.2);
  background:
    linear-gradient(145deg, rgba(5, 17, 29, 0.66), rgba(2, 9, 18, 0.78)),
    var(--app-panel);
}

.person-widget-grid .person-care-panel .rooted-widget-heading strong::after {
  content: " · private";
  color: var(--app-soft);
  font-size: 11px;
  font-weight: 560;
}

.tree-view-controls {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px 6px 6px;
  color: #fff4d8;
  border: 1px solid rgba(217, 180, 74, 0.18);
  border-radius: 999px;
  background: rgba(2, 9, 18, 0.84);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 720;
}

.tree-view-controls span {
  color: #fff4d8;
}

.tree-view-controls .utility-icon {
  width: 32px;
  min-width: 32px;
  height: 32px;
}

.tree-view-controls label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff0c9;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.tree-view-controls select {
  appearance: none;
  max-width: min(270px, 44vw);
  min-height: 32px;
  color: #f8edd0 !important;
  -webkit-text-fill-color: #f8edd0;
  color-scheme: dark;
  border: 1px solid rgba(217, 180, 74, 0.5);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(10, 28, 41, 0.98), rgba(3, 13, 24, 0.98)),
    #061421;
  padding: 0 30px 0 11px;
  font: inherit;
  font-size: 12px;
  font-weight: 760;
  text-transform: none;
  box-shadow: inset 0 0 0 1px rgba(255, 239, 180, 0.06), 0 6px 16px rgba(0, 0, 0, 0.24);
}

.tree-view-controls select option {
  color: #f8edd0;
  background: #061421;
}

.family-connection-branch small {
  max-width: 100%;
  color: var(--app-muted);
  font-size: 10px;
  line-height: 1.25;
}

body[data-rooted-app-tree="true"] .family-connection-branch small {
  display: none;
}

.family-news-rhythm {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  align-items: start;
}

.family-news-rhythm .featured-news {
  grid-row: span 2;
}

.family-news-rhythm .featured-news > a {
  min-height: 220px;
}

.family-news-rhythm .featured-news h3 {
  font-size: clamp(24px, 3vw, 38px);
}

.person-hero-actions,
.modal-actions,
.app-action-row,
.document-toolbar,
.state-buttons,
.segmented {
  min-width: 0;
}

.app-action,
.mini-action,
.inline-widget-link,
.utility-icon {
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .family-news-rhythm {
    grid-template-columns: minmax(0, 1fr);
  }

  .family-news-rhythm .featured-news {
    grid-row: auto;
  }

  .person-widget-grid .person-life-panel {
    grid-column: span 6;
  }
}

@media (max-width: 700px) {
  .checkout-page .demo-hero {
    padding-top: 34px;
    padding-bottom: 24px;
  }

  .checkout-grid {
    gap: 14px;
  }

  .plan-picker {
    grid-template-columns: minmax(0, 1fr);
  }

  .plan-choice {
    min-height: 0;
    padding: 14px;
  }

  .billing-cadence-options {
    grid-template-columns: minmax(0, 1fr);
  }

  .checkout-modal {
    align-items: end;
    padding: 12px;
  }

  .checkout-modal-panel {
    width: 100%;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    padding: 22px 16px 16px;
  }

  .checkout-modal .modal-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .checkout-modal .app-action {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .dashboard-guide-list li {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-guide-list strong {
    justify-self: stretch;
    text-align: left;
  }

  .dashboard-guide-list a,
  .dashboard-guide-list button {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
  }

  .simplified-helper-strip {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .simplified-helper-strip .app-action {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }

  .person-widget-grid .person-life-panel,
  .person-widget-grid .person-hero-widget,
  .person-widget-grid .rooted-widget[data-widget-id="person-context"] {
    grid-column: 1 / -1;
  }

  .person-dashboard-hero {
    align-items: start;
  }

  .profile-checkin-inline {
    width: 100%;
    border-radius: 12px;
  }

  .person-hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .person-hero-actions .app-action,
  .modal-actions .app-action,
  .checkins-action-strip .app-action,
  .news-action-strip .app-action,
  .documents-action-strip .app-action,
  .calendar-action-strip .app-action {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .tree-view-controls {
    right: 10px;
    left: 10px;
    flex-wrap: wrap;
    justify-content: space-between;
    border-radius: 14px;
  }

  .oak-tree-canvas .tree-layout-title {
    display: none;
  }

  .family-tree-widget .tree-popup-card {
    position: fixed;
    top: 10px;
    right: 10px;
    left: 10px;
    width: auto;
    max-height: calc(100vh - 96px);
    max-height: calc(100dvh - 96px);
  }

  .family-tree-widget .tree-popup-card .tree-actions-menu {
    grid-template-columns: minmax(0, 1fr);
  }

  .family-connection-branch {
    width: 118px;
    padding: 8px;
  }

  .family-connection-branch span {
    display: none;
  }

  .family-connection-branch small:last-child {
    display: none;
  }

  .interactive-family-tree[data-rooted-app-tree="true"] .oak-tree-canvas {
    min-height: 920px;
  }

  .interactive-family-tree[data-rooted-app-tree="true"] .oak-tree-canvas.tree-layout-traditional {
    min-height: 1060px;
  }

  .tree-view-controls span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tree-view-controls label,
  .tree-view-controls select {
    min-width: 0;
    flex: 1 1 190px;
  }

  .tree-view-controls select {
    max-width: 100%;
  }

  .family-connection-branch {
    width: min(132px, 36vw);
  }

  .family-person {
    width: 74px;
    gap: 5px;
  }

  .family-person .person-photo {
    inline-size: 48px;
    block-size: 48px;
    min-inline-size: 48px;
    min-block-size: 48px;
    max-inline-size: 48px;
    max-block-size: 48px;
    padding: 2px;
  }

  .family-person::after {
    width: 40px;
    height: 7px;
    margin-top: -8px;
  }

  .family-person strong {
    max-width: 72px;
    padding-inline: 4px;
    font-size: 9px;
  }

  .family-person em {
    max-width: 58px;
    overflow: hidden;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .family-news-rhythm .featured-news > a {
    min-height: 190px;
  }
}

/* Continuation polish: secondary signed-in app surfaces */
.page-shell.app-page .app-header h2 {
  color: #f4ead8;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.34);
}

.page-shell.app-page .app-header p,
.calendar-detail p,
.event-memory-tile p,
.document-readiness-panel header small,
.preparedness-grid small,
.settings-section header small,
.settings-row strong,
.settings-toggle,
.person-mini-panel small {
  color: #bfc9ce;
}

.page-shell.app-page input,
.page-shell.app-page select,
.page-shell.app-page textarea {
  color: #f5eee4;
  border: 1px solid rgba(217, 180, 74, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(4, 15, 26, 0.96), rgba(2, 9, 18, 0.96)),
    #061421;
}

.page-shell.app-page input::placeholder {
  color: #8f9ca4;
}

body[data-rooted-app-tree="true"] .page-shell.app-page .tree-view-controls select {
  color: #f8edd0 !important;
  -webkit-text-fill-color: #f8edd0;
  color-scheme: dark;
  border-color: rgba(217, 180, 74, 0.5);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(10, 28, 41, 0.98), rgba(3, 13, 24, 0.98)),
    #061421;
}

body[data-rooted-app-tree="true"] .page-shell.app-page .tree-view-controls select option {
  color: #f8edd0;
  background: #061421;
}

body[data-rooted-app-tree="true"] .oak-tree-canvas .tree-layout-title {
  display: block;
}

.page-shell.app-page input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--app-gold);
}

.calendar-detail {
  color: var(--app-text);
}

.calendar-detail h3,
.document-readiness-panel header strong,
.preparedness-grid strong,
.settings-section header strong,
.settings-row > span,
.person-mini-panel strong {
  color: #f1e4ca;
}

.document-readiness-panel header div,
.settings-section header div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.document-readiness-panel header small,
.settings-section header small {
  display: block;
  line-height: 1.35;
}

.preparedness-grid span,
.settings-section,
.person-mini-panel,
.members-profile-grid .person-mini-panel,
.people-dashboard-strip .person-mini-panel {
  border-color: rgba(217, 180, 74, 0.17);
  background:
    linear-gradient(145deg, rgba(7, 20, 32, 0.88), rgba(2, 9, 18, 0.86)),
    var(--app-panel);
}

.person-mini-panel em,
.members-profile-grid .person-mini-panel em {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  width: fit-content;
  padding: 2px 7px;
  border-radius: 6px;
  color: #07111d;
  font-size: 12px;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--app-gold), #62cab5);
}

.document-toolbar.compact-toolbar {
  align-items: end;
}

.document-toolbar.compact-toolbar label,
.document-toolbar.compact-toolbar .field-label {
  color: #aebbc1;
}

.document-readiness-panel {
  padding-inline: 2px;
}

.billing-plan-summary {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(217, 180, 74, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(7, 20, 32, 0.74), rgba(2, 9, 18, 0.82)),
    rgba(8, 22, 34, 0.74);
}

.billing-plan-summary span,
.billing-plan-summary small,
.billing-support-confirm p {
  color: #bfc9ce;
  line-height: 1.45;
}

.billing-plan-summary span {
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.billing-plan-summary strong {
  color: #f1e4ca;
  font-size: 20px;
  line-height: 1.12;
}

.billing-support-confirm {
  display: grid;
  gap: 12px;
}

.file-row {
  color: var(--app-text);
}

.launch-readiness-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.launch-readiness-list li,
.timeline-launch-strip span {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 10px 11px;
  border: 1px solid rgba(217, 180, 74, 0.15);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(7, 20, 32, 0.78), rgba(2, 9, 18, 0.82)),
    rgba(8, 22, 34, 0.72);
}

.launch-readiness-list span,
.timeline-launch-strip small {
  color: #bfc9ce;
  font-size: 12px;
  line-height: 1.35;
}

.launch-readiness-list strong,
.timeline-launch-strip strong {
  color: #f1e4ca;
  font-weight: 760;
  line-height: 1.25;
}

.timeline-launch-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 14px;
}

.calendar-board-widget {
  align-self: start;
}

.calendar-board-widget .rooted-widget-body {
  align-content: start;
}

.calendar-board-widget .calendar-board {
  width: min(100%, 820px);
  max-width: 820px;
  align-items: start;
  justify-self: center;
}

.calendar-board-widget .calendar-month {
  width: min(100%, 480px);
  justify-self: start;
}

.calendar-board-widget .calendar-month span,
.calendar-board-widget .calendar-month a {
  min-height: 0;
  aspect-ratio: 1 / 1;
  max-height: 64px;
}

.checkins-widget-grid .checkins-start-widget {
  grid-column: span 8;
}

.checkins-widget-grid .family-checkin-board-widget,
.checkins-widget-grid .checkins-activity-widget {
  grid-column: 1 / -1;
}

.checkins-widget-grid .family-checkin-board-widget {
  order: -3;
  min-height: 0;
}

.checkins-widget-grid .family-checkin-board-widget.rooted-widget {
  min-height: clamp(390px, 54dvh, 590px);
}

.checkins-widget-grid .checkins-roster-widget {
  grid-column: 1 / -1;
  order: -2;
}

.checkins-widget-grid .checkins-activity-widget {
  order: -1;
}

.checkins-start-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(217, 180, 74, 0.16);
  border-radius: 8px;
  background: rgba(4, 18, 29, 0.64);
}

.checkins-start-panel strong,
.checkin-person-card strong {
  display: block;
  color: var(--app-text);
  line-height: 1.2;
}

.checkins-start-panel small,
.checkin-person-card small {
  display: block;
  margin-top: 4px;
  color: var(--app-muted);
  line-height: 1.4;
}

.checkins-primary-actions {
  margin-top: 14px;
}

.family-checkin-board {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: clamp(10px, 1.2vw, 14px);
  min-height: 100%;
  padding: clamp(14px, 1.6vw, 22px);
  border: 1px solid rgba(217, 180, 74, 0.16);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% -10%, rgba(54, 194, 181, 0.12), transparent 18rem),
    linear-gradient(145deg, rgba(3, 17, 30, 0.94), rgba(1, 8, 17, 0.98));
}

.family-checkin-board-widget .rooted-widget-body {
  min-height: 0;
}

.family-checkin-board-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.family-checkin-board-header h3 {
  margin: 0;
  color: #efe5d1;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.2vw, 36px);
  font-weight: 500;
  line-height: 1.05;
}

.family-checkin-board-header p,
.family-checkin-board-header span,
.family-checkin-board footer > span {
  margin: 4px 0 0;
  color: #d7e4e8;
  line-height: 1.45;
}

.family-checkin-board-header span {
  min-width: 112px;
  text-align: right;
  font-size: 12px;
}

.family-checkin-board-header span strong {
  color: #efe5d1;
}

.family-checkin-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(217, 180, 74, 0.12);
  border-radius: 10px;
  background: rgba(3, 18, 31, 0.78);
}

.family-checkin-summary span {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #e8dfce;
  border-right: 1px solid rgba(217, 180, 74, 0.12);
  font-weight: 650;
}

.family-checkin-summary strong {
  color: inherit;
  font-weight: 900;
}

.family-checkin-summary span:last-child {
  border-right: 0;
}

.family-checkin-summary i {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #04111e;
  font-style: normal;
  font-weight: 900;
}

.family-checkin-summary .safe i {
  background: #6fc36a;
}

.family-checkin-summary .help i {
  background: #d9a23f;
}

.family-checkin-summary .unknown i {
  background: #8d9aa1;
}

.family-checkin-people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
  overflow: auto;
  padding-right: 2px;
}

.family-checkin-person {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 12px 14px;
  border: 1px solid rgba(217, 180, 74, 0.12);
  border-radius: 10px;
  background: rgba(5, 21, 34, 0.76);
}

.family-checkin-person.status-safe {
  border-color: rgba(111, 195, 106, 0.22);
  background: rgba(7, 34, 28, 0.72);
}

.family-checkin-person.status-unknown {
  border-color: rgba(217, 180, 74, 0.18);
}

.family-checkin-person strong {
  color: #f5eee4;
  font-weight: 660;
}

.family-checkin-person small {
  display: block;
  margin-top: 2px;
  color: #d7e4e8;
}

.family-checkin-person em {
  color: #d9b44a;
  font-style: normal;
  font-weight: 760;
  white-space: nowrap;
}

.family-checkin-person.status-safe em {
  color: #8bd878;
}

.family-checkin-person.status-needs_help em,
.family-checkin-person.status-needs-assistance em {
  color: #f2b852;
}

.family-checkin-board footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(217, 180, 74, 0.12);
  border-radius: 10px;
  background: rgba(2, 10, 18, 0.7);
}

.family-checkin-board .checkins-primary-actions {
  margin-top: 0;
  justify-content: flex-end;
  margin-left: auto;
}

.family-checkin-board .app-action,
.checkin-person-actions .app-action {
  min-width: max-content;
}

.family-checkin-board .quiet-emergency-action {
  opacity: 0.88;
}

@media (min-width: 1180px) {
  .checkins-widget-grid .family-checkin-board-widget.rooted-widget {
    min-height: clamp(420px, 56dvh, 620px);
  }

  .family-checkin-board {
    padding: clamp(14px, 1.5vw, 20px);
  }

  .family-checkin-person {
    min-height: 70px;
  }
}

.checkins-widget-grid .quiet-status:empty {
  display: none;
}

.page-shell.app-page .rooted-widget,
.page-shell.app-page .rooted-widget :where(h2, h3, h4, strong, b, em, label),
.page-shell.app-page .rooted-widget .app-list :where(li, span, small),
.page-shell.app-page .rooted-widget :where(.family-checkin-person span, .family-checkin-person strong, .family-checkin-person small, .checkin-person-card span, .checkin-person-card strong, .checkin-person-card small, .profile-checkin-inline span, .profile-checkin-inline strong, .profile-checkin-inline small) {
  color: #f6efe3;
  -webkit-text-fill-color: currentColor;
}

.page-shell.app-page .rooted-widget :where(p, small, li, .app-list small, .metric-list span, .dashboard-card-identity small, .widget-header small) {
  color: #d7e2e6;
  -webkit-text-fill-color: currentColor;
}

.page-shell.app-page .rooted-widget :where(.app-list strong, .metric-list strong, .inline-widget-link) {
  color: #fff4d2;
}

.page-shell.app-page .rooted-widget :where(.ghost-action, .app-action.ghost-action) {
  color: #f5eee4;
  -webkit-text-fill-color: currentColor;
}

.dashboard-guide-widget .rooted-widget-body {
  align-content: start;
}

.dashboard-guide-list {
  gap: 4px;
  margin-top: 2px;
}

.dashboard-guide-list li {
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
}

.dashboard-guide-list small {
  margin-top: 1px;
  color: #c8d3d7;
  font-size: 11px;
  line-height: 1.18;
}

.dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list > li > span {
  color: #f5eee4 !important;
  font-weight: 650;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.28);
}

.dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list > li > span > small {
  color: #d7e2e6 !important;
}

.dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list a,
.dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list button {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  color: #fff4d8 !important;
  font: inherit;
  font-weight: 760;
  text-decoration: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.dashboard-guide-list button {
  padding: 0;
}

.dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list a:hover,
.dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list a:focus-visible,
.dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list button:hover,
.dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list button:focus-visible {
  color: var(--app-gold);
  outline: none;
}

.dashboard-home-grid .mini-calendar-widget .dashboard-mini-calendar header strong {
  color: #f5eee4;
}

.dashboard-home-grid .mini-calendar-widget .dashboard-mini-calendar header span,
.dashboard-home-grid .mini-calendar-widget .mini-calendar-weekdays span {
  color: #c8d3d7;
}

.dashboard-home-grid .mini-calendar-widget .mini-calendar-day {
  color: #d7e2e6;
}

.dashboard-home-grid .mini-calendar-widget .mini-calendar-day b {
  color: inherit;
  font-weight: 780;
}

.dashboard-home-grid .mini-calendar-widget .mini-calendar-day.today,
.dashboard-home-grid .mini-calendar-widget .mini-calendar-day.selected {
  color: #061421;
}

.dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list li,
.dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list > li > span {
  color: #fff7e8 !important;
}

.dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list small,
.dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list > li > span > small {
  color: #e4edf0 !important;
}

.dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list strong,
.dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list a,
.dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list button {
  color: #fff4d8 !important;
}

.dashboard-home-grid .mini-calendar-widget .dashboard-mini-calendar header strong,
.dashboard-home-grid .mini-calendar-widget .dashboard-mini-calendar header span,
.dashboard-home-grid .mini-calendar-widget .mini-calendar-weekdays span,
.dashboard-home-grid .mini-calendar-widget .mini-calendar-day:not(.today):not(.selected),
.dashboard-home-grid .mini-calendar-widget .mini-calendar-day:not(.today):not(.selected) b {
  color: #e4edf0 !important;
}

.dashboard-home-grid .mini-calendar-widget .mini-calendar-day.today,
.dashboard-home-grid .mini-calendar-widget .mini-calendar-day.selected,
.dashboard-home-grid .mini-calendar-widget .mini-calendar-day.today b,
.dashboard-home-grid .mini-calendar-widget .mini-calendar-day.selected b {
  color: #061421 !important;
}

.dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list :where(li, li > span, li > span > small) {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.36);
}

.dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list :where(li, li > span) {
  color: #fff8e9 !important;
}

.dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list li > span > small {
  color: #dce8ec !important;
}

.dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list :where(strong, a, button) {
  color: #fff3d4 !important;
}

.dashboard-home-grid .mini-calendar-widget .dashboard-mini-calendar :where(header strong, header span, .mini-calendar-weekdays span, .mini-calendar-day:not(.today):not(.selected), .mini-calendar-day:not(.today):not(.selected) b) {
  color: #e7eff2 !important;
}

body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list li,
body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list li > span {
  color: #fff8e9 !important;
}

body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list li > span > small,
body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list small {
  color: #e3eef2 !important;
}

body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list :where(strong, a, button) {
  color: #fff4d8 !important;
}

body.dashboard-page .dashboard-home-grid .mini-calendar-widget .dashboard-mini-calendar :where(header strong, header span, .mini-calendar-weekdays span, .mini-calendar-day:not(.today):not(.selected), .mini-calendar-day:not(.today):not(.selected) b) {
  color: #e8f1f4 !important;
}

body.dashboard-page .dashboard-home-grid .mini-calendar-widget .mini-calendar-day.today,
body.dashboard-page .dashboard-home-grid .mini-calendar-widget .mini-calendar-day.selected,
body.dashboard-page .dashboard-home-grid .mini-calendar-widget .mini-calendar-day.today b,
body.dashboard-page .dashboard-home-grid .mini-calendar-widget .mini-calendar-day.selected b {
  color: #061421 !important;
}

body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list li > span,
body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list li > span > small,
body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list :where(strong, a, button),
body.dashboard-page .dashboard-home-grid .mini-calendar-widget .dashboard-mini-calendar :where(header strong, header span, .mini-calendar-weekdays span, .mini-calendar-day:not(.today):not(.selected), .mini-calendar-day:not(.today):not(.selected) b) {
  opacity: 1 !important;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.42);
}

body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list li > span {
  color: #fff9ec !important;
}

body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list li > span > small {
  color: #e9f3f6 !important;
}

body.dashboard-page .dashboard-home-grid .mini-calendar-widget .dashboard-mini-calendar :where(header strong, header span, .mini-calendar-weekdays span, .mini-calendar-day:not(.today):not(.selected), .mini-calendar-day:not(.today):not(.selected) b) {
  color: #edf6f8 !important;
}

.checkins-roster {
  display: grid;
  gap: 12px;
}

.checkin-person-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(217, 180, 74, 0.13);
  border-radius: 8px;
  background: rgba(3, 14, 24, 0.48);
}

.checkin-person-card > span {
  min-width: 0;
}

.checkin-person-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.checkin-person-actions .app-action {
  min-height: 40px;
  padding-inline: 12px;
}

.page-shell.app-page .family-checkin-board,
.page-shell.app-page .family-checkin-board :where(h3, p, span, small, strong, em, footer),
.page-shell.app-page .checkins-roster,
.page-shell.app-page .checkins-roster :where(span, small, strong, em),
.page-shell.app-page .checkins-activity-widget,
.page-shell.app-page .checkins-activity-widget :where(li, span, small, strong) {
  color: #f8f0df !important;
  -webkit-text-fill-color: currentColor !important;
  opacity: 1 !important;
}

.page-shell.app-page .family-checkin-board :where(p, small, footer > span),
.page-shell.app-page .checkins-roster small,
.page-shell.app-page .checkins-activity-widget small {
  color: #dce9ed !important;
  -webkit-text-fill-color: #dce9ed !important;
}

.page-shell.app-page .app-fallback-panel {
  grid-column: 1 / -1;
  max-width: 760px;
  padding: clamp(18px, 3vw, 28px);
  border-color: rgba(217, 180, 74, 0.28);
  background:
    radial-gradient(circle at 12% 0%, rgba(64, 211, 193, 0.13), transparent 13rem),
    linear-gradient(145deg, rgba(5, 18, 30, 0.98), rgba(1, 8, 17, 0.98));
}

.page-shell.app-page .app-fallback-panel :where(h3, p, a, button) {
  color: #f8f0df !important;
  -webkit-text-fill-color: currentColor !important;
}

.page-shell.app-page .app-fallback-panel p {
  color: #dce9ed !important;
  max-width: 58ch;
}

.page-shell.app-page .app-fallback-panel .app-action {
  width: max-content;
  max-width: 100%;
  white-space: normal;
}

.profile-ready-fallback {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 980px;
  justify-self: stretch;
  border-color: rgba(217, 180, 74, 0.22);
  background:
    radial-gradient(circle at 14% 0%, rgba(64, 211, 193, 0.13), transparent 15rem),
    linear-gradient(145deg, rgba(5, 18, 30, 0.98), rgba(1, 8, 17, 0.98));
}

.profile-ready-fallback .person-dashboard-hero {
  min-height: clamp(250px, 28dvh, 360px);
}

.profile-ready-fallback .person-hero-actions {
  margin-top: 14px;
}

@media (max-width: 700px) {
  .calendar-detail {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
    background: transparent;
  }

  .calendar-month {
    gap: 7px;
  }

  .calendar-month span {
    min-height: 44px;
  }

  .preparedness-grid,
  .settings-sections,
  .timeline-launch-strip,
  .settings-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .settings-section {
    padding: 14px;
  }

  .members-profile-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .checkins-widget-grid .checkins-start-widget,
  .checkins-widget-grid .checkins-roster-widget {
    grid-column: 1 / -1;
  }

  .checkins-start-panel,
  .checkin-person-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .checkin-person-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .checkin-person-actions .app-action {
    flex: 1 1 86px;
    justify-content: center;
  }
}

body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list li,
body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list li > span,
body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list li > span:first-child {
  color: #fff9ec !important;
  -webkit-text-fill-color: #fff9ec;
  opacity: 1 !important;
}

body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list small,
body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list li > span > small {
  color: #dfecef !important;
  -webkit-text-fill-color: #dfecef;
  opacity: 1 !important;
}

body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list strong,
body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list a,
body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list button {
  color: #fff2cc !important;
  -webkit-text-fill-color: #fff2cc;
  opacity: 1 !important;
}

body.dashboard-page .dashboard-home-grid .mini-calendar-widget .dashboard-mini-calendar header strong,
body.dashboard-page .dashboard-home-grid .mini-calendar-widget .dashboard-mini-calendar header span,
body.dashboard-page .dashboard-home-grid .mini-calendar-widget .mini-calendar-weekdays span,
body.dashboard-page .dashboard-home-grid .mini-calendar-widget .mini-calendar-day:not(.today):not(.selected),
body.dashboard-page .dashboard-home-grid .mini-calendar-widget .mini-calendar-day:not(.today):not(.selected) b {
  color: #eef7f9 !important;
  -webkit-text-fill-color: #eef7f9;
  opacity: 1 !important;
}

body.dashboard-page .dashboard-home-grid .mini-calendar-widget .mini-calendar-day:not(.today):not(.selected) {
  background: rgba(7, 18, 29, 0.72);
}

body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list,
body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list li,
body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list li span {
  color: #fff9ec !important;
  -webkit-text-fill-color: #fff9ec !important;
  opacity: 1 !important;
  mix-blend-mode: normal;
}

body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list li small {
  color: #edf7f9 !important;
  -webkit-text-fill-color: #edf7f9 !important;
  opacity: 1 !important;
  mix-blend-mode: normal;
}

body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list li strong,
body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list li a,
body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list li button {
  color: #fff2cc !important;
  -webkit-text-fill-color: #fff2cc !important;
  opacity: 1 !important;
  mix-blend-mode: normal;
}

body.dashboard-page .dashboard-home-grid .mini-calendar-widget .dashboard-mini-calendar,
body.dashboard-page .dashboard-home-grid .mini-calendar-widget .dashboard-mini-calendar header strong,
body.dashboard-page .dashboard-home-grid .mini-calendar-widget .dashboard-mini-calendar header span,
body.dashboard-page .dashboard-home-grid .mini-calendar-widget .mini-calendar-weekdays span,
body.dashboard-page .dashboard-home-grid .mini-calendar-widget .mini-calendar-day:not(.today):not(.selected),
body.dashboard-page .dashboard-home-grid .mini-calendar-widget .mini-calendar-day:not(.today):not(.selected) b {
  color: #f1fafb !important;
  -webkit-text-fill-color: #f1fafb !important;
  opacity: 1 !important;
  mix-blend-mode: normal;
}

body.dashboard-page .dashboard-home-grid .mini-calendar-widget .mini-calendar-day.today,
body.dashboard-page .dashboard-home-grid .mini-calendar-widget .mini-calendar-day.selected,
body.dashboard-page .dashboard-home-grid .mini-calendar-widget .mini-calendar-day.today b,
body.dashboard-page .dashboard-home-grid .mini-calendar-widget .mini-calendar-day.selected b {
  color: #061421 !important;
  -webkit-text-fill-color: #061421 !important;
}

body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list > li,
body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list > li > span,
body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list > li > span:first-child {
  color: #fff7e7 !important;
  -webkit-text-fill-color: #fff7e7 !important;
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list > li > span > small,
body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list > li small {
  color: #dfeff3 !important;
  -webkit-text-fill-color: #dfeff3 !important;
  opacity: 1 !important;
}

body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list > li > strong,
body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list > li > strong > a,
body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list > li > strong > button {
  color: #fff0ca !important;
  -webkit-text-fill-color: #fff0ca !important;
  opacity: 1 !important;
}

body.dashboard-page .dashboard-home-grid .mini-calendar-widget .dashboard-mini-calendar header strong,
body.dashboard-page .dashboard-home-grid .mini-calendar-widget .dashboard-mini-calendar header span,
body.dashboard-page .dashboard-home-grid .mini-calendar-widget .mini-calendar-weekdays span,
body.dashboard-page .dashboard-home-grid .mini-calendar-widget .mini-calendar-day:not(.today):not(.selected),
body.dashboard-page .dashboard-home-grid .mini-calendar-widget .mini-calendar-day:not(.today):not(.selected) b {
  color: #f0fbff !important;
  -webkit-text-fill-color: #f0fbff !important;
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list > li,
body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list > li > span,
body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list > li > span:first-child {
  color: #fff9ed !important;
  -webkit-text-fill-color: #fff9ed !important;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.58);
}

body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list > li > span > small,
body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list > li small {
  color: #dfeff5 !important;
  -webkit-text-fill-color: #dfeff5 !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list > li > strong,
body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list > li > strong > a,
body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list > li > strong > button {
  color: #fff1c8 !important;
  -webkit-text-fill-color: #fff1c8 !important;
}

body.dashboard-page .dashboard-home-grid .mini-calendar-widget .dashboard-mini-calendar header strong,
body.dashboard-page .dashboard-home-grid .mini-calendar-widget .dashboard-mini-calendar header span,
body.dashboard-page .dashboard-home-grid .mini-calendar-widget .mini-calendar-weekdays span,
body.dashboard-page .dashboard-home-grid .mini-calendar-widget .mini-calendar-day:not(.today):not(.selected),
body.dashboard-page .dashboard-home-grid .mini-calendar-widget .mini-calendar-day:not(.today):not(.selected) b {
  color: #f3fbff !important;
  -webkit-text-fill-color: #f3fbff !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

body.dashboard-page .dashboard-home-grid .mini-calendar-widget .mini-calendar-day.today,
body.dashboard-page .dashboard-home-grid .mini-calendar-widget .mini-calendar-day.selected,
body.dashboard-page .dashboard-home-grid .mini-calendar-widget .mini-calendar-day.today b,
body.dashboard-page .dashboard-home-grid .mini-calendar-widget .mini-calendar-day.selected b {
  color: #061421 !important;
  -webkit-text-fill-color: #061421 !important;
  text-shadow: none;
}

body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list > li {
  border-color: rgba(242, 216, 79, 0.18);
  background:
    linear-gradient(145deg, rgba(3, 12, 21, 0.92), rgba(2, 9, 18, 0.96)),
    rgba(2, 9, 18, 0.94);
}

body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list > li > span,
body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list > li > span:first-child {
  color: #fffaf0 !important;
  -webkit-text-fill-color: #fffaf0 !important;
}

body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list > li > span > small,
body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list > li small {
  color: #e8f5f7 !important;
  -webkit-text-fill-color: #e8f5f7 !important;
}

body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list > li > strong,
body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list > li > strong > a,
body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list > li > strong > button {
  color: #fff5cf !important;
  -webkit-text-fill-color: #fff5cf !important;
}

body.dashboard-page .dashboard-home-grid .mini-calendar-widget .dashboard-mini-calendar header strong,
body.dashboard-page .dashboard-home-grid .mini-calendar-widget .dashboard-mini-calendar header span,
body.dashboard-page .dashboard-home-grid .mini-calendar-widget .mini-calendar-weekdays span,
body.dashboard-page .dashboard-home-grid .mini-calendar-widget .mini-calendar-day:not(.today):not(.selected),
body.dashboard-page .dashboard-home-grid .mini-calendar-widget .mini-calendar-day:not(.today):not(.selected) b {
  color: #f7fdff !important;
  -webkit-text-fill-color: #f7fdff !important;
}

body.dashboard-page .dashboard-home-grid .mini-calendar-widget .mini-calendar-day:not(.today):not(.selected) {
  background: rgba(3, 12, 21, 0.82);
}

/* Final dashboard readability guard for dark Rooted themes. */
body.dashboard-page .dashboard-home-grid .rooted-widget {
  color: #f7efe2 !important;
  -webkit-text-fill-color: currentColor;
}

body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list > li,
body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list > li > span,
body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list > li > span:first-child {
  color: #fffaf0 !important;
  -webkit-text-fill-color: #fffaf0 !important;
  opacity: 1 !important;
}

body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list > li > span > small,
body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list > li small {
  color: #ecf8fb !important;
  -webkit-text-fill-color: #ecf8fb !important;
  opacity: 1 !important;
}

body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list > li > strong,
body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list > li > strong > a,
body.dashboard-page .dashboard-home-grid .dashboard-guide-widget .dashboard-guide-list > li > strong > button {
  color: #fff6d2 !important;
  -webkit-text-fill-color: #fff6d2 !important;
  opacity: 1 !important;
}

body.dashboard-page .dashboard-home-grid .mini-calendar-widget .dashboard-mini-calendar header strong,
body.dashboard-page .dashboard-home-grid .mini-calendar-widget .dashboard-mini-calendar header span,
body.dashboard-page .dashboard-home-grid .mini-calendar-widget .mini-calendar-weekdays span,
body.dashboard-page .dashboard-home-grid .mini-calendar-widget .mini-calendar-day:not(.today):not(.selected),
body.dashboard-page .dashboard-home-grid .mini-calendar-widget .mini-calendar-day:not(.today):not(.selected) b {
  color: #f8fdff !important;
  -webkit-text-fill-color: #f8fdff !important;
  opacity: 1 !important;
}

body.dashboard-page .dashboard-home-grid .mini-calendar-widget .mini-calendar-day.today,
body.dashboard-page .dashboard-home-grid .mini-calendar-widget .mini-calendar-day.selected,
body.dashboard-page .dashboard-home-grid .mini-calendar-widget .mini-calendar-day.today b,
body.dashboard-page .dashboard-home-grid .mini-calendar-widget .mini-calendar-day.selected b {
  color: #04111e !important;
  -webkit-text-fill-color: #04111e !important;
  text-shadow: none !important;
}

/* Dashboard contrast safety net for browsers that keep inherited dark fills on nested text. */
body.dashboard-page .dashboard-home-grid [data-widget-id="dashboard-next-step"] .dashboard-guide-list :where(li, span, small) {
  color: #fffaf0 !important;
  -webkit-text-fill-color: #fffaf0 !important;
  opacity: 1 !important;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.58);
}

body.dashboard-page .dashboard-home-grid [data-widget-id="dashboard-next-step"] .dashboard-guide-list :where(small) {
  color: #edf8fb !important;
  -webkit-text-fill-color: #edf8fb !important;
}

body.dashboard-page .dashboard-home-grid [data-widget-id="dashboard-next-step"] .dashboard-guide-list :where(strong, a, button) {
  color: #fff5cf !important;
  -webkit-text-fill-color: #fff5cf !important;
  opacity: 1 !important;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

body.dashboard-page .dashboard-home-grid [data-widget-id="calendar"] .dashboard-mini-calendar :where(header strong, header span, .mini-calendar-weekdays span) {
  color: #f8fdff !important;
  -webkit-text-fill-color: #f8fdff !important;
  opacity: 1 !important;
}

body.dashboard-page .dashboard-home-grid [data-widget-id="calendar"] .dashboard-mini-calendar .mini-calendar-day:not(.today):not(.selected),
body.dashboard-page .dashboard-home-grid [data-widget-id="calendar"] .dashboard-mini-calendar .mini-calendar-day:not(.today):not(.selected) b {
  color: #f5fcff !important;
  -webkit-text-fill-color: #f5fcff !important;
  opacity: 1 !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.54);
}

/* Profile menu readability guard for dark Rooted app themes. */
.page-shell.app-page .top-profile-menu,
.page-shell.app-page .top-profile-menu .profile-chip,
.page-shell.app-page .top-profile-menu .profile-chip :where(div, strong, small),
.page-shell.app-page .top-profile-menu .profile-actions,
.page-shell.app-page .top-profile-menu .profile-actions :where(a, button, strong, span, small),
.page-shell.app-page .top-profile-menu .profile-status-menu,
.page-shell.app-page .top-profile-menu .profile-status-menu :where(span, button) {
  color: #f8f0df !important;
  -webkit-text-fill-color: #f8f0df !important;
  opacity: 1 !important;
}

.page-shell.app-page .top-profile-menu .profile-chip small,
.page-shell.app-page .top-profile-menu .profile-actions small,
.page-shell.app-page .top-profile-menu .profile-status-menu > span {
  color: #dce9ed !important;
  -webkit-text-fill-color: #dce9ed !important;
}

.page-shell.app-page .top-profile-menu .profile-actions {
  background:
    radial-gradient(circle at 10% 0%, rgba(54, 194, 181, 0.14), transparent 12rem),
    linear-gradient(145deg, rgba(5, 18, 30, 0.995), rgba(1, 8, 17, 0.995)) !important;
}

.page-shell.app-page .top-profile-menu .profile-actions :where(a, button),
.page-shell.app-page .top-profile-menu .profile-status-menu {
  border-color: rgba(217, 180, 74, 0.16) !important;
  background: rgba(9, 22, 36, 0.96) !important;
}

.top-profile-menu .profile-actions,
.top-profile-menu .profile-actions *,
.top-profile-menu .profile-status-menu,
.top-profile-menu .profile-status-menu * {
  color: #f8f0df !important;
  -webkit-text-fill-color: #f8f0df !important;
  opacity: 1 !important;
}

.top-profile-menu .profile-actions {
  border-color: rgba(217, 180, 74, 0.32) !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(64, 211, 193, 0.14), transparent 12rem),
    linear-gradient(145deg, rgba(4, 16, 28, 0.995), rgba(0, 7, 15, 0.995)) !important;
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.68);
}

.top-profile-menu .profile-actions :where(a, button) {
  background: rgba(11, 25, 39, 0.98) !important;
  border-color: rgba(217, 180, 74, 0.17) !important;
}

.top-profile-menu .profile-actions :where(a, button, strong, span, small, div),
.top-profile-menu .profile-actions :where(a, button):disabled,
.top-profile-menu .profile-actions :where(a, button)[aria-disabled="true"] {
  color: #f8f0df !important;
  -webkit-text-fill-color: #f8f0df !important;
  opacity: 1 !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.54);
}

.top-profile-menu .profile-actions :where(a, button):disabled,
.top-profile-menu .profile-actions :where(a, button)[aria-disabled="true"] {
  background: rgba(11, 25, 39, 0.86) !important;
  cursor: default;
}

.top-profile-menu .profile-actions small,
.top-profile-menu .profile-status-menu > span {
  color: #dce9ed !important;
  -webkit-text-fill-color: #dce9ed !important;
}

.top-profile-menu .profile-status-menu > div button {
  background: rgba(15, 32, 49, 0.98) !important;
}

.top-profile-menu .profile-actions a:hover,
.top-profile-menu .profile-actions a:focus-visible,
.top-profile-menu .profile-actions button:hover,
.top-profile-menu .profile-actions button:focus-visible {
  color: #fff6d2 !important;
  -webkit-text-fill-color: #fff6d2 !important;
  background: rgba(217, 180, 74, 0.16) !important;
}

/* Dark app surface readability guard: keep form, menu, modal, and status text legible. */
.page-shell.app-page :where(
  .app-main,
  .app-header,
  .app-panel,
  .rooted-widget,
  .status-box,
  .app-status,
  .state-form,
  .app-demo-form,
  .modal-form-grid,
  .app-modal-panel,
  .person-context-menu,
  .weather-settings-menu,
  .dashboard-date-menu,
  .tree-actions-menu,
  .tree-view-controls,
  .compact-toolbar,
  .document-toolbar
),
.page-shell.app-page :where(
  .app-main,
  .app-panel,
  .rooted-widget,
  .status-box,
  .state-form,
  .app-demo-form,
  .modal-form-grid,
  .app-modal-panel,
  .person-context-menu,
  .weather-settings-menu,
  .dashboard-date-menu,
  .tree-actions-menu,
  .tree-view-controls,
  .compact-toolbar,
  .document-toolbar
) :where(h1, h2, h3, h4, p, span, small, strong, b, em, label, li) {
  color: #f6efe3;
  -webkit-text-fill-color: currentColor;
}

.page-shell.app-page :where(
  .app-panel,
  .rooted-widget,
  .status-box,
  .state-form,
  .app-demo-form,
  .modal-form-grid,
  .app-modal-panel,
  .person-context-menu,
  .weather-settings-menu,
  .dashboard-date-menu,
  .tree-actions-menu,
  .tree-view-controls,
  .compact-toolbar,
  .document-toolbar
) :where(p, small, label, .muted, .card-kicker, .widget-header small, .app-list small, .metric-list span) {
  color: #d6e4e8;
  -webkit-text-fill-color: currentColor;
}

.page-shell.app-page :where(input, textarea, select) {
  color: #f6efe3;
  -webkit-text-fill-color: currentColor;
}

.page-shell.app-page :where(input::placeholder, textarea::placeholder) {
  color: #a9bbc2;
  -webkit-text-fill-color: #a9bbc2;
  opacity: 1;
}

body[data-app-theme="rooted_light"] .page-shell.app-page :where(
  .app-main,
  .app-header,
  .app-panel,
  .rooted-widget,
  .status-box,
  .app-status,
  .state-form,
  .app-demo-form,
  .modal-form-grid,
  .app-modal-panel,
  .person-context-menu,
  .weather-settings-menu,
  .dashboard-date-menu,
  .tree-actions-menu,
  .tree-view-controls,
  .compact-toolbar,
  .document-toolbar
),
body[data-app-theme="rooted_light"] .page-shell.app-page :where(
  .app-main,
  .app-panel,
  .rooted-widget,
  .status-box,
  .state-form,
  .app-demo-form,
  .modal-form-grid,
  .app-modal-panel,
  .person-context-menu,
  .weather-settings-menu,
  .dashboard-date-menu,
  .tree-actions-menu,
  .tree-view-controls,
  .compact-toolbar,
  .document-toolbar
) :where(h1, h2, h3, h4, p, span, small, strong, b, em, label, li),
body[data-app-theme="rooted_light"] .page-shell.app-page :where(input, textarea, select) {
  color: #09131d;
  -webkit-text-fill-color: currentColor;
}

body[data-app-theme="rooted_light"] .page-shell.app-page :where(
  .app-panel,
  .rooted-widget,
  .status-box,
  .state-form,
  .app-demo-form,
  .modal-form-grid,
  .app-modal-panel,
  .person-context-menu,
  .weather-settings-menu,
  .dashboard-date-menu,
  .tree-actions-menu,
  .tree-view-controls,
  .compact-toolbar,
  .document-toolbar
) :where(p, small, label, .muted, .card-kicker, .widget-header small, .app-list small, .metric-list span),
body[data-app-theme="rooted_light"] .page-shell.app-page :where(input::placeholder, textarea::placeholder) {
  color: #44545d;
  -webkit-text-fill-color: #44545d;
}

.family-update-media-picker .media-attachment-control,
.family-update-media-picker input[type="file"],
.family-update-media-preview :where(span, strong, small, em, i) {
  color: #f8f0df !important;
  -webkit-text-fill-color: currentColor;
  opacity: 1 !important;
}

.family-update-media-picker .media-attachment-control {
  border-color: rgba(217, 180, 74, 0.44);
  background:
    radial-gradient(circle at 0% 0%, rgba(64, 211, 193, 0.16), transparent 13rem),
    rgba(2, 10, 19, 0.92);
}

body:not([data-app-theme="rooted_light"]) .page-shell.app-page :where(
  .rooted-widget,
  .app-panel,
  .status-box,
  .family-checkin-board,
  .checkin-person-card,
  .profile-checkin-inline,
  .weather-card,
  .reference-memory-card,
  .memory-copy,
  .morning-news-section,
  .settings-workspace,
  .timeline-workspace,
  .app-modal,
  .app-modal-panel,
  .document-toolbar,
  .compact-toolbar
) :where(h1, h2, h3, h4, p, span, small, strong, b, em, label, li, a:not(.app-action):not(.inline-widget-link):not(.memory-image-link)) {
  color: #f7efe0;
  -webkit-text-fill-color: currentColor;
  opacity: 1;
}

body:not([data-app-theme="rooted_light"]) .page-shell.app-page :where(
  .rooted-widget,
  .app-panel,
  .status-box,
  .family-checkin-board,
  .checkin-person-card,
  .profile-checkin-inline,
  .weather-card,
  .reference-memory-card,
  .memory-copy,
  .morning-news-section,
  .settings-workspace,
  .timeline-workspace,
  .app-modal,
  .app-modal-panel,
  .document-toolbar,
  .compact-toolbar
) :where(p, small, label, .muted, .card-kicker, .widget-header small, .app-list small, .metric-list span) {
  color: #dbe8ec;
  -webkit-text-fill-color: currentColor;
}

body:not([data-app-theme="rooted_light"]) .page-shell.app-page :where(.app-list strong, .metric-list strong, .inline-widget-link) {
  color: #fff2cd;
  -webkit-text-fill-color: currentColor;
}

body:not([data-app-theme="rooted_light"]) .page-shell.app-page .status-box.app-status:not([data-state]) {
  color: #eaf4f5;
  -webkit-text-fill-color: currentColor;
  background: rgba(3, 18, 30, 0.78);
  border-color: rgba(217, 180, 74, 0.18);
}

body:not([data-app-theme="rooted_light"]) .page-shell.app-page :where(
  .dashboard-guide-list li,
  .dashboard-guide-list li > span,
  .family-checkin-person,
  .family-checkin-person span,
  .checkin-person-card,
  .checkin-person-card span,
  .profile-checkin-inline,
  .profile-checkin-inline span
) {
  color: #fff6e7 !important;
  -webkit-text-fill-color: #fff6e7 !important;
  opacity: 1 !important;
}

body:not([data-app-theme="rooted_light"]) .page-shell.app-page :where(
  .dashboard-guide-list small,
  .family-checkin-person small,
  .checkin-person-card small,
  .profile-checkin-inline small
) {
  color: #dfecef !important;
  -webkit-text-fill-color: #dfecef !important;
  opacity: 1 !important;
}

/* Final Rooted app contrast patch for dark launch themes. */
body:not([data-app-theme="rooted_light"]) .page-shell.app-page :where(
  .status-box,
  .app-status,
  .checkins-start-panel,
  .app-fallback-panel,
  .profile-ready-fallback,
  .person-dashboard-hero,
  .profile-snapshot-hero,
  .top-profile-menu .profile-actions,
  .top-profile-menu .profile-status-menu
) {
  color: #f8f0df !important;
  -webkit-text-fill-color: currentColor !important;
  border-color: rgba(217, 180, 74, 0.24) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(64, 211, 193, 0.13), transparent 14rem),
    linear-gradient(145deg, rgba(4, 17, 29, 0.96), rgba(1, 8, 17, 0.98)) !important;
}

body:not([data-app-theme="rooted_light"]) .page-shell.app-page :where(
  .status-box,
  .app-status,
  .checkins-start-panel,
  .app-fallback-panel,
  .profile-ready-fallback,
  .person-dashboard-hero,
  .profile-snapshot-hero,
  .top-profile-menu .profile-actions,
  .top-profile-menu .profile-status-menu
) :where(h1, h2, h3, h4, p, span, strong, b, em, label, li, a, button) {
  color: #f8f0df !important;
  -webkit-text-fill-color: currentColor !important;
  opacity: 1 !important;
}

body:not([data-app-theme="rooted_light"]) .page-shell.app-page :where(
  .status-box,
  .app-status,
  .checkins-start-panel,
  .app-fallback-panel,
  .profile-ready-fallback,
  .person-dashboard-hero,
  .profile-snapshot-hero,
  .top-profile-menu .profile-actions,
  .top-profile-menu .profile-status-menu
) :where(p, small, .card-kicker, .profile-rights-note) {
  color: #dce9ed !important;
  -webkit-text-fill-color: #dce9ed !important;
}

body:not([data-app-theme="rooted_light"]) .page-shell.app-page :where(
  .top-profile-menu .profile-actions a,
  .top-profile-menu .profile-actions button,
  .top-profile-menu .profile-status-menu button
) {
  background: rgba(10, 25, 39, 0.98) !important;
}

/* July 2026 care, dashboard, and family-tree refinement. */
.trust-list strong a {
  color: inherit;
  text-decoration-color: rgba(217, 180, 74, 0.48);
  text-underline-offset: 3px;
}

.pricing-note span,
.feature-boundary-note {
  display: block;
  margin-top: 10px;
}

.feature-boundary-note {
  width: min(920px, calc(100% - 40px));
  margin: 18px auto 42px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

body.dashboard-page .dashboard-home-grid [data-widget-id="dashboard-next-step"] .dashboard-guide-list > li {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 9px 10px;
}

body.dashboard-page .dashboard-home-grid [data-widget-id="dashboard-next-step"] .dashboard-guide-list > li > span,
body.dashboard-page .dashboard-home-grid [data-widget-id="dashboard-next-step"] .dashboard-guide-list > li > strong {
  min-width: 0;
}

body.dashboard-page .dashboard-home-grid [data-widget-id="dashboard-next-step"] .dashboard-guide-list > li > strong {
  justify-self: end;
}

body.dashboard-page .dashboard-home-grid [data-widget-id="dashboard-next-step"] .dashboard-guide-list :where(a, button) {
  width: auto;
  max-width: 100%;
  justify-content: center;
  white-space: nowrap;
}

.gold-family-connectors .tree-segment,
.tree-connectors-traditional .tree-segment {
  opacity: 0.78;
  background: linear-gradient(90deg, rgba(178, 144, 54, 0.24), rgba(238, 219, 146, 0.82), rgba(178, 144, 54, 0.24));
  box-shadow: 0 0 6px rgba(217, 180, 74, 0.18);
}

.tree-connectors-traditional .tree-parent-drop,
.tree-connectors-traditional .tree-child-drop,
.tree-connectors-traditional .tree-family-rail {
  opacity: 0.76;
}

.tree-connectors-traditional .tree-connector-spouse_of .tree-segment {
  opacity: 0.64;
  background: linear-gradient(90deg, rgba(98, 202, 181, 0.22), rgba(123, 224, 205, 0.7), rgba(98, 202, 181, 0.22));
}

.family-person .person-photo:not(.has-photo) {
  color: #281c0d;
  font-size: 13px;
  font-weight: 900;
}

.family-person:focus-visible .person-photo {
  outline: 3px solid #f4db79;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(2, 9, 18, 0.86), 0 0 28px rgba(217, 180, 74, 0.34);
}

.tree-view-controls .tree-focus-button {
  min-height: 32px;
  padding: 0 11px;
  color: #fff4d8;
  border: 1px solid rgba(217, 180, 74, 0.34);
  border-radius: 999px;
  background: rgba(217, 180, 74, 0.1);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.tree-view-controls .tree-focus-button:hover,
.tree-view-controls .tree-focus-button:focus-visible {
  color: #061421;
  background: var(--app-gold);
  outline: none;
}

.family-tree-widget .tree-popup-card {
  position: fixed;
  top: 72px;
  right: 24px;
  bottom: 18px;
  left: auto;
  z-index: 80;
  width: min(390px, calc(100vw - 48px));
  max-height: none;
  overscroll-behavior: contain;
}

.tree-popup-close {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  margin-left: auto;
}

.family-tree-widget .tree-popup-card .tree-actions-menu :where(a, button) {
  width: auto;
  min-height: 38px;
  justify-content: flex-start;
  text-align: left;
}

.family-tree-widget .tree-popup-card .tree-actions-menu .primary-tree-action {
  color: #061421;
  border-color: rgba(242, 216, 79, 0.7);
  background: linear-gradient(135deg, #f0d64f, #d9b44a);
}

@media (max-width: 700px) {
  .page-shell.app-page .app-main {
    padding-bottom: 126px;
  }

  body.dashboard-page .dashboard-home-grid [data-widget-id="dashboard-next-step"] .dashboard-guide-list > li {
    grid-template-columns: minmax(0, 1fr);
  }

  body.dashboard-page .dashboard-home-grid [data-widget-id="dashboard-next-step"] .dashboard-guide-list > li > strong {
    width: 100%;
    justify-self: stretch;
  }

  body.dashboard-page .dashboard-home-grid [data-widget-id="dashboard-next-step"] .dashboard-guide-list :where(a, button) {
    width: 100%;
    min-height: 40px;
    justify-content: center;
  }

  .interactive-family-tree[data-mobile-branch-view="true"] .oak-tree-canvas.tree-layout-close-family {
    min-height: 980px;
  }

  .interactive-family-tree[data-mobile-branch-view="true"] .family-person {
    width: 86px;
  }

  .interactive-family-tree[data-mobile-branch-view="true"] .family-person .person-photo {
    inline-size: 54px;
    block-size: 54px;
    min-inline-size: 54px;
    min-block-size: 54px;
    max-inline-size: 54px;
    max-block-size: 54px;
  }

  .interactive-family-tree[data-mobile-branch-view="true"] .family-person strong {
    max-width: 84px;
    font-size: 10px;
  }

  .interactive-family-tree[data-mobile-branch-view="true"] .family-person em {
    max-width: 84px;
    overflow: visible;
    font-size: 9px;
    line-height: 1.1;
    text-align: center;
    text-overflow: clip;
    white-space: normal;
  }

  .family-tree-widget .tree-popup-card {
    top: 10px;
    right: 10px;
    bottom: 88px;
    left: 10px;
    width: auto;
    max-height: none;
  }

  .tree-view-controls {
    align-items: center;
  }

  .tree-view-controls > span {
    flex: 1 1 100%;
    text-align: center;
  }
}
