:root {
  --paper: #faf6ec;
  --paper-deep: #f0e7d5;
  --card: #fffdf8;
  --ink: #302924;
  --muted: #74685d;
  --accent: #87452e;
  --accent-dark: #64301f;
  --blue: #285963;
  --line: #bba989;
  --success: #376746;
}
* { box-sizing: border-box; }
html { overflow-y: scroll; scrollbar-gutter: stable; scrollbar-color: var(--accent) var(--paper-deep); }
html::-webkit-scrollbar { width: 13px; }
html::-webkit-scrollbar-track { background: var(--paper-deep); }
html::-webkit-scrollbar-thumb { background: var(--accent); border: 2px solid var(--paper-deep); border-radius: 8px; }
.reading-progress { position: fixed; z-index: 100; inset: 0 0 auto; height: 5px; background: var(--paper-deep); pointer-events: none; }
.reading-progress span { display: block; width: 100%; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.back-to-top { position: fixed; z-index: 100; right: 22px; bottom: 22px; min-width: 96px; min-height: 48px; padding: 9px 13px; border: 1px solid var(--accent-dark); border-radius: 5px; background: var(--accent); color: #fff; font: bold 15px Arial, sans-serif; box-shadow: 0 3px 12px #30292455; cursor: pointer; }
.back-to-top:hover, .back-to-top:focus-visible { background: var(--accent-dark); }
@media (max-width: 700px) { .back-to-top { right: 12px; bottom: 12px; } }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 Arial, sans-serif; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
main { max-width: 1540px; margin: auto; padding: 32px; }
.site-header { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; padding: 16px 32px; background: #fffdf9; border-bottom: 1px solid var(--line); }
.brand { margin-right: auto; color: var(--accent); font: bold 22px Georgia, serif; text-decoration: none; }
.main-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.main-nav a { color: var(--ink); text-decoration: none; font-size: 14px; }
.main-nav a:hover { color: var(--accent); text-decoration: underline; }
h1, h2, h3 { font-family: Georgia, serif; line-height: 1.2; }
h1 { font-size: clamp(30px, 4vw, 44px); margin: 5px 0 14px; }
h2 { font-size: 23px; margin-top: 0; }
p { margin: 8px 0 14px; }
.eyebrow { margin: 0; color: var(--accent); font-size: 12px; font-weight: bold; letter-spacing: .13em; text-transform: uppercase; }
.lead, .page-heading > div > p:last-child { max-width: 850px; color: var(--muted); font-size: 17px; }
.muted, .help { color: var(--muted); }
.help { margin: 5px 0 12px; font-size: 13px; }
.source { color: var(--muted); font-size: 13px; }
.preserve-lines { white-space: pre-line; }
.button { display: inline-block; border: 1px solid var(--accent); border-radius: 4px; padding: 11px 18px; background: var(--accent); color: #fff; font: inherit; line-height: 1.2; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--accent-dark); color: #fff; }
.button:disabled { cursor: not-allowed; opacity: .5; }
.button.secondary { background: transparent; color: var(--accent); }
.button.secondary:hover { background: var(--paper-deep); color: var(--accent-dark); }
.link-button { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; cursor: pointer; }
.danger { color: #9b271e; }
.link-button.danger:hover { text-decoration: underline; }
.photo-manage { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
.photo-manage .button { padding: 6px 12px; font-size: 14px; }
.photo-note { margin: 8px 0 0; font-size: 13px; }
.describe-image { display: block; max-width: 100%; max-height: 70vh; margin: 0 auto 12px; }
.describe-form, .describe-danger { max-width: 820px; }
.describe-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.describe-danger { margin-top: 12px; }
.text-link { font-size: 14px; }
.action-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 22px 0; }
.messages { margin-bottom: 20px; }
.message { padding: 13px 18px; border-left: 4px solid var(--blue); background: #eef5f3; }
.message.success { border-color: var(--success); background: #edf5ec; }
.error, .form-errors, .errorlist { color: #9b271e; }
.errorlist { margin: 4px 0; padding-left: 20px; font-size: 13px; }
input, select, textarea { width: 100%; max-width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--ink); font: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid #87452e44; border-color: var(--accent); }
input[type="file"] { background: #fffdf8; }
label { display: block; margin: 16px 0 5px; font-weight: bold; }
fieldset { margin: 18px 0; padding: 4px 18px 18px; border: 1px solid var(--line); }
legend { padding: 0 8px; font-weight: bold; }
textarea { resize: vertical; }
.auth-card { max-width: 520px; margin: 45px auto; padding: 34px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 12px 40px #30292410; }
.auth-card .button { margin-top: 18px; }
.auth-card ul { padding-left: 20px; color: var(--muted); font-size: 13px; }
.form-page { max-width: 800px; margin: auto; }
.contribution-form { margin-top: 25px; padding: 28px; background: var(--card); border: 1px solid var(--line); }
.contribution-form > .button { margin-top: 24px; }
.page-heading { display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; margin-bottom: 20px; }
.page-heading .button { flex-shrink: 0; margin-top: 20px; }
.tree-filter-panel { margin: 22px 0; border: 1px solid var(--line); border-radius: 7px; background: var(--card); }
.tree-filter-panel summary { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; min-height: 54px; padding: 13px 20px; font-weight: bold; cursor: pointer; }
.tree-filter-panel summary small { margin-left: auto; color: var(--muted); font-size: 13px; font-weight: normal; }
.tree-filter-panel[open] summary { border-bottom: 1px solid var(--paper-deep); }
.tree-filter { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(220px, .55fr); gap: 16px 20px; padding: 18px 20px 20px; }
.tree-filter label { margin: 0; }
.person-combobox, .tree-filter-person { position: relative; }
.tree-filter-person input[type="search"] { width: 100%; margin-top: 5px; padding-right: 36px; }
.person-suggestions { position: absolute; z-index: 20; top: calc(100% - 18px); right: 0; left: 0; max-height: 270px; margin: 0; padding: 5px; overflow-y: auto; list-style: none; border: 1px solid var(--line); border-radius: 5px; background: var(--card); box-shadow: 0 12px 26px rgba(48, 41, 36, .18); }
.person-suggestions[hidden] { display: none; }
.person-suggestions [role="option"] { padding: 10px 11px; border-radius: 3px; line-height: 1.35; cursor: pointer; }
.person-suggestions [role="option"]:hover, .person-suggestions [role="option"].is-active { background: #e9eddf; color: var(--accent-dark); }
.person-suggestions [role="option"][aria-selected="true"] { font-weight: bold; }
.field-help { display: block; min-height: 20px; margin: 3px 0; color: var(--muted); font-size: 12px; font-weight: normal; }
.tree-filter :disabled { cursor: not-allowed; opacity: .65; }
.tree-filter-branches { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0; padding: 7px 16px 12px; }
.tree-filter-branches .checkbox-label { display: flex; min-height: 44px; margin: 0; }
.tree-filter-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.tree-filter-actions .text-link { padding: 10px 2px; }
.tree-sheet { overflow: hidden; background: #edf0e2; border: 1px solid #a9b596; border-radius: 8px; }
.tree-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 16px; background: #fffdf8; border-bottom: 1px solid #c4cdb5; }
.tree-gesture-hint { color: var(--muted); font-size: 13px; }
.tree-controls { display: flex; gap: 7px; align-items: center; }
.tree-controls button { min-width: 44px; min-height: 44px; padding: 8px 13px; border: 1px solid #758762; border-radius: 5px; background: #f7f9f1; color: #38522f; font: bold 18px Arial, sans-serif; cursor: pointer; }
.tree-controls button:last-child { font-size: 14px; }
.tree-controls button:hover { background: #e3ebd6; }
.tree-controls output { min-width: 54px; color: #38522f; font-size: 13px; text-align: center; }
.tree-viewport { min-height: 580px; max-height: 76vh; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; cursor: grab; }
.tree-viewport.is-dragging { cursor: grabbing; user-select: none; }
.tree-viewport:focus-visible { outline: 3px solid #66804f; outline-offset: -3px; }
.tree-scale-box { position: relative; }
.tree-canvas { position: relative; padding: 0; background: radial-gradient(ellipse at 50% 0, #f8f8ee 0, #edf0e2 68%, #e4e8d6 100%); transform-origin: 0 0; }
.person-card { position: relative; z-index: 1; display: flex; gap: 14px; align-items: center; width: 226px; min-height: 100px; padding: 16px 18px; border: 1.5px solid #71865a; border-radius: 48px 13px 48px 13px; background: #e2ebd3; color: #26351f; box-shadow: 0 4px 9px #3d4c2b1c; text-align: left; text-decoration: none; }
a.person-card:hover { border-color: #3f612f; color: #26351f; box-shadow: 0 6px 16px #3d4c2b30; }
a.person-card:focus-visible { outline: 3px solid #87452e; outline-offset: 3px; }
.person-card > span:last-child { min-width: 0; }
.person-card strong { display: block; font: 16px/1.35 Georgia, serif; }
.person-card span span { display: block; margin-top: 4px; color: #59634f; font-size: 11px; }
.person-card .name-basis { color: #785c3e; font-style: italic; }
.person-initials { display: grid; place-items: center; flex: 0 0 54px; height: 64px; border: 2px solid #fff9; border-radius: 50% 50% 44% 44%; background: #c7d6b2; color: #38522f; font: 24px Georgia, serif; }
.person-thumb { flex: 0 0 58px; width: 58px; height: 68px; border: 2px solid #fffdf8; border-radius: 50% 50% 44% 44%; object-fit: cover; box-shadow: 0 1px 4px #26351f30; }
.tree-connections { position: absolute; z-index: 0; inset: 0; overflow: visible; pointer-events: none; }
.tree-connections path { fill: none; stroke: #80603f; stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .82; }
.tree-connections .tree-union { stroke: #a24f36; stroke-width: 2.5; stroke-dasharray: 7 5; opacity: .95; }
.tree-generation-label { position: absolute; z-index: 1; left: 26px; padding: 3px 9px; border-radius: 4px; background: #f8f8eee8; color: #6b634f; font-size: 12px; pointer-events: none; }
.tree-person { position: absolute; z-index: 2; width: 226px; height: 128px; }
.tree-person .person-card { width: 100%; height: 128px; min-height: 0; padding: 13px 15px; }
.tree-person .person-card strong { font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.tree-person.tree-role-sibling .person-card, .tree-person.tree-role-cousin .person-card { border-color: #87996f; background: #edf1e2; }
.tree-person.tree-role-uncle .person-card { border-color: #9b9b78; background: #f0f0df; }
.tree-person.tree-role-spouse .person-card { border-color: #b78065; background: #f7eadf; }
.tree-person.is-center .person-card { border: 3px solid var(--accent); background: #fff5df; box-shadow: 0 5px 16px #87452e30; }
.tree-person.is-center::after { content: "выбран"; position: absolute; top: -11px; right: 13px; padding: 1px 9px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 10px; }
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.book-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; margin-top: 28px; }
.book-card { padding: 30px; border: 1px solid var(--line); background: var(--card); }
.book-card h2 { margin: 4px 0 12px; font: 32px Georgia, serif; }
.book-card p:not(.eyebrow) { min-height: 52px; color: var(--muted); }
.photo-order { display: flex; justify-content: flex-end; gap: 7px; margin: 0 0 9px; }
.photo-order form { margin: 0; }
.photo-order button { width: 44px; height: 44px; padding: 0; border: 1px solid #8b957d; border-radius: 4px; background: #f5f7ef; color: #38522f; font: bold 22px Arial, sans-serif; cursor: pointer; }
.photo-order button:hover:not(:disabled) { background: #e0e9d3; }
.photo-order button:disabled { opacity: .35; cursor: default; }
.archive-photo-card > .photo-order { padding: 9px 10px 0; }
.photo-order-hint { font-size: 14px; }
.primary-photo-form { margin: 0 0 9px; }
.primary-photo-form button { min-height: 44px; padding: 8px 12px; border: 1px solid #8b957d; border-radius: 4px; background: #f5f7ef; color: #38522f; font: 600 14px Arial, sans-serif; cursor: pointer; }
.primary-photo-form button:hover { background: #e0e9d3; }
.primary-photo-badge { display: block; margin: 0 0 9px; padding: 8px 12px; border-radius: 4px; background: #e0e9d3; color: #2d4525; font-size: 14px; font-weight: bold; text-align: center; }
.search-form { display: grid; grid-template-columns: minmax(200px, 1fr) 240px auto; gap: 12px; max-width: 900px; margin: 24px 0 12px; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 25px; }
.person-list-card { display: flex; flex-direction: column; align-items: center; min-height: 210px; padding: 22px 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-align: center; text-decoration: none; }
.person-list-card:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.person-list-card img, .large-initial { width: 88px; height: 108px; margin-bottom: 15px; object-fit: cover; }
.large-initial { display: grid; place-items: center; background: var(--paper-deep); color: var(--accent); font: 46px Georgia, serif; }
.person-list-card strong { font: 17px/1.3 Georgia, serif; }
.person-list-card > span:last-child { margin-top: 6px; color: var(--muted); font-size: 13px; }
.person-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, .8fr); gap: 32px; }
.paper-block { margin: 20px 0; padding: 25px; background: var(--card); border: 1px solid var(--line); }
.life-date { color: var(--muted); font-size: 19px; }
.spouse-link { margin: 0 0 10px; font-size: 18px; }
.spouse-link a { font-weight: bold; }
.contribution-summary { padding: 8px 0; border-bottom: 1px solid var(--paper-deep); font-size: 14px; }
.description + .description { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--paper-deep); }
.relation-list { margin: 0; padding: 0; list-style: none; }
.relation-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding: 10px 0; border-bottom: 1px solid var(--paper-deep); }
.relation-list a { font-weight: bold; }
.relation-list span { color: var(--muted); font-size: 13px; }
.document-card { margin-top: 18px; padding: 16px; border: 1px solid var(--line); background: var(--paper); }
.document-card:first-of-type { margin-top: 0; }
.document-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.document-heading h3 { margin: 0; font-size: 18px; }
.document-number { margin: 0; color: var(--muted); font-size: 14px; }
.person-reference { display: inline-block; padding: 1px 6px; border-radius: 3px; background: #e7efe8; color: #285963; font: 12px/1.4 "Liberation Sans", sans-serif; text-decoration: underline; white-space: nowrap; }
.person-reference:hover, .person-reference:focus-visible { background: #d1e2d5; outline: 1px solid #285963; }
.document-check { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 3px; background: #f3e7c8; color: #6b4d16; font-size: 12px; font-weight: bold; }
.overview-photo { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; margin: 0 0 20px; padding: 12px; border: 1px solid var(--line); background: var(--paper); }
.overview-photo img { display: block; width: 220px; max-height: 280px; object-fit: contain; background: #eee; }
.overview-photo figcaption { flex: 1 1 220px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.overview-label { display: block; width: fit-content; margin-bottom: 7px; padding: 3px 8px; border-radius: 3px; background: #e0e9d3; color: #2d4525; font-size: 12px; font-weight: bold; }
.quick-photo { margin: 0 0 20px; border: 1px solid var(--line); background: var(--paper); }
.quick-photo summary { min-height: 44px; padding: 12px 14px; color: var(--accent-dark); font-weight: bold; cursor: pointer; }
.quick-photo form { display: grid; gap: 12px; padding: 0 14px 16px; }
.quick-photo label { margin: 0; }
.quick-photo input[type="file"], .quick-photo input[type="text"] { display: block; width: 100%; margin-top: 5px; }
.quick-photo .help { margin: 0; }
.document-preview { display: block; margin-top: 12px; }
.document-preview img { display: block; width: 100%; max-height: 520px; object-fit: contain; background: #eee; }
.photo-grid { display: grid; gap: 16px; }
.photo-grid figure { margin: 0; padding: 10px; background: var(--card); border: 1px solid var(--line); }
.photo-grid img { display: block; width: 100%; max-height: 520px; object-fit: contain; background: #eee; }
.photo-grid figcaption { padding: 10px 4px 2px; font-size: 14px; white-space: pre-line; }
.photo-filter { grid-template-columns: 200px minmax(220px, 300px) 1fr auto; max-width: none; align-items: center; }
.photo-filter label { margin: 0; }
.checkbox-label { display: flex; gap: 9px; align-items: center; font-weight: normal; white-space: nowrap; }
.checkbox-label input { width: 22px; height: 22px; flex: 0 0 auto; }
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 24px; }
.archive-photo-card { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--card); }
.archive-photo-card > a { display: block; background: #e9e6dc; }
.archive-photo-card img { display: block; width: 100%; height: 340px; object-fit: contain; }
.archive-caption { padding: 16px 18px 18px; }
.archive-caption > p { margin-top: 0; font-size: 14px; white-space: pre-line; }
.photo-people { display: flex; flex-wrap: wrap; gap: 7px 14px; padding-top: 12px; border-top: 1px solid var(--paper-deep); font-size: 14px; }
.photo-people a { color: #456138; font-weight: bold; }
.unassigned-label { color: var(--muted); font-style: italic; }
.questions-list { max-width: 1000px; margin: 25px 0; }
.question { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.question > span { color: var(--accent); font-size: 12px; font-weight: bold; text-transform: uppercase; }
.question p { margin: 0; white-space: pre-line; }
.question .source { margin-top: 8px; }
.history-pages { display: flex; gap: 18px; align-items: center; margin: 16px 0 28px; }
@media (max-width: 1050px) {
  .brand { flex-basis: 100%; }
  .person-layout { grid-template-columns: 1fr; }
  .person-layout aside { max-width: 650px; }
}
@media (max-width: 700px) {
  main { padding: 18px 12px; }
  .site-header { padding: 12px; gap: 8px; }
  .brand { font-size: 19px; }
  .main-nav { flex-wrap: nowrap; gap: 4px 18px; width: 100%; padding-bottom: 3px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .main-nav a { display: flex; align-items: center; flex: 0 0 auto; min-height: 44px; white-space: nowrap; }
  .site-header > span { max-width: calc(100% - 65px); overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
  h1 { font-size: 30px; }
  .page-heading { display: block; }
  .page-heading .button { margin: 5px 0 15px; }
  .tree-filter-panel { margin: 16px 0; }
  .tree-filter-panel summary { padding: 12px 14px; }
  .tree-filter-panel summary small { flex-basis: 100%; margin-left: 0; }
  .tree-filter { grid-template-columns: 1fr; gap: 14px; padding: 16px 14px; }
  .tree-filter-branches { display: grid; gap: 0; padding: 5px 12px 10px; }
  .tree-filter-actions .button { width: 100%; text-align: center; }
  .tree-filter-actions .text-link { display: inline-block; min-height: 44px; }
  .tree-sheet { margin-right: -12px; margin-left: -12px; border-right: 0; border-left: 0; border-radius: 0; }
  .tree-toolbar { justify-content: center; padding: 10px; }
  .tree-gesture-hint { width: 100%; text-align: center; }
  .tree-controls { width: 100%; justify-content: center; }
  .tree-controls button { padding: 8px 11px; }
  .tree-viewport { min-height: 55vh; max-height: 68vh; }
  .tree-canvas { padding: 0; }
  .person-card { width: 206px; }
  .book-grid { grid-template-columns: 1fr; gap: 16px; }
  .book-card { padding: 22px 18px; }
  .search-form, .photo-filter { grid-template-columns: 1fr; }
  input, select, .button { min-height: 44px; }
  .photo-filter { align-items: stretch; }
  .checkbox-label { min-height: 44px; }
  .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
  .archive-photo-card img { height: 220px; }
  .archive-caption { padding: 12px; }
  .archive-caption > p { font-size: 13px; }
  .photo-people { display: block; }
  .photo-people a, .photo-people span { display: block; margin: 5px 0; }
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .person-list-card { min-height: 190px; padding: 16px 9px; }
  .action-row { gap: 10px; }
  .action-row .button { padding: 12px 14px; }
  .auth-card, .contribution-form { padding: 22px 18px; }
  .question { grid-template-columns: 1fr; gap: 5px; }
  .paper-block { padding: 20px 17px; }
}
@media (max-width: 380px) {
  .archive-grid { grid-template-columns: 1fr; }
  .archive-photo-card img { height: 320px; }
  .tree-controls { gap: 4px; }
  .tree-controls button { min-width: 42px; padding-right: 8px; padding-left: 8px; }
}
@page { size: A3 landscape; margin: 10mm; }
@media print {
  :root { --line: #8c8175; }
  body { background: #fff; font-size: 12pt; }
  main { max-width: none; padding: 0; }
  .no-print { display: none !important; }
  .page-heading { display: block; margin-bottom: 6mm; }
  .page-heading h1 { font-size: 25pt; }
  .page-heading p { font-size: 12pt; }
  .tree-sheet { overflow: visible; padding: 0; border: 0; background: #fff; }
  .tree-viewport { min-height: 0; max-height: none; overflow: visible; }
  .tree-scale-box { width: auto !important; height: auto !important; }
  .tree-canvas { width: auto !important; padding: 0; background: #fff; transform: none !important; }
  .forest { display: block; width: 100%; min-width: 0; }
  .forest > .tree-node { padding-bottom: 24px; break-before: page; break-inside: avoid; }
  .forest > .tree-node:first-child { break-before: auto; }
  .forest > .tree-node > .couple::after { height: 24px; }
  .tree-node { padding: 0 3px 12px; }
  .children { margin-bottom: 10px; }
  .children::before { height: 10px; }
  .children > .tree-node::before, .children > .tree-node::after { height: 12px; }
  .person-card { width: 206px; min-height: 80px; padding: 10px 12px; border-radius: 30px 8px 30px 8px; box-shadow: none; }
  .person-card strong { font-size: 12pt; }
  .person-card span span { font-size: 12pt; }
  .person-initials { flex-basis: 40px; height: 48px; font-size: 20px; }
  .person-thumb { flex-basis: 42px; width: 42px; height: 50px; }
  .person-layout { display: block; }
  .paper-block { break-inside: avoid; padding: 12px; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}
