:root {
    --ink: #19231f;
    --muted: #66716c;
    --surface: #ffffff;
    --surface-alt: #f3f5f2;
    --line: #d9dfda;
    --accent: #315d4b;
    --accent-dark: #244638;
    --accent-soft: #e8eeea;
    --private-bg: #f8f6ef;
    --private-line: #bcae83;
    --radius: 16px;
    --shadow: 0 12px 30px rgba(30, 50, 42, .08);
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--surface-alt);
    line-height: 1.55;
}
a { color: var(--accent); }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.site-header { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
nav { display: flex; align-items: center; gap: 18px; }
nav a, .link-button { color: var(--ink); text-decoration: none; font-weight: 650; }
.inline-form { display: inline; }
.link-button { appearance: none; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.session-status { color: var(--accent); font-size: .82rem; font-weight: 750; padding: 5px 9px; background: var(--accent-soft); border-radius: 999px; }
main.container { min-height: calc(100vh - 150px); padding-block: 38px 64px; }
.site-footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; }
.hero { background: linear-gradient(135deg, #fff, #edf3ef); border: 1px solid var(--line); border-radius: 28px; padding: clamp(28px, 6vw, 72px); box-shadow: var(--shadow); }
.hero h1, .page-heading h1, .profile h1 { font-size: clamp(2rem, 5vw, 4.3rem); line-height: 1.02; letter-spacing: -.055em; margin: .2em 0; }
.hero p { max-width: 650px; font-size: 1.15rem; color: var(--muted); }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: .78rem; margin-bottom: .35rem; }
.search-form { display: flex; gap: 10px; margin-top: 24px; max-width: 720px; }
input[type="search"], input[type="text"], input[type="password"] { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font: inherit; background: #fff; }
button, .button { border: 0; border-radius: 12px; padding: 13px 18px; font: inherit; font-weight: 750; background: var(--accent); color: #fff; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
button:hover, .button:hover { background: var(--accent-dark); }
.button.secondary { background: var(--accent-soft); color: var(--accent-dark); }
.button.compact { padding: 9px 13px; border-radius: 9px; white-space: nowrap; }
.stats-grid, .detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.detail-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 6px 18px rgba(30, 50, 42, .04); }
.card h2 { margin-top: 0; }
.stats-grid strong { display: block; font-size: 1.35rem; }
.stats-grid span, .muted { color: var(--muted); }
.page-heading { margin-bottom: 24px; }
.page-heading h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
.result-list { display: grid; gap: 10px; }
.person-row { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-decoration: none; color: var(--ink); transition: .15s ease; }
.person-row:hover { border-color: #9fb1a7; transform: translateY(-1px); }
.person-row small { display: block; color: var(--muted); margin-top: 3px; }
.avatar-small { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #e6ece8; font-weight: 800; flex: 0 0 auto; }
.pagination { justify-content: space-between; margin-top: 24px; }
.empty-state { padding: 36px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }
.profile-header { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: center; margin-bottom: 28px; }
.profile h1 { font-size: clamp(2rem, 5vw, 3.7rem); }
.portrait-wrap { width: 180px; height: 180px; }
.portrait { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; border: 1px solid var(--line); background: #fff; }
.portrait.placeholder { display: grid; place-items: center; font-size: 3rem; font-weight: 850; color: var(--accent); background: #e6ece8; }
.life-events { display: grid; gap: 7px; color: var(--muted); margin-top: 14px; }
.life-events div { display: grid; grid-template-columns: 72px 1fr; gap: 10px; }
.life-events strong { color: var(--ink); font-size: .86rem; text-transform: uppercase; letter-spacing: .04em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: 155px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 650; }
.relative-group + .relative-group { margin-top: 20px; }
.relative-group h3 { margin: 0 0 8px; font-size: .95rem; color: var(--muted); }
.relative-group h3:empty { display: none; }
.relative-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.relative-item { display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid #edf0ed; }
.relative-item:last-child { border-bottom: 0; }
.relative-role { color: var(--muted); font-size: .82rem; }
.relative-item small { grid-column: 2; color: var(--muted); }
.relative-item.is-private { background: var(--private-bg); border: 1px dashed var(--private-line); border-radius: 9px; padding: 8px 10px; }
.private-label { color: #71653e; font-weight: 700; }
.event-note { margin: 14px 0 0; padding: 10px 12px; border-left: 3px solid var(--accent); background: #f6f8f6; color: var(--muted); font-size: .92rem; }
.unions-section, .documents-section, .prose { margin-top: 18px; }
.section-heading-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 16px; }
.section-heading-row h2 { margin: 0; }
.count-badge { background: var(--accent-soft); color: var(--accent-dark); border-radius: 999px; padding: 6px 10px; font-weight: 750; font-size: .82rem; }
.union-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.union-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fbfcfb; }
.union-card header { padding: 17px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, #f8faf8, #eef4f0); }
.union-card h3 { margin: 5px 0 0; font-size: 1.08rem; }
.union-number { color: var(--accent); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 850; }
.union-event { margin: 9px 0 0; color: var(--muted); font-size: .9rem; }
.union-children { padding: 15px 17px 17px; }
.union-children h4 { margin: 0 0 8px; }
.union-children h4 span { color: var(--muted); font-size: .85rem; }
.document-list { display: grid; }
.document-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.document-row:last-child { border-bottom: 0; }
.document-icon { width: 44px; height: 44px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-dark); font-weight: 900; font-size: .72rem; border-radius: 10px; }
.document-main h3 { margin: 0; font-size: 1rem; }
.document-meta { display: flex; flex-wrap: wrap; gap: 5px 16px; color: var(--muted); font-size: .88rem; margin-top: 5px; }
.filename { display: inline-block; max-width: 100%; overflow-wrap: anywhere; margin-top: 7px; color: #53605a; background: #f4f6f4; padding: 3px 6px; border-radius: 5px; }
.document-action { text-align: right; max-width: 210px; }
.file-unavailable { color: var(--muted); font-size: .8rem; line-height: 1.3; }

/* Albero genealogico */
.tree-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.tree-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; }
.generation-picker, .tree-buttons { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.generation-picker > span { color: var(--muted); font-size: .88rem; margin-right: 3px; }
.generation-button, .tool-button { min-width: 34px; height: 34px; border-radius: 8px; padding: 0 10px; display: inline-grid; place-items: center; text-decoration: none; background: #eef2ef; color: var(--ink); font-size: .88rem; font-weight: 750; }
.generation-button.active { background: var(--accent); color: #fff; }
.tool-button { border: 0; cursor: pointer; }
.privacy-legend { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .84rem; margin: 10px 2px; }
.legend-dot { width: 12px; height: 12px; border-radius: 3px; background: #fff; border: 1px solid var(--line); }
.legend-dot.private { background: var(--private-bg); border: 1px dashed var(--private-line); }
.tree-viewport { overflow: auto; min-height: 560px; max-height: 74vh; background: radial-gradient(circle at 1px 1px, #dfe5e1 1px, transparent 0); background-size: 22px 22px; border: 1px solid var(--line); border-radius: 16px; padding: 36px; cursor: grab; user-select: none; overscroll-behavior: contain; }
.tree-viewport.is-dragging { cursor: grabbing; }
.tree-canvas { width: max-content; min-width: 100%; padding: 0 40px 80px; }
/* Nell'albero degli antenati il ramo viene capovolto solo sull'asse verticale:
   gli antenati più remoti risultano in alto, senza invertire padre e madre. */
.tree-canvas-ancestors .tree-root { transform: scaleY(-1); transform-origin: center; }
.tree-canvas-ancestors .tree-node-shell { transform: scaleY(-1); }
.tree-canvas-ancestors .branch-toggle { top: -12px; bottom: auto; }
.tree-root, .tree-root ul { list-style: none; margin: 0; padding: 0; position: relative; display: flex; justify-content: center; }
.tree-root ul { padding-top: 38px; }
.tree-root li { position: relative; text-align: center; padding: 38px 10px 0; }
.tree-root > li { padding-top: 0; }
.tree-root li::before, .tree-root li::after { content: ""; position: absolute; top: 0; right: 50%; width: 50%; height: 38px; border-top: 1px solid #9eada5; }
.tree-root li::after { right: auto; left: 50%; border-left: 1px solid #9eada5; }
.tree-root li:only-child::before, .tree-root li:only-child::after { display: none; }
.tree-root li:only-child { padding-top: 0; }
.tree-root li:first-child::before, .tree-root li:last-child::after { border: 0 none; }
.tree-root li:last-child::before { border-right: 1px solid #9eada5; border-radius: 0 8px 0 0; }
.tree-root li:first-child::after { border-radius: 8px 0 0 0; }
.tree-root ul ul::before { content: ""; position: absolute; top: 0; left: 50%; height: 38px; border-left: 1px solid #9eada5; }
.tree-node-shell { display: inline-flex; align-items: center; justify-content: center; position: relative; }
.tree-person, .tree-union { width: 224px; min-height: 92px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; text-decoration: none; color: var(--ink); box-shadow: 0 4px 12px rgba(30, 50, 42, .06); }
.tree-person:hover { border-color: #92aa9d; box-shadow: 0 8px 18px rgba(30, 50, 42, .11); }
.tree-person strong, .tree-union strong { line-height: 1.2; }
.tree-role { display: block; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; font-size: .64rem; font-weight: 850; margin-bottom: 4px; }
.tree-life { display: grid; gap: 1px; color: var(--muted); font-size: .74rem; margin-top: 5px; }
.tree-life b { color: #4c5752; font-weight: 750; }
.cycle-note { color: #8a5a3d; margin-top: 4px; }
.tree-union { width: 194px; min-height: 74px; align-items: center; text-align: center; background: #eaf1ed; border-radius: 999px; padding-inline: 16px; }
.tree-union small { color: var(--muted); line-height: 1.25; margin-top: 3px; }
.union-symbol { color: var(--accent); font-size: 1.15rem; line-height: 1; }
.private-person, .private-union { background: var(--private-bg); border: 1px dashed var(--private-line); box-shadow: none; color: #655c40; }
.branch-toggle { position: absolute; right: -12px; bottom: -12px; width: 25px; height: 25px; min-width: 0; padding: 0; border-radius: 50%; background: var(--accent); color: #fff; font-size: 1rem; line-height: 1; z-index: 3; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.tree-item.branch-collapsed > ul { display: none; }
.tree-item.branch-collapsed { padding-bottom: 0; }
.tree-help { color: var(--muted); font-size: .84rem; margin-top: 10px; }

.auth-card { max-width: 520px; margin-inline: auto; }
.auth-card p label { display: block; font-weight: 700; margin-bottom: 5px; }
.notice { background: #edf5ef; border: 1px solid #bdd5c5; padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 850px) {
    .header-inner { align-items: flex-start; padding-block: 14px; }
    nav { gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
    .session-status { display: none; }
    .stats-grid, .detail-grid, .union-grid { grid-template-columns: 1fr; }
    .profile-header { grid-template-columns: 1fr; }
    .portrait-wrap { width: 128px; height: 128px; }
    .search-form { flex-direction: column; }
    .facts div { grid-template-columns: 1fr; gap: 2px; }
    .tree-heading { align-items: flex-start; flex-direction: column; }
    .tree-viewport { min-height: 480px; padding: 24px; }
}
@media (max-width: 620px) {
    .container { width: min(100% - 20px, 1180px); }
    .footer-inner, .section-heading-row { flex-direction: column; }
    .life-events div { grid-template-columns: 1fr; gap: 0; }
    .relative-item { grid-template-columns: 1fr; }
    .relative-item small { grid-column: 1; }
    .document-row { grid-template-columns: 42px minmax(0, 1fr); }
    .document-action { grid-column: 2; text-align: left; max-width: none; }
    .tree-toolbar { align-items: flex-start; }
    .tree-person { width: 190px; }
    .tree-union { width: 170px; }
}

/* Albero genealogico unico: antenati sopra, persona al centro, discendenti sotto */
.tree-intro { max-width: 760px; margin: 8px 0 0; color: var(--muted); }
.combined-generation-controls { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.combined-tree-viewport { min-height: 680px; max-height: 78vh; }
.combined-tree-canvas { padding: 34px 60px 70px; }
.combined-tree { display: flex; flex-direction: column; align-items: center; width: max-content; min-width: 100%; }
.combined-tree-half { display: flex; flex-direction: column; align-items: center; width: max-content; min-width: 320px; }
.combined-tree-ancestors { margin-bottom: 28px; }
.combined-tree-descendants { margin-top: 28px; }
.tree-zone-label { display: flex; flex-direction: column; align-items: center; gap: 1px; margin-bottom: 18px; color: var(--accent); text-align: center; }
.tree-zone-label strong { text-transform: uppercase; letter-spacing: .13em; font-size: .73rem; }
.tree-zone-label span { color: var(--muted); font-size: .74rem; }
.tree-zone-label-bottom { margin: 18px 0 0; }
.tree-focus-wrap { position: relative; z-index: 8; display: grid; place-items: center; }
.tree-focus-wrap::before,
.tree-focus-wrap::after { content: ""; position: absolute; left: 50%; width: 0; height: 28px; border-left: 2px solid #879a90; z-index: -1; }
.tree-focus-wrap::before { top: -28px; display: none; }
.tree-focus-wrap::after { bottom: -28px; display: none; }
.tree-focus-wrap.has-ancestors::before,
.tree-focus-wrap.has-descendants::after { display: block; }
.tree-person-focus { width: 258px; min-height: 108px; border: 2px solid var(--accent); box-shadow: 0 12px 26px rgba(30, 50, 42, .16); background: linear-gradient(135deg, #ffffff, #edf4f0); }
.tree-person-focus strong { font-size: 1.08rem; }
.combined-root { width: max-content; }
.combined-root-ancestors { transform: scaleY(-1); transform-origin: center; }
.combined-root-ancestors .tree-node-shell { transform: scaleY(-1); }
.combined-root-ancestors .branch-toggle { top: -12px; bottom: auto; }
.tree-anchor { padding: 0 !important; }
.tree-anchor > .tree-anchor-shell { width: 1px; height: 1px; min-width: 1px; min-height: 1px; padding: 0; border: 0; box-shadow: none; visibility: hidden; }
.tree-anchor > ul { padding-top: 38px; }
.tree-anchor > ul::before { content: ""; position: absolute; top: 0; left: 50%; height: 38px; border-left: 1px solid #9eada5; }
.tree-empty-branch { min-width: 330px; padding: 16px 18px; border: 1px dashed var(--line); border-radius: 12px; background: rgba(255,255,255,.72); color: var(--muted); font-size: .86rem; text-align: center; }

@media (max-width: 850px) {
    .combined-generation-controls { align-items: flex-start; flex-direction: column; gap: 8px; }
    .combined-tree-viewport { min-height: 600px; }
    .combined-tree-canvas { padding-inline: 32px; }
}

@media (max-width: 620px) {
    .combined-tree-canvas { padding-inline: 20px; }
    .tree-person-focus { width: 214px; }
    .tree-empty-branch { min-width: 250px; }
}

/* Risultati di ricerca genealogica: ordinamento cronologico e anteprima famiglia */
.search-page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; }
.search-page-heading .search-form { flex: 1 1 620px; margin-top: 0; }
.search-summary-bar { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: 0 0 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.82); }
.search-summary-bar > div { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.search-summary-bar > div > strong { font-size: 1.25rem; }
.search-summary-bar small { flex-basis: 100%; color: var(--muted); }
.search-order-form { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.search-order-form label { color: var(--muted); font-size: .86rem; font-weight: 700; }
.search-order-form select { min-width: 245px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 34px 10px 11px; font: inherit; color: var(--ink); background: #fff; }
.search-results-table { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 6px 18px rgba(30, 50, 42, .04); }
.search-results-header, .search-result-row { display: grid; grid-template-columns: minmax(230px, 1.18fr) minmax(205px, 1fr) minmax(210px, 1.08fr) minmax(210px, 1.08fr); gap: 0; }
.search-results-header { background: #e9eeeb; color: #4c5953; font-size: .75rem; font-weight: 850; text-transform: uppercase; letter-spacing: .075em; }
.search-results-header span { padding: 11px 14px; border-right: 1px solid #d4dcd7; }
.search-results-header span:last-child { border-right: 0; }
.search-result-row { border-top: 1px solid var(--line); transition: background .15s ease; }
.search-result-row:hover { background: #f8faf8; }
.search-result-row > div { min-width: 0; padding: 14px; border-right: 1px solid #e3e8e4; }
.search-result-row > div:last-child { border-right: 0; }
.search-person-cell { display: flex; align-items: flex-start; gap: 12px; }
.search-person-cell .avatar-small { text-decoration: none; color: var(--accent); width: 42px; height: 42px; }
.search-result-name { display: inline-block; color: var(--ink); font-weight: 800; line-height: 1.22; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.search-person-cell small { display: block; color: var(--muted); margin-top: 4px; line-height: 1.3; }
.search-life-cell { display: grid; align-content: start; gap: 5px; font-size: .86rem; }
.search-life-cell b { display: inline-block; min-width: 54px; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.search-relatives-cell { display: flex; align-content: flex-start; align-items: flex-start; flex-wrap: wrap; gap: 6px; }
.search-cell-label { display: none; width: 100%; color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.relation-chip { display: inline-flex; align-items: baseline; gap: 4px; max-width: 100%; padding: 5px 8px; border: 1px solid #d5ded8; border-radius: 8px; background: #f5f8f6; color: var(--accent-dark); font-size: .8rem; line-height: 1.25; text-decoration: none; overflow-wrap: anywhere; }
.relation-chip:hover { border-color: #9fb1a7; background: #eef4f0; }
.relation-chip b { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .035em; }
.relation-chip small { color: var(--muted); font-size: .72rem; }
.relation-chip.is-private { border-style: dashed; border-color: var(--private-line); background: var(--private-bg); color: #71653e; }
.relation-empty { color: #9ba49f; }

@media (max-width: 980px) {
    .search-page-heading { align-items: stretch; flex-direction: column; gap: 8px; }
    .search-page-heading .search-form { flex-basis: auto; }
    .search-results-header { display: none; }
    .search-result-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .search-result-row > div { border-right: 0; border-bottom: 1px solid #e3e8e4; }
    .search-result-row > div:nth-child(odd) { border-right: 1px solid #e3e8e4; }
    .search-result-row > div:nth-last-child(-n+2) { border-bottom: 0; }
    .search-cell-label { display: block; }
}

@media (max-width: 620px) {
    .search-summary-bar { align-items: stretch; flex-direction: column; }
    .search-order-form { align-items: stretch; flex-direction: column; }
    .search-order-form select { width: 100%; min-width: 0; }
    .search-result-row { grid-template-columns: 1fr; }
    .search-result-row > div,
    .search-result-row > div:nth-child(odd),
    .search-result-row > div:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid #e3e8e4; }
    .search-result-row > div:last-child { border-bottom: 0; }
}

/* Versione 0.5: miniature fotografiche nei riquadri dell'albero */
.tree-person-with-thumb {
    width: 284px;
    min-height: 104px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}
.tree-person-copy {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.tree-person-copy strong {
    overflow-wrap: anywhere;
}
.tree-thumb-wrap {
    position: relative;
    flex: 0 0 62px;
    width: 62px;
    height: 72px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border: 1px solid #cad5cf;
    border-radius: 11px;
    background: #e6ece8;
    box-shadow: 0 2px 7px rgba(30, 50, 42, .08);
}
.tree-thumb {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 25%;
}
.tree-thumb-placeholder {
    width: 100%;
    height: 100%;
    place-items: center;
    color: var(--accent);
    font-weight: 850;
    font-size: 1rem;
    letter-spacing: .02em;
    background: #e6ece8;
}
.tree-thumb-placeholder:not([hidden]) {
    display: grid;
}
.tree-person-focus.tree-person-with-thumb {
    width: 320px;
    min-height: 122px;
}
.tree-thumb-wrap-focus {
    flex-basis: 72px;
    width: 72px;
    height: 84px;
    border-radius: 13px;
}
@media (max-width: 620px) {
    .tree-person-with-thumb { width: 244px; }
    .tree-person-focus.tree-person-with-thumb { width: 270px; }
    .tree-thumb-wrap { flex-basis: 54px; width: 54px; height: 64px; }
    .tree-thumb-wrap-focus { flex-basis: 62px; width: 62px; height: 74px; }
}
