:root {
  --ink: #172627;
  --muted: #667170;
  --paper: #f3f0e8;
  --panel: #fbfaf6;
  --line: #d9d5ca;
  --forest: #244e46;
  --rust: #b55f3d;
  --blue: #5b7691;
  --edge-parent: #3f7287;
  --edge-spouse: #b05d3f;
  --shadow: 0 18px 50px rgba(26, 40, 38, .10);
}
.identity-parents { min-width: 0; margin: 16px 0; padding: 0; border: 0; }
.identity-parent-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.identity-parent-row p { min-width: 0; margin: 8px 0; }
.identity-parent-row label { display: block; margin-bottom: 6px; font-weight: 650; }
.identity-parent-row input { width: 100%; min-width: 0; }
@media (max-width: 480px) { .identity-parent-row { grid-template-columns: 1fr; gap: 4px; } }
.access-journey { max-width: 820px; margin: 36px auto; padding: 0 20px 40px; }
.access-steps { display: flex; flex-wrap: wrap; gap: 12px 22px; padding: 18px 0; list-style: none; color: var(--forest); }
.access-steps strong { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--forest); color: white; margin-right: 6px; }
.access-journey > .panel { margin: 22px 0; padding: clamp(18px, 4vw, 32px); border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.access-journey .panel h2 { margin-top: 0; }
.access-journey form > p > label { display: block; margin-bottom: 7px; font-weight: 650; }
.access-journey input:not([type='checkbox']):not([type='radio']):not([type='hidden']), .access-journey textarea:not([hidden]) { width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--paper); color: var(--ink); font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.site-header { height: 74px; display: flex; align-items: center; gap: 18px; padding: 0 28px; border-bottom: 1px solid var(--line); background: rgba(251,250,246,.95); }
.brand { color: var(--ink); display: flex; align-items: center; gap: 11px; text-decoration: none; min-width: 225px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50% 50% 46% 46%; background: var(--forest); color: #fff; font: 700 20px Georgia, serif; }
.brand strong, .brand small { display: block; }
.brand strong { font: 700 18px Georgia, serif; letter-spacing: .02em; }
.brand small { color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.site-header nav { display: flex; align-self: stretch; gap: 16px; }
.site-header nav a { display: grid; place-items: center; position: relative; color: var(--muted); text-decoration: none; font-weight: 650; }
.site-header nav a.active { color: var(--forest); }
.site-header nav a.active::after { content: ""; height: 3px; position: absolute; inset: auto 0 0; background: var(--rust); }
.profile-chip { margin-left: auto; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #d8e0dc; color: var(--forest); font-weight: 800; }
.tree-shell { height: calc(100vh - 74px); min-height: 650px; display: grid; grid-template-columns: 340px minmax(0, 1fr); }
.tree-sidebar { padding: 42px 30px 28px; border-right: 1px solid var(--line); background: var(--panel); overflow: auto; }
.eyebrow { margin: 0 0 12px; color: var(--rust); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1 { margin: 0; font: 600 clamp(34px, 4vw, 53px)/1.02 Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
.tree-sidebar h1 { font-size: 38px; }
.lede { color: var(--muted); margin: 20px 0 30px; }
.search-box span { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 750; }
.search-box input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.branch-list { display: grid; gap: 8px; margin-top: 24px; }
.view-switcher { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 22px 0 4px; padding: 0; border: 0; }.view-switcher legend { grid-column: 1 / -1; margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }.view-switcher button { min-height: 42px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 8px; background: #f3f1eb; color: var(--ink); font-size: 12px; font-weight: 700; }.view-switcher button.active { border-color: var(--forest); background: var(--forest); color: white; }.view-switcher p { grid-column: 1 / -1; margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.layout-switcher { display: none; gap: 7px; margin: 18px 0 0; padding: 16px 0 0; border: 0; border-top: 1px solid var(--line); }.show-overview .layout-switcher { display: grid; }.layout-switcher legend { color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }.layout-switcher label { color: var(--muted); font-size: 11px; font-weight: 700; }.layout-switcher select { width: 100%; min-width: 0; padding: 8px 9px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); }.layout-switcher p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.4; }.relationship-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 3px 0; }.relationship-legend span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; }.relationship-legend i { width: 22px; height: 0; border-top: 3px solid; }.relationship-legend i.parent-child { border-color: var(--edge-parent); }.relationship-legend i.partners { border-color: var(--edge-spouse); }.collapse-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }.collapse-controls[hidden] { display: none; }.collapse-controls button { padding: 7px 8px; border: 1px solid var(--line); border-radius: 7px; background: #f3f1eb; color: var(--ink); font-size: 10px; font-weight: 700; cursor: pointer; }.collapse-controls p { grid-column: 1 / -1; }
.overview-filters { display: none; gap: 9px; margin: 20px 0 0; padding: 18px 0 0; border: 0; border-top: 1px solid var(--line); }.show-overview .overview-filters { display: grid; }.overview-filters legend { color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }.overview-filters > label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 700; }.overview-filters select, .overview-filters input[type='number'] { width: 100%; min-width: 0; padding: 8px 9px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); }.generation-filter-list { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 8px; }.generation-filter-list[hidden], .birth-range-controls[hidden], .age-range-controls[hidden], .deceased-controls[hidden] { display: none; }.generation-filter-list label { display: grid; grid-template-columns: auto 24px 1fr; align-items: center; gap: 5px; min-width: 0; color: var(--muted); font-size: 10px; }.generation-filter-list input[type='color'], .birth-range-controls input[type='color'], .age-range-controls input[type='color'], .deceased-controls input[type='color'] { width: 24px; height: 24px; padding: 1px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }.birth-range-controls, .age-range-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }.birth-range-controls label, .age-range-controls label, .deceased-controls label { display: grid; gap: 4px; color: var(--muted); font-size: 10px; }.birth-range-controls label:last-child, .age-range-controls label:last-child, .deceased-controls label { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }.outline-legend { display: flex; flex-wrap: wrap; gap: 6px 10px; padding-top: 3px; }.outline-legend span { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 9px; }.outline-legend i { width: 17px; height: 10px; border: 3px solid; border-radius: 3px; }.outline-legend i.dashed { border-width: 2px; border-style: dashed; }.outline-legend i.narrow { border-width: 1px; }.filter-note { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.branch { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 10px; width: 100%; padding: 12px; border: 1px solid transparent; border-radius: 10px; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.branch:hover, .branch.active { border-color: #c9d5d0; background: #edf2ef; }
.branch span { color: var(--muted); font-size: 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.rust { background: var(--rust); }.blue { background: var(--blue); }
.privacy-note { display: flex; gap: 10px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--forest); }
.privacy-note > span { font-size: 8px; padding-top: 5px; }.privacy-note p { margin: 0; font-size: 12px; }.privacy-note strong { display: block; }
.tree-stage { position: relative; min-width: 0; overflow: hidden; background-color: #e9e7df; background-image: radial-gradient(#c8c5ba 1px, transparent 1px); background-size: 22px 22px; }
.stage-toolbar { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; margin: 20px; padding: 10px 12px; border: 1px solid rgba(208,204,193,.9); border-radius: 12px; background: rgba(251,250,246,.91); box-shadow: 0 7px 24px rgba(33,43,41,.08); }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #4c8469; }
.toolbar-actions { display: flex; gap: 3px; }.toolbar-actions button { min-width: 34px; height: 32px; border: 0; border-radius: 7px; background: #ecebe5; color: var(--ink); }
.preview-tree { position: absolute; inset: 72px 0 0; min-width: 780px; }
.person-card { position: absolute; z-index: 2; width: 185px; padding: 15px 16px; border: 1px solid #d2cfc5; border-left: 4px solid var(--rust); border-radius: 10px; background: #fffdf8; box-shadow: var(--shadow); }
.person-card small, .person-card strong, .person-card span { display: block; }.person-card small { color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }.person-card strong { margin: 5px 0 1px; font: 600 18px Georgia, serif; }.person-card span { color: var(--muted); font-size: 12px; }
.person-card button { margin-top: 11px; padding: 6px 9px; border: 0; border-radius: 6px; background: var(--forest); color: #fff; font-size: 11px; }
.ancestor-one { left: 12%; top: 46px; }.ancestor-two { left: 58%; top: 46px; }.grandparent { left: 35%; top: 235px; border-left-color: var(--blue); }.focal { left: 35%; top: 425px; border-left-color: var(--forest); }
.tree-line { position: absolute; z-index: 1; background: #9fa9a5; }.line-a { left: calc(12% + 92px); top: 145px; width: calc(46% + 1px); height: 1px; }.line-b { left: 50%; top: 145px; width: 1px; height: 90px; }.line-c { left: 50%; top: 335px; width: 1px; height: 90px; }
.generation-label { position: absolute; left: 24px; color: #7b8380; font-size: 10px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); }.generation-label-one { top: 48px; }.generation-label-two { top: 238px; }.generation-label-three { top: 428px; }
.request-fab { position: absolute; z-index: 4; right: 24px; bottom: 24px; padding: 13px 18px; border: 0; border-radius: 999px; background: var(--rust); color: #fff; box-shadow: 0 12px 30px rgba(129,61,37,.25); font-weight: 750; }
.auth-layout { min-height: calc(100vh - 74px); display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 8vw; padding: 8vw; background: linear-gradient(125deg, #e4e9e4, var(--paper) 60%); }
.auth-copy { max-width: 650px; }.auth-copy p:last-child { max-width: 560px; color: var(--muted); font-size: 18px; }
.archive-principles { margin: 28px 0 0; padding: 22px 24px; border: 1px solid #cbd9cf; border-radius: 14px; background: linear-gradient(135deg, #edf4ef, #f9f6ed); box-shadow: 0 10px 26px rgba(35, 66, 57, .07); }.archive-principles .eyebrow { margin-bottom: 7px; }.archive-principles h2 { margin: 0 0 10px; color: var(--forest); font: 600 24px/1.14 Georgia, "Times New Roman", serif; }.archive-principles p { max-width: 760px; margin: 0; color: #445553; font-size: 14px; line-height: 1.55; }.archive-principles ul { display: grid; gap: 7px; margin: 15px 0; padding: 0; list-style: none; }.archive-principles li { position: relative; padding-left: 20px; color: #344743; font-size: 13px; line-height: 1.45; }.archive-principles li::before { content: "•"; position: absolute; left: 3px; color: var(--rust); font-weight: 900; }.archive-principles .archive-principles-closing { padding-top: 13px; border-top: 1px solid #cedbd2; color: var(--forest); font-family: Georgia, "Times New Roman", serif; font-size: 15px; font-style: italic; }
.auth-card { width: min(430px, 100%); padding: 38px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); box-shadow: var(--shadow); }
.auth-card h2 { margin: 0 0 24px; font: 600 28px Georgia, serif; }.auth-card form { display: grid; gap: 16px; }.auth-card label { font-size: 12px; font-weight: 750; }.auth-card input { display: block; width: 100%; margin-top: 7px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }.primary-button { padding: 13px 16px; border: 0; border-radius: 8px; background: var(--forest); color: #fff; font-weight: 750; }.auth-access-request { display: grid; gap: 9px; margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line); }.auth-access-request p { margin: 0; color: var(--muted); font-size: 12px; font-weight: 750; }.auth-access-request .secondary-button { width: 100%; border-color: var(--forest); color: var(--forest); }.auth-access-request .secondary-button:hover, .auth-access-request .secondary-button:focus-visible { background: #e8f0ec; outline: 2px solid rgba(44,84,72,.25); outline-offset: 2px; }.form-error { color: #a9432f; }
.message-stack { position: fixed; z-index: 50; right: 20px; top: 92px; }.message { padding: 12px 16px; border-radius: 8px; background: var(--forest); color: #fff; box-shadow: var(--shadow); }
@media (max-width: 850px) {
  .site-header { padding: 0 16px; gap: 12px; }.brand { min-width: 0; }.brand small { display: none; }.site-header nav { margin-left: auto; gap: 14px; }.profile-chip { display: none; }
  .tree-shell { height: auto; min-height: calc(100vh - 74px); grid-template-columns: 1fr; }.tree-sidebar { padding: 26px 20px; border-right: 0; border-bottom: 1px solid var(--line); }.tree-sidebar h1 { font-size: 34px; }.branch-list, .privacy-note { display: none; }.tree-stage { min-height: 670px; }
  .auth-layout { grid-template-columns: 1fr; gap: 45px; padding: 55px 20px; }.auth-copy h1 { font-size: 40px; }.auth-card { justify-self: center; }
}
@media (max-width: 560px) { .site-header nav { display: none; }.brand strong { font-size: 16px; }.person-card { width: 165px; }.request-fab { right: 16px; bottom: 16px; } }

/* Application surfaces */
.account-menu { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.account-menu .profile-chip { display: grid; place-items: center; margin: 0; text-decoration: none; }
.account-menu form { margin: 0; }.account-menu form button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 700; }
.desktop-nav > a[href*="/guide/"], .desktop-nav > a[href*="/places/"], .desktop-nav > a[href*="/relationships/"], .desktop-nav > a[href*="/stories/"], .desktop-nav > a[href*="/documents/"], .desktop-nav > a[href*="/requests/"], .desktop-nav > a[href*="/manage/history/"], .desktop-nav > a[href*="/contact/"] { display: none; }
.desktop-nav > .staff-nav { display: none; }
.desktop-nav > a[href*="/tree/"] { order: 1; }
.desktop-nav > a[href*="/people/"] { order: 2; }
.desktop-nav > a[href*="/families/"] { order: 3; }
.desktop-nav > a[href*="/birthdays/"] { order: 4; }
.desktop-nav > .desktop-kinship-group { order: 5; }
.desktop-nav > .desktop-archive-group { order: 6; }
.desktop-nav > .desktop-admin-group { order: 7; }
.desktop-nav-group { position: relative; align-self: center; }
.desktop-nav-group > summary { display: flex; align-items: center; gap: 5px; min-height: 35px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 750; list-style: none; white-space: nowrap; }
.desktop-nav-group > summary::-webkit-details-marker { display: none; }
.desktop-nav-group > summary::after { content: "⌄"; font-size: 14px; line-height: 1; }
.desktop-nav-group.active > summary, .desktop-nav-group[open] > summary { border-color: #bdd0c4; background: #edf2ef; color: var(--forest); }
.desktop-nav-group > div { position: absolute; z-index: 101; top: calc(100% + 9px); right: 0; display: grid; min-width: 210px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: var(--shadow); }
.site-header .desktop-nav-group > div a { display: block; padding: 9px 10px; border-radius: 6px; color: var(--ink); font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.site-header .desktop-nav-group > div a:hover, .site-header .desktop-nav-group > div a:focus-visible { background: #edf2ef; color: var(--forest); }
.page-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 52px 0 80px; }
.tree-guide-link { display: inline-flex; align-items: center; margin: 4px 0 16px; color: var(--forest); font-size: 12px; font-weight: 800; text-decoration: none; }.tree-guide-link:hover, .tree-guide-link:focus-visible { color: var(--rust); text-decoration: underline; }
.guide-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; }.guide-heading .primary-link { flex: 0 0 auto; }.guide-start { margin-bottom: 18px; }.guide-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin: 0; padding: 0; list-style: none; counter-reset: guide-step; }.guide-steps li { position: relative; min-height: 86px; padding: 16px 15px 14px 51px; border: 1px solid var(--line); border-radius: 10px; background: #f8f6f0; }.guide-steps li::before { counter-increment: guide-step; content: counter(guide-step); position: absolute; left: 15px; top: 15px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: var(--forest); color: #fff; font-size: 12px; font-weight: 800; }.guide-steps strong { display: block; margin-bottom: 4px; }.guide-example { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .6fr); gap: 20px; margin: 18px 0; padding: 24px; border: 1px solid #d8c8a8; border-radius: 14px; background: #f6efdf; }.guide-example h2 { margin: 0 0 8px; font: 600 27px Georgia, serif; }.guide-example p { margin: 0; }.guide-example > p { align-self: center; padding: 12px; border-radius: 9px; background: rgba(255,255,255,.6); font-size: 13px; }.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }.guide-card { display: flex; flex-direction: column; min-height: 274px; }.guide-card h2 { margin-bottom: 11px; font-size: 23px; }.guide-card p { margin-top: 0; }.guide-card a:not(.primary-link) { margin-top: auto; color: var(--forest); font-weight: 800; text-decoration: none; }.guide-card a:not(.primary-link):hover, .guide-card a:not(.primary-link):focus-visible { color: var(--rust); text-decoration: underline; }.guide-safety, .guide-admin { margin-top: 18px; }.guide-safety ul { display: grid; gap: 8px; margin: 0; padding-left: 19px; }.guide-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 35px; margin-bottom: 34px; }
.page-heading h1, .form-page h1, .person-hero h1, .request-heading h1 { font-size: clamp(36px, 5vw, 58px); }
.page-heading p:not(.eyebrow), .form-page header > p:last-child, .request-heading p { max-width: 670px; color: var(--muted); }
.primary-link, .secondary-button { display: inline-flex; align-items: center; justify-content: center; padding: 11px 15px; border-radius: 8px; font-weight: 750; text-decoration: none; }
.primary-link { background: var(--rust); color: #fff; }.secondary-button { border: 1px solid var(--line); background: var(--panel); color: var(--ink); }
.list-search { display: grid; grid-template-columns: 1fr auto; gap: 7px; align-items: end; width: min(390px, 100%); }
.list-search label { grid-column: 1 / -1; font-size: 12px; font-weight: 750; }.list-search input { min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }.list-search button { padding: 11px 16px; border: 0; border-radius: 8px; background: var(--forest); color: #fff; }
.people-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.directory-card { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 14px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink); text-decoration: none; transition: transform .18s, box-shadow .18s; }.directory-card:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(28,39,37,.08); }.directory-card strong, .directory-card small { display: block; }.directory-card small { margin-top: 2px; color: var(--muted); }.directory-card i { color: var(--rust); font-style: normal; }
.person-monogram { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: #dfe7e2; color: var(--forest); font: 700 19px Georgia, serif; }.person-monogram.large { width: 86px; height: 86px; font-size: 38px; }
.breadcrumbs { display: flex; gap: 9px; margin-bottom: 34px; color: var(--muted); font-size: 12px; }.breadcrumbs a { color: var(--forest); }
.person-hero { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; margin-bottom: 42px; }.person-hero .eyebrow { margin-bottom: 3px; }.vital-line { margin: 7px 0 0; color: var(--muted); }.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, .8fr); gap: 16px; }.content-card { padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }.content-card.wide { grid-column: 1 / -1; }.content-card h2 { margin: 0 0 22px; font: 600 24px Georgia, serif; }.content-card h3 { margin: 26px 0 5px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }.card-title-row { display: flex; align-items: center; justify-content: space-between; }.card-title-row a:not(.primary-link) { color: var(--rust); font-weight: 750; }.card-title-row .primary-link { color: #fff; }.story-share-link { color: #fff !important; text-shadow: 0 1px 1px rgba(0, 0, 0, .28); }
.timeline { display: grid; }.timeline article { display: grid; grid-template-columns: 14px 1fr; gap: 12px; padding: 0 0 24px; position: relative; }.timeline article:not(:last-child)::before { content: ""; position: absolute; top: 10px; bottom: -2px; left: 4px; width: 1px; background: var(--line); }.timeline article i { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--rust); }.timeline article strong, .timeline article span { display: block; }.timeline article span { color: var(--muted); font-size: 12px; }.timeline article p { margin: 7px 0 0; }
.timeline a, .inline-links a, .linked-place a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.record-details { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #f4f2eb; }.record-details summary { color: var(--forest); cursor: pointer; font-size: 12px; font-weight: 750; }.record-details p:last-child { margin-bottom: 0; }
.record-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }.record-grid .record-details { margin: 0; }.linked-record { display: block; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: #f4f2eb; color: var(--ink); text-decoration: none; }.linked-record strong, .linked-record small { display: block; }.linked-record small { margin-top: 3px; color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }.tag-list span { padding: 6px 9px; border: 1px solid color-mix(in srgb, var(--tag-color) 45%, white); border-radius: 999px; background: color-mix(in srgb, var(--tag-color) 10%, white); font-size: 12px; }
.empty-panel { grid-column: 1 / -1; padding: 55px; border: 1px dashed #c7c3b8; border-radius: 14px; text-align: center; }.empty-panel h2 { font: 600 27px Georgia, serif; }.empty-copy { color: var(--muted); }
.filter-tabs { display: flex; gap: 6px; margin: 0 0 18px; overflow-x: auto; }.filter-tabs a { flex: 0 0 auto; padding: 8px 11px; border-radius: 7px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 700; }.filter-tabs a.active { background: var(--forest); color: #fff; }
.request-table, .comment-list { display: grid; gap: 8px; }.request-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); text-decoration: none; }.request-row strong, .request-row small { display: block; }.request-row small, .request-row time { color: var(--muted); font-size: 11px; }
.status-badge { display: inline-flex; width: max-content; padding: 4px 7px; border-radius: 999px; background: #e7e4dc; color: #555; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }.status-badge.submitted, .status-badge.pending { background: #f3e6d4; color: #8a572d; }.status-badge.reviewing { background: #dce7ef; color: #385b74; }.status-badge.accepted, .status-badge.approved, .status-badge.applied { background: #dbeadf; color: #356247; }.status-badge.rejected { background: #f1dcd7; color: #874332; }
.form-page { width: min(800px, calc(100% - 40px)); margin: 0 auto; padding: 60px 0 90px; }.form-page header { margin-bottom: 34px; }.editor-form { padding: 30px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: var(--shadow); }.editor-form p { margin: 0 0 18px; }.editor-form label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 800; }.editor-form input:not([type='checkbox']), .editor-form select, .editor-form textarea, .auth-card input, .auth-card select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }.editor-form .helptext, .auth-card .helptext { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }.editor-form ul.errorlist, .auth-card ul.errorlist { margin: 5px 0; padding-left: 18px; color: #9d412f; font-size: 12px; }.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; padding-top: 18px; border-top: 1px solid var(--line); }.form-actions a { color: var(--muted); }
.request-heading { max-width: 850px; margin-bottom: 32px; }.request-heading .status-badge { margin-bottom: 10px; }.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.comparison-grid > div { padding: 16px; border-radius: 10px; background: #eeece5; }.comparison-grid small { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.attachment-link { display: inline-flex; margin-top: 16px; color: var(--forest); font-weight: 750; }.comment-list article { padding: 15px; border-radius: 9px; background: #efede6; }.comment-list article strong, .comment-list article time { display: inline-block; }.comment-list article time { margin-left: 8px; color: var(--muted); font-size: 10px; }.comment-list article p { margin-bottom: 0; }.comment-form { margin-top: 20px; }.comment-form textarea { width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 8px; }
.identity-approved { display: flex; align-items: center; gap: 18px; margin-bottom: 32px; padding: 24px; border: 1px solid #bad1c1; border-radius: 14px; background: #e8f1eb; }.identity-approved > span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--forest); color: #fff; font-size: 22px; }.identity-approved h2 { margin: 0; font: 600 27px Georgia, serif; }.identity-approved a { color: var(--forest); }.claim-history { margin-top: 35px; }.claim-history h2 { font: 600 24px Georgia, serif; }.claim-history article { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }.claim-history article p { grid-column: 2 / -1; margin: 0; }.claim-history time { color: var(--muted); font-size: 11px; }

/* Authorized graph */
.visualization-layer { display: none !important; }.visualization-layer.is-active { display: block !important; }.tree-chart { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; max-height: none !important; background: transparent !important; --background-color: transparent; --text-color: var(--ink); --female-color: #fffaf5; --male-color: #f6fbf8; --genderless-color: #fbfaf6; }
.tree-overview { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }.tree-overview svg { width: 100%; height: 100%; cursor: grab; }.tree-overview svg:active { cursor: grabbing; }.overview-link { fill: none; stroke: var(--edge-parent); stroke-width: 1.65px; stroke-linecap: square; stroke-linejoin: round; opacity: .88; vector-effect: non-scaling-stroke; transition: opacity .12s ease, stroke-width .12s ease; }.overview-link.spouse { stroke: var(--edge-spouse); stroke-width: 2.7px; }.overview-link.sibling-bar, .overview-link.family-trunk { stroke-width: 2.15px; }.overview-link.portal-stub { stroke-dasharray: 3 3; stroke-width: 1.8px; }.overview-link.is-dimmed, .family-junction.is-dimmed, .family-portal.is-dimmed, .collapsed-summary.is-dimmed { opacity: .1; }.overview-link.is-emphasized { stroke: #174d61; stroke-width: 3.2px; opacity: 1; }.overview-link.spouse.is-emphasized { stroke: #78351f; }.family-junction { fill: var(--edge-parent); stroke: #fbfaf6; stroke-width: 1.2px; vector-effect: non-scaling-stroke; transition: opacity .12s ease; }.family-junction.is-emphasized { fill: #174d61; opacity: 1; }.family-junction.foldable { r: 5px; cursor: pointer; stroke-width: 2px; }.overview-link.collapsed-branch-stub { stroke-dasharray: 4 3; }.collapsed-summary { cursor: pointer; }.collapsed-summary rect { fill: #eef4f1; stroke: var(--edge-parent); stroke-width: 1.8px; vector-effect: non-scaling-stroke; }.collapsed-summary text { fill: #244e46; font-size: 10px; font-weight: 760; pointer-events: none; }.family-portal circle { fill: #fffdf8; stroke: var(--edge-parent); stroke-width: 1.8px; vector-effect: non-scaling-stroke; }.family-portal text { fill: #43534e; font-size: 7px; font-weight: 760; pointer-events: none; }.family-portal.is-emphasized circle { fill: #dbeae3; stroke: #174d61; stroke-width: 3px; }.overview-node { cursor: pointer; outline: none; }.overview-node rect { fill: #fffdf8; stroke: var(--forest); stroke-width: 1.7px; filter: drop-shadow(0 3px 5px rgba(24,39,37,.16)); vector-effect: non-scaling-stroke; }.overview-node rect.place-match { fill: #efb77f; }.overview-node text { fill: var(--ink); font-size: 10.5px; font-weight: 720; paint-order: stroke; stroke: rgba(251,250,246,.94); stroke-width: 2.5px; stroke-linejoin: round; pointer-events: none; }.overview-node text.overview-dates { fill: #65716d; font-size: 9px; font-weight: 600; }.overview-node:focus rect, .overview-node:hover rect { fill: #dbeae3; }
.generation-guides text { fill: #56635e; font-size: 15px; font-weight: 760; letter-spacing: .04em; }.radial-generation-guide { fill: none; stroke: rgba(113,132,125,.34); stroke-width: 1px; stroke-dasharray: 4 9; vector-effect: non-scaling-stroke; }.segment-panel > rect { fill: rgba(251,250,246,.22); stroke: rgba(113,132,125,.44); stroke-width: 1px; vector-effect: non-scaling-stroke; }.generation-guides .segment-title { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.tree-chart .card-inner { border: 1px solid #cbc9c0; border-left: 4px solid var(--forest); border-radius: 8px !important; box-shadow: 0 9px 25px rgba(24,39,37,.12) !important; color: var(--ink); }.tree-chart div.card-female .card-inner, .tree-chart div.card-male .card-inner, .tree-chart div.card-genderless .card-inner { background: #fffdf8; }.tree-chart div.card-main .card-inner { outline: 3px solid rgba(181,95,61,.4); }.tree-chart .portal-person-card { position: relative; width: 190px; cursor: pointer; overflow: visible; }.tree-chart .portal-card-surface { box-sizing: border-box; display: flex; align-items: center; justify-content: center; width: 190px; min-height: 92px; padding: 8px 11px; text-align: center; }.tree-chart .portal-card-copy { min-width: 0; width: 100%; }.tree-chart .portal-card-copy .card-label { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 16px; line-height: 1.18; }.tree-chart .portal-card-copy small { display: block; margin-top: 5px; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }.tree-chart .portal-card-details { position: absolute; right: 6px; bottom: -19px; z-index: 2; width: 16px; height: 16px; padding: 0; border: 0; border-radius: 50%; background: #fffdf8; color: #83938c; font-size: 13px; line-height: 16px; font-weight: 800; cursor: pointer; }.tree-chart .portal-card-details:hover, .tree-chart .portal-card-details:focus-visible { background: var(--forest); color: #fff; outline: none; }.tree-chart .link { stroke: var(--edge-parent); }.tree-chart .portal-link { stroke: var(--edge-parent); stroke-width: 2px; stroke-linecap: round; stroke-linejoin: round; opacity: .92; pointer-events: none; }.tree-chart .portal-link.spouse-link { stroke: var(--edge-spouse); stroke-width: 3px; }.tree-empty { position: absolute; inset: 0; display: grid; place-content: center; padding: 40px; text-align: center; }.tree-empty[hidden] { display: none; }.tree-empty h2 { max-width: 560px; font: 600 32px Georgia, serif; }.tree-actions { position: absolute; z-index: 5; right: 24px; bottom: 24px; display: flex; gap: 8px; }.tree-actions .request-fab { position: static; text-decoration: none; }.tree-actions .secondary-button { background: rgba(251,250,246,.95); }
.search-box { position: relative; z-index: 9; }.search-results { position: relative; z-index: 10; margin-top: 5px; max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: var(--shadow); }.search-results[hidden] { display: none; }.search-results button { width: 100%; padding: 10px 12px; border: 0; border-bottom: 1px solid #ece9e1; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }.search-results button:hover { background: #f1f4f2; }.search-results strong, .search-results small { display: block; }.search-results small, .search-empty { color: var(--muted); font-size: 10px; }.search-empty { margin: 0; padding: 12px; }

/* Reciprocal place and event records */
.tree-chart .portal-card-id { position: absolute; left: 6px; bottom: -19px; z-index: 2; display: block; max-width: 112px; min-width: 16px; height: 16px; padding: 0 5px; overflow: hidden; border: 1px solid #d8d4c8; border-radius: 999px; background: #fffdf8; color: #68766f; font-size: 8px; font-weight: 800; line-height: 16px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.parent-partner-suggestions { margin: -8px 0 18px; padding: 11px 12px; border: 1px solid #d8e4dc; border-radius: 8px; background: #f2f7f3; }.parent-partner-suggestions > strong { display: block; font-size: 12px; }.parent-partner-suggestions > p { margin: 3px 0 8px; color: var(--muted); font-size: 11px; }.parent-partner-suggestions [data-parent-partner-options] { display: flex; flex-wrap: wrap; gap: 6px; }.parent-partner-suggestions button { max-width: 100%; padding: 5px 8px; overflow: hidden; border: 1px solid #bbd1c3; border-radius: 999px; background: #fffdf8; color: var(--forest); cursor: pointer; font-size: 11px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }.parent-partner-suggestions button:hover, .parent-partner-suggestions button:focus-visible { background: var(--forest); color: #fff; outline: none; }
.proposed-parent-family { margin: -8px 0 18px; padding: 11px 12px; border: 1px solid #d8e4dc; border-radius: 8px; background: #f7faf7; }.proposed-parent-family > strong { display: block; color: var(--forest); font-size: 12px; }.proposed-parent-family > p { margin: 4px 0; font-weight: 760; }.proposed-parent-family > small { display: block; color: var(--muted); font-size: 11px; line-height: 1.35; }.proposed-parent-family details { margin-top: 9px; color: var(--muted); font-size: 11px; }.proposed-parent-family summary { cursor: pointer; font-weight: 700; }.proposed-parent-family details label { display: block; margin-top: 8px; color: var(--ink); font-weight: 750; }.proposed-parent-family details select { width: 100%; margin-top: 4px; }
.metric-strip { display: flex; flex-wrap: wrap; gap: 8px; }.metric-strip span { min-width: 92px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--muted); font-size: 11px; }.metric-strip strong { display: block; color: var(--forest); font: 700 21px Georgia, serif; }
.place-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }.place-card { display: grid; grid-template-columns: 13px 1fr auto; align-items: center; gap: 13px; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink); text-decoration: none; }.place-card:hover { box-shadow: 0 10px 25px rgba(28,39,37,.08); transform: translateY(-1px); }.place-card > i { width: 10px; height: 10px; border-radius: 50%; background: var(--place-color); }.place-card small, .place-card strong, .place-card span { display: block; }.place-card small { color: var(--rust); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.place-card strong { margin: 2px 0; font: 600 18px Georgia, serif; }.place-card span { color: var(--muted); font-size: 11px; }.place-card > b { color: var(--forest); font-size: 24px; }
.record-hero { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 38px; }.record-hero h1 { font-size: clamp(36px, 5vw, 58px); }.record-hero p:last-child { color: var(--muted); }.record-hero a { color: var(--forest); }
.compact-people { display: grid; gap: 7px; }.compact-people > a { display: block; padding: 10px 11px; border-radius: 8px; background: #efede6; color: var(--ink); text-decoration: none; }.compact-people strong, .compact-people small { display: block; }.compact-people small { margin-top: 2px; color: var(--muted); font-size: 10px; }.linked-place { display: grid; gap: 3px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }.linked-place small { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 850px) {
  .staff-nav { display: none !important; }.account-menu { gap: 5px; }.page-heading, .person-hero, .record-hero { align-items: start; flex-direction: column; }.person-hero { display: flex; }.people-grid, .detail-grid, .place-grid { grid-template-columns: 1fr; }.content-card.wide { grid-column: auto; }.page-heading { display: flex; }.tree-chart { min-width: 760px; }.tree-stage { overflow: auto; }.tree-actions { position: sticky; left: 0; width: max-content; margin-left: auto; }.comparison-grid, .record-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) { .guide-heading, .guide-example { grid-template-columns: 1fr; }.guide-heading { align-items: start; flex-direction: column; }.guide-steps, .guide-grid { grid-template-columns: 1fr; }.guide-card { min-height: 0; }.guide-card a:not(.primary-link) { margin-top: 14px; } }
@media (max-width: 560px) { .page-shell, .form-page { width: min(100% - 28px, 1180px); }.people-grid { grid-template-columns: 1fr; }.request-row { grid-template-columns: auto 1fr; }.request-row time { grid-column: 2; }.editor-form, .content-card { padding: 20px; }.hero-actions { width: 100%; }.hero-actions a { flex: 1; }.tree-actions .secondary-button { display: none; }.guide-steps li { min-height: 0; } }

/* Kinship highlighting, relationship analysis, and family calendar */
.overview-node.is-dimmed { opacity: .12; }
.overview-node.is-kin-highlight { opacity: 1; }
.overview-node.is-kin-highlight rect { fill: #f5e6b8; stroke: #8a5b22; stroke-width: 3px; }
.kinship-analysis-link { color: var(--forest); font-size: 10px; font-weight: 760; text-underline-offset: 2px; }
.relationship-dashboard { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr); gap: 16px; align-items: start; }
.relationship-analyzer form { display: grid; gap: 14px; }
.relationship-pickers { display: grid; grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr); gap: 10px; align-items: end; }
.person-combobox { position: relative; min-width: 0; }
.person-combobox label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 800; }
.person-combobox input { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.person-combobox-results { position: absolute; z-index: 20; top: calc(100% + 5px); left: 0; right: 0; max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: var(--shadow); }
.person-combobox-results[hidden] { display: none; }
.person-combobox-results button { display: block; width: 100%; padding: 10px 12px; border: 0; border-bottom: 1px solid #ece9e1; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.person-combobox-results button:hover, .person-combobox-results button.active { background: #e8f0ec; }
.person-combobox-results strong, .person-combobox-results small { display: block; }
.person-combobox-results small { color: var(--muted); font-size: 10px; }
.person-combobox-results p { margin: 0; padding: 12px; color: var(--muted); font-size: 11px; }
.contact-blocked-people { display: grid; gap: 8px; }.contact-blocked-people > label { font-size: 12px; font-weight: 800; }.contact-blocked-people .person-combobox { margin-top: 2px; }.selected-person-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 2px 0 0; padding: 0; list-style: none; }.selected-person-tags li { display: flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 7px 6px 10px; border: 1px solid #c8d8d0; border-radius: 10px; background: #eef4f0; color: var(--ink); }.selected-person-tags span { min-width: 0; }.selected-person-tags strong, .selected-person-tags small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.selected-person-tags strong { font-size: 12px; }.selected-person-tags small { color: var(--muted); font-size: 10px; }.selected-person-tags button { width: 24px; height: 24px; flex: 0 0 auto; border: 0; border-radius: 50%; background: #d8e5de; color: var(--forest); cursor: pointer; font-size: 18px; line-height: 1; }.selected-person-tags button:hover { background: #c1d6ca; }
.swap-people { width: 38px; height: 42px; border: 1px solid var(--line); border-radius: 8px; background: #f1efe8; color: var(--forest); cursor: pointer; font-size: 20px; }
.picker-error { min-height: 18px; margin: 0; color: #9d412f; font-size: 11px; }
.relationship-analyzer form > .primary-link { justify-self: start; border: 0; cursor: pointer; }
.request-review-actions { display: grid; gap: 8px; min-width: min(100%, 280px); }.request-review-actions label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 750; }.request-review-actions textarea { width: 100%; padding: 9px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); }.request-review-actions > div { display: flex; flex-wrap: wrap; gap: 6px; }
.relationship-result { margin-top: 25px; padding: 22px; border-left: 5px solid var(--blue); border-radius: 10px; background: #efede6; }
.relationship-result.cousin { border-color: var(--rust); background: #f6ede6; }
.relationship-result.unrelated, .relationship-result.affinal { border-color: #7d8582; }
.relationship-result h3 { margin: 0 0 8px; font: 600 29px Georgia, serif; }
.relationship-result > p:not(.eyebrow) { color: #44504d; }
.common-ancestors { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-top: 16px; }
.common-ancestors strong { width: 100%; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.common-ancestors a { padding: 5px 8px; border-radius: 999px; background: #fff; color: var(--forest); font-size: 12px; }
.generation-comparison { display: grid; grid-template-columns: 1fr minmax(45px, .35fr) 1fr; align-items: center; gap: 8px; margin-top: 18px; }
.generation-comparison span { padding: 10px; border-radius: 8px; background: rgba(255,255,255,.65); color: var(--muted); text-align: center; font-size: 10px; }
.generation-comparison strong { display: block; color: var(--forest); font: 700 23px Georgia, serif; }
.generation-comparison i { height: 1px; background: var(--rust); }
.relationship-path { margin-top: 18px; }
.relationship-path summary { color: var(--forest); cursor: pointer; font-weight: 750; }
.relationship-path ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.relationship-path li { display: flex; align-items: center; gap: 6px; }
.relationship-path li:not(:last-child)::after { content: "→"; color: var(--muted); }
.relationship-path a { color: var(--ink); }
.relationship-path small { color: var(--rust); font-size: 9px; text-transform: uppercase; }
.birthday-card h2 { margin-bottom: 8px; }
.birthday-reference, .birthday-note { color: var(--muted); font-size: 11px; }
.birthday-reference a { color: var(--forest); }
.birthday-period-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 14px 0 10px; }
.birthday-period-picker button { padding: 7px 5px; border: 1px solid var(--line); border-radius: 7px; background: #f1efe8; color: var(--muted); cursor: pointer; font-size: 10px; font-weight: 750; }
.birthday-period-picker button.active { border-color: var(--forest); background: var(--forest); color: #fff; }
.birthday-list { display: grid; gap: 8px; margin-top: 20px; }
.birthday-list article { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 12px; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: #f3f1eb; }
.birthday-list article.today { border-color: #d68a66; background: #faeadd; }
.birthday-list time strong, .birthday-list time { display: block; }
.birthday-list time { color: var(--muted); font-size: 10px; }
.birthday-list time strong { color: var(--rust); }
.birthday-list a { color: var(--ink); font-weight: 760; }
.birthday-list small { display: block; color: var(--muted); font-size: 10px; }
.cousin-directory { margin-top: 16px; }
.cousin-directory .card-title-row > div h2 { margin-bottom: 0; }
.cousin-degree-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cousin-degree-grid > section { min-width: 0; max-height: 430px; overflow: auto; padding: 15px; border-radius: 10px; background: #f0eee7; }
.cousin-degree-grid > section h3 { position: sticky; top: -15px; z-index: 1; padding: 15px 0 8px; background: #f0eee7; }
.cousin-degree-grid h3 { margin: 0 0 12px; color: var(--rust); }
.cousin-degree-grid a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.cousin-degree-grid a strong, .cousin-degree-grid a small { display: block; overflow-wrap: anywhere; }
.cousin-degree-grid a small, .cousin-degree-grid p { color: var(--muted); font-size: 10px; }
@media (max-width: 850px) { .relationship-dashboard { grid-template-columns: 1fr; }.cousin-degree-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cousin-degree-grid, .relationship-pickers { grid-template-columns: 1fr; }.swap-people { transform: rotate(90deg); }.generation-comparison { grid-template-columns: 1fr; }.generation-comparison i { width: 1px; height: 20px; justify-self: center; } }

/* Distinct kinship workflows and standalone birthday module */
.search-results button.active { background: #f1f4f2; }
.kinship-workflows { display: grid; grid-template-columns: minmax(280px, .75fr) minmax(0, 1.45fr); gap: 16px; align-items: start; }
.workflow-copy { min-height: 42px; margin-top: -12px; color: var(--muted); font-size: 12px; }
.birthday-module { width: min(760px, 100%); }
@media (max-width: 850px) { .kinship-workflows { grid-template-columns: 1fr; }.workflow-copy { min-height: 0; } }
.origin-person-help { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.birthday-memorial-picker { margin: 12px 0 10px; }
.birthday-memorial-picker label { display: flex; align-items: center; gap: 9px; width: max-content; max-width: 100%; color: var(--ink); cursor: pointer; font-size: 12px; font-weight: 750; }
.birthday-memorial-picker input { width: 17px; height: 17px; accent-color: var(--forest); }
.birthday-module-stack { display: grid; gap: 16px; width: min(760px, 100%); }
.birthday-module-stack .birthday-module { width: 100%; }
.memorial-card { border-style: dashed; background: #f5f2ed; }
.memorial-card h2 { color: #635a54; }
.profile-facts dl { display: grid; gap: 10px; margin: 0; }
.profile-facts dl > div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.profile-facts dt { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.profile-facts dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.profile-facts dd a { float: right; margin-left: 10px; color: var(--rust); font-size: 10px; font-weight: 750; }
.profile-facts-branches { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.birthday-list article.deceased { border-style: dashed; background: #eeece8; }
.birthday-list article.deceased time strong { color: #6f6761; }

/* Contributions, quick editing, and accessible navigation */
.skip-link { position: fixed; z-index: 1000; left: 16px; top: -80px; padding: 10px 14px; border-radius: 0 0 8px 8px; background: var(--forest); color: #fff; }.skip-link:focus { top: 0; }
.mobile-menu { display: none; margin-left: auto; position: relative; }.mobile-menu summary { padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-weight: 750; list-style: none; }.mobile-menu[open] summary { background: var(--forest); color: #fff; }.mobile-menu nav { position: absolute; z-index: 100; right: 0; top: 48px; display: grid; width: min(280px, calc(100vw - 24px)); padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: var(--shadow); }.mobile-menu nav a, .mobile-menu nav button { display: block; width: 100%; padding: 11px 12px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); text-align: left; text-decoration: none; font-weight: 700; }.mobile-menu nav a:hover, .mobile-menu nav button:hover { background: #edf2ef; }.mobile-menu nav form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--line); }
.admin-button, .text-button { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 8px; font-weight: 750; text-decoration: none; }.admin-button { background: #e8dfca; color: #654b20; }.text-button { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.profile-tabs { position: sticky; z-index: 8; top: 0; display: flex; gap: 5px; margin: -18px 0 18px; padding: 8px; overflow-x: auto; border: 1px solid var(--line); border-radius: 11px; background: rgba(251,250,246,.96); }.profile-tabs a { flex: 0 0 auto; padding: 7px 10px; border-radius: 6px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 750; }.profile-tabs a:hover, .profile-tabs a:focus-visible { background: #e7eee9; color: var(--forest); }
.family-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }.family-groups h3 { margin-top: 0; }.contribution-actions { display: flex; flex-wrap: wrap; gap: 7px; margin: -7px 0 20px; }.contribution-actions a, .request-task-picker a { padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: #f4f2eb; color: var(--forest); font-size: 12px; font-weight: 750; text-decoration: none; }
.story-feed { display: grid; gap: 13px; }.story-card { padding: 20px; border: 1px solid var(--line); border-left: 4px solid var(--rust); border-radius: 11px; background: #fffdf8; }.story-card header h3 { margin: 6px 0 0; font: 600 24px Georgia, serif; }.story-kind { color: var(--rust); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.story-body { margin: 15px 0; }.story-body p:last-child { margin-bottom: 0; }.story-context { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 12px 0; border-top: 1px solid var(--line); }.story-context div { display: flex; gap: 6px; }.story-context dt { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }.story-context dd { margin: 0; }.story-context a, .story-card footer a { color: var(--forest); }.story-card footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }.story-invitation { max-width: 760px; margin: -10px 0 24px; color: var(--muted); }.empty-story { display: grid; gap: 4px; padding: 24px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); }.empty-story strong { color: var(--ink); }.writing-prompts { margin-bottom: 16px; padding: 20px; border: 1px solid #d8c8a8; border-radius: 14px; background: #f6efdf; }.writing-prompts h2 { margin: 0 0 12px; font: 600 22px Georgia, serif; }.writing-prompts > div { display: flex; flex-wrap: wrap; gap: 7px; }.writing-prompts button { padding: 8px 11px; border: 1px solid #d2bd96; border-radius: 999px; background: #fffaf0; color: #5e492c; cursor: pointer; }.upload-selection { display: block; margin-top: 6px; color: var(--forest); font-size: 12px; font-weight: 700; }
.form-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.form-split > p { min-width: 0; }.choice-cards { display: flex; gap: 9px; margin: 0 0 20px; padding: 0; border: 0; }.choice-cards legend { margin-bottom: 7px; font-size: 12px; font-weight: 800; }.choice-cards label, .scope-confirm label { display: flex; align-items: flex-start; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #f6f4ed; cursor: pointer; }.choice-cards input, .scope-confirm input { flex: 0 0 auto; margin-top: 3px; accent-color: var(--forest); }.scope-confirm { margin-top: 18px !important; }.scope-warning { margin: 15px 0 20px; padding: 14px; border-left: 4px solid #a77c36; border-radius: 7px; background: #f6efdf; }.scope-warning p { margin: 4px 0 0; color: #5e5546; font-size: 12px; }
.quick-editor { max-width: 1040px; }.editor-tabs { display: flex; gap: 7px; margin-bottom: 12px; }.editor-tabs button { padding: 11px 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--muted); cursor: pointer; font-weight: 750; }.editor-tabs button.active { border-color: var(--forest); background: var(--forest); color: #fff; }.quick-editor-panel { display: grid; grid-template-columns: minmax(220px, .58fr) minmax(0, 1.42fr); gap: 18px; align-items: start; }.quick-editor-panel[hidden], [data-relationship-extra][hidden], [data-existing-person-fields][hidden], [data-new-person-fields][hidden], [data-marriage-confirm][hidden] { display: none; }.panel-intro { padding: 24px; position: sticky; top: 18px; }.panel-intro h2 { margin: 0; font: 600 30px Georgia, serif; }.panel-intro p:last-child { color: var(--muted); }.quick-editor .editor-form { min-width: 0; }.quick-editor .person-combobox { margin-bottom: 18px; }.quick-editor .person-combobox > label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 800; }
.selected-profile { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-bottom: 22px; padding: 13px; border: 1px solid #bfd0c7; border-radius: 10px; background: #edf4ef; }.selected-profile small, .selected-profile strong { display: block; }.selected-profile small { color: var(--muted); }.selected-profile a { color: var(--forest); }.request-task-picker { display: flex; flex-wrap: wrap; gap: 7px; margin: -16px 0 16px; }
.decision-card textarea { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }.decision-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }.decision-actions button { min-height: 40px; border: 1px solid var(--line); border-radius: 7px; background: #f3f1eb; cursor: pointer; font-weight: 700; }.decision-actions .primary-button { border: 0; }.admin-apply-link { width: 100%; margin-top: 14px; }.pagination { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 28px; }.pagination a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--forest); text-decoration: none; }.pagination span { color: var(--muted); font-size: 12px; }
.person-summary-dialog { width: min(760px, calc(100% - 28px)); max-height: min(86vh, 900px); padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--ink); box-shadow: 0 30px 90px rgba(16,28,26,.35); }.person-summary-dialog::backdrop { background: rgba(19,31,30,.48); backdrop-filter: blur(2px); }.dialog-frame { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: min(86vh, 900px); }.dialog-frame > header { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding: 22px 24px 15px; border-bottom: 1px solid var(--line); }.dialog-frame > header h2 { margin: 0; font: 600 32px Georgia, serif; }.dialog-frame > header button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: #f1efe8; cursor: pointer; font-size: 24px; }.dialog-content { padding: 22px 24px; overflow: auto; }.summary-vitals { margin-top: 0; color: var(--muted); }.summary-section { padding: 18px 0; border-top: 1px solid var(--line); }.summary-section h3 { margin: 0 0 12px; font: 600 21px Georgia, serif; }.summary-section h4 { margin: 0 0 7px; color: var(--muted); font-size: 11px; text-transform: uppercase; }.summary-family-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }.summary-row { display: block; padding: 8px; border-radius: 7px; background: #f0eee7; color: var(--ink); text-decoration: none; }.summary-row + .summary-row { margin-top: 5px; }.summary-row strong, .summary-row small { display: block; }.summary-row small { color: var(--muted); font-size: 11px; }.summary-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }.summary-story-list { display: grid; gap: 7px; }.summary-story-list article { padding: 11px; border-left: 3px solid var(--rust); border-radius: 7px; background: #f5f1e8; }.summary-story-list strong, .summary-story-list small { display: block; }.summary-story-list small { color: var(--muted); }.summary-story-list p { margin: 6px 0 0; white-space: pre-wrap; }.summary-record-counts { display: flex; flex-wrap: wrap; gap: 7px; }.summary-record-counts span { padding: 6px 9px; border-radius: 999px; background: #e8eeea; color: var(--forest); font-size: 11px; }.dialog-actions { display: flex; flex-wrap: wrap; gap: 7px; padding: 15px 24px 20px; border-top: 1px solid var(--line); background: #f5f3ed; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid #d99a72; outline-offset: 2px; }

@media (max-width: 1280px) { .site-header .desktop-nav, .site-header .account-menu { display: none !important; }.mobile-menu { display: block; } }
@media (max-width: 850px) { .branch-list { display: flex; max-width: 100%; overflow-x: auto; }.branch-list .branch { flex: 0 0 min(270px, 78vw); }.privacy-note { display: flex; }.family-groups { grid-template-columns: 1fr; }.quick-editor-panel { grid-template-columns: 1fr; }.panel-intro { position: static; padding: 12px 4px; }.summary-family-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .site-header nav.mobile-menu, .mobile-menu nav { display: grid !important; }.mobile-menu { display: block !important; }.form-split, .summary-list { grid-template-columns: 1fr; }.story-card footer, .card-title-row { align-items: flex-start; flex-direction: column; }.person-summary-dialog { width: 100%; max-width: none; max-height: 100dvh; height: 100dvh; border: 0; border-radius: 0; }.dialog-frame { max-height: 100dvh; height: 100%; }.dialog-actions > a { flex: 1 1 45%; }.profile-tabs { margin-left: -7px; margin-right: -7px; }.selected-profile { grid-template-columns: auto 1fr; }.selected-profile a { grid-column: 2; } }

/* Staff data-quality dashboard */
.quality-page { padding-bottom: 70px; }.quality-page > section + section { margin-top: 16px; }.quality-metrics { margin-top: 18px; }.quality-coverage { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }.quality-coverage p { margin: 0; padding: 10px 12px; border-radius: 8px; background: #f1efe8; color: var(--muted); font-size: 11px; }.quality-coverage strong { display: block; color: var(--ink); font-size: 17px; }.quality-alert { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px; border: 1px solid #d7c499; border-radius: 12px; background: #f7f0df; }.quality-alert h2 { margin: 2px 0 5px; }.quality-alert p:last-child { margin: 0; color: #655a48; }.quality-issues { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }.quality-issue { margin-top: 8px; border: 1px solid var(--line); border-radius: 9px; background: #fffdf8; }.quality-issue summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 13px 15px; cursor: pointer; font-weight: 750; }.quality-issue summary strong { min-width: 32px; padding: 4px 8px; border-radius: 999px; background: #f1dfd4; color: #853f2c; text-align: center; }.quality-issue > div { padding: 0 15px 15px; border-top: 1px solid var(--line); }.quality-issue ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; margin: 13px 0 0; padding-left: 20px; }.quality-issue li { overflow-wrap: anywhere; }.quality-issue a { color: var(--forest); }.quality-issue small, .quality-truncated { color: var(--muted); }.quality-issue-clear summary strong { background: #dfeae2; color: var(--forest); }.quality-clear { margin-bottom: 0; color: var(--forest); }
@media (max-width: 850px) { .quality-coverage { grid-template-columns: repeat(2, minmax(0, 1fr)); }.quality-alert { align-items: flex-start; flex-direction: column; }.quality-issue ul { grid-template-columns: 1fr; } }

/* Bulgarian surname-family directory */
.family-directory-controls { display: grid; grid-template-columns: 1.15fr .8fr 1fr auto; align-items: end; gap: 10px; margin-bottom: 14px; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }.family-directory-controls p { margin: 0; }.family-directory-controls label { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 800; }.family-directory-controls select, .family-directory-controls input { width: 100%; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }.family-directory-controls button { min-height: 42px; border: 0; }.family-method-note { padding: 17px 19px; border-left: 4px solid var(--blue); border-radius: 9px; background: #edf1f2; }.family-method-note p { margin: 5px 0 0; color: #4e5959; font-size: 12px; line-height: 1.55; }.family-directory-metrics { margin: 14px 0; }.surname-family-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }.surname-family-card { display: flex; min-width: 0; flex-direction: column; padding: 19px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }.surname-family-card header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }.surname-family-card header h2 { margin: 3px 0 0; font: 600 21px Georgia, serif; overflow-wrap: anywhere; }.surname-family-card header > strong { display: grid; place-content: center; width: 43px; height: 43px; border-radius: 50%; background: var(--forest); color: #fff; font-size: 16px; }.same-name-warning, .family-distinction { margin: 12px 0; padding: 10px 12px; border-left: 3px solid #a77c36; border-radius: 6px; background: #f6efdf; color: #66563d; font-size: 11px; }.family-member-preview { display: flex; flex-wrap: wrap; gap: 5px; margin: 14px 0; }.family-member-preview a, .family-member-preview span { padding: 5px 7px; border-radius: 999px; background: #eeece5; color: var(--ink); font-size: 10px; text-decoration: none; }.surname-family-card footer { margin-top: auto; padding-top: 13px; border-top: 1px solid var(--line); }.surname-family-card footer a { color: var(--forest); font-weight: 750; }.family-record-hero { margin-bottom: 18px; }.family-distinction { margin: 0 0 16px; font-size: 12px; }.family-distinction p { margin: 4px 0 0; }.family-detail-grid { display: grid; grid-template-columns: minmax(340px, .8fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }.family-member-directory > div:last-child { display: grid; gap: 6px; max-height: 720px; overflow: auto; }.family-member-directory article { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 10px; border-radius: 8px; background: #f1efe8; }.family-member-directory article > a { color: var(--ink); text-decoration: none; }.family-member-directory article strong, .family-member-directory article small { display: block; }.family-member-directory article small { color: var(--muted); }.family-member-directory article > div { display: flex; flex-wrap: wrap; justify-content: end; gap: 4px; }.family-member-directory article span { padding: 4px 6px; border-radius: 999px; background: #dfe9e3; color: var(--forest); font-size: 9px; font-weight: 750; }.family-relationship-tool { position: sticky; top: 12px; }
@media (max-width: 1050px) { .family-directory-controls { grid-template-columns: 1fr 1fr; }.surname-family-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 850px) { .family-detail-grid { grid-template-columns: 1fr; }.family-relationship-tool { position: static; } }
@media (max-width: 560px) { .family-directory-controls, .surname-family-grid { grid-template-columns: 1fr; }.family-member-directory article { grid-template-columns: 1fr; }.family-member-directory article > div { justify-content: start; } }

.family-mode-panel { display: grid; grid-template-columns: minmax(220px, .45fr) minmax(0, 1.55fr); align-items: center; gap: 18px; margin-bottom: 10px; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }.family-mode-panel h2 { margin: 2px 0 0; font: 600 21px Georgia, serif; }.family-mode-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }.family-mode-tabs a { display: grid; place-content: center; min-height: 50px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #f1efe8; color: var(--muted); text-align: center; text-decoration: none; font-size: 10px; font-weight: 750; }.family-mode-tabs a.active { border-color: var(--forest); background: var(--forest); color: #fff; }.family-search-controls { display: flex; align-items: end; gap: 8px; margin-bottom: 14px; padding: 14px 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }.family-search-controls p { flex: 1; margin: 0; }.family-search-controls label { display: block; margin-bottom: 5px; font-size: 11px; font-weight: 800; }.family-search-controls input { width: 100%; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }.family-search-controls button { min-height: 41px; border: 0; }.family-search-controls > a { padding: 11px; color: var(--forest); }.offshoot-badge { margin: 11px 0 0; padding: 7px 9px; border: 1px dashed #806b8e; border-radius: 7px; background: #f0eaf2; color: #665270; font-size: 10px; font-weight: 800; }.family-origin-markers { display: grid; gap: 6px; margin: 12px 0 4px; }.family-origin-markers > div { padding: 7px 9px; border-radius: 7px; background: #f1efe8; }.family-origin-markers dt { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }.family-origin-markers dd { margin: 2px 0 0; font-size: 11px; }.family-origin-markers a { color: var(--forest); }.family-offshoot-note { margin: 0 0 16px; padding: 14px 16px; border: 1px dashed #806b8e; border-radius: 9px; background: #f0eaf2; color: #5f4d69; }.family-offshoot-note p { margin: 4px 0 0; }.surname-family-graph-card { margin-bottom: 16px; }.surname-family-graph-card .card-title-row p:last-child { margin: 5px 0 0; color: var(--muted); font-size: 11px; }.family-graph-actions { display: flex; gap: 5px; }.family-graph-actions button { min-width: 38px; min-height: 36px; border: 1px solid var(--line); border-radius: 7px; background: #f1efe8; color: var(--forest); cursor: pointer; font-weight: 800; }.surname-family-graph { height: min(620px, 62vh); min-height: 380px; margin-top: 15px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: radial-gradient(circle at 50% 30%, #fffdf8, #efede6); }.surname-family-graph svg { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }.surname-family-graph svg:active { cursor: grabbing; }.family-graph-edge { fill: none; stroke: var(--edge-parent); stroke-width: 2; opacity: .82; vector-effect: non-scaling-stroke; }.family-graph-edge.spouse { stroke: var(--edge-spouse); stroke-width: 3; }.family-graph-node rect { fill: #fffdf8; stroke: var(--forest); stroke-width: 2; vector-effect: non-scaling-stroke; }.family-graph-node.context rect { fill: #f3f1eb; stroke: #817c73; stroke-dasharray: 5 4; }.family-graph-node text { fill: var(--ink); font-size: 11px; font-weight: 750; pointer-events: none; }.family-graph-node text.dates { fill: var(--muted); font-size: 9px; font-weight: 500; }.family-detail-lower { grid-template-columns: minmax(300px, .7fr) minmax(0, 1.3fr); }.family-relationship-tool .relationship-result .eyebrow a { color: var(--forest); }
@media (max-width: 850px) { .family-mode-panel { grid-template-columns: 1fr; }.family-detail-lower { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .family-mode-tabs { grid-template-columns: 1fr; }.family-search-controls { align-items: stretch; flex-direction: column; }.family-search-controls button { width: 100%; }.surname-family-graph { min-height: 330px; height: 52vh; } }
.family-origin-markers dd small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }

/* Keep the relative source choice independent of the parentage confirmation cards. */
.quick-editor .choice-cards { display: block; margin: 0 0 20px; padding: 0; border: 0; }
.quick-editor .choice-cards legend { display: block; width: 100%; margin: 0 0 8px; padding: 0; font-size: 12px; font-weight: 800; }
.quick-editor .choice-card-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.quick-editor .choice-card-options > label { display: flex; align-items: center; min-height: 46px; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #f6f4ed; line-height: 1.25; cursor: pointer; }
.quick-editor .choice-card-options input[type="radio"] { flex: 0 0 auto; width: auto; margin: 0 8px 0 0; accent-color: var(--forest); }
.quick-editor .choice-card-options span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .quick-editor .choice-card-options { grid-template-columns: 1fr; } }
.registration-contact-permissions { display: block; margin: 20px 0; padding: 0; border: 0; }
.registration-contact-permissions legend { display: block; width: 100%; margin-bottom: 8px; padding: 0; font-size: 12px; font-weight: 800; }
.registration-contact-permissions .choice-card-options { display: grid; gap: 9px; }
.registration-contact-permissions .choice-card-options > label { display: flex; align-items: flex-start; gap: 9px; margin: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: #f6f4ed; line-height: 1.3; cursor: pointer; }
.registration-contact-permissions input[type="checkbox"] { flex: 0 0 auto; width: auto; margin: 3px 0 0; accent-color: var(--forest); }
.registration-contact-permissions span { min-width: 0; overflow-wrap: anywhere; font-size: 12px; font-weight: 750; }
.registration-contact-permissions small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 400; }
.family-origin-markers .ancestor-couple { display: flex; align-items: center; gap: 9px; }.family-origin-markers .ancestor-couple > span { min-width: 0; }.family-origin-markers .ancestor-couple > b { color: var(--muted); font-family: Georgia, serif; }
.ancestor-family-sections { display: grid; gap: 22px; }.ancestor-family-section { min-width: 0; }.ancestor-family-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 10px; padding: 14px 17px; border-left: 4px solid var(--forest); border-radius: 8px; background: #e8eee9; }.ancestor-family-heading h2 { margin: 2px 0 0; font: 600 21px Georgia, serif; }.ancestor-family-heading h2 a { color: var(--forest); }.ancestor-family-heading h2 span { padding: 0 4px; color: var(--muted); }.ancestor-family-heading p:last-child { margin: 4px 0 0; color: var(--muted); font-size: 10px; }.ancestor-family-heading > strong { flex: 0 0 auto; color: var(--forest); font-size: 11px; }.ancestor-family-section:last-child .ancestor-family-heading { border-left-color: #8b8479; background: #efede7; }
@media (max-width: 560px) { .ancestor-family-heading { align-items: flex-start; flex-direction: column; }.ancestor-family-heading h2 a, .ancestor-family-heading h2 span { display: block; }.ancestor-family-heading h2 span { padding: 2px 0; } }
.family-search-controls p > small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.family-search-controls p, .list-search { position: relative; }.text-search-suggestions { position: absolute; z-index: 45; top: calc(100% - 1px); left: 0; width: min(440px, 100%); max-height: 330px; overflow: auto; border: 1px solid var(--line); border-radius: 0 0 9px 9px; background: #fffdf8; box-shadow: 0 12px 24px rgba(40, 47, 43, .16); }.text-search-suggestions[hidden] { display: none; }.text-search-suggestions button { display: block; width: 100%; padding: 9px 11px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; cursor: pointer; }.text-search-suggestions button:hover, .text-search-suggestions button.active { background: #e6eee9; }.text-search-suggestions strong, .text-search-suggestions small { display: block; }.text-search-suggestions small { margin-top: 2px; color: var(--muted); font-size: 9px; }.text-search-suggestions > p { margin: 0; padding: 11px; color: var(--muted); font-size: 10px; }
.place-card em { display: block; margin: 2px 0 4px; color: var(--forest); font-size: 10px; font-style: normal; }.place-children { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }.place-children a { padding: 11px; border-radius: 8px; background: #f1efe8; color: var(--ink); text-decoration: none; }.place-children a:hover { background: #e6eee9; }.place-children small, .place-children strong { display: block; }.place-children small { color: var(--rust); font-size: 9px; text-transform: uppercase; }.place-children strong { margin-top: 3px; font-size: 12px; }
@media (max-width: 700px) { .place-children { grid-template-columns: 1fr; } }
.history-list { display: grid; gap: 10px; }.history-entry { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 15px; border: 1px solid var(--line); border-radius: 9px; background: #f8f6f0; }.history-entry > div { min-width: 0; }.history-entry strong { display: block; font-size: 15px; }.history-entry p { margin: 5px 0 0; }.history-people { color: var(--forest); font-weight: 750; }.history-detail { color: var(--ink); font-size: 12px; line-height: 1.45; }.history-entry form { flex: 0 0 auto; } @media (max-width: 560px) { .history-entry { flex-direction: column; } }

/* Bulgarian browsers do not always localize the native file-input chrome. */
.localized-file-input { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.localized-file-picker { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 6px; }
.localized-file-picker-button { display: inline-flex; align-items: center; min-height: 36px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 7px; background: #f1efe8; color: var(--forest); cursor: pointer; font-size: 12px; font-weight: 750; }
.localized-file-picker-button:hover { border-color: var(--forest); background: #e6eee9; }
.localized-file-picker-button:focus-visible { outline: 3px solid rgba(60, 111, 83, .32); outline-offset: 2px; }
.localized-file-picker-status { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
