/* 百家姓组件系统 / 8px spacing, readable type, optical 24px icons. */
:root {
  --ui-font: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  --ink: #29372e;
  --muted: #70796e;
  --line: #e0e5db;
  --paper: #f4f6f0;
  --white: #fff;
  --red: #34513d;
  --red-dark: #263e2e;
  --gold: #ae9058;
  --ui-radius: 12px;
  --ui-control: 44px;
  font-family: var(--ui-font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}
body { font-family: var(--ui-font); }
button, input, select, textarea { font-family: var(--ui-font); }
button, input, select, textarea, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible { outline: 3px solid #ae905875; outline-offset: 3px; }
h1, h2, h3 { color: var(--ink); }
.icon { width: 20px; height: 20px; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.icon-accent { stroke: var(--gold); }
.btn.primary .icon-accent, .profile-card .icon-accent { stroke: currentColor; }
.heritage-icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; flex-shrink: 0; color: #476146; mix-blend-mode: normal; }
.heritage-icon > .icon { width: 32px; height: 32px; }
.setting-icon { width: 36px; height: 36px; border-radius: 10px; background: #edf2e7; color: #6c835d; box-shadow: none; }
.setting-icon .icon { width: 20px; height: 20px; }
.avatar { background: #e8eee1; color: #667b55; font-family: var(--serif); border: 0; }
.avatar.rose { background: #f4eae1; color: #a47e64; }
.avatar.large { width: 60px; height: 60px; font-size: 29px; }
.avatar.tiny { width: 30px; height: 30px; font-size: 16px; }
.btn {
  min-height: var(--ui-control); padding: 10px 18px; display: inline-flex;
  align-items: center; justify-content: center; gap: 8px; border: 1px solid #d4dccb;
  border-radius: 8px; color: #4b6043; background: #fff; font-size: 14px;
  line-height: 1.5; font-weight: 500; box-shadow: none; white-space: nowrap;
}
.btn:hover { background: #f0f4e9; border-color: #9dad8a; box-shadow: none; transform: none; }
.btn.primary { background: #34513d; border-color: #34513d; color: #fffdf2; }
.btn.primary:hover { background: #253f2d; border-color: #9b8a59; }
.btn.ghost { background: transparent; color: #5e7450; border-color: #c9d3bc; }
.btn.subtle { background: #f0f4e8; color: #637c50; border-color: #e0e8d4; }
.btn .icon { width: 18px; height: 18px; }
button:disabled, .btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.icon-btn { width: 40px; height: 40px; min-height: 40px; padding: 8px; border-radius: 8px; color: #7b8b6b; }
.icon-btn:hover { background: #edf2e4; }
.quiet-link, .text-link { font-size: 13px; line-height: 1.6; gap: 7px; }
.quiet-link { color: #7b8472; }
.text-link { color: #527244; padding: 6px 0; }
.quiet-link .icon, .text-link .icon { width: 16px; height: 16px; }
.text-link.danger, .danger { color: #a26c50; }
.pill, .readonly-badge, .pending-badge, .service-status {
  display: inline-flex; align-items: center; gap: 4px; border: 0; border-radius: 5px;
  padding: 4px 8px; font-size: 11px; line-height: 1.5; letter-spacing: 0;
  background: #eff3e7; color: #7d8a6a; box-shadow: none;
}
.pending-badge { color: #987f4e; background: #f7f1e3; }
.readonly-badge { color: #69785c; background: #f1f4eb; }
.service-status { color: #69785c; background: #f4f1e6; white-space: normal; text-align: center; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-head > div:first-child { min-width: 0; }
.page-head .eyebrow { display: none; }
.page-head h1 { font: 600 28px/1.45 var(--ui-font); letter-spacing: 0; margin: 0 0 8px; color: #35472f; }
.page-head p { font-size: 13px; color: #7b8472; line-height: 1.8; margin: 0; }
.page-actions { display: flex; gap: 10px; flex-shrink: 0; margin: 0; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px; }
.section-head > div:first-child { min-width: 0; }
.section-head h2 { font: 600 19px/1.5 var(--ui-font); color: #48633c; letter-spacing: 0; display: flex; align-items: center; gap: 8px; }
.section-head p { font-size: 12px; line-height: 1.85; color: #69785c; margin-top: 6px; }
.section-head .eyebrow { display: none; }
.editorial-heading { padding: 24px 0 18px; }
.editorial-heading h2 { font: 600 21px/1.5 var(--serif); letter-spacing: 1px; }
.panel, .personal-menu, .personal-options, .memory-card, .media-card {
  background: #fff; border: 1px solid #e2e7d8; border-radius: var(--ui-radius); box-shadow: none; overflow: hidden;
}
.muted, .storage-note { color: #69785c; font-size: 13px; line-height: 1.9; }
.page-end, .design-end-note { color: #69785c; font-size: 12px; padding: 28px 0 8px; }
/* One field surface. Inputs inside a search field never draw a second box. */
:where(input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea) {
  min-height: 44px; padding: 10px 12px; border: 1px solid #dce3cf; border-radius: 8px;
  background: #fbfcf7; color: #4b633f; font-size: 14px; line-height: 1.6; box-shadow: none;
}
input::placeholder, textarea::placeholder { color: #69785c; opacity: 1; }
textarea { min-height: 116px; resize: vertical; }
input:disabled, select:disabled { color: #69785c; background: #f2f4ec; opacity: 1; cursor: not-allowed; }
input[type=checkbox], input[type=radio] { width: 19px; height: 19px; accent-color: #45683a; vertical-align: middle; }
.search-field { display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 13px; background: #f8faf3; border: 1px solid #dce4cf; border-radius: 9px; color: #69785c; box-shadow: none; }
.search-field > input { min-height: 44px; width: 100%; flex: 1; min-width: 0; padding: 10px 0; border: 0; outline: none; border-radius: 0; background: transparent; font-size: 14px; color: #536c45; box-shadow: none; }
.search-field:focus-within { border-color: #a5b58d; box-shadow: 0 0 0 3px #dfe8ce77; }
.search-field > input:focus-visible { outline: none; }
.search-field > .icon { width: 18px; height: 18px; color: #69785c; }
.search-field > span { color: #69785c; font-size: 12px; white-space: nowrap; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { min-height: 38px; padding: 8px 14px; font-size: 13px; border: 1px solid #dce5cf; border-radius: 7px; background: #fff; color: #69785c; }
.chip.active { border-color: #a9bc8e; background: #e8f0dc; color: #5b7944; box-shadow: none; }
/* Shell. Navigation uses one vector family and a stable reading column. */
.sidebar { width: 216px; padding: 28px 18px 20px; border-right: 1px solid #dfe7d3; background: #fbfcf7; }
.sidebar .nav-item { font-size: 14px; line-height: 1.6; min-height: 46px; padding: 11px 14px; gap: 12px; border-radius: 8px; color: #69785c; }
.sidebar .nav-item .icon { height: 20px; width: 20px; }
.sidebar .nav-item.active { background: #e9f1dd; color: #4f713c; box-shadow: inset 2px 0 #a99b62; }
.sidebar .nav-dot { display: none; }
.sidebar-family { margin: 28px 0 24px; padding: 16px 10px; background: #f0f5e6; border-top: 1px solid #bfa970; border-bottom: 1px solid #dfe8cf; }
.sidebar-family select { border: 0; background: transparent; padding: 8px 0; color: #67814d; font-size: 13px; min-height: 0; }
.mini-label, .live-tag { font-size: 11px; letter-spacing: 0; color: #69785c; }
.sidebar-bottom .quiet-link { font-size: 12px; }
.side-quote { font-size: 14px; line-height: 2.1; color: #69785c; }
.side-quote span { font-size: 12px; color: #69785c; }
.app-header { height: 68px; padding: 0 32px; background: #fffffc; border-bottom: 1px solid #e1e8d6; }
.header-actions { gap: 18px; }
.breadcrumbs { font-size: 12px; color: #69785c; }
.breadcrumbs strong { color: #71895a; }
.user-link { font-size: 12px; color: #758e5c; }
.content { padding: 28px 32px 36px; background: var(--paper); scrollbar-gutter: stable; }
.view-shell { width:100%; max-width:1600px; min-width:0; margin-inline:auto; }
.view-shell > * { width:100%; max-width:none; margin-inline:0; }
.content[data-page=add] .view-shell { max-width:1080px; }
.desktop-family-hero { border-radius: 12px; min-height: 284px; }
.desktop-family-hero .hero-copy { padding: 30px; }
.desktop-family-hero .hero-tag, .desktop-family-hero .hero-copy small { font-size: 12px; }
.desktop-family-hero .hero-copy > p { font-size: 15px; color: #69785c; }
.stats-grid { margin-bottom: 24px; padding: 23px 0; }
.stat-number { font-size: 30px; color: #68864f; }
.stat-label { font-size: 12px; color: #69785c; }
.overview-columns { gap: 24px; }
.overview-columns > .panel { border: 1px solid #e3ead7; border-radius: 12px; }
.overview-columns .section-head { padding: 23px; }
.tree-preview { padding: 0 23px 22px; }
.mini-node { padding: 11px 9px; border-radius: 7px; border: 1px solid #dce6cf; background: #f6f9f0; gap: 7px; }
.mini-node strong { font: 500 13px/1.5 var(--ui-font); color: #758e5e; }
.mini-node small { font-size: 10px; color: #69785c; }
.preview-generation > span { font-size: 11px; color: #69785c; }
.panel-foot { font-size: 12px; color: #69785c; padding: 12px 22px; background: #f8fbf1; }
.activity-row { padding: 16px 0; gap: 12px; }
.activity-row strong { color: #768d5e; font-size: 13px; }
.activity-row small { font-size: 11px; color: #69785c; }
.activity-mark { border-radius: 8px; background: #f0f5e4; color: #69785c; }
.record-invitation { margin: 18px 23px; padding: 15px; border-radius: 0 7px 7px 0; background: #f0f5e5; }
.record-invitation span { font-size: 11px; color: #69785c; }
.record-invitation strong { font-size: 13px; color: #69785c; }
/* Member directory: one search panel, open grid, clear archive cards. */
.member-directory { border: 0; background: transparent; overflow: visible; }
.member-toolbar { display: flex; flex-wrap: wrap; gap: 12px; padding: 16px; background: #fff; border: 1px solid #e1e9d5; border-radius: 12px; }
.member-toolbar .search-field { flex: 1; min-width: 220px; }
.member-toolbar > select { width: 152px; font-size: 13px; }
.result-meta { display: flex; justify-content: space-between; align-items: center; padding: 15px 2px; font-size: 13px; color: #69785c; }
.result-meta .text-link { font-size: 12px; }
.member-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; padding: 0; }
.member-card { position: relative; border: 1px solid #e0e9d2; border-radius: 12px; padding: 25px 18px 0; background: #fff; box-shadow: none; }
.member-card:hover { transform: none; box-shadow: 0 6px 18px #667f2f09; border-color: #b9cba0; }
.member-card > .avatar { width: 52px; height: 52px; font-size: 27px; }
.member-card h3 { font: 600 17px/1.6 var(--ui-font); color: #5b7847; margin: 11px 0 3px; }
.member-card p { font-size: 12px; color: #69785c; margin: 0 0 8px; }
.member-meta { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: #69785c; }
.member-meta .icon { width: 13px; height: 13px; }
.generation-pill { font-size: 10px; right: 10px; top: 10px; color: #69785c; background: #f2f6e9; border-radius: 4px; padding: 3px 5px; }
.member-card-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding: 12px 0; border-top: 1px solid #e6eddc; font-size: 11px; color: #69785c; }
.member-card-bottom > .icon { width: 15px; height: 15px; }
/* Personal archive: identity, section navigation, content, then media. */
.back-row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.back-row .quiet-link { min-height: 32px; font-size: 12px; }
.person-hero { display: grid; grid-template-columns: 80px minmax(0,1fr) auto; gap: 24px; align-items: center; padding: 28px; min-height: 0; border: 1px solid #e0e8d4; border-top: 2px solid #b8a269; border-radius: 12px; background: #fff; box-shadow: none; margin: 0; }
.person-hero > .portrait { height: 76px; width: 76px; font-size: 36px; background: #edf3e1; border: 0; }
.person-identity { min-width: 0; }
.person-identity .eyebrow { font-size: 12px; letter-spacing: 0; color: #69785c; }
.person-identity h1 { font: 600 30px/1.5 var(--ui-font); color: #567441; letter-spacing: 1px; display: flex; align-items: center; gap: 12px; margin: 5px 0; white-space: nowrap; }
.person-gender { font: 11px/1.5 var(--ui-font); letter-spacing: 0; border: 1px solid #d2dfbf; background: #f8fbf1; color: #69785c; padding: 1px 5px; border-radius: 4px; }
.person-identity p { font-size: 13px; color: #69785c; margin: 0; }
.person-identity > small { font-size: 12px; display: block; letter-spacing: 0; color: #69785c; margin-top: 5px; }
.person-actions { margin: 0; padding: 0; border: 0; }
.person-actions:before, .person-actions:after { display: none; }
.person-actions .btn { font-size: 13px; }
.person-section-nav { display: flex; gap: 22px; align-items: center; border-bottom: 1px solid #dfe8d1; padding: 5px 0; margin: 12px auto 24px; }
.person-section-nav button { display: inline-flex; align-items: center; gap: 7px; padding: 12px 3px; font-size: 13px; color: #69785c; border-bottom: 2px solid transparent; }
.person-section-nav button:hover { border-color: #b6a36c; color: #6c8b50; }
.person-section-nav .icon { width: 17px; height: 17px; }
.person-columns { grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: start; margin-bottom: 24px; }
.person-columns > div { min-width: 0; }
.person-columns .panel { margin-bottom: 20px; }
.bio-text { padding: 0 24px 24px; color: #69785c; font-size: 14px; line-height: 2; }
.relatives { padding: 0 24px 24px; gap: 12px; }
.relative-card { padding: 14px; gap: 10px; border: 1px solid #dfe9d0; border-radius: 8px; background: #f8fbf1; }
.relative-card strong { font: 500 14px/1.6 var(--ui-font); color: #69785c; }
.relative-card small { font-size: 11px; color: #69785c; }
.relative-card > .icon { width: 16px; height: 16px; color: #69785c; }
.info-panel dl { padding: 0 24px 12px; }
.info-panel dl > div { padding: 13px 0; font-size: 13px; border-color: #e6efda; }
.info-panel dt { color: #69785c; }
.info-panel dd { color: #69785c; }
.info-note { padding: 15px 24px; background: #f5faed; border-color: #e0ebd0; color: #69785c; font-size: 12px; }
.info-panel .small-seal { width: 28px; height: 31px; font-size: 19px; }
/* Memory and media cards. Media type tabs use a single segmented surface. */
.memory-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.memory-cover { height: 194px; border-radius: 11px 11px 0 0; }
.cover-tag { font-size: 11px; padding: 4px 8px; border-radius: 4px; background: #fffff5eb; color: #69785c; }
.memory-body { padding: 20px; }
.memory-date { color: #69785c; font-size: 11px; }
.memory-body h3 { font: 600 18px/1.7 var(--ui-font); color: #61884b; margin: 8px 0; }
.memory-body > p { color: #69785c; font-size: 13px; line-height: 1.95; }
.memory-bottom { margin-top: 18px; padding-top: 12px; border-color: #e5eed8; }
.memory-bottom .text-link, .like-btn { font-size: 12px; }
.like-btn { color: #69785c; padding: 6px; }
.like-btn .icon { width: 17px; height: 17px; }
.like-btn.liked { color: #ad7b58; }
.media-entry { display: flex; align-items: center; gap: 13px; border: 1px solid #dce8c9; background: #eff6e4; border-radius: 12px; padding: 19px; margin: 0 0 22px; }
.media-entry > span:nth-last-child(2) { flex: 1; min-width: 0; }
.media-entry strong { font-size: 14px; color: #69785c; }
.media-entry small { font-size: 12px; color: #69785c; line-height: 1.8; margin-top: 4px; }
.media-entry > .icon { color: #69785c; width: 18px; height: 18px; }
.media-entry-icons { display: inline-flex; gap: 6px; color: #69785c; }
.media-entry-icons .icon { height: 19px; width: 19px; }
.media-panel { margin-bottom: 24px; }
.media-panel .section-head { align-items: start; }
.media-panel .section-head > .btn { flex-shrink: 0; }
.media-tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; margin: 0 24px 18px; padding: 4px; background: #f2f6e9; border: 0; border-radius: 9px; }
.media-tab { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 7px 8px; border: 1px solid transparent; border-radius: 6px; background: transparent; font-size: 13px; color: #69785c; box-shadow: none; }
.media-tab.active { border-color: #d8e6c2; background: #fff; color: #69785c; box-shadow: 0 1px 3px #78943b09; }
.media-tab span { background: transparent; color: #69785c; padding: 0; font-size: 11px; border: 0; }
.media-tab.active span { background: transparent; color: #69785c; }
.media-member-filter { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 0 24px 18px; border-top: 0; }
.media-member-filter label { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #69785c; }
.media-member-filter select { padding: 8px 12px; min-height: 40px; font-size: 13px; min-width: 140px; }
.media-member-filter > span { font-size: 12px; color: #69785c; }
.media-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; padding: 0 24px 24px; }
.media-card { border: 1px solid #e0ebd0; border-radius: 10px; }
.media-card .media-preview img { height: 200px; width: 100%; object-fit: cover; }
.media-type-label { color: #69785c; background: #f9fdefee; font-size: 10px; border-radius: 4px; padding: 4px 8px; }
.voice-art { background: #f0f7e3; min-height: 140px; padding: 22px 12px 6px; color: #69785c; }
.voice-art > .icon { height: 27px; width: 27px; color: #69785c; }
.voice-art > span { color: #69785c; font: 13px/1.8 var(--ui-font); margin-top: 8px; }
.voice-wave { margin: 12px 0 7px; height: 30px; gap: 4px; }
.voice-wave i { width: 3px; background: #b3ce91; }
.media-card audio { width: calc(100% - 24px); margin: 0 12px 15px; }
.media-card video { display: block; width: 100%; height: 200px; object-fit: contain; background: #dfeace; }
.media-card-body { padding: 18px; }
.media-card-body h3 { font: 600 16px/1.7 var(--ui-font); color: #69785c; }
.media-card-body > p { font-size: 12px; line-height: 1.9; color: #69785c; margin-top: 8px; min-height: 0; }
.media-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-color: #e6efd8; padding-top: 13px; margin-top: 14px; font-size: 11px; color: #69785c; }
.media-card-meta .text-link { font-size: 12px; }
.media-empty, .empty, .personal-empty { grid-column: 1/-1; padding: 32px 16px; text-align: center; color: #69785c; }
.media-empty img, .empty img, .personal-empty img { height: 94px; width: 120px; object-fit: contain; margin: 0 auto 16px; }
.media-empty h3, .empty h3, .personal-empty h3 { font: 600 19px/1.7 var(--ui-font); color: #69785c; }
.media-empty p, .empty p, .personal-empty p { font-size: 13px; color: #69785c; line-height: 1.9; margin-top: 9px; }
/* Profile: one identity row, linked metrics, consistently aligned menu rows. */
.profile-card { display: grid; grid-template-columns: 60px minmax(0,1fr) 32px; gap: 20px; align-items: center; padding: 24px; background: #3d593b; border: 1px solid #3d593b; border-top: 1px solid #b8a56d; border-radius: 12px; box-shadow: none; }
.profile-card .avatar { height: 60px; width: 60px; font-size: 31px; background: #58744a; color: #dde9c6; border: 1px solid #8caa6c; }
.profile-card .eyebrow { font-size: 11px; line-height: 1.6; color: #b6d299; letter-spacing: 0; }
.profile-card h2 { font: 500 25px/1.5 var(--ui-font); color: #f6ffe8; margin: 5px 0; }
.profile-card p { font-size: 12px; color: #c4dfa5; line-height: 1.7; }
.profile-card-action { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; padding: 0; border: 1px solid #91af70; border-radius: 50%; background: none; color: #d3edb0; }
.profile-card-action .icon { width: 17px; height: 17px; }
.profile-stats, .personal-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; padding: 0; margin: 22px 0 28px; }
.profile-stats > div, .personal-metric { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 0; min-height: 57px; border-right: 1px solid #dfe8cf; }
.profile-stats > div:last-child, .personal-metric:last-child { border-right: 0; }
.profile-stats strong, .personal-metric strong { font: 28px/1.4 Georgia,serif; color: #69785c; }
.profile-stats span, .personal-metric span { color: #69785c; font-size: 12px; }
.profile-grid { grid-template-columns: 1.2fr 1fr; gap: 24px; }
.settings-row { min-height: 82px; gap: 14px; padding: 20px 24px; border-color: #e7efda; }
.settings-row strong { font: 500 14px/1.7 var(--ui-font); color: #69785c; }
.settings-row small { font-size: 12px; color: #69785c; line-height: 1.8; }
.settings-row > .icon { color: #69785c; width: 17px; height: 17px; }
.request-list { padding: 0 24px 22px; color: #69785c; }
.request-row { padding: 16px 0; border-color: #e5f0d6; }
.request-row strong { font-size: 14px; color: #69785c; }
.request-row small { font-size: 12px; color: #69785c; }
.profile-settings .storage-note { margin: 0 24px 22px; background: #f3f9e8; padding: 14px; border-radius: 8px; font-size: 12px; color: #69785c; }
.setting-family { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 24px 20px; font-size: 13px; color: #69785c; }
.setting-family select { max-width: 68%; font-size: 12px; }
.personal-groups { display: grid; gap: 24px; }
.personal-group { margin: 0; }
.personal-group > h2 { font: 500 13px/1.6 var(--ui-font); letter-spacing: 0; color: #69785c; margin: 0 0 10px; padding-left: 2px; }
.profile-menu-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 66px; text-align: left; padding: 15px 18px; border-bottom: 1px solid #e6efd9; }
.profile-menu-row:last-child { border-bottom: 0; }
.profile-menu-label { flex: 1; min-width: 0; font-size: 14px; line-height: 1.7; color: #69785c; }
.profile-menu-row > .icon { width: 16px; height: 16px; color: #69785c; }
.menu-value { font-size: 11px; color: #69785c; white-space: nowrap; }
.personal-options summary { display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 15px 18px; color: #69785c; font-size: 14px; }
.personal-options summary > span:nth-child(2) { flex: 1; }
.personal-options summary > .icon { height: 16px; width: 16px; color: #69785c; }
.personal-options-body { padding: 18px; }
.personal-options-body > label { display: block; font-size: 12px; color: #69785c; margin-bottom: 9px; }
.personal-options-body > select { width: 100%; }
.personal-options-body > p { color: #69785c; font-size: 12px; line-height: 1.9; margin-top: 12px; }
.personal-options-body .profile-menu-row { padding-left: 0; padding-right: 0; }
/* Tree controls keep labels and gestures in distinct, uncluttered rows. */
.tree-panel { border-radius: 12px; border: 1px solid #dce9cc; background: #fff; }
.tree-scope-bar { padding: 20px 24px 16px; background: #f9fcf3; border-color: #e0ecd0; }
.scope-tabs { display: flex; gap: 8px; }
.scope-tab { min-height: 42px; padding: 10px 18px; font-size: 13px; line-height: 1.5; border: 1px solid #deebce; background: #fff; border-radius: 7px; color: #69785c; }
.scope-tab.active { color: #69785c; border-color: #bad59c; background: #edf7df; box-shadow: none; }
.tree-scope-bar > p { color: #69785c; font-size: 12px; line-height: 1.8; margin-top: 12px; }
.branch-picker { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 12px; color: #69785c; }
.branch-picker[hidden] { display: none; }
.branch-picker select { min-height: 40px; font-size: 13px; }
.tree-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 18px 24px; border-color: #e4efd6; }
.tree-toolbar .search-field { flex: 1; min-width: 220px; }
.select-label { display: flex; align-items: center; gap: 9px; font-size: 12px; color: #69785c; }
.select-label select { min-height: 44px; font-size: 13px; }
.tree-toolbar-actions { display: flex; align-items: center; gap: 8px; }
.tree-toolbar-actions .btn { font-size: 12px; }
.fullscreen-button { height: 44px; width: 44px; background: #f5faed; color: #69785c; border: 1px solid #dceccd; border-radius: 8px; }
.tree-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding: 12px 24px; font-size: 11px; color: #69785c; background: #fafdf5; border-color: #e8f1de; }
.tree-instruction { margin-left: auto; font-size: 11px; color: #69785c; }
.tree-scroll { height: 488px; background-color: #fcfef7; background-image: radial-gradient(#d0dfbd .65px, transparent .65px); }
.tree-node > a { background: #fff; border-color: #c4d7ae; border-radius: 9px; box-shadow: 0 3px 8px #78954b08; }
.tree-node strong { font: 600 14px/1.6 var(--ui-font); color: #69785c; }
.tree-node small { font-size: 10px; color: #69785c; }
.tree-node .avatar { color: #69785c; background: #f0f8e3; }
.tree-node.matched > a { border-color: #bba269; box-shadow: 0 0 0 3px #e6d9b277; }
.branch-toggle { color: #69785c; border-color: #d8e8c8; background: #fffef6; }
.tree-lines path { stroke: #c6d9ae; }
.tree-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; background: #fbfef5; border-color: #e4f0d7; font-size: 12px; color: #69785c; }
.tree-controls, .zoom-controls { display: flex; align-items: center; gap: 2px; padding: 0; border: 0; border-radius: 8px; background: #f3f9e9; box-shadow: none; }
.zoom-controls output { min-width: 44px; text-align: center; font: 12px/1.5 var(--ui-font); color: #69785c; }
.tip-bar { margin-top: 20px; padding: 16px; color: #69785c; font-size: 12px; background: #f1f9e4; border-color: #e2efd3; border-radius: 10px; }
.tip-bar .text-link { font-size: 12px; }
.tree-panel.is-fullscreen { position: fixed; inset: 0; z-index: 20; width: 100%; height: 100dvh; max-width: none; margin: 0; border: 0; border-radius: 0; display: flex; flex-direction: column; }
.tree-panel.is-fullscreen .tree-scroll { flex: 1; min-height: 0; height: auto; }
/* Forms have one field rhythm, clear sections, and no decorative nested cards. */
.editor-panel { padding: 28px; border: 1px solid #dfead1; border-radius: 12px; background: #fff; }
.editor-form { display: flex; flex-direction: column; gap: 22px; }
.form-section-heading { display: flex; align-items: start; gap: 12px; padding: 0 0 18px; margin: 0; border-bottom: 1px solid #e5efd9; }
.form-section-heading > span { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: #f1f8e5; color: #69785c; font: 14px Georgia,serif; border: 0; box-shadow: none; }
.form-section-heading h2 { font: 600 18px/1.7 var(--ui-font); color: #69785c; }
.form-section-heading p { font-size: 12px; color: #69785c; line-height: 1.8; margin-top: 3px; }
.photo-field { display: flex; align-items: center; gap: 16px; padding: 0; border: 0; background: transparent; border-radius: 0; }
.photo-field > div { flex: 1; min-width: 0; }
.photo-field small { font-size: 11px; color: #69785c; line-height: 1.9; display: block; margin-top: 5px; }
.photo-field .text-link { font-size: 12px; }
.photo-field .avatar { border: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.editor-form label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.6; font-weight: 500; color: #69785c; }
.editor-form label input, .editor-form label select, .editor-form label textarea { width: 100%; min-height: 44px; border: 1px solid #e2edd6; border-radius: 8px; background: #fcfef8; padding: 11px 12px; font-size: 14px; color: #69785c; line-height: 1.6; }
.editor-form label.upload-label { display: inline-flex; flex-direction: row; align-items: center; gap: 7px; width: auto; }
.editor-form input:disabled, .editor-form select:disabled { background: #f5f8ee; color: #69785c; }
.optional { font-weight: 400; font-size: 11px; color: #69785c; }
.relation-hint { display: flex; align-items: start; gap: 9px; padding: 13px 14px; background: #f5fbe9; border: 1px solid #e3efd5; border-radius: 8px; color: #69785c; font-size: 12px; line-height: 1.9; }
.relation-hint > .icon { margin-top: 2px; width: 17px; height: 17px; }
.lineage-assistant { padding: 20px; border: 1px solid #e0eed2; border-radius: 10px; background: #f8fcf1; box-shadow: none; }
.lineage-assistant-head { display: flex; align-items: start; gap: 10px; }
.lineage-assistant-head > .icon { width: 21px; height: 21px; margin-top: 3px; color: #69785c; }
.lineage-assistant-head h3 { font-size: 16px; line-height: 1.7; color: #69785c; }
.lineage-assistant-head p { font-size: 12px; line-height: 1.9; color: #69785c; margin-top: 4px; }
.lineage-inputs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 18px; }
.lineage-help, .lineage-neutral { margin-top: 14px; font-size: 12px; line-height: 1.9; color: #69785c; }
.lineage-candidate { border-color: #e1edd4; background: #fff; border-radius: 8px; padding: 15px; margin-top: 14px; }
.lineage-candidate strong { font-size: 15px; color: #69785c; }
.lineage-candidate p, .lineage-candidate li { font-size: 12px; color: #69785c; line-height: 1.9; }
.lineage-candidate > div > span { font-size: 11px; color: #69785c; background: #f2fae6; border-radius: 4px; }
.lineage-candidate.has-conflict { background: #fffaf2; border-color: #e9d9b6; }
.lineage-candidate .lineage-conflict, .lineage-warning { color: #69785c; }
.lineage-existing, .lineage-descendants { font-size: 12px; line-height: 1.9; color: #69785c; background: #f2fae8; border-color: #e0efd1; border-radius: 8px; }
.form-error, .media-error { color: #a47753; font-size: 12px; line-height: 1.9; }
.form-error:empty, .media-error:empty { display: none; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #e7efd9; padding-top: 22px; margin-top: 0; }
.form-footer > span { font-size: 12px; line-height: 1.8; color: #69785c; }
.form-footer > div { display: flex; gap: 10px; }
/* Journey uses a restrained route diagram instead of faint text on a photo. */
.journey-grid { gap: 24px; grid-template-columns: 1.2fr 1fr; align-items: stretch; }
.journey-map { border-radius: 12px; background: #f4f9e9; border: 1px solid #dfead0; }
.map-visual { background: linear-gradient(#f2f8e8eb,#f2f8e8eb),url('design/hometown-river.webp') center/cover; min-height: 340px; }
.map-label { background: #fffff7; color: #69785c; border: 1px solid #e4efd7; border-radius: 6px; font-size: 12px; padding: 7px 10px; }
.map-point strong { background: #fffff8; border: 1px solid #dcebc9; border-radius: 5px; color: #69785c; font: 500 13px/1.5 var(--ui-font); padding: 5px 8px; box-shadow: none; }
.map-point.active strong { color: #fff; background: #8eac6c; border-color: #8eac6c; }
.map-point > span { background: #bfd7a1; border-color: #edf8df; }
.migration-lines path { stroke: #bfd5a3; stroke-width: .6; stroke-dasharray: 2 2; }
.map-caption { padding: 19px 22px; border-color: #e0ecd2; background: #fbfef6; }
.map-caption strong { color: #69785c; font-size: 15px; }
.map-caption small { color: #69785c; font-size: 12px; margin-bottom: 5px; }
.journey-timeline { padding: 24px; border: 1px solid #e3edd5; border-radius: 12px; background: #fff; }
.journey-timeline > .eyebrow { display: none; }
.journey-timeline h2 { font: 600 20px/1.6 var(--ui-font); color: #69785c; margin-bottom: 16px; }
.journey-step { border: 0; border-radius: 8px; padding: 14px 14px 14px 25px; margin: 0; background: transparent; text-align: left; }
.journey-step.active { background: #f1f8e7; border: 0; }
.journey-step strong { font: 500 16px/1.6 var(--ui-font); color: #69785c; }
.journey-step small { font-size: 12px; color: #69785c; }
.journey-step p { font-size: 12px; color: #69785c; line-height: 1.9; margin-top: 5px; }
.timeline-dot { background: #d0e1b9; border-color: #e8f3da; }
.journey-detail { border-radius: 12px; padding: 20px 24px; border: 1px solid #e2eed2; background: #f1f9e5; margin-top: 24px; }
.journey-detail span { font-size: 12px; color: #69785c; }
.journey-detail h3 { font: 500 17px/1.8 var(--ui-font); color: #69785c; }
.journey-detail p { font-size: 12px; color: #69785c; }
/* Dialog, notice, upload, and feedback states. */
dialog { padding: 0; border: 1px solid #d8e7c9; border-top: 2px solid #b8a46b; border-radius: 14px; background: #fff; box-shadow: 0 20px 80px #45602533; }
dialog::backdrop { background: #253b2a66; backdrop-filter: blur(3px); }
.dialog-head { padding: 22px 24px; background: #fbfdf5; border-bottom: 1px solid #e5efd7; gap: 12px; align-items: center; }
.dialog-head .eyebrow { display: none; }
.dialog-head h2 { font: 600 22px/1.6 var(--ui-font); color: #69785c; }
.dialog-body { padding: 24px; background: #fff; }
.dialog-feedback { padding: 13px 18px; font-size: 13px; line-height: 1.9; color: #69785c; background: #f3fae8; border-color: #dfedce; }
.toast { border: 1px solid #b6a36c; background: #4f6c3f; color: #fffef2; padding: 12px 18px; border-radius: 10px; font-size: 13px; line-height: 1.9; box-shadow: 0 8px 24px #566e3330; }
.media-file-label, .memory-upload { padding: 24px 18px; border: 1px dashed #c8dcb0; background: #f8fcf0; border-radius: 10px; color: #69785c; font-size: 13px; line-height: 1.9; }
.media-upload-form .upload-owner { padding: 12px 14px; font-size: 13px; background: #f3fae7; color: #69785c; border: 1px solid #e0edce; border-radius: 8px; }
.file-status { color: #69785c; font-size: 12px; line-height: 1.9; }
.personal-request-actions .btn { width: 100%; }
.service-preview { color: #69785c; font-size: 14px; line-height: 2; }
.service-preview h3 { font: 500 20px/1.8 var(--ui-font); color: #69785c; }
.service-preview ul { color: #69785c; }
.service-preview .service-availability { color: #69785c; background: #faf6ea; border-left-color: #c8b57e; font-size: 12px; line-height: 1.9; border-radius: 0 6px 6px 0; }
/* Homepage: visual shortcuts follow the same vector family as navigation. */
.mobile-welcome { font-size: 12px; margin-bottom: 16px; color: #69785c; }
.mobile-welcome > a { font-size: 12px; gap: 6px; color: #69785c; }
.mobile-welcome .avatar { width: 24px; height: 24px; font-size: 13px; }
.mobile-family-hero { border-radius: 12px; }
.family-counts { padding: 22px 0; }
.family-counts strong { font-size: 25px; color: #69785c; }
.family-counts span { font-size: 12px; color: #69785c; margin-top: 5px; }
.mobile-shortcuts { padding: 18px 0 22px; gap: 9px; border-color: #dfead0; }
.mobile-shortcut { font-size: 12px; gap: 10px; color: #69785c; }
.mobile-shortcut .heritage-icon { height: 52px; width: 52px; border-radius: 15px; background: #eaf3dc; color: #69785c; border: 1px solid #e0eccf; }
.mobile-shortcut:nth-child(2) .heritage-icon { background: #f6f1df; color: #69785c; border-color: #eee5cc; }
.mobile-shortcut:nth-child(3) .heritage-icon { background: #e8f1e5; color: #69785c; }
.mobile-shortcut:nth-child(4) .heritage-icon { background: #edf1dc; color: #69785c; }
.mobile-shortcut .heritage-icon > .icon { width: 29px; height: 29px; }
.family-search { min-height: 48px; padding: 12px 14px; gap: 10px; border-radius: 10px; background: #eaf2df; color: #69785c; font-size: 13px; }
.mobile-members > div:not(.section-head) { border: 1px solid #e0ebd0; border-radius: 12px; padding: 20px 8px; }
.mobile-members strong { font: 500 13px/1.7 var(--ui-font); color: #69785c; }
.mobile-members small { font-size: 11px; color: #69785c; }
.workshop-grid { gap: 18px; }
.workshop-link { border: 1px solid #dfeacd; border-top: 1px solid #c5b27a; background: #eff6e3; border-radius: 10px; padding: 20px; gap: 14px; }
.workshop-link strong { font: 500 19px/1.7 var(--ui-font); color: #69785c; }
.workshop-link small { font-size: 12px; color: #69785c; line-height: 1.8; }
.workshop-link > .icon { color: #69785c; }
.portal-mode .portal-header .btn { font-size: 13px; }
.portal-mode .portal-hero p { color: #69785c; }
.portal-mode .case-body > p, .portal-mode .experience-row p { color: #69785c; }
.portal-mode .case-body h3 { color: #677f51; }
.portal-mode .featured-action { color: #69785c; }
.portal-mode .floating-family small { color: #69785c; }
.portal-footer > span { color: #69785c; }
/* Screen-size rules apply to every mobile composition, including phone frames. */
@media (max-width: 1100px) and (min-width: 701px) {
  .sidebar { width: 188px; padding: 24px 12px; }
  .content { padding: 24px; }
  .member-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .overview-columns, .journey-grid { grid-template-columns: 1fr; }
  .memory-grid { gap: 16px; }
  .memory-body { padding: 16px; }
  .media-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .person-hero { grid-template-columns: 68px minmax(0,1fr); }
  .person-hero > .portrait { height: 64px; width: 64px; }
  .person-actions { grid-column: 1/-1; justify-self: end; }
}
.mini-mode .content { padding: 20px 18px 28px; scrollbar-gutter: auto; background: var(--paper); }
.mini-mode .app-header { height: auto; display: block; padding: 0 20px; border-color: #dce8ce; }
.mini-mode .phone-status { height: 25px; font-size: 10px; color: #69785c; }
.mini-mode .mini-header-row { min-height: 43px; }
.mini-mode .mini-family-row { min-height: 34px; padding-bottom: 8px; }
.mini-mode .mini-family-row select { min-height: 24px; font-size: 12px; border: 0; background: transparent; padding: 0; color: #69785c; }
.mini-mode .mini-family-row .pill { font-size: 10px; padding: 3px 6px; }
.mini-mode .capsule { color: #69785c; border-color: #d5e4c3; }
.mini-mode .tabbar { padding: 8px 9px 12px; background: #fffffc; border-top: 1px solid #dce8cd; box-shadow: none; }
.mini-mode .tabbar .nav-item { font-size: 11px; gap: 5px; padding: 4px 0; min-height: 45px; color: #69785c; }
.mini-mode .tabbar .nav-item .icon { width: 23px; height: 23px; }
.mini-mode .tabbar .nav-item.active { color: #69785c; font-weight: 600; }
.mini-mode .tabbar .nav-item.active .icon-accent { stroke: #ad925a; }
.mini-mode .tabbar .nav-item[href="#add"] .icon { height: 31px; width: 35px; border: 1px solid #b6a46b; border-radius: 10px; background: #68844d; color: #69785c; padding: 5px; }
.mini-mode .page-head { display: flex; align-items: start; gap: 12px; margin-bottom: 20px; }
.mini-mode .page-head h1 { font: 600 24px/1.45 var(--ui-font); color: #597a43; margin: 0 0 7px; letter-spacing: 0; }
.mini-mode .page-head p { font-size: 12px; line-height: 1.9; color: #69785c; }
.mini-mode .page-actions { margin-top: 0; }
.mini-mode .page-actions .btn { min-height: 40px; font-size: 12px; padding: 9px 12px; gap: 5px; }
.mini-mode .page-actions .btn .icon { width: 15px; height: 15px; }
.mini-mode .section-head { padding: 20px 18px; gap: 12px; }
.mini-mode .section-head h2 { font: 600 18px/1.6 var(--ui-font); color: #69785c; }
.mini-mode .section-head p { font-size: 12px; color: #69785c; line-height: 1.9; margin-top: 5px; }
.mini-mode .editorial-heading { padding: 24px 0 16px; }
.mini-mode .editorial-heading h2 { font: 600 20px/1.5 var(--serif); color: #69785c; letter-spacing: 1px; }
.mini-mode .editorial-heading .text-link { font-size: 12px; color: #69785c; gap: 5px; }
.mini-mode .editorial-heading .text-link .icon { width: 14px; height: 14px; }
.mini-mode .editorial-heading .eyebrow { display: none; }
.mini-mode .service-status { font-size: 10px; padding: 3px 6px; }
.mini-mode .mobile-family-hero { min-height: 0; height: 230px; border-radius: 12px; }
.mini-mode .mobile-family-hero .hero-copy { padding: 27px 23px; }
.mini-mode .mobile-family-hero h2 { font-size: 32px; margin: 9px 0 4px; }
.mini-mode .mobile-family-hero .hero-tag { font-size: 11px; }
.mini-mode .mobile-family-hero p { font-size: 13px; line-height: 1.8; }
.hero-tree-link { font-size: 12px; }
.mini-mode .mobile-story-list > .memory-card:first-child { border: 1px solid #e0ebd0; border-radius: 12px; }
.mini-mode .mobile-story-list > .memory-card:first-child .memory-cover { height: 172px; }
.mini-mode .mobile-story-list > .memory-card:first-child .memory-body { padding: 17px; }
.mini-mode .mobile-story-list > .memory-card:first-child h3 { font: 600 17px/1.7 var(--ui-font); color: #69785c; margin: 7px 0; }
.mini-mode .mobile-story-list > .memory-card:first-child .memory-body > p { font-size: 12px; color: #69785c; line-height: 1.9; }
.mini-mode .mobile-story-list > .memory-card:not(:first-child) { grid-template-columns: 88px minmax(0,1fr); padding: 18px 0; gap: 14px; border-bottom: 1px solid #e1ecd3; background: transparent; border-left: 0; border-right: 0; border-top: 0; border-radius: 0; }
.mini-mode .mobile-story-list > .memory-card:not(:first-child) .memory-cover { height: 78px; border-radius: 8px; }
.mini-mode .mobile-story-list > .memory-card:not(:first-child) h3 { font: 500 15px/1.7 var(--ui-font); color: #69785c; }
.mini-mode .mobile-story-list .memory-date { font-size: 11px; color: #69785c; }
.mini-mode .compact-workshop .workshop-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
.mini-mode .workshop-link { display: flex; flex-direction: column; align-items: start; gap: 9px; padding: 17px 15px; border-radius: 10px; }
.mini-mode .workshop-link .heritage-icon { width: 35px; height: 35px; }
.mini-mode .workshop-link .heritage-icon > .icon { height: 31px; width: 31px; }
.mini-mode .workshop-link strong { font: 500 16px/1.7 var(--ui-font); color: #69785c; }
.mini-mode .workshop-link small { font-size: 11px; line-height: 1.8; color: #69785c; }
.mini-mode .workshop-link > .icon { display: none; }
.mini-mode .member-toolbar { padding: 14px; gap: 10px; }
.mini-mode .member-toolbar .search-field { flex: 1 0 100%; min-width: 0; }
.mini-mode .member-toolbar > select { flex: 1; min-width: 0; font-size: 12px; min-height: 42px; }
.mini-mode .result-meta { padding: 14px 1px; font-size: 12px; }
.mini-mode .result-meta .text-link { font-size: 12px; }
.mini-mode .member-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 0; }
.mini-mode .member-card { padding: 26px 13px 0; border-radius: 11px; }
.mini-mode .member-card > .avatar { height: 48px; width: 48px; font-size: 26px; }
.mini-mode .member-card h3 { font: 600 16px/1.7 var(--ui-font); color: #69785c; margin: 10px 0 3px; }
.mini-mode .member-card p { font-size: 12px; color: #69785c; margin: 0 0 7px; }
.mini-mode .member-meta { font-size: 11px; color: #69785c; }
.mini-mode .member-card-bottom { font-size: 10px; margin-top: 14px; padding: 12px 0; color: #69785c; }
.mini-mode .generation-pill { top: 8px; right: 8px; font-size: 10px; }
.mini-mode .person-identity h1 { font: 600 27px/1.5 var(--ui-font); color: #69785c; letter-spacing: 1px; margin: 5px 0; }
.mini-mode .person-identity .eyebrow { font-size: 11px; color: #69785c; letter-spacing: 0; }
.mini-mode .person-identity p { font-size: 12px; color: #69785c; }
.mini-mode .person-identity > small { font-size: 11px; color: #69785c; }
.mini-mode .person-section-nav { gap: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 12px; margin-bottom: 20px; }
.mini-mode .person-section-nav button { display: flex; justify-content: center; padding: 12px 0; font-size: 12px; gap: 5px; color: #69785c; }
.mini-mode .person-section-nav .icon { height: 15px; width: 15px; }
.mini-mode .person-columns { grid-template-columns: 1fr; gap: 0; margin: 0; }
.mini-mode .person-columns .panel { margin-bottom: 20px; }
.mini-mode .bio-text { padding: 0 18px 20px; font-size: 14px; line-height: 2; color: #69785c; }
.mini-mode .relatives { grid-template-columns: 1fr; padding: 0 18px 20px; gap: 10px; }
.mini-mode .info-panel dl { padding: 0 18px 10px; }
.mini-mode .info-panel dl > div { padding: 12px 0; font-size: 13px; }
.mini-mode .info-note { padding: 14px 18px; font-size: 12px; }
.mini-mode .memory-grid { grid-template-columns: 1fr; gap: 20px; }
.mini-mode .memory-cover { height: 190px; }
.mini-mode .memory-body { padding: 18px; }
.mini-mode .memory-body h3 { font: 600 17px/1.7 var(--ui-font); color: #69785c; }
.mini-mode .memory-body > p { font-size: 13px; line-height: 1.95; color: #69785c; }
.mini-mode .memory-date { font-size: 11px; color: #69785c; }
.mini-mode .filter-chips { gap: 7px; }
.mini-mode .chip { font-size: 12px; padding: 8px 10px; min-height: 38px; }
.mini-mode .media-entry { padding: 16px; gap: 12px; margin-bottom: 20px; }
.mini-mode .media-entry strong { font-size: 13px; }
.mini-mode .media-entry small { font-size: 12px; }
.mini-mode .media-entry-icons { display: none; }
.mini-mode .media-panel .section-head { padding: 20px 18px 16px; gap: 10px; }
.mini-mode .media-panel .section-head h2 { font-size: 17px; }
.mini-mode .media-panel .section-head h2 > .icon { height: 18px; width: 18px; }
.mini-mode .media-panel .section-head .btn { min-height: 40px; padding: 9px 12px; font-size: 12px; }
.mini-mode .media-panel .section-head .btn .icon { height: 15px; width: 15px; }
.mini-mode .media-tabs { margin: 0 16px 16px; padding: 4px; gap: 2px; }
.mini-mode .media-tab { font-size: 12px; min-height: 38px; padding: 7px 3px; gap: 5px; }
.mini-mode .media-tab span { font-size: 10px; }
.mini-mode .media-member-filter { padding: 0 18px 18px; flex-wrap: wrap; gap: 10px; }
.mini-mode .media-member-filter label { font-size: 12px; width: 100%; gap: 12px; }
.mini-mode .media-member-filter label > select { flex: 1; min-width: 0; font-size: 13px; }
.mini-mode .media-member-filter > span { font-size: 11px; }
.mini-mode .media-grid { grid-template-columns: 1fr; gap: 18px; padding: 0 16px 18px; }
.mini-mode .media-card-body { padding: 17px; }
.mini-mode .media-card-body h3 { font: 500 16px/1.8 var(--ui-font); color: #69785c; }
.mini-mode .media-card-body > p { font-size: 12px; color: #69785c; }
.mini-mode .media-card-meta { font-size: 11px; color: #69785c; }
.mini-mode .profile-card { grid-template-columns: 52px minmax(0,1fr) 29px; gap: 15px; padding: 23px 18px; border-radius: 12px; height: auto; min-height: 0; }
.mini-mode .profile-card > .avatar { height: 52px; width: 52px; font-size: 28px; }
.mini-mode .profile-card .eyebrow { font-size: 11px; color: #c5dea9; line-height: 1.6; }
.mini-mode .profile-card h2 { font: 500 24px/1.5 var(--ui-font); color: #fffde9; margin: 5px 0; }
.mini-mode .profile-card p { font-size: 12px; color: #d6eabc; line-height: 1.8; }
.mini-mode .profile-card-action { width: 29px; height: 29px; color: #dcedc3; border-color: #a8bf89; }
.mini-mode .personal-metrics { margin: 22px 0 26px; }
.mini-mode .personal-metric { min-height: 58px; }
.mini-mode .personal-metric strong { font-size: 27px; color: #69785c; line-height: 1.4; }
.mini-mode .personal-metric span { font-size: 12px; color: #69785c; }
.mini-mode .personal-groups { display: grid; gap: 24px; }
.mini-mode .personal-group { margin-bottom: 0; }
.mini-mode .personal-group > h2 { font-size: 13px; line-height: 1.6; color: #69785c; margin: 0 0 10px; font-weight: 500; }
.mini-mode .personal-menu, .mini-mode .personal-options { border: 1px solid #e1edd3; border-radius: 12px; background: #fff; }
.mini-mode .profile-menu-row { min-height: 66px; padding: 15px 16px; gap: 12px; }
.mini-mode .profile-menu-row .setting-icon { height: 34px; width: 34px; background: #f0f7e4; border-radius: 9px; color: #69785c; }
.mini-mode .profile-menu-label { font-size: 14px; line-height: 1.7; color: #69785c; }
.mini-mode .profile-menu-row > .icon { width: 16px; height: 16px; color: #69785c; }
.mini-mode .menu-value { font-size: 11px; color: #69785c; }
.mini-mode .personal-options summary { min-height: 66px; padding: 15px 16px; font-size: 14px; color: #69785c; }
.mini-mode .personal-options-body { padding: 18px; }
.mini-mode .personal-options-body > label, .mini-mode .personal-options-body > p { color: #69785c; font-size: 12px; }
.mini-mode .personal-options-body > select { min-height: 44px; font-size: 13px; }
.mini-mode .tree-scope-bar { padding: 16px; background: #f9fdf3; }
.mini-mode .scope-tabs { gap: 5px; }
.mini-mode .scope-tab { flex: 1; min-width: 0; min-height: 44px; padding: 8px 3px; border-radius: 6px; font-size: 12px; line-height: 1.5; color: #69785c; }
.mini-mode .scope-tab.active { color: #69785c; background: #edf8de; border-color: #bfd8a4; }
.mini-mode .tree-scope-bar > p { font-size: 11px; color: #69785c; margin-top: 12px; }
.mini-mode .branch-picker { font-size: 12px; color: #69785c; }
.mini-mode .tree-toolbar { padding: 16px; gap: 12px; }
.mini-mode .tree-toolbar .search-field { flex: 1 0 100%; min-width: 0; }
.mini-mode .tree-toolbar .select-label { font-size: 12px; gap: 6px; flex: 1; }
.mini-mode .tree-toolbar .select-label select { min-height: 42px; font-size: 12px; padding: 9px 7px; min-width: 0; width: 100%; }
.mini-mode .tree-toolbar-actions { gap: 6px; }
.mini-mode .tree-toolbar-actions .btn { min-height: 42px; font-size: 11px; padding: 9px; gap: 5px; margin-left: 0; }
.mini-mode .tree-toolbar-actions .btn .icon { width: 15px; height: 15px; }
.mini-mode .fullscreen-button { height: 42px; width: 42px; min-height: 42px; }
.mini-mode .tree-legend { padding: 11px 16px; gap: 10px 14px; font-size: 11px; }
.mini-mode .tree-instruction { flex: 1 0 100%; margin-left: 0; font-size: 11px; }
.mini-mode .tree-scroll { height: 420px; }
.mini-mode .tree-footer { padding: 10px 12px; font-size: 11px; gap: 8px; }
.mini-mode .tree-controls .icon-btn { width: 34px; height: 38px; min-height: 38px; padding: 7px; }
.mini-mode .zoom-controls output { min-width: 37px; font-size: 11px; }
.mini-mode .tip-bar { font-size: 12px; padding: 15px; gap: 9px; }
.mini-mode .tip-bar .text-link { font-size: 12px; margin-left: 0; }
.mini-mode .editor-panel { padding: 22px 18px; border: 1px solid #dfecd0; border-radius: 12px; }
.mini-mode .editor-form { gap: 22px; }
.mini-mode .form-grid { grid-template-columns: 1fr; gap: 18px; }
.mini-mode .editor-form label { font-size: 13px; color: #69785c; gap: 8px; }
.mini-mode .editor-form label input, .mini-mode .editor-form label select, .mini-mode .editor-form label textarea { font-size: 14px; color: #69785c; min-height: 46px; padding: 11px 12px; }
.mini-mode .form-section-heading h2 { font-size: 17px; color: #69785c; }
.mini-mode .form-section-heading p { font-size: 12px; color: #69785c; line-height: 1.8; }
.mini-mode .photo-field { flex-wrap: nowrap; gap: 12px; }
.mini-mode .photo-field > .avatar { width: 52px; height: 52px; }
.mini-mode .photo-field > div { min-width: 0; }
.mini-mode .photo-field .btn { min-height: 40px; font-size: 12px; padding: 9px 11px; }
.mini-mode .photo-field small { font-size: 10px; color: #69785c; }
.mini-mode .photo-field .text-link { font-size: 11px; }
.mini-mode .lineage-assistant { padding: 16px; }
.mini-mode .lineage-assistant-head h3 { font-size: 15px; color: #69785c; }
.mini-mode .lineage-assistant-head p, .mini-mode .lineage-help, .mini-mode .lineage-neutral { font-size: 12px; line-height: 1.9; color: #69785c; }
.mini-mode .lineage-inputs { grid-template-columns: 1fr; gap: 14px; margin-top: 16px; }
.mini-mode .lineage-candidate { padding: 13px; }
.mini-mode .lineage-candidate li { font-size: 12px; }
.mini-mode .relation-hint { font-size: 12px; line-height: 1.9; color: #69785c; }
.mini-mode .form-footer { flex-direction: column; align-items: stretch; gap: 16px; padding-top: 20px; }
.mini-mode .form-footer > span { text-align: center; font-size: 11px; color: #69785c; }
.mini-mode .form-footer > div { display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px; }
.mini-mode .form-footer .btn { min-height: 44px; font-size: 12px; padding: 10px 8px; }
.mini-mode .journey-grid { grid-template-columns: 1fr; gap: 20px; }
.mini-mode .map-visual { min-height: 300px; }
.mini-mode .journey-timeline { padding: 21px 18px; }
.mini-mode .journey-step { padding: 14px 12px 14px 24px; }
.mini-mode .journey-step p { font-size: 13px; color: #69785c; }
.mini-mode .journey-detail { padding: 18px; gap: 12px; margin-top: 20px; }
.mini-mode .journey-detail h3 { font-size: 15px; color: #69785c; }
.mini-mode .journey-detail p { font-size: 12px; color: #69785c; }
.mini-mode dialog { border: 1px solid #dce8ce; border-top: 2px solid #b8a46b; border-radius: 14px; background: #fff; }
.mini-mode .dialog-head { padding: 18px; background: #fbfdf5; }
.mini-mode .dialog-head h2 { font-size: 20px; color: #69785c; }
.mini-mode .dialog-body { padding: 20px 18px; }
.mini-mode .dialog-body .form-grid { grid-template-columns: 1fr; }
.mini-mode .media-upload-form .upload-owner { font-size: 12px; }
.mini-mode .media-upload-form .media-file-label { padding: 20px 14px; font-size: 12px; }
.mini-mode .personal-empty h3 { font-size: 18px; }
.mini-mode .personal-empty p, .mini-mode .personal-request-dialog .request-explainer { font-size: 12px; color: #69785c; }
.mini-mode .service-preview { font-size: 13px; }
.mini-mode .service-preview h3 { font-size: 18px; }
.mini-mode .service-preview > img { height: 154px; }
@media (max-width: 700px) {
  .web-mode .app-header { padding: 0 16px; height: 59px; gap: 12px; }
  .web-mode .header-actions { gap: 8px; }
  .web-mode .breadcrumbs { font-size: 11px; gap: 6px; min-width: 0; }
  .web-mode .breadcrumbs strong { overflow: hidden; text-overflow: ellipsis; }
  .web-mode .header-actions .pill { font-size: 9px; padding: 4px 6px; }
  .web-mode .header-actions > .quiet-link { font-size: 10px; }
  .web-mode .content { padding: 22px 16px 28px; }
  .web-mode .sidebar { width: 100%; height: calc(62px + env(safe-area-inset-bottom)); padding: 5px 7px max(5px,env(safe-area-inset-bottom)); border-right: 0; background: #fffffc; }
  .web-mode .sidebar nav { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 3px; height: 50px; align-items: center; }
  .web-mode .sidebar .nav-item { display: flex; flex-direction: column; min-height: 0; height: 48px; font-size: 10px; gap: 4px; padding: 5px 0; border-radius: 8px; }
  .web-mode .sidebar .nav-item > span { font-size: 9px; white-space: nowrap; }
  .web-mode .sidebar .nav-item .icon { height: 19px; width: 19px; }
  .web-mode .sidebar .nav-item.active { box-shadow: none; }
  .web-mode .app-frame { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .page-head { align-items: start; gap: 12px; }
  .page-head h1 { font-size: 24px; }
  .page-head p { font-size: 12px; }
  .page-actions .btn { min-height: 40px; padding: 9px 12px; font-size: 12px; }
  .section-head { padding: 20px 18px; }
  .section-head h2 { font-size: 18px; }
  .desktop-welcome .btn { font-size: 11px; padding: 9px 11px; }
  .desktop-family-hero .hero-copy { padding: 25px; }
  .desktop-family-hero .hero-copy > p { font-size: 14px; }
  .desktop-family-hero .hero-copy small { font-size: 11px; }
  .desktop-family-hero .hero-tag { font-size: 11px; }
  .stats-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .stat-label { font-size: 11px; }
  .overview-columns { grid-template-columns: 1fr; gap: 20px; }
  .member-toolbar { gap: 10px; padding: 14px; }
  .member-toolbar .search-field { flex: 1 0 100%; min-width: 0; }
  .member-toolbar > select { flex: 1; min-width: 0; min-height: 42px; font-size: 12px; }
  .member-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .member-card { padding: 26px 13px 0; }
  .member-card h3 { font-size: 16px; }
  .member-meta { font-size: 10px; }
  .member-card-bottom { font-size: 10px; }
  .person-hero { grid-template-columns: 56px minmax(0,1fr); gap: 14px; padding: 22px 18px; }
  .person-hero > .portrait { height: 56px; width: 56px; font-size: 29px; }
  .person-identity h1 { font-size: 27px; }
  .person-identity .eyebrow { font-size: 11px; }
  .person-identity p, .person-identity > small { font-size: 12px; }
  .person-actions { grid-column: 1/-1; justify-self: end; }
  .person-section-nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; }
  .person-section-nav button { font-size: 12px; justify-content: center; gap: 5px; }
  .person-section-nav .icon { width: 15px; height: 15px; }
  .person-columns { grid-template-columns: 1fr; gap: 0; }
  .relatives { grid-template-columns: 1fr; padding: 0 18px 20px; }
  .bio-text { padding: 0 18px 20px; font-size: 14px; }
  .memory-grid { grid-template-columns: 1fr; gap: 20px; }
  .memory-body h3 { font-size: 17px; }
  .media-panel .section-head { align-items: start; gap: 10px; }
  .media-panel .section-head h2 { font-size: 17px; }
  .media-panel .section-head .btn { font-size: 12px; padding: 9px 12px; min-height: 40px; }
  .media-tabs { margin: 0 16px 16px; padding: 4px; gap: 2px; }
  .media-tab { min-height: 38px; font-size: 12px; padding: 7px 3px; }
  .media-member-filter { flex-wrap: wrap; gap: 10px; padding: 0 18px 18px; }
  .media-member-filter label { width: 100%; }
  .media-member-filter select { flex: 1; min-width: 0; }
  .media-grid { grid-template-columns: 1fr; padding: 0 16px 18px; }
  .profile-card { grid-template-columns: 52px minmax(0,1fr) 29px; gap: 15px; padding: 23px 18px; }
  .profile-card > .avatar { width: 52px; height: 52px; font-size: 28px; }
  .profile-card .eyebrow { font-size: 11px; }
  .profile-card h2 { font-size: 24px; }
  .profile-card p { font-size: 12px; }
  .profile-card-action { width: 29px; height: 29px; }
  .profile-grid { grid-template-columns: 1fr; grid-template-areas: "records" "requests" "settings"; }
  .tree-scope-bar, .tree-toolbar { padding: 16px; }
  .tree-toolbar .search-field { flex: 1 0 100%; min-width: 0; }
  .tree-toolbar .select-label { flex: 1; min-width: 0; }
  .tree-toolbar .select-label select { min-width: 0; width: 100%; font-size: 12px; padding: 9px 7px; }
  .tree-toolbar-actions { gap: 6px; }
  .tree-toolbar-actions .btn { font-size: 11px; padding: 9px; gap: 5px; margin: 0; }
  .tree-legend { padding: 12px 16px; gap: 10px 14px; }
  .tree-instruction { flex: 1 0 100%; margin-left: 0; }
  .tree-footer { font-size: 11px; padding: 10px 12px; gap: 8px; }
  .tree-controls .icon-btn { width: 34px; padding: 7px; }
  .zoom-controls output { min-width: 37px; font-size: 11px; }
  .scope-tabs { gap: 5px; }
  .scope-tab { flex: 1; padding: 9px 3px; min-width: 0; font-size: 12px; min-height: 44px; }
  .tip-bar { font-size: 12px; gap: 9px; padding: 15px; }
  .tip-bar .text-link { margin-left: 0; }
  .editor-panel { padding: 22px 18px; }
  .form-grid { grid-template-columns: 1fr; gap: 18px; }
  .editor-form label { font-size: 13px; }
  .form-section-heading p { font-size: 12px; }
  .lineage-inputs { grid-template-columns: 1fr; gap: 14px; }
  .form-footer { flex-direction: column; align-items: stretch; }
  .form-footer > span { text-align: center; }
  .form-footer > div { display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px; }
  .form-footer .btn { padding: 10px 8px; font-size: 12px; }
  .journey-grid { grid-template-columns: 1fr; gap: 20px; }
  .journey-timeline { padding: 21px 18px; }
  .journey-detail { padding: 18px; }
  .mini-mode .app-frame { border-radius: 0; border: 0; width: 100%; height: 100dvh; max-height: none; }
  .mini-mode #app { padding: 0; }
  .mini-mode .app-header { padding: env(safe-area-inset-top) 20px 0; }
  .mini-mode .tabbar { padding-bottom: max(12px,env(safe-area-inset-bottom)); }
  .portal-header, .portal-main, .portal-footer { margin-left: 20px; margin-right: 20px; }
  .portal-hero h1 { font-size: 47px; }
  .portal-hero-actions { gap: 18px; }
  .portal-hero-actions > .btn { font-size: 12px; padding: 11px 14px; }
  .portal-hero-actions > .text-link { font-size: 12px; }
  .portal-mode .floating-family strong { font-size: 18px; }
  .portal-mode .floating-family small { font-size: 11px; }
  .portal-mode .floating-family .featured-action { font-size: 11px; }
  .experience-row { gap: 14px; }
  .experience-row .heritage-icon { width: 40px; height: 46px; }
  .experience-row p { font-size: 12px; }
  .portal-service-links .heritage-icon { width: 42px; height: 50px; }
  .portal-services .service-status { display: inline-flex; }
  .portal-cta .btn { font-size: 13px; }
}
@media (max-width: 360px) {
  .mini-mode .content { padding: 18px 12px 26px; }
  .mini-mode .page-head h1 { font-size: 22px; }
  .mini-mode .page-head { gap: 9px; }
  .mini-mode .page-actions .btn { font-size: 11px; padding: 9px 10px; }
  .mini-mode .page-head p { font-size: 12px; }
  .mini-mode .profile-card { grid-template-columns: 46px minmax(0,1fr) 26px; gap: 12px; padding: 21px 15px; }
  .mini-mode .profile-card > .avatar { width: 46px; height: 46px; font-size: 25px; }
  .mini-mode .profile-card h2 { font-size: 23px; }
  .mini-mode .profile-card .eyebrow { font-size: 10px; }
  .mini-mode .profile-card p { font-size: 11px; }
  .mini-mode .profile-card-action { height: 26px; width: 26px; }
  .mini-mode .profile-menu-row { padding: 14px; gap: 10px; }
  .mini-mode .profile-menu-label { font-size: 13px; }
  .mini-mode .menu-value { font-size: 10px; }
  .mini-mode .profile-menu-row .setting-icon { height: 31px; width: 31px; }
  .mini-mode .person-identity h1 { font-size: 25px; gap: 9px; }
  .mini-mode .person-identity .eyebrow { font-size: 10px; }
  .mini-mode .media-panel .section-head h2 { font-size: 16px; }
  .mini-mode .media-panel .section-head h2 > .icon { display: none; }
  .mini-mode .media-panel .section-head .btn { padding: 9px 10px; }
  .mini-mode .mobile-family-hero h2 { font-size: 29px; }
  .mobile-welcome, .mobile-welcome > a { font-size: 11px; }
  .mobile-shortcut { font-size: 11px; }
  .mobile-shortcut .heritage-icon { width: 48px; height: 48px; border-radius: 13px; }
  .mini-mode .member-card { padding: 26px 11px 0; }
  .mini-mode .member-card h3 { font-size: 15px; }
  .mini-mode .member-card p { font-size: 11px; }
  .mini-mode .member-card-bottom { font-size: 10px; }
  .mini-mode .tree-toolbar { gap: 10px; }
  .mini-mode .tree-toolbar-actions .btn { font-size: 10px; padding: 9px 7px; }
  .mini-mode .tree-toolbar-actions .btn .icon { display: none; }
  .mini-mode .tree-toolbar .select-label { font-size: 11px; gap: 5px; }
  .mini-mode .tree-footer { font-size: 10px; }
  .mini-mode .tree-controls .icon-btn { width: 29px; }
  .mini-mode .zoom-controls output { min-width: 34px; }
  .mini-mode .editor-panel { padding: 20px 15px; }
  .mini-mode .photo-field { gap: 10px; }
  .mini-mode .photo-field small { font-size: 10px; }
  .mini-mode .photo-field .btn { padding: 9px; font-size: 11px; }
  .mini-mode .photo-field .btn .icon { width: 14px; height: 14px; }
  .web-mode .header-actions > .quiet-link { font-size: 0; gap: 0; }
  .web-mode .header-actions > .quiet-link .icon { font-size: 0; width: 16px; }
  .web-mode .breadcrumbs { font-size: 10px; }
  .portal-hero h1 { font-size: 42px; }
  .portal-hero-actions { gap: 15px; }
  .portal-hero-actions > .btn { font-size: 11px; padding: 10px 12px; }
  .portal-hero-actions > .text-link { font-size: 11px; }
  .portal-mode .floating-family { gap: 8px; padding: 11px 9px; left: 11px; right: 11px; }
  .portal-mode .floating-family strong { font-size: 16px; }
}
/* Color tokens are applied by role; all functional text stays readable. */
.ui-muted, .page-head p, .section-head p, .muted, .storage-note,
.memory-date, .member-meta, .member-card-bottom, .generation-pill,
.media-card-meta, .media-card-body > p, .media-member-filter > span,
.info-panel dt, .info-note, .person-identity > small, .result-meta,
.settings-row small, .request-row small, .personal-options-body > p,
.lineage-help, .lineage-neutral, .form-section-heading p, .photo-field small,
.relation-hint, .lineage-assistant-head p, .lineage-candidate p, .lineage-candidate li,
.tree-scope-bar > p, .tree-summary, .tree-footer, .tree-legend, .tree-instruction,
.branch-picker, .journey-step p, .journey-step small, .journey-detail p,
.media-empty p, .empty p, .personal-empty p, .file-status, .personal-request-dialog .request-explainer {
  color: #79876c;
}
.member-card h3, .media-card-body h3, .profile-menu-label, .settings-row strong,
.relative-card strong, .info-panel dd, .memory-body h3, .tree-node strong,
.journey-timeline h2, .journey-step strong, .journey-detail h3, .map-caption strong,
.lineage-assistant-head h3, .form-section-heading h2, .lineage-candidate strong,
.person-identity h1, .section-head h2, .service-preview h3 { color: #506a3e; }
.memory-body > p, .bio-text, .service-preview, .service-preview ul { color: #768565; }
.editor-form label { color: #647b50; }
.editor-form label input, .editor-form label select, .editor-form label textarea { color: #516b40; }
.personal-metric span, .profile-stats span, .family-counts span { color: #69785c; }
.profile-menu-row > .icon, .settings-row > .icon { color: #69785c; }
.profile-menu-row .setting-icon { color: #69785c; }
.menu-value, .personal-group > h2, .personal-options-body > label, .personal-options summary { color: #69785c; }
.scope-tab, .chip, .media-tab { color: #69785c; }
.scope-tab.active, .chip.active, .media-tab.active { color: #4e7136; }
.media-tab span { color: #69785c; }
.tree-node small, .tree-node .avatar { color: #69785c; }
.tree-lines path { stroke: #b5c99d; }
.zoom-controls output, .branch-toggle { color: #69785c; }
.media-type-label { color: #69785c; }
.voice-art > .icon, .voice-art > span { color: #69785c; }
.voice-wave i { background: #a2bb86; }
.mobile-welcome, .mobile-welcome > a, .mobile-shortcut { color: #748c5c; }
.family-counts strong, .personal-metric strong, .profile-stats strong { color: #6f8c54; }
.family-search { color: #69785c; }
.mobile-members strong { color: #69785c; }
.mobile-members small { color: #69785c; }
.workshop-link strong { color: #6e8c51; }
.workshop-link small { color: #69785c; }
.portal-mode .case-body > p, .portal-mode .experience-row p, .portal-mode .portal-hero p { color: #69785c; }
.portal-mode .featured-action { color: #6d8a54; }
.portal-mode .floating-family small { color: #69785c; }
.map-label, .map-point strong { color: #69785c; }
.map-point.active strong { color: #fff; background: #789b57; border-color: #789b57; }
.journey-step p, .map-caption small { color: #69785c; }
.mini-mode .page-head p, .mini-mode .section-head p, .mini-mode .person-identity .eyebrow,
.mini-mode .person-identity p, .mini-mode .person-identity > small,
.mini-mode .memory-date, .mini-mode .memory-body > p, .mini-mode .media-card-body > p,
.mini-mode .media-card-meta, .mini-mode .member-card p, .mini-mode .member-meta,
.mini-mode .member-card-bottom, .mini-mode .form-section-heading p, .mini-mode .photo-field small,
.mini-mode .lineage-assistant-head p, .mini-mode .lineage-help, .mini-mode .lineage-neutral,
.mini-mode .relation-hint, .mini-mode .journey-step p, .mini-mode .journey-detail p,
.mini-mode .tree-scope-bar > p, .mini-mode .tree-summary, .mini-mode .tree-legend,
.mini-mode .tree-instruction, .mini-mode .tree-footer, .mini-mode .branch-picker,
.mini-mode .personal-empty p, .mini-mode .personal-request-dialog .request-explainer,
.mini-mode .personal-options-body > p, .mini-mode .personal-options-body > label,
.mini-mode .personal-group > h2, .mini-mode .menu-value { color: #69785c; }
.mini-mode .person-identity h1, .mini-mode .section-head h2, .mini-mode .memory-body h3,
.mini-mode .member-card h3, .mini-mode .media-card-body h3, .mini-mode .profile-menu-label,
.mini-mode .form-section-heading h2, .mini-mode .lineage-assistant-head h3,
.mini-mode .journey-detail h3, .mini-mode .dialog-head h2 { color: #577444; }
.mini-mode .editor-form label, .mini-mode .editor-form label input,
.mini-mode .editor-form label select, .mini-mode .editor-form label textarea { color: #617c4b; }
.mini-mode .personal-metric strong, .mini-mode .family-counts strong { color: #69785c; }
.mini-mode .personal-metric span { color: #69785c; }
.mini-mode .scope-tab, .mini-mode .personal-options summary { color: #69785c; }
.mini-mode .scope-tab.active { color: #658e44; }
.mini-mode .profile-menu-row .setting-icon { color: #69785c; }
.mini-mode .profile-menu-row > .icon { color: #69785c; }
.mini-mode .mobile-story-list > .memory-card:first-child h3,
.mini-mode .mobile-story-list > .memory-card:not(:first-child) h3 { color: #65864e; }
.mini-mode .mobile-story-list > .memory-card:first-child .memory-body > p,
.mini-mode .mobile-story-list .memory-date { color: #69785c; }
.mini-mode .workshop-link strong { color: #69785c; }
.mini-mode .workshop-link small { color: #69785c; }
.mini-mode .profile-card .eyebrow { color: #bfda9f; }
.mini-mode .profile-card p { color: #d3e9b6; }
.mini-mode .tabbar .nav-item[href="#add"] .icon { color: #fff9df; stroke: #fff9df; }
.ui-alert { display: flex; gap: 11px; padding: 14px 16px; border: 1px solid #dce9cb; border-radius: 9px; background: #f1f8e7; font-size: 13px; line-height: 1.9; color: #69785c; }
.ui-alert > .icon { height: 19px; width: 19px; margin-top: 3px; }
.ui-alert.warning { background: #faf5e9; border-color: #e8dabb; color: #69785c; }
.ui-alert.error { background: #faf0e9; border-color: #e8d5c5; color: #69785c; }
.ui-field-error { border-color: #bfa181; background: #fdf8f2; }
.person-identity h1, .mini-mode .person-identity h1 { white-space: normal; overflow-wrap: anywhere; }
.mini-mode .member-card-bottom { font-size: 11px; }
.mini-mode .page-head { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px 12px; align-items:center; }
.mini-mode .page-head > div:first-child { display:contents; }
.mini-mode .page-head h1 { grid-column:1; grid-row:1; margin:0; }
.mini-mode .page-head p { grid-column:1/-1; grid-row:2; margin:0; }
.mini-mode .page-actions { grid-column:2; grid-row:1; }
.mini-mode .tree-scope-bar { padding:12px 16px; }
.mini-mode .tree-scope-bar > p { margin-top:8px; }
.mini-mode .tree-toolbar { padding:12px 16px; gap:10px; }
.mini-mode .tree-legend { padding:8px 16px; gap:0; }
.mini-mode .tree-legend > span:not(.tree-instruction) { display:none; }
.mini-mode .tree-instruction { flex:1; font-size:11px; line-height:1.8; }
.mini-mode .mobile-family-hero h2 { color:#fff9e5; }
.portal-cta h2 { color:#f6f9e8; }
.editorial-heading > .text-link { display:inline-flex; flex-direction:row; align-items:center; white-space:nowrap; flex-shrink:0; }
.voice-art { display:flex; flex-direction:column; align-items:center; justify-content:center; }
@media(max-width:700px) and (max-height:700px) {
  .mini-mode .tree-scope-bar { padding:10px 14px; }
  .mini-mode .tree-toolbar { padding:10px 14px; }
  .mini-mode .tree-legend { padding:6px 14px; }
}
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { scroll-behavior: auto; } }

/* Mobile person heading: toolbar, identity and artwork have separate regions. */
.mini-mode .person-hero.person-hero-mini {
  position:relative; display:block; isolation:isolate; overflow:hidden;
  height:auto; min-height:0; padding:16px; margin:0;
  border:1px solid #e5d1a9; border-radius:12px;
  background-color:#fffaf1; background-image:none; box-shadow:none;
}
.mini-mode .person-hero-mini .person-cover-topline {
  position:relative; z-index:1; display:flex; align-items:center;
  justify-content:space-between; gap:10px; min-height:32px;
}
.mini-mode .person-hero-mini .person-cover-kicker {
  min-width:0; font-size:11px; line-height:1.5; letter-spacing:0;
  white-space:nowrap; color:#ad8e56;
}
.mini-mode .person-hero-mini .person-actions {
  display:inline-flex; align-items:center; flex-shrink:0;
  grid-area:auto; justify-self:auto; margin:0; padding:0; border:0;
}
.mini-mode .person-hero-mini .person-edit {
  min-height:32px; height:32px; padding:6px 10px; border-radius:7px;
  font-size:11px; line-height:1.5; gap:5px;
  background:#b64e3e; border-color:#bc9556; color:#fffaf0;
}
.mini-mode .person-hero-mini .person-edit .icon { width:14px; height:14px; }
.mini-mode .person-hero-mini .person-edit .icon-accent { stroke:currentColor; }
.mini-mode .person-hero-mini .readonly-badge {
  min-height:26px; padding:4px 7px; margin:0;
  border:1px solid #eee1c2; border-radius:6px;
  background:#fff6e0; color:#a58b59; font-size:10px; line-height:1.5;
}
.mini-mode .person-hero-mini .readonly-badge .icon { width:12px; height:12px; }
.mini-mode .person-hero-mini .person-cover-main {
  position:relative; z-index:1; display:grid;
  grid-template-columns:52px minmax(0,1fr); align-items:center; gap:12px;
  margin-top:12px; margin-right:70px; min-width:0;
}
.mini-mode .person-hero-mini .person-cover-main>.portrait {
  width:52px; height:52px; font-size:27px; object-fit:cover;
  border:1px solid #ecdfbf; background:#fbf0d5; color:#af9154;
}
.mini-mode .person-hero-mini .person-identity { min-width:0; }
.mini-mode .person-hero-mini .person-identity h1 {
  display:flex; align-items:center; flex-wrap:wrap; gap:6px;
  margin:0 0 5px; font:600 26px/1.38 var(--ui-font);
  letter-spacing:0; white-space:normal; color:#70512c;
}
.mini-mode .person-hero-mini .person-name { min-width:0; max-width:100%; overflow-wrap:anywhere; }
.mini-mode .person-hero-mini .person-gender { flex-shrink:0; margin:0; font-size:10px; line-height:1.5; padding:1px 4px; }
.mini-mode .person-hero-mini .person-identity p { margin:0; font-size:12px; line-height:1.7; color:#9c7d4c; }
.mini-mode .person-hero-mini .person-identity>small { display:block; margin-top:5px; font-size:11px; line-height:1.7; letter-spacing:0; color:#a88d5c; }
.mini-mode .person-hero-mini .person-cover-art {
  position:absolute; z-index:0; right:16px; bottom:13px;
  display:flex; align-items:center; justify-content:center;
  width:64px; height:84px; pointer-events:none; opacity:.93;
}
.mini-mode .person-hero-mini .person-cover-art img { display:block; width:64px; height:64px; object-fit:contain; }
@media(max-width:374px) {
  .mini-mode .person-hero-mini .person-cover-art { display:none; }
  .mini-mode .person-hero-mini .person-cover-main { margin-right:0; }
}
@media(max-width:360px) {
  .mini-mode .person-hero-mini .person-cover-main { grid-template-columns:50px minmax(0,1fr); gap:10px; }
  .mini-mode .person-hero-mini .person-cover-main>.portrait { width:50px; height:50px; font-size:25px; }
  .mini-mode .person-hero-mini .person-identity h1 { font-size:24px; }
  .mini-mode .person-hero-mini .person-cover-kicker { font-size:10px; }
}
