/* Shared bright theme: white paper, pale champagne, fine gold, vermilion actions. */
:root {
  --ink:#403b32; --muted:#837966; --line:#e9e0cb;
  --paper:#fffdf7; --white:#fff; --gold:#b69551;
  --red:#b64e3e; --red-dark:#9d4033; --red-light:#fcf0e8;
  background:#fffdf7; color:#403b32;
}
.web-mode,.portal-mode,.ui-library { background:#fffdf7; }
.mini-mode { background:#f8f5ec; }
.web-mode .content,.mini-mode .content { background:#fffdf8; }
.sidebar { background:#fffef9; border-color:#e9dec4; }
.sidebar-family,.intro-family { background:#fff9e9; border-top-color:#d3b56e; border-bottom-color:#eee1c2; }
.sidebar-family select,.intro-family select { color:#8d7851; }
.sidebar .nav-item { color:#96866b; }
.sidebar .nav-item.active { color:#a7513e; background:#fff5df; box-shadow:inset 2px 0 #c8a24f; }
.sidebar .nav-item.active .icon-accent { stroke:#bb9646; }
.side-quote,.side-quote span,.mini-label,.live-tag { color:#a49577; }
.app-header,.mini-mode .app-header { background:#fffefa; border-color:#ebdfc3; }
.breadcrumbs,.breadcrumbs strong,.header-actions .quiet-link,.user-link { color:#978565; }
.preview-intro h1 { color:#5c4a31; }
.preview-intro>p,.preview-intro .eyebrow,.intro-note p,.intro-note small { color:#a5926b; }
.intro-note { border-color:#e5d4ad; }
.brand strong,.mini-brand strong { color:#584631; }
.brand small { color:#a68b5e; }
.brand-seal { background:#ad4637; }
.btn { background:#fffefa; color:#8c703e; border-color:#dfcfa9; }
.btn:hover { color:#8c6331; border-color:#bc9850; background:#fff8e6; }
.btn.primary { background:#b64e3e; border-color:#bd9656; color:#fffaf0; }
.btn.primary:hover { background:#a54134; border-color:#b48b43; }
.btn.primary .icon { color:inherit; }
.btn.subtle,.btn.ghost { background:#fff9eb; border-color:#e8d8b3; color:#9c7d45; }
.icon-btn,.quiet-link { color:#a18d66; }
.text-link { color:#a55c3e; }
.icon-btn:hover { background:#fff4da; }
.icon-accent { stroke:#b8944c; }
.setting-icon,.mini-mode .setting-icon,.mini-mode .profile-menu-row .setting-icon {
  background:#fff5de; color:#af9155; border:1px solid #f1e4c6;
}
.heritage-icon { color:#a38548; }
.avatar { background:#f8efd8; color:#a18a55; }
.avatar.rose { background:#fbeee5; color:#b58970; }
.pill,.readonly-badge { background:#faf4e4; color:#a18c62; }
.pending-badge,.service-status,.mini-mode .service-status { background:#fff3d6; color:#ac853e; }
.panel,.member-card,.memory-card,.media-card,.personal-menu,.personal-options,
.mini-mode .personal-menu,.mini-mode .personal-options,.overview-columns>.panel {
  background:#fff; border-color:#e9dfc9;
}
.page-head h1,.mini-mode .page-head h1,.section-head h2,.mini-mode .section-head h2,
.person-identity h1,.mini-mode .person-identity h1,.member-card h3,.mini-mode .member-card h3,
.memory-body h3,.mini-mode .memory-body h3,.media-card-body h3,.mini-mode .media-card-body h3,
.form-section-heading h2,.mini-mode .form-section-heading h2,.lineage-assistant-head h3,
.mini-mode .lineage-assistant-head h3,.journey-timeline h2,.journey-step strong,
.journey-detail h3,.mini-mode .journey-detail h3,.dialog-head h2,.mini-mode .dialog-head h2 {
  color:#695535;
}
.page-head p,.mini-mode .page-head p,.section-head p,.mini-mode .section-head p,
.bio-text,.mini-mode .bio-text,.memory-body>p,.mini-mode .memory-body>p,
.media-card-body>p,.mini-mode .media-card-body>p,.member-card p,.mini-mode .member-card p,
.info-panel dt,.info-note,.mini-mode .info-note,.storage-note,.settings-row small,
.person-identity p,.mini-mode .person-identity p,.person-identity>small,.mini-mode .person-identity>small,
.member-meta,.mini-mode .member-meta,.member-card-bottom,.mini-mode .member-card-bottom,
.memory-date,.mini-mode .memory-date,.media-card-meta,.mini-mode .media-card-meta,
.result-meta,.menu-value,.mini-mode .menu-value,.personal-group>h2,.mini-mode .personal-group>h2 {
  color:#99896b;
}
.editor-form label,.mini-mode .editor-form label,
.editor-form label input,.mini-mode .editor-form label input,
.editor-form label select,.mini-mode .editor-form label select,
.editor-form label textarea,.mini-mode .editor-form label textarea { color:#8a754f; }
:where(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea),
.editor-form label input,.editor-form label select,.editor-form label textarea,
.mini-mode .editor-form label input,.mini-mode .editor-form label select,.mini-mode .editor-form label textarea {
  background:#fffefa; border-color:#e8dcc0; color:#8d7650;
}
.search-field { background:#fffdf6; border-color:#e8dcc0; color:#b6a06f; }
.search-field>input { border:0; background:transparent; color:#8d7650; }
.search-field>.icon { color:#b09a66; }
.search-field:focus-within { border-color:#c8a45c; box-shadow:0 0 0 3px #f3e7c466; }
input::placeholder,textarea::placeholder { color:#b7a887; }
.editor-form input:disabled,.editor-form select:disabled { background:#f8f4e9; color:#b8aa8e; }
.chip,.scope-tab,.mini-mode .scope-tab { background:#fffefa; border-color:#e9dcc0; color:#a08a60; }
.chip.active,.scope-tab.active,.mini-mode .scope-tab.active { background:#fff3d5; border-color:#d7ba7e; color:#ad6741; }
.media-tabs { background:#faf4e4; }
.media-tab { color:#ac9468; }
.media-tab.active { background:#fff; border-color:#e8d5a9; color:#a26442; }
.media-tab span,.media-tab.active span { color:#b49a67; }
.media-entry,.mini-mode .media-entry { background:#fff8e7; border-color:#eddfbe; }
.media-entry strong,.mini-mode .media-entry strong { color:#9f7a3e; }
.media-entry small,.mini-mode .media-entry small { color:#b2a07d; }
.media-entry-icons { color:#b79756; }
/* Light identity card on both desktop and the phone. */
.profile-card,.mini-mode .profile-card {
  background:#fff9e9; border-color:#e7d6ac; border-top-color:#c5a157; box-shadow:inset 0 1px #fff;
}
.profile-card .avatar,.mini-mode .profile-card>.avatar { background:#f7edcf; border-color:#e5d3a3; color:#ab8d48; }
.profile-card .eyebrow,.mini-mode .profile-card .eyebrow { color:#ab8b4e; }
.profile-card h2,.mini-mode .profile-card h2 { color:#71562f; }
.profile-card p,.mini-mode .profile-card p { color:#a38c60; }
.profile-card-action,.mini-mode .profile-card-action { color:#a88b50; border-color:#dec58f; background:#fffdf5; }
.profile-stats strong,.personal-metric strong,.mini-mode .personal-metric strong,.family-counts strong { color:#a07a37; }
.profile-stats span,.personal-metric span,.mini-mode .personal-metric span,.family-counts span { color:#ac9971; }
.personal-metric,.profile-stats>div { border-color:#e9d9b6; }
.profile-menu-row,.settings-row { border-color:#f0e7d2; }
.profile-menu-label,.mini-mode .profile-menu-label,.settings-row strong { color:#927344; }
.profile-menu-row>.icon,.mini-mode .profile-menu-row>.icon,.settings-row>.icon { color:#c2aa78; }
.personal-options summary,.mini-mode .personal-options summary { color:#a28956; }
.personal-options-body>p,.mini-mode .personal-options-body>p,.personal-options-body>label,.mini-mode .personal-options-body>label { color:#ad9a73; }
.profile-settings .storage-note { background:#fff9e9; color:#a48f65; }
/* The phone preview is a narrow container even on a wide browser window. */
.mini-mode .mini-header-row { display:flex; align-items:center; justify-content:space-between; gap:14px; min-height:44px; padding-bottom:9px; }
.mini-header-context { min-width:0; flex:1; }
.mini-mode .mini-header-context>select {
  display:block; width:100%; min-width:0; min-height:36px; padding:6px 0; font-size:12px;
  line-height:1.5; border:0; border-radius:0; background:transparent; color:#a08655;
}
.mini-mode .capsule { border-color:#e8d9b7; color:#ad915a; flex-shrink:0; }
.mini-mode .person-columns { display:grid; grid-template-columns:minmax(0,1fr); gap:0; }
.mini-mode .person-columns>div,.mini-mode .person-columns .panel { min-width:0; width:100%; }
.mini-mode .info-panel dl>div { display:grid; grid-template-columns:76px minmax(0,1fr); align-items:start; gap:12px; }
.mini-mode .info-panel dd { margin:0; text-align:right; word-break:normal; overflow-wrap:break-word; color:#8e7750; }
.mini-mode .info-panel dd time { white-space:nowrap; font-variant-numeric:tabular-nums; }
.mini-mode .info-panel .section-head h2 { white-space:nowrap; }
.person-hero { background:#fff; border-color:#e8dbc0; border-top-color:#c3a05b; }
.person-hero>.portrait,.mini-mode .person-hero>.portrait { background:#fbf2d9; }
.person-identity .eyebrow,.mini-mode .person-identity .eyebrow { color:#b39b68; }
.person-gender { background:#fffaf0; border-color:#e5d5af; color:#b09967; }
.person-actions,.mini-mode .person-actions { border-color:#eee3cd; }
.person-section-nav { border-color:#eadebf; }
.person-section-nav button,.mini-mode .person-section-nav button { color:#aa9060; }
.person-section-nav button:hover { color:#a4673e; border-color:#bd9850; }
.relative-card { background:#fffdf5; border-color:#eee2c7; }
.relative-card strong,.info-panel dd { color:#a0834c; }
.relative-card small { color:#bca980; }
.info-panel dl>div { border-color:#f0e6cf; }
.info-note { background:#fffbef; border-color:#eee0bd; }
/* Bright family covers and closing section, with readable dark lettering. */
.desktop-family-hero,.desktop-family-hero .hero-copy { background:#fff8e8; }
.desktop-family-hero .hero-copy h2 { color:#705531; }
.desktop-family-hero .hero-tag,.desktop-family-hero .hero-copy>p,.desktop-family-hero .hero-copy small { color:#ac915e; }
.mini-mode .mobile-family-hero { border:1px solid #e7d6b1; background:#fff8e8; }
.mini-mode .mobile-family-hero:before { background:linear-gradient(90deg,#fffbf0f2 0%,#fffbf0dc 40%,#fffbf054 100%); }
.mini-mode .mobile-family-hero h2 { color:#79582f; }
.mini-mode .mobile-family-hero .hero-tag,.mini-mode .mobile-family-hero p { color:#a1834d; }
.mini-mode .hero-tree-link { color:#b1573e; border-color:#d4b675; }
.mobile-photo-note { color:#8e7954; text-shadow:0 1px 2px #fff9; }
.family-counts>div,.mobile-shortcuts { border-color:#ece0c6; }
.mobile-shortcut { color:#a18754; }
.mobile-shortcut:nth-child(n) .heritage-icon { color:#af8e48; background:#fff6df; border-color:#efdfb8; }
.family-search { background:#fff5df; color:#b09868; }
.mobile-members>div:not(.section-head) { background:#fff; border-color:#ecdfc1; }
.mobile-members strong { color:#9d8150; }
.mobile-members small { color:#b5a17b; }
.workshop-link,.mini-mode .workshop-link { background:#fff9e9; border-color:#ebdab1; }
.workshop-link strong,.mini-mode .workshop-link strong { color:#a17c3f; }
.workshop-link small,.mini-mode .workshop-link small { color:#b49f74; }
.portal-cta { background:#fff7e4; border-color:#e5cfa0; border-top-color:#c2a15b; }
.portal-cta h2 { color:#6d5130; }
.portal-cta p,.portal-cta .editorial-kicker { color:#ad9160; }
.portal-cta .btn { color:#a96942; background:#fffefa; border:1px solid #dbc28a; }
.portal-mode .portal-hero h1,.heritage-statement h2,.experience-intro h2,.portal-services h2 { color:#654d30; }
.portal-mode .portal-hero h1 span { color:#b35b42; }
.portal-mode .case-body h3 { color:#896837; }
.portal-mode .floating-family { background:#fffdf4f5; border-color:#e2cf9f; }
.portal-mode .floating-family strong { color:#826234; }
.portal-mode .floating-family small,.portal-mode .featured-action { color:#ac8f58; }
.portal-service-links { background:#fff8e6; border-color:#d0b376; }
.portal-service-links strong { color:#9b773e; }
.portal-service-links small { color:#b19a6e; }
/* Paper-white tree, media, forms, and feedback surfaces. */
.tree-scope-bar,.mini-mode .tree-scope-bar,.tree-legend { background:#fffdf6; border-color:#eee2c4; }
.tree-scroll,.tree-panel.is-fullscreen .tree-scroll { background-color:#fffefa; background-image:radial-gradient(#e6d5af .65px,transparent .65px); }
.tree-node>a { background:#fff; border-color:#ddca9f; }
.tree-node strong { color:#92713d; }
.tree-node small { color:#b49c70; }
.tree-node .avatar { background:#fbf1d6; color:#b39a61; }
.tree-lines path { stroke:#d7c29a; }
.branch-toggle { color:#ae925a; background:#fffdf5; border-color:#dfcc9e; }
.tree-footer,.tree-controls,.zoom-controls { background:#fffaf0; border-color:#e9d8b2; }
.fullscreen-button { background:#fff8e6; border-color:#e7d4a9; color:#b19760; }
.tree-scope-bar>p,.mini-mode .tree-scope-bar>p,.tree-legend,.tree-instruction,.mini-mode .tree-instruction,.tree-summary,.tree-footer,.mini-mode .tree-footer { color:#a8946e; }
.tip-bar { background:#fff8e5; border-color:#edddb8; color:#aa9469; }
.voice-art { background:#fff8e7; color:#b69a5c; }
.voice-art>.icon,.voice-art>span { color:#b19a62; }
.voice-wave i { background:#c7b078; }
.media-card audio { background:#fff8ec; }
.media-card video { background:#f8efd9; }
.media-type-label { color:#a58b58; background:#fffaf0f0; }
.form-section-heading,.form-footer { border-color:#eee3cb; }
.form-section-heading>span { background:#fff4d9; color:#bc9d5b; }
.lineage-assistant { background:#fffcf2; border-color:#e9dcb9; }
.relation-hint,.lineage-existing,.lineage-descendants { background:#fff8e5; border-color:#eddfbc; color:#a38d61; }
.lineage-candidate { background:#fff; border-color:#ebddba; }
.lineage-candidate>div>span { background:#fff4d6; color:#b18b43; }
.map-visual { background:linear-gradient(#fff9e6e8,#fff9e6e8),url('design/hometown-river.webp') center/cover; }
.map-caption,.journey-map { background:#fffdf6; border-color:#eaddbf; }
.journey-step.active { background:#fff6df; }
.journey-detail { background:#fff7e0; border-color:#ead6aa; }
.timeline-dot { background:#ddc48b; border-color:#f5e8c5; }
.map-point.active strong { background:#c09a52; border-color:#c09a52; }
dialog,.mini-mode dialog { border-color:#e6d4ab; border-top-color:#c2a05b; }
.dialog-head,.mini-mode .dialog-head { background:#fffdf6; border-color:#efe3c8; }
.media-file-label,.memory-upload { background:#fffaf0; border-color:#ddc99c; color:#b29968; }
.media-upload-form .upload-owner { background:#fff8e7; border-color:#e8d8b2; color:#ad925e; }
.mini-mode .tabbar { background:#fffefa; border-color:#e6d8b8; }
.mini-mode .tabbar .nav-item { color:#b4a075; }
.mini-mode .tabbar .nav-item.active { color:#b0613f; }
.mini-mode .tabbar .nav-item[href="#add"] .icon { color:#fffaf0; stroke:#fffaf0; background:#b55743; border-color:#bb9653; }
.ui-library,.library-surface { background:#fffdf7; }
.library-surface { background:#fff; border-color:#e8dcc0; }
.library-intro h1,.library-section-title h2,.demo-empty h3 { color:#846538; }
.demo-icon-grid button,.demo-icon-sizes,#sample-large-icon { color:#a58a50; }
#sample-large-icon,.demo-empty-icon { background:#fff5db; color:#b2934d; }
.demo-icon-grid button:hover,.demo-icon-grid button.selected,.library-nav a:hover { background:#fff6df; border-color:#e8d4a6; }
/* Bright surfaces keep functional copy dark enough to read. */
.page-head p,.mini-mode .page-head p,.section-head p,.mini-mode .section-head p,
.bio-text,.mini-mode .bio-text,.memory-body>p,.mini-mode .memory-body>p,
.media-card-body>p,.mini-mode .media-card-body>p,.member-card p,.mini-mode .member-card p,
.member-meta,.mini-mode .member-meta,.member-card-bottom,.mini-mode .member-card-bottom,
.memory-date,.mini-mode .memory-date,.media-card-meta,.mini-mode .media-card-meta,
.info-panel dt,.info-note,.storage-note,.person-identity p,.mini-mode .person-identity p,
.person-identity>small,.mini-mode .person-identity>small,.profile-card p,.mini-mode .profile-card p,
.result-meta,.menu-value,.mini-mode .menu-value,.personal-group>h2,.mini-mode .personal-group>h2,
.personal-options-body>p,.mini-mode .personal-options-body>p { color:#887552; }
.profile-menu-label,.mini-mode .profile-menu-label,.settings-row strong { color:#8a6b38; }
.mini-mode .mobile-family-hero .hero-tag,.mini-mode .mobile-family-hero p { color:#8f7342; }
.portal-cta p,.portal-cta .editorial-kicker { color:#967b4d; }
@media(max-width:700px) {
  .web-mode .sidebar { background:#fffefa; border-color:#e8dab9; }
  .mini-mode .app-header { padding:env(safe-area-inset-top) 20px 0; }
  .library-nav a { background:#fff6e1; }
}
/* A single layout owner: every region shares the same two vertical edges. */
.view-shell { width:100%; max-width:1600px; margin-inline:auto; }
.view-shell>*,.view-shell>.person-hero,.view-shell>.stats-grid { width:100%; max-width:none; margin-inline:0; }
.content[data-page=add] .view-shell { max-width:1600px; }
.desktop-family-hero { border:1px solid #e8d8b3; border-radius:12px 12px 0 0; margin-bottom:0; }
.desktop-family-hero .hero-copy { background:#fff9ea url('design/archive-paper.svg') right center/auto 100% no-repeat; }
.web-mode .stats-grid { margin-top:0; margin-bottom:22px; padding:14px 0; border:1px solid #e8d8b3; border-top:0; border-radius:0 0 12px 12px; background:#fffdf5; }
.stat-card { border-color:#eadfc5; }
a.stat-card { padding:0; color:inherit; }
a.stat-card:hover { background:#fff8e6; }
.stat-number { display:block; font-size:28px; line-height:1.3; color:#a17b3b; margin:0 0 4px; }
.stat-label { color:#9f8b64; font-size:12px; }
.overview-columns>.panel { background:#fffefa; }
.tree-preview { padding-bottom:18px; }
.record-invitation { background:#fff8e7; border-left-color:#c8a25a; }
.activity-mark,.mini-node { background:#fffaf0; border-color:#eadcbb; }
.mini-node strong { color:#9b7d48; }
.panel-foot { background:#fffbf1; color:#ad9871; border-color:#eee2c9; }
/* An archival cover, not a flat name rectangle. The engraving is decorative. */
.profile-card,.mini-mode .profile-card {
  background-color:#fff9eb;
  background-image:url('design/archive-paper.svg');
  background-repeat:no-repeat;
  background-position:right center;
  background-size:auto 100%;
}
.profile-card,.mini-mode .profile-card { position:relative; isolation:isolate; overflow:hidden; }
.profile-card:before,.mini-mode .profile-card:before { content:''; display:block; position:absolute; left:7px; top:17px; bottom:17px; width:2px; background:#d2b26c; opacity:.7; border:0; }
.profile-card>*,.mini-mode .profile-card>* { position:relative; z-index:1; }
.profile-overview { display:grid; grid-template-columns:1.05fr 1fr; gap:22px; margin-bottom:24px; }
.profile-overview .profile-stats { margin:0; padding:14px 0; align-items:center; border:1px solid #e9dcbc; border-radius:12px; background:#fffefa; }
.profile-overview .profile-stats strong,.profile-overview .profile-stats span { margin:0; }
.profile-stats .profile-stat-visual { width:34px; height:34px; object-fit:contain; margin:0 0 3px; }
.mini-mode .personal-passport { border:1px solid #e6d2a4; border-radius:15px; overflow:hidden; background:#fffefa; margin-bottom:20px; box-shadow:0 5px 16px #b28e2d08; }
.mini-mode .personal-passport .profile-card { border:0; border-bottom:1px solid #eadbb9; border-radius:0; padding:20px 18px; min-height:119px; }
.mini-mode .personal-passport .personal-metrics { margin:0; padding:13px 0 12px; background:#fffdf6; }
.mini-mode .personal-passport .personal-metric { min-height:50px; gap:2px; border-color:#ecdfc1; }
.mini-mode .personal-passport .personal-metric strong { font-size:25px; }
.mini-mode .personal-passport .personal-metric span { font-size:11px; }
.mini-mode #content[data-page=profile] .page-head { margin-bottom:16px; }
.mini-mode .personal-groups { gap:18px; }
.mini-mode .personal-group>h2 { margin-bottom:8px; font-size:12px; letter-spacing:1px; color:#a68b59; }
.mini-mode .profile-menu-row { min-height:61px; padding-top:12px; padding-bottom:12px; }
.mini-mode .personal-options summary { min-height:60px; }
/* The wide archive header contains ancestry context instead of an empty field. */
.web-mode .person-hero { grid-template-columns:76px minmax(220px,1fr) minmax(265px,.9fr) auto; gap:24px; padding:24px 28px; }
@media(min-width:1101px) {
  .web-mode .person-hero>.portrait { grid-column:1; grid-row:1; }
  .web-mode .person-identity { grid-column:2; grid-row:1; }
  .web-mode .person-family-context { grid-column:3; grid-row:1; }
  .web-mode .person-actions { grid-column:4; grid-row:1; justify-self:end; align-self:center; }
}
.person-family-context { min-width:0; padding:8px 0 8px 24px; border-left:1px solid #e5d4ab; }
.person-family-context .eyebrow { font-size:11px; letter-spacing:1px; color:#b19762; }
.person-family-context>p { font-size:12px; color:#a48c60; margin-top:9px; line-height:1.8; }
.ancestry-trail { display:flex; align-items:center; flex-wrap:wrap; gap:7px; margin-top:8px; }
.ancestry-trail a,.ancestry-trail strong { color:#9c7b40; font-size:13px; line-height:1.8; font-weight:400; }
.ancestry-trail strong { font-weight:600; color:#866334; }
.ancestry-trail>.icon { width:11px; height:11px; color:#c8ae79; }
.relatives-single { grid-template-columns:1fr; }
.relative-note { grid-column:1/-1; padding:11px 13px; border-radius:7px; background:#fffbf1; border:1px dashed #eadbb9; color:#aa936c; font-size:12px; line-height:1.8; }
.person-columns { grid-template-columns:minmax(0,.85fr) minmax(0,1fr); gap:24px; }
.bio-text { font-size:15px; line-height:2.1; }
.person-columns .panel { margin-bottom:18px; }
.person-columns .section-head { padding-top:21px; padding-bottom:18px; }
.info-panel dl>div { padding-top:12px; padding-bottom:12px; }
/* Directory cards show identity, birth, ancestry, and place on clear rows. */
.member-card { padding:25px 18px 0; text-align:left; }
.member-card-person { display:flex; align-items:center; gap:12px; padding-top:5px; min-width:0; }
.member-card-person>.avatar { width:48px; height:48px; font-size:26px; }
.member-card-person>div { min-width:0; }
.member-card-person h3 { margin:0 0 4px; }
.member-card-person p { margin:0; font-size:12px; line-height:1.8; }
.member-card-details { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:19px; padding-top:14px; border-top:1px solid #f0e5ce; }
.member-card-details small { display:block; color:#b49e76; font-size:10px; margin-bottom:4px; }
.member-card-details strong { display:block; color:#987746; font-size:12px; line-height:1.8; font-weight:400; }
.member-card-bottom { margin-top:14px; }
.member-card-bottom,.memory-bottom,.member-toolbar { border-color:#ecdfc5; }
.generation-pill { background:#fff5dc; color:#b19459; }
.member-open { display:inline-flex; align-items:center; gap:7px; color:#b08d4c; white-space:nowrap; }
.member-open>.icon { width:14px; height:14px; }
/* Full collections get a lead story and two companion stories. */
.web-mode .memory-gallery { grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); gap:20px; align-items:stretch; }
.web-mode .memory-gallery>.memory-card:first-child { grid-row:span 2; }
.web-mode .memory-gallery>.memory-card:first-child .memory-cover { height:320px; }
.web-mode .memory-gallery>.memory-card:first-child .memory-body { padding:23px; }
.web-mode .memory-gallery>.memory-card:first-child h3 { font:600 23px/1.7 var(--serif); }
.web-mode .memory-gallery>.memory-card:nth-child(2),.web-mode .memory-gallery>.memory-card:nth-child(3) { display:grid; grid-template-columns:138px minmax(0,1fr); }
.web-mode .memory-gallery>.memory-card:nth-child(2) .memory-cover,.web-mode .memory-gallery>.memory-card:nth-child(3) .memory-cover { height:100%; min-height:200px; border-radius:11px 0 0 11px; }
.web-mode .memory-gallery>.memory-card:nth-child(2) .memory-body,.web-mode .memory-gallery>.memory-card:nth-child(3) .memory-body { padding:18px; }
.web-mode .memory-gallery>.memory-card:nth-child(2) h3,.web-mode .memory-gallery>.memory-card:nth-child(3) h3 { font-size:17px; }
.web-mode .memory-gallery>.memory-card:nth-child(2) .memory-body>p,.web-mode .memory-gallery>.memory-card:nth-child(3) .memory-body>p { font-size:12px; }
.web-mode .memory-gallery>.memory-card:nth-child(2) .memory-bottom,.web-mode .memory-gallery>.memory-card:nth-child(3) .memory-bottom { margin-top:12px; }
.web-mode .media-grid:has(>.media-card:only-child) { grid-template-columns:1fr; }
.web-mode .media-grid>.media-card:only-child { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); }
.web-mode .media-grid>.media-card:only-child .media-preview img,.web-mode .media-grid>.media-card:only-child video { height:340px; max-height:none; }
.web-mode .media-grid>.media-card:only-child .media-card-body { padding:28px; align-self:center; }
.web-mode .media-grid>.media-card:only-child .voice-art { min-height:230px; }
.web-mode .journey-grid { grid-template-columns:1.4fr 1fr; }
.web-mode .map-visual { min-height:420px; }
/* Useful recording guidance occupies the desktop rail. */
.add-layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:24px; align-items:start; }
.add-layout>.editor-panel { width:100%; max-width:none; margin:0; }
.add-guide { position:sticky; top:0; border:1px solid #e7d8b9; border-radius:12px; background:#fffbf0; overflow:hidden; }
.add-guide>img { display:block; width:100%; height:174px; object-fit:cover; }
.add-guide-copy { padding:22px; }
.add-guide-copy>.eyebrow { font-size:10px; letter-spacing:1px; color:#b29966; }
.add-guide h2 { font:500 23px/1.65 var(--serif); color:#886538; margin:10px 0 20px; }
.add-guide ol { padding:0 0 0 20px; margin:0; color:#b39864; }
.add-guide li { padding-left:4px; margin-bottom:18px; }
.add-guide li strong { display:block; font-size:13px; color:#94713e; font-weight:500; }
.add-guide li span { display:block; font-size:12px; color:#a58e64; line-height:1.9; margin-top:5px; }
.add-guide-family { border-top:1px solid #e7d6af; padding-top:17px; }
.add-guide-family>strong { display:block; font:500 18px/1.7 var(--serif); color:#93703a; }
.add-guide-family>span { display:block; font-size:11px; color:#af976a; margin:5px 0 10px; }
.add-guide-family .text-link { font-size:12px; }
.media-empty { display:grid; grid-template-columns:112px minmax(0,1fr); grid-template-rows:auto auto; align-items:center; column-gap:24px; padding:25px; text-align:left; border:1px dashed #eadcb9; border-radius:10px; background:#fffdf5; }
.media-empty>img { grid-column:1; grid-row:1/3; width:112px; height:100px; margin:0; }
.media-empty>h3 { grid-column:2; align-self:end; font-size:18px; }
.media-empty>p { grid-column:2; align-self:start; margin-top:8px; max-width:640px; }
.media-empty>h3 { color:#987841; }
.media-empty>p { color:#a28c65; }
.header-search { flex:1; max-width:360px; margin:0 24px; }
.header-search .search-field { min-height:39px; background:#fffcf4; }
.header-search .search-field>input { min-height:37px; padding:8px 0; font-size:12px; }
.header-search kbd { font:10px/1.5 var(--ui-font); color:#c4ad7e; border:1px solid #eee1c4; border-radius:4px; padding:2px 5px; }
.sidebar-index { margin-top:20px; padding:12px 10px 10px; border:1px solid #e8dabb; border-radius:9px; background:#fffaf0; }
.sidebar-index-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:7px; gap:8px; }
.sidebar-index-head>span { font-size:11px; letter-spacing:1px; color:#b19a6b; }
.sidebar-index-head .quiet-link { font-size:10px; }
.sidebar-branch { display:flex; justify-content:space-between; align-items:center; width:100%; min-height:28px; padding:5px 0; gap:7px; }
.sidebar-branch>span { display:inline-flex; align-items:center; gap:6px; color:#a0844f; font-size:11px; }
.sidebar-branch .icon { width:12px; height:12px; }
.sidebar-branch small { color:#baa477; font-size:10px; }
.sidebar-branch:hover>span { color:#b15e3e; }
@media(min-width:701px) and (max-width:1100px) {
  .web-mode .person-hero { grid-template-columns:64px minmax(0,1fr) auto; gap:14px 16px; }
  .web-mode .person-family-context { grid-column:2/-1; border-left:0; border-top:1px solid #eadbb9; padding:12px 0 0; }
  .web-mode .person-actions { grid-column:3; grid-row:1; justify-self:end; }
  .web-mode .person-identity { padding-right:0; }
  .web-mode .memory-gallery { grid-template-columns:1fr 1fr; }
  .web-mode .memory-gallery>.memory-card:nth-child(2),.web-mode .memory-gallery>.memory-card:nth-child(3) { display:block; }
  .web-mode .memory-gallery>.memory-card:nth-child(2) .memory-cover,.web-mode .memory-gallery>.memory-card:nth-child(3) .memory-cover { height:150px; min-height:0; border-radius:11px 11px 0 0; }
  .web-mode .memory-gallery>.memory-card:first-child .memory-cover { height:300px; }
  .add-layout { grid-template-columns:minmax(0,1fr) 240px; gap:18px; }
  .add-guide-copy { padding:18px; }
  .profile-grid { grid-template-columns:1fr; grid-template-areas:"records" "requests" "settings"; }
}
@media(max-width:1000px) {
  .profile-overview { grid-template-columns:1fr; gap:14px; }
  .profile-overview .profile-stats { padding:14px 0; }
}
@media(max-width:1250px) { .header-search { display:none; } }
@media(max-height:900px) and (min-width:701px) { .sidebar .side-quote { display:none; } .sidebar-bottom { padding-top:12px; } }
.mini-mode .view-shell { max-width:none; }
.mini-mode .person-family-context { display:none; }
.mini-mode .member-card { padding:24px 12px 0; }
.mini-mode .member-card-person { gap:8px; padding-top:4px; }
.mini-mode .member-card-person>.avatar { height:36px; width:36px; font-size:21px; }
.mini-mode .member-card-person h3 { font-size:15px; line-height:1.6; margin:0 0 3px; }
.mini-mode .member-card-person p { font-size:10px; line-height:1.8; margin:0; }
.mini-mode .member-card-details { grid-template-columns:1fr; gap:6px; padding-top:10px; margin-top:12px; }
.mini-mode .member-card-details>span { display:flex; align-items:center; justify-content:space-between; gap:5px; }
.mini-mode .member-card-details small { font-size:10px; margin:0; }
.mini-mode .member-card-details strong { font-size:10px; }
.mini-mode .member-card-bottom { padding:10px 0; margin-top:11px; }
.mini-mode .member-card-bottom .member-meta { font-size:10px; }
.mini-mode .member-open>span { display:none; }
.mini-mode .add-layout { display:block; }
.mini-mode .add-guide { display:none; }
.mini-mode .media-empty { display:block; text-align:center; padding:23px 15px; }
.mini-mode .media-empty>img { width:110px; height:90px; margin:0 auto 13px; }
@media(max-width:700px) {
  .web-mode .sidebar-index { display:none; }
  .profile-overview { grid-template-columns:1fr; gap:12px; }
  .profile-overview .profile-stats { padding:14px 0; }
  .web-mode .person-hero { grid-template-columns:56px minmax(0,1fr); gap:14px; padding:22px 18px; }
  .web-mode .person-family-context { grid-column:1/-1; padding:12px 0 0; border-left:0; border-top:1px solid #ecddbf; }
  .web-mode .person-actions { grid-column:1/-1; grid-row:auto; }
  .web-mode .person-identity { padding-right:0; }
  .web-mode .memory-gallery { grid-template-columns:1fr; }
  .web-mode .memory-gallery>.memory-card:first-child { grid-row:auto; }
  .web-mode .memory-gallery>.memory-card:nth-child(2),.web-mode .memory-gallery>.memory-card:nth-child(3) { display:block; }
  .web-mode .memory-gallery>.memory-card:first-child .memory-cover,.web-mode .memory-gallery>.memory-card:nth-child(2) .memory-cover,.web-mode .memory-gallery>.memory-card:nth-child(3) .memory-cover { height:195px; min-height:0; border-radius:11px 11px 0 0; }
  .web-mode .memory-gallery>.memory-card:first-child h3 { font-size:19px; }
  .web-mode .media-grid>.media-card:only-child { display:block; }
  .web-mode .media-grid>.media-card:only-child .media-preview img,.web-mode .media-grid>.media-card:only-child video { height:220px; }
  .web-mode .journey-grid { grid-template-columns:1fr; }
  .web-mode .map-visual { min-height:300px; }
  .add-layout { display:block; }
  .add-guide { display:none; }
  .media-empty { display:block; text-align:center; padding:23px 15px; }
  .media-empty>img { width:110px; height:90px; margin:0 auto 13px; }
}
@media(max-width:360px) {
  .mini-mode .personal-passport .profile-card { padding:19px 14px; }
  .mini-mode .personal-passport .personal-metric span { font-size:10px; }
  .mini-mode .member-card { padding-left:10px; padding-right:10px; }
  .mini-mode .member-card-person { gap:7px; }
  .mini-mode .member-card-person>.avatar { width:30px; height:30px; font-size:19px; }
  .mini-mode .member-card-person h3 { font-size:14px; }
  .mini-mode .member-card-bottom .member-meta { font-size:9px; }
}
/* API-generated paper-craft identity, composed for the actual mobile layouts. */
.mini-mode .content { background-color:#fffdf8; background-image:none; }
.mini-mode .mobile-family-hero { height:240px; background:#fff9ec; border-color:#e3ca99; box-shadow:0 5px 16px #b3913810; }
.mini-mode .mobile-family-hero>.mobile-cover { inset:0 0 0 auto; width:68%; height:100%; object-fit:contain; object-position:right center; z-index:-1; }
.mini-mode .mobile-family-hero:before { z-index:0; background:linear-gradient(90deg,#fff9ec 0%,#fff9ecdd 28%,#fff9ec44 48%,transparent 70%); }
.mini-mode .mobile-family-hero .hero-copy { position:relative; z-index:1; padding:27px 22px; }
.mini-mode .mobile-family-hero h2 { font-size:31px; letter-spacing:3px; color:#80552f; }
.mini-mode .mobile-family-hero p { font-size:12px; color:#a07840; letter-spacing:1px; }
.mini-mode .mobile-family-hero .hero-tag { font-size:11px; letter-spacing:1px; color:#ad8650; }
.mini-mode .mobile-family-hero .mobile-photo-note { z-index:1; font-size:8px; color:#b49b72; }
.mini-mode .family-counts { padding:16px 0; }
.mini-mode .mobile-shortcuts { grid-template-columns:repeat(4,minmax(0,1fr)); row-gap:10px; column-gap:4px; padding:14px 2px 18px; border-top:1px solid #ead8b2; }
.mini-mode .mobile-shortcut { min-width:0; gap:5px; padding:0; font-size:11px; line-height:1.7; color:#997344; }
.mini-mode .mobile-shortcut:nth-child(n) .heritage-icon { width:60px; height:60px; background:transparent; border:0; border-radius:0; box-shadow:none; }
.mini-mode .mobile-shortcut .heritage-icon>img { display:block; width:60px; height:60px; object-fit:contain; }
.mini-mode .mobile-shortcut:hover .heritage-icon>img { transform:translateY(-2px); }
.mini-mode .personal-passport .profile-card { background-color:#fff8e9; background-image:url('design/mini-craft/passport-cover.webp'); background-position:center; background-size:cover; }
.profile-overview .profile-card { background-image:url('design/mini-craft/passport-cover.webp'); background-position:right center; background-size:cover; }
.web-mode .person-hero { background-image:linear-gradient(90deg,#fff9eb 65%,#fff9eb00 92%),url('design/mini-craft/passport-cover.webp'); background-position:center,right center; background-size:100% 100%,auto 100%; }
.tree-canvas { min-width:0; margin-inline:auto; }
.mini-mode .personal-passport .profile-card:before { display:none; }
.mini-mode .personal-passport .profile-card .eyebrow { font-size:11px; color:#a8874c; }
.mini-mode .personal-passport .profile-card h2 { color:#7e552e; }
.mini-mode .personal-passport .profile-card p { color:#9c7944; }
.mini-mode .profile-card span.avatar { background:transparent url('design/mini-craft/avatar-wreath.webp') center/cover no-repeat; border:0; color:#a67d3a; }
.mini-mode .profile-card-action { background:#fffaf0db; border-color:#d5b576; color:#aa7d38; }
.mini-mode .personal-passport .personal-metrics { background-color:#fffdf6; background-image:none; }
.personal-invitation { display:flex; flex-direction:column; justify-content:center; min-height:94px; margin-top:19px; padding:18px; border:1px solid #e5cfa1; border-radius:12px; background:#fff9ec url('design/mini-craft/invite-banner.webp') right center/cover no-repeat; }
.personal-invitation>span { font-size:10px; color:#b2945e; letter-spacing:1px; }
.personal-invitation>strong { display:flex; align-items:center; gap:7px; width:70%; font:500 16px/1.8 var(--serif); color:#956b37; margin-top:4px; }
.personal-invitation .icon { width:14px; height:14px; }
.record-invitation { background-color:#fff9ec; background-image:url('design/mini-craft/invite-banner.webp'); background-position:right center; background-size:cover; }
.record-invitation strong { max-width:70%; }
.mini-mode .media-entry { position:relative; background:#fff9ec url('design/mini-craft/memory-banner.webp') right center/cover no-repeat; min-height:99px; }
.mini-mode .media-entry>span:not(.media-entry-icons) { max-width:68%; }
.mini-mode .media-entry>.icon { position:absolute; right:13px; top:50%; transform:translateY(-50%); width:27px; height:27px; padding:5px; border-radius:50%; background:#fffaf0d9; color:#b18443; }
.mini-mode .workshop-link { gap:8px; padding:12px 13px 16px; background:#fff9ee; overflow:hidden; }
.mini-mode .workshop-scene { display:block; flex:none; width:100%; height:108px; }
.mini-mode .workshop-scene>img { width:100%; height:108px; object-fit:contain; mix-blend-mode:multiply; }
.mini-mode .workshop-copy { display:block; flex:none; width:100%; }
.mini-mode .workshop-copy strong { font:500 16px/1.7 var(--serif); color:#9c6f37; }
.mini-mode .workshop-copy small { font-size:10px; color:#b1966c; }
.mini-mode .map-visual { background-image:linear-gradient(#fff9ec62,#fff9ec62),url('design/mini-craft/route-map.webp'); background-position:center; background-size:cover; }
.mini-mode .map-point strong { background:#fffaf0ee; border-color:#e2c998; color:#a67e40; }
.mini-mode .map-point.active strong { background:#c49853; color:#fffdf5; }
.mini-mode .migration-lines path { stroke:#ccaa6b; }
.media-card .voice-art>.voice-object,.mini-mode .media-card .voice-art>.voice-object { width:66px; height:66px; object-fit:contain; mix-blend-mode:multiply; }
.voice-art { min-height:177px; padding-top:15px; background:#fff8e9; }
.voice-art>span { margin-top:2px; font-size:12px; }
.voice-art .voice-wave { margin-top:6px; }
.media-empty>img,.mini-mode .media-empty>img,.personal-empty>img,.empty>img { height:112px; width:124px; object-fit:contain; }
.add-guide>img { height:190px; object-fit:contain; background:#fff9ec; }
.mini-mode .editor-form>.form-section-heading:first-child>div { flex:1; min-width:0; }
.mini-mode .editor-form>.form-section-heading:first-child:after { content:''; display:block; width:61px; height:57px; flex-shrink:0; background:url('design/mini-craft/recording-vignette.webp') center/contain no-repeat; mix-blend-mode:multiply; }
.service-preview>img { object-fit:contain; background:#fff9ec; }
@media(max-width:360px) {
  .mini-mode .mobile-family-hero { height:226px; }
  .mini-mode .mobile-family-hero .hero-copy { padding:25px 18px; }
  .mini-mode .mobile-family-hero h2 { font-size:28px; letter-spacing:2px; }
  .mini-mode .mobile-shortcut:nth-child(n) .heritage-icon,.mini-mode .mobile-shortcut .heritage-icon>img { width:53px; height:53px; }
  .mini-mode .mobile-shortcut { font-size:10px; }
  .mini-mode .personal-passport .profile-card { background-position:right center; }
  .mini-mode .workshop-scene,.mini-mode .workshop-scene>img { height:94px; }
  .mini-mode .workshop-copy strong { font-size:15px; }
  .mini-mode .editor-form>.form-section-heading:first-child:after { width:46px; height:50px; }
}
@media(prefers-reduced-motion:reduce) { .mini-mode .mobile-shortcut:hover .heritage-icon>img { transform:none; } }
