/* Family archive, calendar and readable navigation. Keep the existing site palette. */
.account-fields{border:0;padding:0;margin:0;min-width:0}.account-fields:disabled{opacity:.8}.account-dialog h2{overflow-wrap:anywhere}.account-dialog input{max-width:100%}.account-secret input{font-family:monospace}.account-secret{margin-top:18px}.account-dialog .error{color:#973b35}.account-dialog label{min-width:0}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #a76a22;outline-offset:3px}
.tree-quick-actions,.calendar-controls,.calendar-toolbar,.calendar-settings,.archive-filters,.profile-tabs{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:12px 0 18px}
.calendar-memorial-toggle{position:relative;display:inline-flex;align-items:center;gap:10px;min-height:44px;margin:8px 0;cursor:pointer;font-size:14px;color:var(--ink)}
.calendar-memorial-toggle input{position:absolute;inset-inline-start:0;top:50%;transform:translateY(-50%);width:44px;height:44px;margin:0;opacity:0;cursor:pointer;z-index:1}
.calendar-toggle-track{position:relative;flex:0 0 44px;height:24px;border-radius:24px;background:#a1ac9b;transition:background .16s}.calendar-toggle-track:before{content:"";position:absolute;inset-inline-start:3px;top:3px;width:18px;height:18px;border-radius:50%;background:white;box-shadow:0 1px 3px #0003;transition:inset-inline-start .16s}.calendar-memorial-toggle input:checked+.calendar-toggle-track{background:var(--green)}.calendar-memorial-toggle input:checked+.calendar-toggle-track:before{inset-inline-start:23px}.calendar-memorial-toggle input:focus-visible+.calendar-toggle-track{outline:2px solid #b28b4f;outline-offset:3px}@media(prefers-reduced-motion:reduce){.calendar-toggle-track,.calendar-toggle-track:before{transition:none}}
.tree-quick-actions .button{font-weight:500}.export-range{display:block;max-width:300px;margin:0 0 12px;font-size:12px}.export-range select{margin-top:5px}
#treeView:fullscreen{background:var(--paper);padding:18px 25px;overflow:auto;display:flex;flex-direction:column;gap:5px}
#treeView:fullscreen .section-toolbar,#treeView:fullscreen .tree-filters,#treeView:fullscreen .tree-quick-actions{margin:0 0 8px}
#treeView:fullscreen .tree-stage{flex:1;min-height:300px;height:auto}
#treeView:fullscreen .tree-display-options,#treeView:fullscreen .legend,#treeView:fullscreen .tree-output p,#treeView:fullscreen .section-toolbar p{display:none}
.node-expand{cursor:pointer}.node-expand rect{fill:#edf3e7!important;stroke:#6e846b!important;stroke-width:1}.node-expand text{fill:#365c48;font-size:18px;font-weight:700;pointer-events:none}
.node-expand:focus rect{stroke:#a76a22!important;stroke-width:3!important}.node-card.birthday-month .node-profile-button>rect:not(.orchard-hitbox){stroke:#ba8a30;stroke-width:3}.node-profile-button:focus-visible>rect:not(.orchard-hitbox){stroke:#a76a22;stroke-width:4}
.orchard-fruit .node-profile-button>.orchard-hitbox{fill:transparent;stroke:none;filter:none}
.person-tile.birthday-month{border:2px solid #ba8a30;background:#fff9e7}.birthday-badge{font-size:14px}
.profile-top h2{margin:6px 0}.profile-top p{margin:4px 0}.profile-actions{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}
.profile-tabs{border-bottom:1px solid var(--line);padding-bottom:0;gap:22px}.profile-tabs button{border:0;background:none;color:var(--muted);padding:12px 4px;font-size:14px}
.profile-tabs button[aria-pressed=true]{color:var(--green);border-bottom:3px solid var(--green);font-weight:600}
.relative-group{margin:22px 0}.relative-group h3{margin-bottom:8px}.relative-row{display:flex;gap:18px;border-bottom:1px solid var(--line);padding:10px 0;align-items:baseline}.relative-row button{border:0;background:none;color:var(--green);text-align:start;padding:0;text-decoration:underline;text-underline-offset:3px}.relative-row span{min-width:100px;font-size:12px;color:var(--muted)}
.text-block{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.text-button{border:0;background:none;color:var(--green);text-decoration:underline;text-underline-offset:3px;padding:5px;text-align:start}
.request-honeypot{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
.passkey-login-actions{margin:0 0 16px}.passkey-token-choices{margin-block-end:18px}.passkey-password-choice{margin-block-start:12px}
.material-card{background:var(--white);border:1px solid var(--line);border-radius:12px;padding:20px;margin:16px 0}.material-card h3{font-size:18px;margin:8px 0 12px}.material-kind{font-size:11px;color:var(--muted)}.material-text summary{font-size:14px;line-height:1.6;cursor:pointer}.material-text p{font-size:14px}.material-people{display:flex;flex-wrap:wrap;gap:8px}.material-people button,.picker-person{border:1px solid var(--line);border-radius:6px;background:var(--paper);padding:7px 10px;color:var(--green);text-align:start;font-size:12px}
.archive-image-open{display:block;border:0;background:none;padding:0;margin-bottom:12px}.archive-image-open img{display:block;max-width:100%;max-height:220px;border-radius:8px;object-fit:contain}.archive-large-photo{display:block;max-height:75vh;max-width:100%;margin:auto;object-fit:contain}.archive-large-photo+figcaption{text-align:center;padding:12px}#archivePhotoDialog{max-width:min(900px,95vw);padding:25px}#archivePhotoDialog figure{margin:0}
.dialog{max-width:min(760px,95vw);width:760px;max-height:92vh;background:var(--paper);border:1px solid #d5c8a7;border-radius:16px;padding:30px;color:var(--ink);overflow:auto;animation:archive-appear .2s ease}
.dialog::backdrop{background:#183326a6;backdrop-filter:blur(4px)}.dialog form{display:grid;gap:15px}.dialog label{display:grid;gap:6px;font-size:13px}.dialog label.check{display:flex;align-items:center;gap:8px}.dialog input,.dialog select,.dialog textarea{max-width:100%}.dialog fieldset{border:1px solid var(--line);border-radius:9px;padding:16px;display:grid;gap:12px}.dialog legend{padding:0 8px}.date-editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.material-type{margin:10px 8px 10px 0}#materialPeopleResults{display:grid;gap:6px;max-height:210px;overflow:auto}#materialChosenPeople{display:grid;gap:7px}.material-people{overflow-wrap:anywhere}
.calendar-months{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.calendar-month{padding:20px 14px;border:1px solid var(--line);border-radius:12px;background:#fffefa80}.calendar-month h3{text-align:center;font-family:Georgia,serif;font-size:20px;font-weight:400;margin:0 0 22px}.calendar-days,.calendar-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.calendar-weekdays span{text-align:center;font-size:11px;color:var(--muted);padding-bottom:12px}.calendar-day{border:1px solid transparent;min-height:43px;border-radius:7px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:none;color:var(--ink);font-size:13px}.calendar-day small{font-size:10px}.calendar-day.has-birthday{background:#dee9d8}.calendar-day.is-today{border:1px solid var(--green)}.calendar-day:hover:is(button){border-color:var(--green)}.calendar-month>p{text-align:center}.calendar-toolbar span{font-size:13px}.calendar-settings label{display:flex;gap:8px;align-items:center;font-size:12px}.calendar-settings select{width:auto;min-width:150px}.mobile-month-picker{display:none!important}.calendar-choice{display:block;border:0;border-bottom:1px solid var(--line);background:none;text-align:start;padding:16px;width:100%;color:var(--green)}#calendarPeopleDialog{max-width:min(700px,95vw);border:1px solid var(--line);border-radius:12px;padding:25px;background:var(--paper)}.table-wrap,.table-scroll{overflow:auto}.birthday-table td{vertical-align:top}.birthday-table th,.birthday-table td{font-size:13px}.history-panel{margin-top:20px}.history-panel td{font-size:12px}
@keyframes archive-appear{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:900px){.calendar-months{gap:8px}.calendar-month{padding:14px 5px}.calendar-day{min-height:38px;font-size:12px}.calendar-month h3{font-size:17px}}
@media(max-width:650px){.calendar-months{display:block}.calendar-month:not(.mobile-selected){display:none}.calendar-month{padding:22px 12px}.calendar-day{min-height:46px}.calendar-month h3{font-size:22px}.mobile-month-picker{display:flex!important}.calendar-toolbar span{flex-basis:65%;font-size:11px}.dialog{padding:20px 16px}.date-editor-grid{grid-template-columns:1fr}.profile-actions .button{padding:9px 12px}.relative-row{gap:10px}.relative-row span{min-width:75px}.tree-quick-actions{gap:6px}.tree-quick-actions .button{padding:9px 12px}.tree-stage{height:580px}.calendar-settings label{flex-wrap:wrap}.table-wrap .birthday-table{min-width:600px}#treeView:fullscreen{padding:12px}#treeView:fullscreen .tree-filters{display:none}#treeView:fullscreen .tree-stage{min-height:350px}}
@media(prefers-reduced-motion:reduce){.dialog{animation:none}}
.intro-compact .surname-explorer,.intro-compact .surname-backdrop,.intro-compact .surname-button{visibility:hidden!important;pointer-events:none}
@media(max-width:650px){#birthdaysView>.section-toolbar{flex-wrap:wrap;align-items:flex-start;gap:10px}#birthdaysView .calendar-controls{margin:0;gap:8px}#birthdaysView>.section-toolbar h2{flex-basis:100%}}

.intro-family-actions{display:flex;justify-content:flex-start;margin:16px 0 22px;min-height:38px}
.intro-families-toggle{position:static;font-weight:500;padding:9px 15px;max-width:100%}
.intro-compact .surname-motion{visibility:hidden;pointer-events:none}
.intro-overview{height:300px;min-height:0;margin-bottom:0}.intro-overview .intro-copy{top:98px}
.intro-overview :is(.intro-copy,.intro-side){pointer-events:none}
.intro-overview .surname-backdrop{inset:0}
.intro-overview.cloud-flow:not(.intro-compact){height:auto;min-height:0}
.surname-button,.surname-button:nth-child(n){font-size:18px;padding:4px}.surname-chip{padding:7px 15px}
.surname-button.surname-featured{font-size:20px;font-weight:600}.surname-featured .surname-chip{border-width:2px;border-color:hsl(var(--surname-hue,110) 35% 60%);background:hsl(var(--surname-hue,110) 46% 90%);padding:8px 17px}
@media(max-width:1100px){.intro-overview{height:330px}.intro-overview .intro-copy{top:62px;width:min(48%,400px)}.surname-button,.surname-button:nth-child(n){font-size:17px}.surname-button.surname-featured{font-size:19px}}
@media(max-width:650px){.intro-family-actions{margin:16px 0 20px}}
@media(max-width:600px){.intro-overview{height:560px}.intro-overview .intro-copy{top:48px;width:100%}.surname-button,.surname-button:nth-child(n){font-size:15px}.surname-chip{padding:6px 12px}.surname-button.surname-featured{font-size:17px}.surname-featured .surname-chip{padding:7px 13px}}

/* Keep neighbouring fields level even when their labels wrap. */
.people-filters{align-items:flex-end}
:is(.people-filters,.form-grid,.name-language,dialog,.panel) input:where(:not([type=checkbox]):not([type=hidden]):not([type=file])){height:40px;min-height:40px;min-width:0;padding:9px 12px;border-radius:8px;border-color:var(--dropdown-line);background:var(--dropdown-bg);font-size:12px;line-height:18px}
:is(.people-filters,.form-grid,.name-language,dialog,.panel) input::placeholder{color:#75876c}
:is(.people-filters,.form-grid,.name-language,dialog,.panel) input:where(:not([type=checkbox]):not([type=hidden]):not([type=file])):hover{border-color:#9fb396}
.form-grid,.name-language,.date-editor-grid{align-items:end}
.form-grid>label,.name-language>label,.date-editor-grid>label{min-width:0}
.calendar-settings .custom-dropdown{margin-top:0}
@media(max-width:800px){.people-filters{align-items:stretch}}

.orchard-connections-hidden .orchard-connections{display:none}.orchard-fruit .node-expand{filter:drop-shadow(0 2px 3px #23392918)}
.tree-context-menu{position:fixed;z-index:1000;width:270px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);overflow:auto;padding:6px;background:var(--white);border:1px solid #cad5c5;border-radius:12px;box-shadow:0 10px 36px #263b3030;text-align:start}
.tree-context-menu[hidden]{display:none}.tree-context-name{padding:9px 11px 11px;margin-bottom:4px;border-bottom:1px solid var(--line);font-weight:600;font-size:12px;overflow-wrap:anywhere}
.tree-context-menu button{display:block;width:100%;padding:11px;border:0;border-radius:7px;background:transparent;color:var(--ink);text-align:start;font:inherit;font-size:12px;cursor:pointer}
.tree-context-menu button:hover,.tree-context-menu button:focus-visible{background:#eaf0e5;outline:2px solid #365c48;outline-offset:-2px}.tree-context-menu button:disabled{color:var(--muted);opacity:.6;cursor:default;background:transparent;outline:0}

.calendar-export{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin:20px 0 8px}.calendar-export>label{margin:0;display:grid;gap:6px;font-size:12px;min-width:180px}.calendar-export .custom-dropdown{margin:0}.calendar-export>.button{min-height:40px}.calendar-event{padding:18px 0;border-bottom:1px solid var(--line)}.calendar-event h3{margin:0 0 14px;font-size:18px;overflow-wrap:anywhere}.calendar-event-actions{display:flex;flex-wrap:wrap;gap:10px}#calendarPeopleDialog{color:var(--ink);width:700px}#calendarPeopleDialog h2{padding-inline-end:40px}.calendar-export>.button:disabled{opacity:.55;cursor:default}
@media(max-width:650px){.calendar-export>label,.calendar-export>.button{width:100%;min-width:0}.calendar-event-actions>.button{flex:1 1 140px}#calendarPeopleDialog{padding:20px 16px}}

/* One remembered selector controls the floating surname decorations. */
.intro:has(.surname-display-dropdown.is-open){z-index:20}
.intro-family-actions{position:relative;z-index:5}.surname-display-dropdown{width:max-content;max-width:100%;min-width:240px}.surname-display-dropdown .dropdown-trigger{font-size:12px;font-weight:500;height:40px;background:#f6f5ef}.surname-display-dropdown .dropdown-menu{min-width:240px}.surname-chip{display:flex;align-items:center;justify-content:center;gap:7px;position:relative;isolation:isolate}.surname-label{position:relative;z-index:1}.surname-count{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;min-width:17px;height:17px;padding:0 3px;border-radius:50%;background:#ffffff80;font:600 10px/1 system-ui,sans-serif;color:inherit;font-variant-numeric:tabular-nums}.surname-cloud-shape{display:none}
[data-surname-style=cloud] .surname-chip{padding:7px 15px;border:1px solid transparent;border-radius:0;background:transparent;box-shadow:none}
[data-surname-style=cloud] .surname-cloud-shape{display:block;position:absolute;inset:0;width:100%;height:100%;z-index:0;overflow:visible;filter:drop-shadow(0 2px 2px #365c4812)}
.surname-cloud-shape path{fill:hsl(var(--surname-hue) 44% 95%);stroke:hsl(var(--surname-hue) 32% 78%);stroke-width:1;vector-effect:non-scaling-stroke}
[data-surname-style=cloud] .surname-featured .surname-cloud-shape path{fill:hsl(var(--surname-hue) 50% 90%);stroke:hsl(var(--surname-hue) 38% 60%);stroke-width:1.8}
[data-surname-style=cloud] .surname-button:hover .surname-cloud-shape path,[data-surname-style=cloud] .surname-button:focus-visible .surname-cloud-shape path{fill:hsl(var(--surname-hue) 44% 90%)}
@media(max-width:600px){.surname-count{font-size:9px;min-width:15px;height:15px}.surname-chip{gap:5px}[data-surname-style=bubble] .surname-chip{padding:9px 13px}[data-surname-style=cloud] .surname-chip{padding:6px 12px}.surname-display-dropdown{min-width:0;width:min(280px,100%)}}

/* Calendar details stay next to the person on desktop, tablet and phone. */
.calendar-event-detail{display:block;margin:8px 0 0;color:var(--ink);font-size:14px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}.calendar-event-kind{display:block;margin-top:8px;color:var(--ink);font-size:12px}.calendar-event .calendar-event-detail{margin:0 0 16px}.calendar-list-wrap .birthday-table{min-width:0;width:100%;table-layout:fixed}.calendar-list-wrap .birthday-table th:first-child{width:160px}.calendar-list-wrap .birthday-table th:nth-child(3){width:90px}.calendar-list-wrap .birthday-table th:last-child{width:180px}.calendar-list-person .text-button{white-space:normal;overflow-wrap:anywhere;text-align:start}.calendar-list-add .button{white-space:normal;max-width:100%;font-size:12px}.calendar-mobile-label{display:none}
@media(max-width:900px){.calendar-list-wrap{overflow:visible}.calendar-list-wrap .birthday-table,.calendar-list-wrap .birthday-table tbody{display:block;width:100%}.calendar-list-wrap .birthday-table thead{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%)}.calendar-list-wrap .birthday-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:18px 0;border-bottom:1px solid var(--line)}.calendar-list-wrap .birthday-table td{display:block;min-width:0;padding:0;border:0;white-space:normal}.calendar-list-date,.calendar-list-person{grid-column:1/-1}.calendar-list-person .text-button{font-size:14px}.text-button.login-recover{font-size:15px;font-weight:600}.calendar-list-date{font-weight:600}.calendar-list-days{align-self:center}.calendar-list-add{max-width:180px}.calendar-mobile-label{display:inline}.calendar-list-wrap .birthday-table th{width:auto!important}}

/* Compact oval soap film: the same content box as ordinary surname ovals. */
[data-surname-style=bubble] .surname-chip{width:auto;height:auto;padding:7px 15px!important;flex-direction:row;gap:7px;border-radius:50% / 45%;border:1px solid #d0e6e1;color:#294b45;background:radial-gradient(ellipse at 28% 4%,#ffffffed 0%,#c2f6ee66 17%,transparent 43%),radial-gradient(ellipse at 78% 90%,#c3d8ff9c 0%,#e9c3f74d 30%,transparent 57%),radial-gradient(ellipse at 7% 63%,#85e8ee63,transparent 35%),radial-gradient(ellipse at 85% 23%,#f8c9ea59,transparent 32%),linear-gradient(165deg,#ffffff1f 20%,#b6dace26 48%,#f4dcfc47 68%,#ffffffe6 98%);box-shadow:inset 0 1px 2px #ffffffed,inset 0 -2px 3px #b6d7dd80,0 1px 3px #7299931f;transition:filter .2s,box-shadow .2s}
[data-surname-style=bubble] .surname-chip::before{content:"";position:absolute;inset:0;border-radius:inherit;padding:2px;pointer-events:none;background:conic-gradient(from 28deg,#fffffff2,#91dfe7 10%,#b9d1fa 21%,#e7ace2 32%,#f7e4c4 44%,#eafaff 52%,#9cdeef 63%,#81e1cb 75%,#e4c8ef 85%,#ffffff 94%,#fffffff2);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude}
[data-surname-style=bubble] .surname-chip::after{content:"";position:absolute;left:12%;top:10%;width:51%;height:24%;border-radius:50%;border-top:2px solid #fffffff2;transform:rotate(-9deg);background:linear-gradient(180deg,#ffffff9e,transparent 82%);pointer-events:none}
[data-surname-style=bubble] .surname-label{max-width:100%;font-size:inherit;font-style:inherit;line-height:inherit;white-space:nowrap;text-shadow:0 1px 2px #fffffff2}
[data-surname-style=bubble] .surname-count{background:#ffffffab;box-shadow:inset 0 0 0 1px #ffffffa6;color:#294b45;font-size:10px}
[data-surname-style=bubble] .surname-featured .surname-chip{width:auto;height:auto;padding:8px 17px!important;border-width:2px;box-shadow:inset 0 1px 3px #ffffff,inset 0 -2px 4px #a4cbd080,0 1px 4px #72999330}
[data-surname-style=bubble] .surname-featured .surname-label{font-size:inherit;font-weight:600}
[data-surname-style=bubble] .surname-button:hover .surname-chip,[data-surname-style=bubble] .surname-button:focus-visible .surname-chip{filter:brightness(1.04);box-shadow:inset 0 1px 3px #ffffff,inset 0 -2px 4px #a4cbd080,0 2px 5px #72999340}
@media(max-width:600px){[data-surname-style=bubble] .surname-button{padding:4px}[data-surname-style=bubble] .surname-chip{padding:6px 12px!important;gap:5px}[data-surname-style=bubble] .surname-featured .surname-chip{padding:7px 13px!important}[data-surname-style=bubble] .surname-count{font-size:9px}}

/* Soap film moves inside a fixed oval box; the text itself stays still. */
[data-surname-style=bubble] .surname-chip{background-size:115% 125%;animation:bubble-film var(--bubble-period,11s) ease-in-out var(--bubble-delay,0s) infinite}
[data-surname-style=bubble] .surname-chip::before{animation:bubble-iridescence calc(var(--bubble-period,11s) * 1.3) ease-in-out var(--bubble-delay,0s) infinite}
[data-surname-style=bubble] .surname-chip::after{animation:bubble-reflection calc(var(--bubble-period,11s) * .85) ease-in-out var(--bubble-delay,0s) infinite}
@keyframes bubble-film{0%,100%{border-radius:50% 50% 49% 51% / 46% 48% 52% 54%;background-position:0% 0%}30%{border-radius:47% 53% 51% 49% / 51% 44% 56% 49%;background-position:65% 35%}65%{border-radius:53% 47% 48% 52% / 44% 53% 47% 56%;background-position:100% 75%}}
@keyframes bubble-iridescence{0%,100%{filter:hue-rotate(-18deg);opacity:.88}45%{filter:hue-rotate(35deg);opacity:1}75%{filter:hue-rotate(-32deg);opacity:.92}}
@keyframes bubble-reflection{0%,100%{transform:translate(0,0) rotate(-9deg);opacity:.9}45%{transform:translate(7%,2px) rotate(-5deg);opacity:.58}75%{transform:translate(-3%,1px) rotate(-12deg);opacity:1}}
[data-surname-style=bubble] :is(.motion-paused,.surname-button:hover,.surname-button:focus) .surname-chip,[data-surname-style=bubble] :is(.motion-paused,.surname-button:hover,.surname-button:focus) .surname-chip::before,[data-surname-style=bubble] :is(.motion-paused,.surname-button:hover,.surname-button:focus) .surname-chip::after{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){[data-surname-style=bubble] .surname-chip,[data-surname-style=bubble] .surname-chip::before,[data-surname-style=bubble] .surname-chip::after{animation:none!important}}

/* Audit fixes: constrain grid/table children without hiding page overflow. */
.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-grid>*{min-width:0}.view,.table-wrap,.panel,.form-grid>*{min-width:0}#adminView .table-wrap{max-width:100%;overflow:auto}#adminView td{overflow-wrap:anywhere}#adminView .dropdown-trigger{max-width:100%}.profile-action-group{border:1px solid var(--line);border-radius:9px;margin:12px 0;padding:12px 16px}.profile-action-group summary{cursor:pointer;font-size:14px;font-weight:600;color:var(--green)}.profile-action-group .profile-actions{margin:14px 0 0}.profile-action-group [hidden]{display:none}.dialog .muted.small,.profile-facts small,.profile-facts dt{font-size:13px;line-height:1.55}.intro p{color:var(--muted)}
@media(max-width:650px){.settings-grid{grid-template-columns:minmax(0,1fr)}#adminView .panel{padding:18px}#adminView h2{overflow-wrap:anywhere}#adminView .button,.profile-actions .button{white-space:normal;min-height:40px}#adminView .dropdown-trigger{white-space:normal}#adminView .table-wrap{width:100%}.profile-top>div{min-width:0}.profile-top h2{overflow-wrap:anywhere}.dialog input,.dialog select,.dialog textarea{min-width:0;max-width:100%}.profile-action-group{padding:12px}.intro-family-actions{margin:12px 0 16px}}

/* Country stays on its own row and is captured in every SVG-based output. */
.node-country{font:10px sans-serif;fill:#4c6253;unicode-bidi:plaintext}.orchard-fruit .node-country{font-size:10px;fill:#4c6253}

/* Public help uses the same colors as cards and remains readable on phones. */
.help-entry{border:0;background:transparent;color:var(--green);padding:8px;font-weight:600}.help-entry:hover{text-decoration:underline}.help-search{display:flex;align-items:end;gap:12px;margin-block:24px 8px}.help-search label{flex:1;display:grid;gap:8px;max-width:720px;font-size:14px}.help-search input{width:100%;min-width:0}.help-layout{display:grid;grid-template-columns:minmax(220px,300px) minmax(0,1fr);gap:24px;align-items:start;margin-bottom:36px}.help-layout nav{display:grid;gap:8px}.help-topic{display:grid;gap:8px;width:100%;text-align:start;padding:15px;border:1px solid var(--line);border-radius:10px;background:var(--white);color:var(--ink);line-height:1.5}.help-topic span{font-size:13px;color:var(--muted)}.help-topic[aria-current=true]{border-color:var(--green);background:#eaf0e5;box-shadow:inset 3px 0 var(--green)}#helpArticle{margin:0;line-height:1.75;overflow-wrap:anywhere}#helpArticle>h3:first-child{font-family:Georgia,serif;font-size:27px;font-weight:400;margin-top:0}#helpArticle h3:not(:first-child){margin-top:28px;font-size:18px}#helpArticle li{padding-inline-start:4px;margin-block:10px}#helpArticle a{color:#2d624d;text-decoration:underline;text-underline-offset:3px}.help-links{padding-inline-start:22px}.phone-fields{display:grid;grid-template-columns:minmax(100px,140px) minmax(0,1fr);gap:14px}.phone-fields input{min-width:0;width:100%}
@media(max-width:700px){.help-layout{grid-template-columns:minmax(0,1fr);gap:16px}.help-search{flex-wrap:wrap}.help-search label{flex-basis:100%}#helpArticle{padding:20px}#helpArticle>h3:first-child{font-size:24px}.topbar .account{gap:6px}.help-entry{padding:6px;font-size:12px}.phone-fields{grid-template-columns:100px minmax(0,1fr);gap:10px}}

/* Audit 0.1.70: compact header, deliberate tree gestures and photo galleries. */
.header-badges{display:flex;align-items:center;gap:8px;margin-inline-start:auto;color:#f4eddf;direction:inherit}.family-count-badge,.visit-badge{border:1px solid #cbb68b40;border-radius:8px;padding:7px 11px;background:#ffffff05;display:flex;align-items:center;gap:14px}.family-count-badge .stat{display:flex;align-items:center;gap:6px}.family-count-badge .stat strong{font:600 15px/1.3 system-ui,sans-serif}.family-count-badge .stat span{font-size:10px;color:#d1cab9;max-width:95px;line-height:1.35}.visit-badge{display:grid;gap:3px;font-size:11px;white-space:nowrap}.visit-badge[hidden]{display:none}.badge-label{font-size:10px;color:#d1cab9}.topbar .help-entry{color:#f4eddf}.intro-overview.cloud-flow{grid-template-areas:"copy names";grid-template-columns:1fr 2fr}
.filter-group,.tree-share-group{border:1px solid #cbd7c4;border-radius:10px;background:#f5f7ef;padding:10px 14px;min-width:0}.filter-group summary,.tree-share-group summary{cursor:pointer;min-height:24px;color:#365c48;font-size:14px;font-weight:600}.filter-group-content{display:flex;flex-wrap:wrap;gap:14px;padding-top:12px}.filter-group-content>label{flex:1 1 160px;min-width:0}.tree-filters{display:flex;flex-wrap:wrap;align-items:end}.tree-filters>.focus-picker{flex:1 1 400px;min-width:0}.tree-filters>.filter-group{flex:0 1 420px}.people-filters{display:flex;flex-wrap:wrap;align-items:end}.people-filters>.search{flex:1 1 360px;min-width:0}.people-filters>.filter-group{flex:0 1 420px}.tree-share-group{margin-block:16px}.tree-share-group .tree-output{margin-bottom:0}.view{scroll-margin-top:70px}
.tree-stage,.tree-stage[data-tree-style=orchard]{height:clamp(340px,68dvh,740px);touch-action:pan-y;cursor:default}.tree-stage svg{touch-action:pan-y}.tree-stage.tree-interactive,.tree-stage.tree-interactive svg{cursor:grab}#treeView:fullscreen .tree-stage,#treeView:fullscreen .tree-stage svg,#treeView.tree-full .tree-stage,#treeView.tree-full .tree-stage svg{touch-action:none}.stage-toolbar{position:absolute;top:12px;inset-inline-end:12px;display:flex;flex-wrap:wrap;gap:6px;z-index:3;max-width:calc(100% - 24px);background:#fafbf5e8;border-radius:12px;padding:4px}.stage-toolbar .button{min-height:44px;padding:8px 12px;font-size:13px}.tree-hint{top:76px;max-width:calc(100% - 32px);font-size:12px;pointer-events:none}.zoom-controls button{min-width:44px;min-height:44px}.node-menu rect,.node-expand rect{fill:#f6f9ef;stroke:#758b6b;stroke-width:1}.node-menu text,.node-expand text{fill:#365c48;font:600 22px system-ui,sans-serif}.node-menu,.node-expand{cursor:pointer}.node-menu:focus-visible rect,.node-expand:focus-visible rect{stroke:#b68430;stroke-width:3}#treeView:fullscreen .tree-stage{height:calc(100dvh - 170px)}#treeView:fullscreen .stage-toolbar{position:sticky;top:8px;justify-content:end}#treeView:fullscreen .tree-hint{top:76px}
.photo-frame{max-height:calc(100dvh - 24px);overflow:auto}.photo-large{max-height:calc(100dvh - 290px);margin:auto;max-width:min(680px,calc(100vw - 58px))}.photo-caption{font-size:19px}.photo-place{font:14px/1.5 system-ui,sans-serif;color:#53674e;margin-block:4px}.photo-detail-caption{font:14px/1.5 system-ui,sans-serif}.photo-actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;align-items:center;margin-top:12px;font:14px/1.4 system-ui,sans-serif}.photo-actions button{min-width:44px;min-height:44px;border:1px solid #cad5c0;border-radius:9px;background:#edf3e7;color:#294639;padding:8px 10px;display:flex;align-items:center;gap:6px}.photo-actions button:disabled{opacity:.45;cursor:default}.photo-actions svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7}.photo-thumbnails{display:flex;gap:8px;overflow-x:auto;padding:10px 2px}.photo-thumbnails[hidden]{display:none}.photo-thumbnails button{padding:2px;border:2px solid transparent;background:transparent;border-radius:6px}.photo-thumbnails button[aria-current=true]{border-color:#365c48}.photo-thumbnails img{width:60px;height:60px;object-fit:cover}.photo-gallery-status{font:12px/1.5 system-ui,sans-serif;margin:6px 0 0;color:#596657}.photo-hover-preview{position:fixed;z-index:1000;pointer-events:none;width:200px;padding:8px;background:#fffdf7;border:1px solid #cad5c0;border-radius:12px;box-shadow:0 10px 30px #20302035;display:grid;gap:4px;font-size:12px}.photo-hover-preview[hidden]{display:none}.photo-hover-preview img{width:182px;height:182px;object-fit:cover;border-radius:8px}.photo-print-preview figure{margin:0}.photo-print-preview img{display:block;max-width:100%;max-height:60dvh;margin:auto;object-fit:contain}.photo-print-preview figcaption{font-size:14px;margin:10px 0}.profile-extra{padding:12px 0;border-block:1px solid #d7dfcf;margin-block:12px}.profile-extra summary,.distant-relatives summary{cursor:pointer;font-weight:600;line-height:1.6}.profile-extra .profile-facts{margin-top:14px}.kin-path{font-size:14px;overflow-wrap:anywhere}.relative-row[hidden]{display:none}.calendar-upcoming{margin-block:24px;border:1px solid #d3ddc8;border-radius:12px;padding:18px;background:#fffefa}.calendar-upcoming>div{display:grid;gap:3px;padding-block:9px;border-top:1px solid #e0e4da}.calendar-upcoming span{font-size:14px}.calendar-export-choice{margin-block:12px}.calendar-export{flex-wrap:wrap}.dialog-close,.photo-close{width:44px;height:44px;min-width:44px}.calendar-day.has-birthday{min-height:44px}
@media(max-width:1180px){.header-badges{order:3;flex-basis:100%;justify-content:center}.topbar{flex-wrap:wrap}.calendar-months{grid-template-columns:minmax(0,1fr)}.calendar-month:not(.mobile-selected){display:none}.mobile-month-picker{display:block}.calendar-month{max-width:600px;width:100%;margin-inline:auto}.calendar-day{min-height:48px;font-size:16px}.calendar-day.has-birthday{min-height:48px}.calendar-weekdays{font-size:14px}.calendar-settings{flex-wrap:wrap}}
@media(max-width:700px){.topbar{grid-template-columns:minmax(0,1fr) auto}.header-badges{grid-column:1/-1;grid-row:3;flex-basis:auto;margin:0;justify-content:center}.family-count-badge{padding:6px 9px;gap:12px}.family-count-badge .stat span{font-size:10px;max-width:90px}.visit-badge{font-size:10px;padding:6px 8px}.tabs{position:sticky;top:0;background:var(--paper);z-index:8;gap:16px}.tabs button{min-height:44px;font-size:14px}.tabs button[data-view=tree]{font-size:0}.tabs button[data-view=tree]::before{content:"Древо";font-size:14px}.tabs button[data-view=people]{font-size:0}.tabs button[data-view=people]::before{content:"Люди";font-size:14px}.tabs button[data-view=birthdays]{font-size:0}.tabs button[data-view=birthdays]::before{content:"Даты";font-size:14px}html[lang=en] .tabs button[data-view=tree]::before{content:"Tree"}html[lang=en] .tabs button[data-view=people]::before{content:"People"}html[lang=en] .tabs button[data-view=birthdays]::before{content:"Dates"}html[lang=he] .tabs button[data-view=tree]::before{content:"עץ"}html[lang=he] .tabs button[data-view=people]::before{content:"אנשים"}html[lang=he] .tabs button[data-view=birthdays]::before{content:"תאריכים"}.filter-group,.tree-filters>.filter-group,.people-filters>.filter-group{flex-basis:100%;width:100%}.tree-filters>.focus-picker,.people-filters>.search{flex-basis:100%}.filter-group summary,.tree-share-group summary{min-height:30px}.button,.dialog button,.dropdown-trigger{min-height:44px}.dialog input,.dialog select,.dialog textarea,main input{font-size:16px}.muted.small,.photo-help,.dialog label,#adminView label,.profile-facts small{font-size:14px}.tree-stage,.tree-stage[data-tree-style=orchard]{height:clamp(340px,65dvh,620px)}.stage-toolbar .button{font-size:12px;padding:7px 9px}.tree-quick-actions{gap:8px}.tree-quick-actions .button{padding:8px 10px;font-size:14px}.tree-hint{font-size:11px}.photo-large{max-height:calc(100dvh - 315px)}.photo-caption{font-size:18px}.photo-actions{font-size:13px}.photo-actions button{padding:7px 9px}.calendar-export>label,.calendar-export>button{width:100%;max-width:100%}.calendar-toolbar{flex-wrap:wrap}.calendar-toolbar>span{flex-basis:100%;order:-1}.calendar-settings>label{flex:1 1 150px}.calendar-event-detail{font-size:14px}.calendar-list-add .button{min-height:44px}.calendar-day{min-height:44px}.calendar-day.has-birthday{min-height:44px}#profileRelativesSearch{width:100%}}
@media print{body:has(#photoPrintDialog[open])> *{display:none!important}body:has(#photoPrintDialog[open])>#photoPrintDialog{display:block!important;position:static;width:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;box-shadow:none}#photoPrintDialog[open] .dialog-close-bar,#photoPrintDialog[open]>h2,#photoPrintConfirm{display:none!important}#photoPrintDialog[open] img{max-height:90vh;max-width:100%}.photo-print-preview::backdrop{background:none}}

@media(max-width:700px){#peopleSearch,#focusSearch,.dialog input,.dialog textarea,#helpSearch{font-size:16px!important}.topbar .account #identity,.topbar .language-dropdown .dropdown-trigger{min-height:44px}.photo-large[hidden]{display:none}}

.photo-large[hidden]{display:none}.relative-group .relative-row{min-height:44px}

/* Keep the gallery geometry independent of each photograph's intrinsic size. */
/* All photos of a person (0.1.160, Н8): the name and × on top, the grid below; a photo opens large over it. */
#photoDialog{width:min(1100px,calc(100vw - 36px));height:min(920px,calc(100dvh - 36px));box-sizing:border-box;overflow:hidden}
#photoDialog .photo-frame{height:100%;max-height:none;min-width:0;box-sizing:border-box;display:flex;flex-direction:column;padding:0;overflow:hidden}
#photoDialog .photo-album-head{display:flex;align-items:flex-start;gap:12px;padding:14px 16px 10px;border-bottom:1px solid #d9d2bd}
#photoDialog .photo-album-head .photo-caption{flex:1;min-width:0;padding:0;text-align:start}
#photoDialog .photo-memorial{position:static;flex:none}
#photoDialog .photo-close{position:relative;inset:auto;flex:none}
#photoDialog .photo-close{width:44px;height:44px}
#photoDialog .photo-count{font:14px/1.5 system-ui,sans-serif;color:#53674e;margin-top:2px}
#photoDialog .photo-count:empty{display:none}
#photoDialog .photo-album-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:12px 16px 16px}
#photoDialog .photo-gallery-status{font-size:14px;min-height:0}
#photoDialog .photo-gallery-status:empty{display:none}
#photoDialog #photoSignIn{display:block;margin:14px auto 0}
@media(max-width:700px){#photoDialog{position:fixed;inset:0;margin:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;animation:none}#photoDialog .photo-frame{border:0;border-radius:0}#photoDialog .photo-album-head{padding:max(10px,env(safe-area-inset-top)) 12px 8px}#photoDialog .photo-album-body{padding:8px 8px 16px}#photoDialog .photo-gallery-status,#photoDialog .photo-grid-more,#photoDialog #photoSources{margin-inline:4px}}


/* Filter panels expand below a fixed-height trigger without moving the row. */
.tree-filters>.filter-group,.people-filters>.filter-group{position:relative;height:44px;padding:0;z-index:12}
.tree-filters>.filter-group>summary,.people-filters>.filter-group>summary{display:flex;align-items:center;gap:8px;height:42px;min-height:42px;padding:0 12px;list-style:none}
.filter-group>summary::-webkit-details-marker{display:none}
.filter-group>summary::before{content:'▸';flex:none}.filter-group[open]>summary::before{content:'▾'}
.tree-filters>.filter-group>.filter-group-content,.people-filters>.filter-group>.filter-group-content{position:absolute;inset-inline:0;top:calc(100% + 6px);padding:12px;gap:10px;background:#f5f7ef;border:1px solid #cbd7c4;border-radius:10px;box-shadow:0 10px 28px #263b3020;align-items:end}
.filter-group-content>label{margin:0}.filter-group-content>.button{flex:1 1 160px;min-height:44px;margin:0}
.tree-filters .focus-input{height:44px}.tree-filters .focus-input input,.tree-filters .focus-input button{height:42px}.tree-filters .focus-input button{width:44px;min-height:42px}
.people-filters>#peopleSearch{height:44px;min-height:44px}

#profileGallery:disabled{background:#ebede8;color:#858b80;border-color:#d8dcd4;opacity:1;cursor:default;filter:none}

.person-message-dialog{width:min(580px,calc(100vw - 32px));box-sizing:border-box;max-height:calc(100dvh - 32px);overflow:auto;padding:28px}.person-message-dialog h2{padding-inline-end:32px}.person-message-dialog fieldset{border:0;padding:0;margin:0;min-width:0}.person-message-dialog input,.person-message-dialog textarea{box-sizing:border-box;width:100%;font-size:16px}.message-actions{display:flex;flex-wrap:wrap;gap:12px}.person-message-dialog [role=status]{overflow-wrap:anywhere}

/* Visible sign-out beside the account name; one complete account row on phones. */
.topbar .header-logout{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:7px 10px;border:1px solid #cbb68b55;border-radius:9px;background:transparent;color:#e4d3ae;font-size:13px;white-space:nowrap;cursor:pointer}.topbar .header-logout svg{width:18px;height:18px;flex:none}.topbar .header-logout:hover{background:#ffffff14;border-color:#cbb68b99}.topbar .header-logout:focus-visible{outline:2px solid #cbb68b;outline-offset:3px}.topbar .header-logout[hidden]{display:none!important}.topbar .header-logout:disabled{opacity:.6;cursor:wait}
@media(max-width:700px){.topbar{display:grid;grid-template-columns:minmax(0,1fr)}.topbar .header-identity{display:contents}.topbar .brand{grid-row:1;grid-column:1/-1}.topbar .account{display:grid;grid-template-columns:auto minmax(0,1fr) auto 40px;grid-row:2;grid-column:1/-1;gap:6px;width:100%;max-width:none;margin:0;align-items:center}.topbar .account #identity{min-width:0;max-width:none;width:100%;min-height:44px;margin:0;padding:7px 8px;font-size:12px;overflow-wrap:anywhere}.topbar .account .help-entry{min-height:44px;padding:6px;font-size:12px}.topbar .header-logout{min-height:44px;padding:7px 8px;font-size:12px;gap:5px}.topbar .language-dropdown,.topbar .language-dropdown .dropdown-trigger{width:40px;min-width:40px;height:44px}.topbar .site-links{grid-row:3;grid-column:1/-1;padding:0;border:0;align-items:center}.topbar .header-badges{grid-row:4;grid-column:1/-1}.topbar .account:has(.header-logout[hidden]){grid-template-columns:auto minmax(0,1fr) 40px}}

/* Guest hint remains usable when the gallery button is disabled. */
.gallery-login-link{margin-inline-start:8px;font-size:13px;font-weight:600;text-decoration:underline;text-underline-offset:3px;vertical-align:middle}
.gallery-login-hint{display:inline-flex;position:relative;vertical-align:middle;max-width:100%}
.gallery-login-hint>button:disabled{pointer-events:none}
.gallery-login-tooltip{position:absolute;z-index:20;inset-inline-start:0;bottom:calc(100% + 8px);width:max-content;max-width:min(260px,80vw);padding:10px 12px;border-radius:8px;background:#243b31;color:#fff;font-size:14px;line-height:1.4;box-shadow:0 3px 12px #0003;visibility:hidden;opacity:0;pointer-events:none}
.gallery-login-hint:hover .gallery-login-tooltip,.gallery-login-hint:focus .gallery-login-tooltip{visibility:visible;opacity:1}
.gallery-login-hint:focus-visible{outline:2px solid #a67d35;outline-offset:3px;border-radius:8px}

/* Desktop hover changes only presentation; layout coordinates and hit controls stay stable. */
@media(min-width:900px) and (hover:hover) and (pointer:fine){
 .node-hover-surface{transform-box:fill-box;transform-origin:center;transition:transform 160ms ease,filter 160ms ease}
 .family-hover-person>.node-hover-surface{transform:translateY(-3px) scale(1.045);filter:drop-shadow(0 7px 6px #263e3338)}
 .family-hover-relative>.node-hover-surface{filter:drop-shadow(0 3px 4px #365c4828)}
 .family-hover-person .node-profile-button>rect:not(.orchard-hitbox){stroke:#a47731!important;stroke-width:3.2!important}
 .family-hover-relative .node-profile-button>rect:not(.orchard-hitbox){stroke:#4a7a61!important;stroke-width:2.8!important}
 .family-hover-relative:not(.anchor) .node-profile-button>rect:not(.orchard-hitbox){fill:#f1f7ee}
 #familySvg .family-hover-edge{stroke:#477a61;stroke-width:3.8;stroke-opacity:1}
 #familySvg .edge-partner.family-hover-edge{stroke:#ad7a2f;stroke-width:3.8}
 .orchard-connections-hidden .family-hover-active .orchard-connections{display:block}
 .orchard-connections-hidden .family-hover-active .orchard-connections>path{visibility:hidden}
 .orchard-connections-hidden .family-hover-active .orchard-connections>.family-hover-edge{visibility:visible}
}
.family-hover-suspended .node-hover-surface{transition:none!important;transform:none!important;filter:none!important}
@media(prefers-reduced-motion:reduce){.node-hover-surface{transition:none!important}.family-hover-person>.node-hover-surface{transform:none!important}}

/* Touch and compact screens: bounded photo, fixed close control, scrolling details. */
@media(max-width:1100px){
}
.admin-directory-search{max-width:560px}.admin-directory td{vertical-align:top}.admin-directory td small{display:block;margin-top:5px;color:var(--muted,#657467);font-size:12px}.admin-directory td:first-child{min-width:220px}.admin-directory .directory-actions{min-width:260px}.directory-actions .button{margin:0 5px 6px 0;padding:8px 11px;min-height:40px;white-space:nowrap}.person-editor-extras{margin-top:24px;border-top:1px solid #d6ded0;padding-top:20px}.editor-photo{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:16px}.editor-photo .avatar{width:72px;height:72px;object-fit:cover}.person-editor-extras details{margin:20px 0}.admin-role-badge{display:inline-block;padding:7px 13px;border:1px solid #bccdb8;border-radius:7px;background:#edf3e9;color:#365c48}.accessDeliveryDraft textarea,#accessDraftText{max-width:100%;box-sizing:border-box}#accessDeliveryDialog{max-width:680px}#accessDeliveryDialog .profile-actions a{word-break:normal}
@media(max-width:850px){.admin-directory,.admin-directory tbody,.admin-directory tr,.admin-directory td{display:block;width:auto}.admin-directory thead{display:none}.admin-directory tr{border:1px solid #d6ded0;border-radius:10px;margin:12px 0;padding:12px;background:#fff}.admin-directory tr[hidden]{display:none}.admin-directory td{padding:6px 0;border:0;overflow-wrap:anywhere}.admin-directory td:not(:first-child)::before{content:attr(data-label);display:block;font-size:12px;color:#657467;margin-bottom:4px}.admin-directory td:first-child,.admin-directory .directory-actions{min-width:0}.directory-actions .button{min-height:44px}.admin-directory-search input{font-size:16px}}
#adminView .admin-directory-wrap{max-width:1180px}.admin-directory{table-layout:fixed;width:100%}.admin-directory td,.admin-directory th{white-space:normal;overflow-wrap:anywhere}.admin-directory td:first-child,.admin-directory .directory-actions{min-width:0}.admin-directory .directory-person{width:28%}.admin-directory .directory-email{width:22%}.admin-directory .directory-phone{width:14%}.admin-directory .directory-access,.admin-directory .directory-controls{width:18%}
@media(max-width:850px){.admin-directory td:first-child,.admin-directory td:nth-child(2),.admin-directory td:nth-child(3),.admin-directory td:nth-child(4),.admin-directory .directory-actions{width:auto}}
@media(max-width:850px){.admin-directory .directory-actions .button{min-height:44px!important}}

/* Separate independent actions on every wrapped row, including cabinet photo actions. */
.my-photo-actions,.action-row{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.my-photo-actions .photo-help{flex-basis:100%;margin:0}
.profile-actions,.calendar-event-actions,.tree-output-buttons,.tree-quick-actions,.calendar-controls,.calendar-toolbar,.calendar-settings,.archive-filters,.stage-toolbar,.photo-actions{gap:12px}
.directory-actions .button{margin-block-end:10px;margin-inline-end:10px}
.editor-notifications{margin-block:20px;padding-block:16px;border-block:1px solid var(--line)}
.editor-notifications h3{margin-top:0}.editor-notifications p{margin-bottom:0}
#personEditorExtras form,#editorPasswordForm{display:grid;gap:12px}
#personEditorExtras form>label,#personEditorExtras form>p{margin-block:0}
#personEditorExtras form>.button{justify-self:start}
.action-row+.action-row,form+.action-row{margin-block-start:12px}
.tree-filters>.filter-group>.filter-group-content{padding:8px;gap:8px}
.topbar .account{gap:10px}
.intro-family-actions{align-items:center;min-height:44px}
.intro-scroll-arrow,.tabs .intro-scroll-arrow{display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;padding:8px;border:1px solid transparent;border-radius:12px;background:transparent;color:var(--green);cursor:pointer}
.intro-scroll-arrow svg{width:28px;height:28px;pointer-events:none}
.intro-scroll-down{position:absolute;left:50%;transform:translateX(-50%)}
.tabs .intro-scroll-up{margin-inline-start:auto;align-self:center}
.intro-scroll-up svg{transform:rotate(180deg)}
.intro-scroll-arrow:hover,.tabs .intro-scroll-arrow:hover{background:#365c480a;border-color:#365c4833;color:var(--green)}
.intro-scroll-arrow:focus-visible{outline:2px solid var(--green);outline-offset:2px}

#expandFamily:disabled,#shrinkFamily:disabled,#resetFamily:disabled{cursor:default;filter:none}

/* Compact actions in the relatives access directory. */
.admin-directory .directory-action-group{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.admin-directory .directory-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:36px;height:36px;min-height:36px;padding:7px;margin:0;line-height:1}
.directory-icon svg{width:20px;height:20px;pointer-events:none}
.admin-directory .directory-icon-telegram{color:#247eaa}.admin-directory .directory-icon-whatsapp{color:#1e7f45}
.admin-directory .directory-icon:focus-visible{outline:2px solid var(--green);outline-offset:2px}
@media(max-width:850px){.admin-directory .directory-icon{width:44px;height:44px;padding:11px}}
@media(max-width:850px){.admin-directory colgroup{display:none}}

#adminView .admin-directory-wrap{border:1px solid var(--line);border-radius:10px;background:#fffefa}
.admin-directory th{background:#edf3e9;color:var(--green);font-weight:600}
.admin-directory td{vertical-align:middle;padding-block:12px}
.admin-directory tbody tr:nth-child(even){background:#f8f9f4}
.admin-directory tbody tr:hover{background:#edf3e980}
.admin-directory .directory-icon{border-radius:8px;background:#fffefa}
.admin-directory .directory-icon:hover{background:#e8f0e2;border-color:#91aa85}

/* Calendar commands share one aligned row; retain export hooks for compact UI. */
#birthdaysView .calendar-main-toolbar{justify-content:flex-start;flex-wrap:wrap;gap:12px 20px;margin-bottom:14px}
#birthdaysView .calendar-main-toolbar h2{flex:0 0 auto;margin:0;margin-inline-end:auto}
.calendar-main-toolbar .calendar-export{align-items:center;flex-wrap:wrap;gap:8px 12px;margin:0;min-width:0;max-width:100%}
.calendar-main-toolbar .calendar-export>label{display:block;min-width:160px;width:160px}
.calendar-main-toolbar .calendar-export .custom-dropdown{margin:0}
.calendar-main-toolbar .calendar-controls{flex-wrap:nowrap;gap:8px;margin:0}
.calendar-main-toolbar .button,.calendar-main-toolbar .dropdown-trigger{min-height:40px;white-space:nowrap}
.calendar-main-toolbar .calendar-memorial-toggle{gap:8px;margin:0;font-size:12px;white-space:nowrap}
@media(max-width:1180px){#birthdaysView .calendar-main-toolbar h2{flex-basis:100%}.calendar-main-toolbar .calendar-export{flex-wrap:wrap}}

/* Desktop intro: paired animation controls and a quiet web behind the ovals. */
.surname-controls:empty{display:none}
.node-expand.node-expand-inset rect{stroke:#a7b89c!important;stroke-width:1;fill:#f2f6ec!important}.node-expand.node-expand-inset text{font:500 17px system-ui,sans-serif;fill:#48634b}.node-expand.node-expand-inset:hover rect{fill:#e1ebd8!important;stroke:#56744e!important}.node-expand.node-expand-inset:focus-visible rect{stroke:#a76a22!important;stroke-width:2}
.surname-threads{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.surname-threads line{stroke:#8d9d86;stroke-opacity:.36;stroke-width:1;vector-effect:non-scaling-stroke}
@media(min-width:901px){
 .intro-overview:not(.cloud-flow) .intro-copy{top:20px;width:min(350px,34%)}
 .surname-controls{position:absolute;inset-block-start:6px;inset-inline-end:0;z-index:6;display:flex;align-items:center;gap:8px}
 .surname-controls .surname-display-dropdown{width:170px;min-width:0;margin:0}
 .surname-controls .dropdown-trigger{height:30px;min-height:30px;font-size:11px;border-radius:16px}
 .surname-controls .surname-motion{position:static;min-height:30px;white-space:nowrap}
 .surname-controls .dropdown-menu{inset-inline-start:auto;inset-inline-end:0}
 .surname-backdrop.is-arranged .surname-button{z-index:1}
 .intro-family-actions{margin:8px 0 12px}
}

/* Narrow full version: wrap the existing panels without moving their DOM. */
@media(max-width:900px){
 .surname-controls{grid-area:controls;display:flex;justify-content:flex-end;align-items:center;gap:8px;position:static;min-width:0}
 .surname-controls .surname-display-dropdown{width:170px;min-width:0;margin:0}
 .surname-controls .surname-motion{position:static;white-space:nowrap}
 .intro-overview.cloud-flow,.intro-overview.intro-compact{display:grid;grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"controls" "copy" "stats" "names"!important;gap:18px;height:auto!important;min-height:0!important}
 .intro-overview .intro-copy{position:static;grid-area:copy;width:auto;max-width:100%}
 .intro-overview .surname-explorer{grid-area:names;min-width:0}
 .intro-overview .surname-backdrop{position:static;display:flex;flex-wrap:wrap;justify-content:center;gap:12px;min-width:0;height:auto}
 .intro-overview .surname-button{position:static!important;transform:none!important;max-width:100%}
 .intro-overview .surname-button .surname-chip{max-width:100%}
 .tree-filters,.tree-quick-actions,.tree-output-buttons,.profile-actions{flex-wrap:wrap;min-width:0}
 .tree-filters>.focus-picker{min-width:0;flex:1 1 300px;max-width:100%}
 .filter-group-content{max-width:calc(100vw - 48px)}
 .tree-stage{display:flex;flex-direction:column}
 .tree-stage>svg{order:1;flex:1;min-height:0;height:0}
 .stage-toolbar,#treeView:fullscreen .stage-toolbar{position:static;order:0;flex-shrink:0;gap:6px;align-self:flex-end;margin:8px;max-width:calc(100% - 16px)}
 .stage-toolbar .button{white-space:normal;min-width:0}
 .tree-hint{display:none}
 .dialog{box-sizing:border-box;max-width:calc(100vw - 24px)}
 #personDetail,.profile-top>div{min-width:0;max-width:100%;overflow-wrap:anywhere}
 .profile-actions .button{white-space:normal}
}

/* All styles share one header geometry, including the explicitly hidden state. */
.surname-button .surname-chip{padding:7px 15px!important;border-width:1px}
.surname-button.surname-featured .surname-chip{padding:8px 17px!important;border-width:2px}
@media(max-width:600px){.surname-button .surname-chip{padding:6px 12px!important}.surname-button.surname-featured .surname-chip{padding:7px 13px!important}}

/* Shared profile permissions: the cabinet remains usable on narrow screens. */
.family-access-names{display:flex;flex-wrap:wrap;gap:.4rem 1rem;padding:.7rem 0}
.family-editing-panel details{margin:.8rem 0}
.family-edit-groups article{padding:.8rem 0;border-top:1px solid var(--line,#d4ddcd)}
.family-group-proposal{display:flex;align-items:end;gap:.7rem;flex-wrap:wrap;margin:1rem 0}
.family-group-members{max-height:40vh;overflow:auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:.4rem;padding:1rem;margin:1rem 0}

/* One stable profile shell, with contextual actions inside each section. */
#personDialog{width:min(1040px,calc(100vw - 32px));height:-webkit-fit-content;height:fit-content;max-height:calc(100dvh - 32px);padding:20px 24px;overflow:auto}
#personDialog .dialog-close-bar{padding-bottom:4px}
#personDialog[open]{display:flex;flex-direction:column;overflow:hidden}
/* A low window (a phone, an iPad with its bars): the whole card scrolls, the sections are not squeezed under a tall header (0.1.201). */
@media (max-height:760px),(max-width:700px){#personDialog[open]{display:block;overflow:auto}#personDialog #profileSections{overflow:visible;flex:none}}
body.profile-open{overflow:hidden}
#personDetail{display:flex;flex-direction:column;min-height:0;flex:1}
#personDetail .profile-header{flex-shrink:0}
#personDetail .profile-header{background:var(--white)}
#personDetail .profile-top{gap:18px;align-items:center;margin:0 0 10px}
#personDetail .profile-photo{width:88px;height:88px;min-width:88px;border-radius:16px}
#personDetail .profile-top h2{font-size:30px;line-height:1.2}
#personDetail .profile-top h2:focus{outline:none}
#personDetail .profile-main-actions{margin:0 0 20px;gap:8px}
#personDetail .profile-tabs{gap:4px;margin:0;border-bottom:1px solid var(--line);flex-wrap:nowrap}
#personDetail .profile-tabs button{flex:1 1 auto;padding:13px 8px;min-height:44px;white-space:normal;border-bottom:3px solid transparent}
#personDetail .profile-tabs button[aria-selected=true]{border-bottom-color:var(--green);background:#edf2e8;color:var(--green);font-weight:600;border-radius:7px 7px 0 0}
#profileSections{padding:20px 12px 4px 0;min-height:0;flex:1;overflow:auto;scrollbar-gutter:stable;outline:none}
html[dir=rtl] #profileSections{padding-inline:0 12px}
#profileSections .profile-section-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:0 0 16px}
#profileSections .profile-section-heading h3{margin:0}
#profileSections .profile-section-heading .profile-actions{margin:0;gap:8px}
#profileSections .section-toolbar{margin:20px 0 10px;gap:12px}
#profileSections .profile-extra{margin:0 0 20px;padding:12px 14px;background:#f6f7f1;border:1px solid var(--line);border-radius:8px}
#profileSections .profile-admin-section{margin:24px 0;padding-top:18px;border-top:1px solid var(--line)}
#profileSections .panel{padding:18px;margin-top:24px}
#profileSections .archive-filters{gap:8px}
#profileSections .empty-state{padding:24px 12px;margin:20px 0;background:#f6f7f1;border-radius:10px;border:1px dashed #d5ddcf;text-align:center;color:var(--muted)}
@media(max-width:700px){
 #personDialog{padding:16px;width:calc(100vw - 20px);height:calc(100dvh - 20px);max-height:calc(100dvh - 20px)}
 #personDetail .profile-photo{width:64px;height:64px;min-width:64px;border-radius:12px}
 #personDetail .profile-top{gap:12px;align-items:flex-start}
 #personDetail .profile-top h2{font-size:24px}
 #personDetail .profile-top .eyebrow{font-size:9px;letter-spacing:.1em}
 #personDetail .profile-main-actions .button{flex:1 1 calc(50% - 8px);padding:9px 10px}
 #personDetail .profile-tabs button{font-size:12px;padding:10px 5px}
 #profileSections .profile-section-heading{align-items:flex-start}
 #profileSections .profile-section-heading .profile-actions{width:100%}
 #profileSections .profile-section-heading .button{flex:1}
}
@media(max-height:540px){#personDialog[open]{display:block;overflow:auto}#personDetail{display:block}#profileSections{overflow:visible}}

.logout-all-devices{margin-inline-end:12px;margin-block:12px}
.admin-login-secret input{width:100%}
.face-portraits{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:12px;margin:10px 0}.face-portrait{margin:0;display:grid;gap:6px;align-content:start}.face-portrait img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px;background:#0000000d}.face-portrait.is-shown img{outline:3px solid var(--green);outline-offset:2px}.face-portrait .button{padding:6px 8px;font-size:13px}
.contact-approval{margin:-4px 0 10px}.contact-approval ul{margin:4px 0 0;padding-inline-start:18px}.contact-approval li{margin:2px 0}.warning{color:#8a3b12}
.photo-set-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:10px;margin-top:8px}.photo-set-item{margin:0;display:grid;gap:4px;padding:6px;border:1px solid #d9e0d2;border-radius:10px;background:#fbfcf9}.photo-set-item img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;display:block}.photo-set-item.inactive img{opacity:.45}.photo-set-item figcaption{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:12px}.photo-set-delete{margin-inline-start:auto;border:0;background:none;font-size:18px;line-height:1;cursor:pointer;color:#8b3a2e}.photo-set.busy{opacity:.6;pointer-events:none}.photos-hidden-note{margin:6px 0 0}
/* «Во весь экран» as an icon in the corner of the photo (0.1.157, Andrew 11.10), clear of the × above. */
/* 0.1.158 (Andrew 11.10): the menu by the name; «Мой кабинет» and «Управление древом» as pages with tabs; one edit screen. */
.topbar .account-entry{position:relative;display:inline-flex;min-width:0}
.topbar .account #identity[aria-haspopup]::after{content:"▾";margin-inline-start:8px;font-size:11px;opacity:.8}
.topbar .account #identity.has-pending::before{content:"";width:8px;height:8px;margin-inline-end:8px;border-radius:50%;background:#e0a84a;flex:none}
.account-menu{position:absolute;top:calc(100% + 6px);right:0;z-index:60;min-width:220px;padding:6px;border:1px solid var(--line);border-radius:10px;background:var(--white);box-shadow:0 12px 32px #1c2b2233;direction:inherit}
.account-menu[hidden]{display:none}
.account-menu button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:44px;padding:8px 12px;border:0;border-radius:7px;background:none;color:var(--ink);font:inherit;font-size:15px;text-align:start;cursor:pointer}
.account-menu button:hover{background:#edf2e8;outline:0}.account-menu button:focus-visible{background:#edf2e8;outline:2px solid #365c48;outline-offset:-2px}
.account-menu-line{height:1px;margin:6px 4px;background:var(--line)}
.account-menu-count{min-width:22px;padding:1px 7px;border-radius:11px;background:#e0a84a;color:#2b2b23;font-size:12px;font-weight:700;text-align:center}
.page-tabs{display:flex;flex-wrap:wrap;gap:4px;margin:12px 0 18px;border-bottom:1px solid var(--line)}
.page-tabs button{min-height:44px;padding:11px 14px;border:0;border-bottom:3px solid transparent;border-radius:7px 7px 0 0;background:none;color:var(--muted);font:inherit;font-size:15px;cursor:pointer}
.page-tabs button[aria-selected=true]{border-bottom-color:var(--green);background:#edf2e8;color:var(--green);font-weight:600}
.page-tabs button:focus-visible{outline:2px solid var(--green);outline-offset:-2px}
[data-page-panel][hidden]{display:none}
[data-page-panel]>.panel+.panel,[data-page-panel]>.panel+button,[data-page-panel]>section+section{margin-top:16px}
.person-editor-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:6px}
.person-editor-head h3{margin:0}
.person-editor #personForm{margin-top:16px}
.person-editor .page-tabs{margin-top:8px}
.admin-people-tools{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.admin-people-tools label{flex:1 1 280px;display:grid;gap:6px;max-width:520px}
.admin-people-list{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.admin-people-list .picker-person[aria-pressed=true]{border-color:var(--green);background:#edf2e8;font-weight:600}
.profile-edit-link{margin-inline-start:2px;font-size:14px}
@media(max-width:700px){.topbar .account{display:flex;align-items:center;gap:8px}.topbar .account>*{flex:none}.topbar .account .account-entry{flex:1 1 auto;min-width:0;width:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-tabs{flex-wrap:nowrap;overflow-x:auto}.page-tabs button{flex:none;font-size:14px;padding:10px 10px}}
/* Н5, Н6 (0.1.159, Andrew 11.10): «Мой кабинет» and «Управление древом» as pages of their own — the same header and
   footer; no intro, surnames or section tabs; large type, roomy cards, controls 44–48 px. The ordinary page is unchanged. */
html.account-page-open main>.intro,html.account-page-open main>nav.tabs,html.account-page-open main>.view:not(.account-page){display:none}
/* Until the session is loaded and the page is shown: a calm empty card, never the main page. */
html.account-page-open main:not(:has(>.account-page:not([hidden])))::before{content:"";display:block;max-width:1120px;height:60vh;margin:28px auto;border:1px solid var(--line);border-radius:14px;background:var(--white)}
.account-page{max-width:1120px;margin:0 auto;padding:28px 24px 56px;font-size:17px;line-height:1.55}
.account-page>h2{margin:8px 0 18px;font-size:30px;line-height:1.2}
.account-page h3{font-size:22px;line-height:1.3;margin:0 0 12px}
.account-page .page-back{display:inline-flex;align-items:center;gap:6px;min-height:44px;color:var(--green);font-weight:600;text-decoration:none}
.account-page .page-back::before{content:"←"}
[dir=rtl] .account-page .page-back::before{content:"→"}
.account-page .page-back:hover{text-decoration:underline}
.account-page .panel,.account-page .person-editor,.account-page .admin-people-tools{border:1px solid var(--line);border-radius:14px;background:var(--white);padding:22px 24px;box-shadow:none}
.account-page [data-page-panel]>*+*{margin-top:18px}
.account-page label{font-size:16px}
.account-page input:not([type=checkbox]):not([type=radio]),.account-page select,.account-page textarea{min-height:46px;font-size:17px;border-radius:10px}
.account-page .button,.account-page button.button{min-height:46px;padding:10px 20px;font-size:16px;border-radius:10px}
.account-page .page-tabs{gap:6px;padding:6px;border:1px solid var(--line);border-radius:14px;background:#eef1ea;border-bottom-width:1px}
.account-page .page-tabs button{min-height:48px;padding:10px 18px;font-size:17px;border:0;border-radius:10px}
.account-page .page-tabs button[aria-selected=true]{background:var(--white);border:0;box-shadow:0 1px 3px #1c2b2226;color:var(--green)}
.account-page .person-editor .page-tabs{background:#f3f5f0}
@media(max-width:700px){.account-page .page-tabs{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none}.account-page .page-tabs::-webkit-scrollbar{display:none}.account-page .page-tabs button{flex:none;white-space:nowrap;padding:10px 14px;font-size:16px}.account-page{padding:18px 14px 40px;font-size:16px}.account-page>h2{font-size:25px}.account-page .panel,.account-page .person-editor,.account-page .admin-people-tools{padding:16px}}
/* 0.1.159: У3 the tree hint readable; У4 field borders at least 3:1 and a visible focus; У5 errors in the form; У9 the
   search label; У11 touch targets of 44 px. */
#treeHint,.tree-display-options .muted{font-size:14px;color:var(--muted)}
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select,textarea{border-color:#8a9389}
:where(button,a,input,select,textarea,[tabindex]):focus-visible{outline:3px solid var(--green);outline-offset:2px}
.form-error{margin:10px 0;padding:10px 12px;border-radius:8px;background:#fbeae6;color:#8a3b2e;font-size:15px}
.form-error[hidden]{display:none}
.search-label{display:block;margin:0 0 6px;font-weight:600}
.dialog-close,.text-button,.profile-tabs button,.dropdown-trigger{min-height:44px}
.dialog-close{min-width:44px}
/* 0.1.180–0.1.181: the base page's fields, classes, relations and contacts (phones too: nothing wider than the dialog). */
.people-base-fields h3{margin-top:22px}.people-base-list{list-style:none;padding:0;margin:0 0 12px}.people-base-list li{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid var(--line)}.people-base-list li>span{min-width:0;overflow-wrap:anywhere}.people-base-inline{display:grid;gap:10px;margin:8px 0}.people-base-inline select,.people-base-inline input,.people-base-fields-form select{width:100%;max-width:100%;min-width:0}

/* «Управление → Функции» (0.1.191): one card per switch, the segment buttons wrap under the title on a phone. */
.switches-panel{display:grid;gap:12px}.switch-card{border:1px solid var(--line);border-radius:12px;padding:12px 14px;background:#fffdf7}.switch-card h4{margin:0;font-size:15px}.switch-card p{margin:6px 0 0}.switch-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px}.switch-seg{display:inline-flex;gap:3px;padding:3px;border:1px solid #ccd7c5;border-radius:12px;background:#e9efe3}.switch-seg button{border:0;border-radius:9px;min-height:36px;padding:6px 14px;background:transparent;color:#53684e;font:inherit;font-weight:600;font-size:13px;cursor:pointer}.switch-seg button[aria-pressed=true]{background:#365c48;color:#fff9ea}.switch-seg button:disabled{opacity:.45;cursor:not-allowed}.switch-seg button:focus-visible{outline:2px solid #b28b4f;outline-offset:2px}.switch-note{color:#8a5a1e;font-size:13px}.switch-warn{color:#a8732a}.switch-wait{color:#637055;font-size:13px}
/* The audit 18.10 (A мелкое 4, 6): «Полный экран» and «К выбранному человеку» live on the tree's own panel (they call these). */
#treeView #fullscreenTree,#treeView #focusTree{display:none}
.node-expand rect.node-expand-hit,.node-expand.node-expand-inset rect.node-expand-hit,.node-expand.node-expand-inset:hover rect.node-expand-hit,.node-expand.node-expand-inset:focus-visible rect.node-expand-hit{fill:transparent!important;stroke:none!important;pointer-events:all}
@media (hover:none){input[type=checkbox],input[type=radio]{width:22px;height:22px}label:has(>input[type=checkbox]),label:has(>input[type=radio]){min-height:44px;display:flex;align-items:center;gap:10px}}
/* «К древу ↓» only where the tree is far below: a low window (A мелкое 7). */
.intro-to-tree{display:none}
@media (max-height:760px) and (min-width:701px){.intro-to-tree{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin-top:10px;padding:0 16px;border:1px solid var(--line);border-radius:999px;background:var(--white);color:var(--green);font:inherit;font-weight:600;cursor:pointer}.intro-to-tree:hover{border-color:var(--green)}}
/* «Дни рождения родных» (the cabinet's own section): the circle as large radio rows, the own list scrolls inside. */
.birthday-circles{border:0;padding:0;margin:0 0 14px;display:grid;gap:8px}.birthday-circle{display:flex;align-items:flex-start;gap:10px;min-height:44px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;cursor:pointer}.birthday-circle input{margin-top:4px;flex:none}.birthday-circle span{display:grid;gap:2px}.birthday-circle small{font-size:13px;line-height:1.4}.birthday-circle:has(input:checked){border-color:var(--green);background:#edf2e8}.birthday-watch-list{max-height:320px;overflow:auto;display:grid;gap:2px;padding:6px;border:1px solid var(--line);border-radius:10px;margin-bottom:12px}
/* The cabinet's label and input rules never stretch the circle's radio. */
.account-page .birthday-circle{display:flex;grid-template-columns:none}.account-page .birthday-circle input[type=radio]{width:20px;height:20px;min-height:0;margin:3px 0 0;padding:0;flex:none}
/* The dry run for the main administrator (the review of 0.1.212, 6). */
.birthday-preview{margin-top:22px;padding-top:14px;border-top:1px solid var(--line)}.birthday-preview-day{border:1px solid var(--line);border-radius:10px;padding:8px 12px;margin-top:8px}.birthday-preview-day summary{cursor:pointer;line-height:1.5}.birthday-preview-day ul{margin:8px 0 2px;padding-inline-start:20px;display:grid;gap:4px}
/* «История»: the photo site's player over the whole screen (notes/2026-10-18-tree-stories-project.md). */
.story-dialog{position:fixed;inset:0;width:100vw;max-width:none;height:100vh;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:#000;overflow:hidden}.story-dialog::backdrop{background:#000}.story-dialog iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}.story-close{position:absolute;top:max(10px,env(safe-area-inset-top));inset-inline-end:max(10px,env(safe-area-inset-right));z-index:2;width:44px;height:44px;min-height:44px;padding:0;border:1px solid rgba(255,255,255,.35);border-radius:50%;background:rgba(0,0,0,.55);color:#fff;font-size:20px;line-height:1;cursor:pointer}.story-close:focus-visible{outline:3px solid #fff;outline-offset:2px}.story-close[hidden]{display:none}
.story-slot-row{margin:0 0 12px}.person-editor-head .story-button{margin-inline-start:0}
/* The card's small «back» arrow opposite ✕ (Andrew 18.10), only with a previous card. */
#personDialog .dialog-close-bar{display:flex;align-items:center}#personDialog .dialog-back{width:36px;height:36px;min-width:36px;min-height:36px;padding:0;margin:0;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--green);font-size:18px;line-height:1;cursor:pointer}#personDialog .dialog-back[hidden]{display:none}#personDialog .dialog-back:hover{background:#edf2e8}
/* «Дни рождения — поздравить» (Andrew 18.10). */
.admin-greet{border:1px solid var(--line);border-radius:12px;padding:14px 16px;margin:0 0 18px;background:#fbfaf4}.admin-greet h3{margin:0 0 4px}.greet-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 14px;padding:10px 0;border-top:1px solid var(--line)}.greet-row:first-of-type{border-top:0}.greet-who{display:grid;gap:4px;min-width:0}.greet-ps{display:flex;align-items:center;gap:6px;font-size:13px}.greet-acts{display:flex;flex-wrap:wrap;gap:8px}
/* The password rule under the field, the live note while typing (Andrew 19.10). */
.pw-rule{display:block;margin:-8px 0 14px;font-size:13px;line-height:1.45;color:var(--muted)}.pw-rule.pw-bad{color:#88594c;font-weight:600}

/* A person hidden from this viewer: a quiet placeholder card in the tree (public/family-placeholder.js). */
.node-ph rect{fill:#f0f0ea;stroke:#c9c9bf;stroke-width:1.3;stroke-dasharray:6 4}
.node-ph-avatar{fill:#dcdcd3}.node-ph-text{font-size:12.5px;fill:#6a6f66;font-style:italic}
.node-ph .node-ph-kin{fill:#4d5a50}

/* The card's header (Andrew 20.10): the film opposite the name, the facts open, a wider window on a big screen. */
#personDetail .profile-top{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center}
#personDetail .profile-photo{width:115px;height:115px;min-width:115px}
#personDetail .profile-main-actions{margin:10px 0 14px}
.profile-film-slot{align-self:start;justify-self:end}
.profile-film{display:flex;align-items:center;gap:14px;min-height:76px;padding:12px 22px 12px 14px;border:0;border-radius:18px;background:var(--green);color:#fff;font:inherit;cursor:pointer;box-shadow:0 8px 22px #365c4840;text-align:start}
.profile-film:hover{background:#2c4a3a}.profile-film:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
.profile-film .film-sign{width:52px;height:52px;flex:none}.profile-film .film-sign>rect{fill:#1f3329;stroke:#e9d6a8;stroke-width:2}
.profile-film .film-holes rect{fill:#e9d6a8}.profile-film .film-play{fill:#fff}
.profile-film .film-words{display:grid;line-height:1.15}.profile-film .film-words b{font-size:21px;font-weight:700}.profile-film .film-words small{font-size:12.5px;opacity:.85;margin-top:3px}
.profile-facts-open{margin:0 0 14px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:#f8f7f1}
@media(min-width:900px){.profile-facts-open .profile-facts{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){#personDetail .profile-top{grid-template-columns:auto minmax(0,1fr)}.profile-film-slot{grid-column:1/-1;justify-self:stretch}.profile-film{width:100%;justify-content:center}#personDetail .profile-photo{width:96px;height:96px}}
/* The close bar takes no row of its own (Andrew 22.10: fit a laptop without scrolling): it floats at the top and stays there
   while the card scrolls; the film sits under the close button. */
#personDialog .dialog-close-bar{position:sticky;top:0;height:0;padding:0;overflow:visible;z-index:3;justify-content:space-between;pointer-events:none}#personDialog .dialog-close-bar>*{pointer-events:auto}#personDialog .profile-film-slot{margin-top:52px}
/* Tighter on a laptop (1366x768): less air between the header, the tabs and the facts. */
#personDetail .profile-main-actions{margin:8px 0 10px}#personDetail .profile-top{margin-bottom:6px}#personDetail .profile-top p{margin:2px 0}#profileSections{padding-top:12px}#profileSections>p:first-child{margin-top:0}.profile-facts-open{padding:10px 14px;margin-bottom:10px}#profileSections .section-toolbar{margin:12px 0 6px}
/* Andrew 22.10: the eyebrow and the name over the photo; on the photo's right, as tall as it, «✎ Изменить» first and the rest;
   the film on the right of both rows. */
#personDetail .profile-top{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:'title title film' 'photo info film';column-gap:20px;row-gap:10px;align-items:start}
#personDetail .profile-title{grid-area:title;min-width:0}#personDetail .profile-title h2{margin:2px 0 0}#personDetail .profile-photo-col{grid-area:photo}
#personDetail .profile-info{grid-area:info;min-width:0;align-self:center;display:flex;flex-direction:column;align-items:flex-start;gap:3px}#personDetail .profile-info>*{margin:0}
#personDetail .profile-info .profile-edit-link{min-height:28px;padding:0}#personDetail .profile-photo{width:136px;height:136px;min-width:136px}
/* «Фильм» clear of the close button: lower and a little to the left (Andrew 22.10). */
#personDialog .profile-film-slot{grid-area:film;margin-top:66px;margin-inline-end:36px}
@media(max-width:700px){#personDetail .profile-top{grid-template-columns:auto minmax(0,1fr);grid-template-areas:'title title' 'photo info' 'film film'}#personDialog .profile-film-slot{margin-top:4px;margin-inline-end:0}#personDetail .profile-photo{width:104px;height:104px;min-width:104px}}
/* A laptop's height (Andrew 22.10): the card's tabs a little lower. */
#personDetail .profile-tabs{margin:6px 0 0}#personDetail .profile-tabs button{padding:9px 4px}
#personDialog{padding-top:14px;padding-bottom:14px}#personDetail .profile-main-actions{margin:8px 0 6px}#profileSections{padding-top:10px}
/* The zero-height close bar hangs its buttons down from the top, not across it. */
#personDialog .dialog-close-bar{align-items:flex-start}
/* The header in one row on an iPad lying down and a small laptop (Andrew 20.10): narrower counters, the sister sites smaller.
   The account plate shows only the first name. */
@media (min-width:1000px) and (max-width:1400px){.topbar{flex-wrap:nowrap;gap:12px;padding-inline:18px}.header-identity{gap:12px;min-width:max-content;flex:0 0 auto}.site-links-title{display:none}.site-links-row{gap:10px}.site-links-row a{font-size:14px}.header-badges{order:0;flex:0 1 auto;flex-basis:auto;min-width:0;gap:6px;margin-inline-start:auto;justify-content:flex-end}.family-count-badge,.visit-badge{padding:5px 8px;gap:8px}.family-count-badge .stat strong{font-size:14px}.family-count-badge .stat span{font-size:9.5px;max-width:64px;line-height:1.2}.visit-badge{font-size:10px}.topbar .account{flex:none}#identity{max-width:10em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
/* The narrowest of them (an iPad mini lying down, 1024): no tagline under the name, smaller sister-site signs. */
@media (min-width:1000px) and (max-width:1120px){.topbar{gap:8px;padding-inline:12px}.topbar .brand small{display:none}.topbar .brand strong{font-size:19px}.site-links-row img{height:19px;width:auto}.site-links-row{gap:8px}.header-identity{gap:10px}.family-count-badge .stat span{max-width:46px;font-size:9px}.family-count-badge{gap:6px}}
/* «Управление → Посещения». */
.visits-tools{display:flex;flex-wrap:wrap;align-items:end;gap:12px 18px;margin:0 0 14px}.visits-tools>label:first-child{flex:1 1 280px}.visits-table{width:100%;font-size:13px}.visits-table td{vertical-align:top}.visits-table tr.visits-act td{background:#f6f7f1}.visits-table td:nth-child(3){white-space:nowrap;font-variant-numeric:tabular-nums}
.visits-pick{flex:1 1 100%;display:flex;flex-wrap:wrap;gap:8px}.visits-pick[hidden]{display:none}.visits-pick .picker-person{min-height:36px;font-size:13px}.visits-pick p{margin:0}
/* «Люди»: the groups of one search (По имени / По месту / Упоминается в тексте) and the words around a find. */
#peopleGrid.people-groups{display:block}.people-group{margin:18px 0 10px;font-size:15px;color:var(--green)}.people-group small{color:var(--muted);font-weight:400;margin-inline-start:6px}.search-snippet{display:block;margin-top:4px;color:#596657;font-size:12px;line-height:1.4}.search-snippet mark{background:#f5dda9;color:inherit;border-radius:3px;padding:0 2px}
/* «Показать связи» on the fruit tree: bolder lines in colours that stand out on the green crown (Andrew 22.10); /m/ the same. */
#familySvg .orchard-connections path{stroke-linecap:round;opacity:1}
#familySvg .orchard-connections .edge-parent{stroke:#5b4630;stroke-width:3}
#familySvg .orchard-connections .edge-parent.paternal-line{stroke:#1f5f8f}
#familySvg .orchard-connections .edge-parent.maternal-line{stroke:#a3472a}
#familySvg .orchard-connections .edge-partner{stroke:#c98a12;stroke-width:3.4}
/* 062: former spouses — the pair side by side, the line dashed (Andrew 25.10: «Подпись и пунктир»). */
#familySvg .edge-partner.edge-former{stroke-dasharray:7 6}
#relationshipForm:not(:has(select[name="kind"] option[value="partner"]:checked)) .rel-ended{display:none}
.relative-row button[data-ended-rel]{margin-inline-start:auto;white-space:nowrap;flex:0 0 auto;font-size:12px}
@media(max-width:650px){.relative-row:has([data-ended-rel]){flex-wrap:wrap}.relative-row:has([data-ended-rel])>button[data-person]{flex:1 1 0;min-width:0}.relative-row button[data-ended-rel]{flex:0 0 calc(100% - 85px);margin-inline-start:85px}}
#familySvg .orchard-connections .edge-other{stroke:#3f4a3f;stroke-width:2.2;stroke-dasharray:7 5}
/* The candle of those who passed away a size larger, in its place (Andrew 23.10). */
.candle-mark{font-size:1.6em;line-height:1;vertical-align:-.06em}
#familySvg .node-candle path{fill:#c4862a;stroke:none}#familySvg .node-candle rect{fill:#5b4a3a;stroke:none}
/* Generations as soft bands on the fruit tree (Andrew 23.10): a thin line between them, the name on the left. */
#familySvg .orchard-band{opacity:.8}
#familySvg .orchard-band-line{stroke:#a8936b;stroke-width:1.4;stroke-opacity:.55;stroke-dasharray:2 5;vector-effect:non-scaling-stroke}
#familySvg .orchard-band-label{font-size:15px;font-weight:700;letter-spacing:.01em;fill:#5b6655;paint-order:stroke;stroke:#fbf8ef;stroke-width:4.5px;stroke-linejoin:round;pointer-events:none;direction:ltr;unicode-bidi:plaintext}
#familySvg .orchard-band-label.older{fill:#7a5a26}
#familySvg .orchard-band-label.younger{fill:#3f6a33}
#familySvg .scheme-band{fill-opacity:.5}
#familySvg .orchard-band-bg{fill:#fbf8ef;fill-opacity:.9;stroke:#e4dccb;stroke-width:.6;vector-effect:non-scaling-stroke;pointer-events:none}
/* The stage's hint below, in the middle: the generation names own the left edge (right in Hebrew), the buttons the top (the audit 23.10). */
#treeStage .tree-hint{top:auto;bottom:14px;left:50%;right:auto;transform:translateX(-50%);max-width:max(240px,calc(100% - 700px));text-align:center;white-space:normal}
#familySvg .orchard-strip{stroke:none}
/* The card stands from the top (not centred), so a taller or shorter tab never moves its top and its tabs (Andrew 23.10). */
@media (min-width:701px){#personDialog[open]{margin-top:max(16px,3vh);margin-bottom:auto}}
/* «урожд. …» in the card's heading, small and grey after the name (Andrew 23.10), so the data block keeps its lines. */
#personDetail .profile-maiden{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:15px;font-weight:400;color:var(--muted);letter-spacing:0;white-space:nowrap}
/* Hovering a person (Andrew 23.10): their own lines bright red (a spouse's gold) over the rest, the rest faded; in the fruit tree
   also the fruits of the closest relatives outlined and the others faded. «Показать связи» in the chart too: hidden lines come back
   for the person under the pointer. */
#familySvg.family-hover-active [data-edge-kind]:not(.family-hover-edge){stroke-opacity:.18}
#familySvg .orchard-connections path.family-hover-edge,#familySvg path.family-hover-edge{stroke:#c0392b!important;stroke-width:5!important;stroke-opacity:1!important}
#familySvg .orchard-connections path.edge-partner.family-hover-edge,#familySvg path.edge-partner.family-hover-edge{stroke:#d48a0c!important}
#familySvg.family-hover-active .orchard-fruit:not(.family-hover-person):not(.family-hover-relative){opacity:.55}
#familySvg .orchard-fruit.family-hover-relative .orchard-fruit-body{stroke:#c0392b;stroke-width:4}
#familySvg .orchard-fruit.family-hover-person .orchard-fruit-body{stroke:#a47731;stroke-width:5}
#treeStage.diagram-connections-hidden #familySvg [data-edge-kind]{visibility:hidden}
#treeStage.diagram-connections-hidden #familySvg.family-hover-active .family-hover-edge{visibility:visible}
/* A finger (the audit 24.10, T10): the small round buttons and the map's zoom are at least 44px. */
@media (hover:none){.dialog-close{width:44px;height:44px;min-width:44px}.dialog-back{width:44px;height:44px;min-width:44px;min-height:44px}.tv-full-btn{width:44px;height:44px;line-height:44px}.fm-zoom button{width:44px;height:44px}.zoom-controls button{min-width:44px;min-height:44px}.guest-hint-resend{min-height:44px}}
/* Hebrew (the audit 24.10, T11): the message and the old photo view's ✕ and memorial mark mirror. */
html[dir=rtl] #toast{right:auto;left:24px}html[dir=rtl] .photo-close{right:auto;left:20px}html[dir=rtl] .photo-memorial{left:auto;right:20px}
/* «Во весь экран» where the browser has no full screen for a part of a page (iPhone Safari, 0.1.255): the tree covers the page. */
html.tree-full-open{overflow:hidden}
#treeView.tree-full{position:fixed;inset:0;z-index:1500;background:var(--paper);padding:calc(10px + env(safe-area-inset-top,0px)) max(12px,env(safe-area-inset-right,0px)) calc(10px + env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px));overflow:auto;display:flex;flex-direction:column;gap:5px}
#treeView.tree-full .section-toolbar,#treeView.tree-full .tree-filters,#treeView.tree-full .tree-quick-actions{margin:0 0 8px}
#treeView.tree-full .tree-stage{flex:1;min-height:300px;height:auto}
#treeView.tree-full .tree-display-options,#treeView.tree-full .legend,#treeView.tree-full .tree-output p,#treeView.tree-full .section-toolbar p{display:none}
/* On a touch screen the full-screen tree is the tree: the filters and the rows of buttons wait outside it (exit to change them). */
@media (hover:none){#treeView:fullscreen>.section-toolbar,#treeView.tree-full>.section-toolbar,#treeView:fullscreen>.tree-filters,#treeView.tree-full>.tree-filters,#treeView:fullscreen>.tree-quick-actions,#treeView.tree-full>.tree-quick-actions,#treeView:fullscreen>.tree-share-group,#treeView.tree-full>.tree-share-group,#treeView:fullscreen>#treeStatus,#treeView.tree-full>#treeStatus{display:none}}
#treeView.tree-full[hidden]{display:none}

/* Burial (059): the block of a deceased person's card and its own photo view — the full site and /m/. */
.grave-block{margin:18px 0 6px;padding:14px 16px;border:1px solid var(--line,#ddd);border-radius:12px}
.grave-block h3{margin:0 0 6px}.grave-block h4{margin:14px 0 4px}
.grave-place{margin:0;font-size:1.05em}
.grave-with{margin:6px 0 0;color:var(--muted,#666)}
.grave-way{white-space:pre-line}
.grave-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px;margin-top:12px}
.grave-photo{position:relative;display:block}
.grave-photo>button:first-child{display:block;width:100%;padding:0;border:0;background:none;cursor:zoom-in}
.grave-photo img{display:block;width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:8px}
.grave-photo-x{position:absolute;top:4px;inset-inline-end:4px;width:32px;height:32px;border-radius:50%;border:0;background:rgba(0,0,0,.6);color:#fff;cursor:pointer}
.grave-actions{margin-top:12px}
.grave-shares{margin-top:10px}.grave-shares ul{margin:6px 0 0;padding-inline-start:18px}
.grave-form{display:grid;gap:10px;margin-top:12px}.grave-form textarea{width:100%}
.grave-form fieldset{border:1px solid var(--line,#ddd);border-radius:8px}.grave-form .check{display:flex;gap:8px;align-items:center}
.grave-view{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.88);padding:16px}
dialog.grave-view{width:100%;height:100%;max-width:none;max-height:none;margin:0;border:0;box-sizing:border-box}dialog.grave-view:not([open]){display:none}dialog.grave-view::backdrop{background:transparent}html.grave-view-open,html.grave-view-open body{overflow:hidden;overscroll-behavior:none}
.grave-view img{max-width:100%;max-height:100%;object-fit:contain}
.grave-view-x{position:absolute;top:12px;inset-inline-end:12px;width:44px;height:44px;border-radius:50%;border:0;background:rgba(255,255,255,.18);color:#fff;font-size:20px;cursor:pointer}
/* The calendar: whose day it is, on hover over a marked day (Andrew 25.10); a tap opens the day as before. */
@media (hover:hover){.calendar-day[data-tip]{position:relative}
.calendar-day[data-tip]:hover::after,.calendar-day[data-tip]:focus-visible::after{content:attr(data-tip);position:absolute;z-index:20;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);width:max-content;max-width:260px;padding:7px 10px;border-radius:8px;background:#24342b;color:#fff;font-size:12px;font-weight:500;line-height:1.35;text-align:start;white-space:pre-line;box-shadow:0 6px 18px #24342b33;pointer-events:none}}
/* 0.1.264 (Andrew 25.10, iPad upright: «оставить logo сайта и убрать название… а также убрать ссылки на дополнительные сайты»):
   up to 1024 px the header is one row — the logo (the home link; its name kept for screen readers), «Сейчас на сайте», the map,
   the account and the language; no title, no «Ещё наши сайты», no family counts. Wider screens are as before.
   0.1.269 (Andrew 27.10: «название сайта можно туда вернуть… Проверим, чтобы она помещалась»): the title «Семейное древо» is back
   (no subtitle). family-ux.js measures the real row and steps down only as far as needed (data-fit): 0 the title and «Сейчас на
   сайте: N»; 1 the title and «На сайте: N»; 2 no title, «На сайте: N»; 3 no title, the dot and N. «Fits» = nothing outside the
   row, nothing overlapping, the account's name not cut — this also ends the presence badge covering the logo on phones (the
   badges no longer shrink under their badge: the account's spare width gives way first). */
@media (max-width:1024px){.topbar{display:flex!important;flex-wrap:nowrap!important;align-items:center;gap:10px;padding:10px 16px}
 .topbar .header-identity{display:flex!important;flex:0 0 auto;gap:0}.topbar .brand{min-width:0}
 .topbar .brand>span{display:block;min-width:0;white-space:nowrap}.topbar .brand>span small{display:none}
 .topbar:is([data-fit="2"],[data-fit="3"]) .brand>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%)}
 .topbar:is([data-fit="1"],[data-fit="2"]) .presence-long{display:none}.topbar:is([data-fit="1"],[data-fit="2"]) .presence-short{display:inline}
 .topbar[data-fit="3"] .presence-label{display:none}
 .topbar .site-links,.topbar .family-count-badge{display:none!important}
 .topbar .header-badges{order:0;flex:1 0 auto;flex-basis:auto;display:flex;justify-content:flex-end;min-width:0}
 .topbar .account{display:flex!important;align-items:center;gap:8px;flex:0 1 auto;min-width:0}.topbar .account>*{flex:none}
 .topbar .account .account-entry{flex:0 1 auto;min-width:0;overflow:hidden}}
/* 0.1.265 «Управление → Родственники и доступ» (Andrew 25.10): one row per person, a sticky search with quick filters; a row opens
   the person's window (full screen up to 1024 px, «‹ К списку» on top). */
.admin-people-bar{position:sticky;top:0;z-index:5;background:var(--paper,#f6f4ee);padding:10px 0 6px;border-bottom:1px solid var(--line)}
.admin-people-bar .admin-directory-search{display:block;margin:0}.admin-people-bar input{width:100%;min-height:44px;font-size:16px}
.admin-people-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.admin-people-bar #adminDirectoryCount{margin:6px 0 0}
.admin-chip{min-height:36px;padding:4px 12px;border:1px solid var(--line);border-radius:999px;background:var(--white,#fffefa);color:var(--ink);font:inherit;font-size:13px;cursor:pointer}
.admin-chip[aria-pressed="true"]{background:var(--green);border-color:var(--green);color:#fff}
.admin-people{list-style:none;margin:0;padding:0}.admin-people li[hidden]{display:none}
.admin-person-row{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:6px 4px;border:0;border-bottom:1px solid var(--line);background:none;color:var(--ink);font:inherit;text-align:start;cursor:pointer}
.admin-person-row:hover,.admin-person-row:focus-visible{background:#36584810}.admin-person-row .avatar{width:40px;height:40px;min-width:40px;font-size:17px}
.admin-person-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.admin-person-text strong{font-size:15px;line-height:1.25;overflow-wrap:anywhere}.admin-person-text small{color:var(--muted);font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.admin-access{flex:none;padding:3px 9px;border-radius:999px;font-size:12px;white-space:nowrap;background:#eceee8;color:#4b574d}.admin-access-in{background:#dcefdc;color:#24522f}.admin-access-invited{background:#f6ead2;color:#6d4b12}.admin-access-memorial{background:#ecebf0;color:#4c4a5c}
.admin-person-dialog{width:min(760px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0 20px 20px;overflow:auto}
.admin-person-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:12px;padding:12px 0;background:var(--white,#fffefa);border-bottom:1px solid var(--line)}.admin-person-head h2{margin:0;font-size:20px;min-width:0;overflow-wrap:anywhere}
.admin-person-back{flex:none;min-height:44px;padding:0 14px;border:1px solid var(--line);border-radius:999px;background:var(--white,#fffefa);color:var(--green);font:inherit;font-weight:700;cursor:pointer}
.admin-person-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px 18px;margin:14px 0}.admin-person-fact{display:flex;flex-direction:column;gap:2px;min-width:0;overflow-wrap:anywhere}.admin-person-fact small{color:var(--muted)}
.admin-person-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.directory-icon-label{display:none}.admin-person-actions .directory-icon{display:inline-flex;align-items:center;gap:8px;width:auto;min-height:44px;padding:0 14px}.admin-person-actions .directory-icon svg{width:20px;height:20px;flex:none}.admin-person-actions .directory-icon-label{display:inline}
@media (max-width:600px){.admin-access{font-size:11px;padding:2px 7px}.admin-person-row{gap:10px}.admin-person-text strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}}
@media (max-width:1024px){.admin-person-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0;padding:0 16px 16px}}
/* Touch targets of 40 px at the least (audit P4-07, 01.11): the same controls, only taller or wider where a finger meets them. */
@media (hover:none){
 .tv-key{height:40px;min-width:40px}.tv-knob{width:40px;height:40px}.tv-full-btn{width:44px;height:44px;line-height:44px}
 .hero-pick select{min-height:40px}
 .filter-group summary,.tree-share-group summary{min-height:40px;display:flex;align-items:center}
 .topbar .account #identity{min-height:40px}.topbar .language-dropdown,.topbar .language-dropdown .dropdown-trigger{width:40px;height:40px;min-width:40px}
 .tabs .intro-to-tree-button{min-height:40px}
 #personDetail .profile-info .profile-edit-link{min-height:40px}
 #personDialog .dialog-back,.dialog-close,.photo-close{width:40px;height:40px;min-width:40px}
 .focus-option-acts button{min-height:40px}
}
