#personDialog.editor-refined{width:min(1030px,calc(100vw - 28px));max-height:92svh;padding:0;border:1px solid #e0e6ec;border-radius:25px;overflow:visible;background:#fff;color:#182637;box-shadow:0 24px 80px #20344735;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
#personDialog::backdrop,.editor-crop-dialog::backdrop{background:#20344765;backdrop-filter:blur(3px)}
#personDialog .person-form{display:flex;flex-direction:column;gap:0;max-height:92svh;overflow:visible;padding:0;border-radius:25px;background:#fff}
#personDialog .form-head{flex:none;align-items:flex-start;margin:0;padding:26px 29px 19px;border:0}
#personDialog .form-head h2{margin:0;color:#15253a;font-size:27px;line-height:1.2;letter-spacing:-.035em}
#personDialog #formIntro{margin:7px 0 0;color:#71849b;font-size:13px;line-height:1.45}
#personDialog .editor-status{width:max-content;margin:15px 0 0;padding:0;border:0;background:transparent}
#personDialog .editor-status .relative-field>span{display:none}
#personDialog .editor-status .relative-field{display:block;margin:0;grid-template-columns:none}
#personDialog .editor-status .choice{width:max-content;max-width:100%}
#personDialog .editor-status .choice-trigger{white-space:nowrap}
#personDialog .editor-status .choice-trigger{min-height:34px;width:auto;gap:8px;padding:7px 12px;border:0;border-radius:999px;background:#fff3db;color:#9b6b1e;font-size:12px;font-weight:600;box-shadow:none}
#personDialog .editor-status .choice-trigger:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}
#personDialog .editor-status [data-status=ok] .choice-trigger{background:#e9f6ee;color:#32805a}
#personDialog .editor-status .choice-trigger:hover{filter:brightness(.98)}
.person-editor-tabs{flex:none;display:flex;gap:3px;overflow-x:auto;scrollbar-width:none;padding:0 22px;border-bottom:1px solid #e8eef4;background:#fff}
.person-editor-tabs::-webkit-scrollbar{display:none}
.person-editor-tabs button{flex:none;min-height:45px;padding:10px 16px;border:0;border-bottom:2px solid transparent;border-radius:10px 10px 0 0;background:transparent;color:#374151;font:600 13px Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;white-space:nowrap;cursor:pointer}
.person-editor-tabs button:hover{color:#1765ef}.person-editor-tabs button[aria-selected=true]{color:#1765ef;border-bottom-color:#2469e6}.person-editor-tabs button[hidden]{display:none!important}
.person-editor-tabs button:focus-visible{outline:2px solid #2469e6;outline-offset:-3px}
.person-editor-body{display:grid;grid-template-columns:250px minmax(0,1fr);min-height:365px;max-height:calc(92svh - 270px);min-width:0}
.person-editor-side{padding:22px;background:#f8fafc;border-right:1px solid #e8edf2;border-radius:0 0 0 25px;overflow:auto}
.person-editor-side>strong{display:block;margin-top:15px;font-size:13px;color:#263b55}
.person-editor-side>p,.editor-photo-status{font-size:12px;line-height:1.55;color:#71849b}.editor-photo-status{color:#2469e6}
.editor-photo{position:relative;height:250px;overflow:hidden;border-radius:17px;background:#e7ebf0}.editor-photo-image,.editor-photo-image img,.editor-photo-image picture{display:block;width:100%;height:100%}.editor-photo-image img{object-fit:cover}.editor-photo-image .person-initials-avatar{height:100%}
.editor-photo-actions{position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:center;gap:8px;padding:15px;background:linear-gradient(transparent 45%,#14263da8);opacity:0;pointer-events:none;transition:opacity .18s}
.editor-photo:hover .editor-photo-actions,.editor-photo:focus-within .editor-photo-actions{opacity:1;pointer-events:auto}
.editor-photo-actions button{display:grid;place-items:center;width:38px;height:38px;padding:0;border:1px solid #ffffffbd;border-radius:12px;background:#fff;color:#1d426f;cursor:pointer}.editor-photo-actions button[data-editor-photo=remove]{color:#c2323c}.editor-photo-actions button[hidden]{display:none!important}.editor-photo-actions button:hover{background:#f1f6ff}.editor-photo-actions svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.person-editor-content{padding:23px 26px 26px;overflow-y:auto;overscroll-behavior:contain;min-width:0}
#personDialog .relative-section{padding:0;margin:0;border:0}.person-editor-panel[hidden]{display:none!important}
#personDialog .person-name-fields{grid-template-columns:1fr 1fr}
#personDialog .form-row{gap:13px;margin:0 0 13px}
#personDialog .form-row>.relative-field{margin:0}
#personDialog .relative-field{gap:7px;margin-bottom:13px;min-width:0;font-size:12px;color:#111827;font-weight:600}
#personDialog .relative-field>span,#personDialog .relative-field>label{color:#111827}
#personDialog .editor-field-heading{display:flex;flex-direction:row;align-items:center;gap:6px;flex-wrap:wrap;color:#111827;font-size:12px;font-weight:600}
#personDialog #person-panel-1 .relative-section>.form-row:first-child{align-items:end}
#personDialog .optional{color:#8b9aab;font-size:11px;font-weight:400}
#personDialog .relative-field input:not([type=hidden]):not([type=checkbox]),#personDialog textarea,#personDialog .choice-trigger{width:100%;min-height:44px;padding:10px 13px;border:1px solid #d9e3ec;border-radius:12px;background:#fff;color:#1d1d1f;font:600 14px/1.35 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;box-shadow:none;outline:none}
#personDialog textarea{min-height:85px;resize:vertical}
#personDialog .relative-field input:hover:not([type=hidden]):not([type=checkbox]),#personDialog textarea:hover,#personDialog .choice-trigger:hover{border-color:#adc9ec;background:#f6f9ff}
#personDialog .relative-field input:focus-visible:not([type=hidden]):not([type=checkbox]),#personDialog textarea:focus-visible,#personDialog .choice-trigger:focus-visible,#personDialog .choice-trigger[aria-expanded=true]{border-color:#2469e6;background:#fff;box-shadow:0 0 0 3px #2469e62b}
#personDialog .choice-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;cursor:pointer}
#personDialog .choice-trigger:after{content:none!important}
#personDialog .editor-status .choice-trigger{width:auto;min-height:34px;padding:7px 12px;border:0;border-radius:999px;background:#fff3db;color:#9b6b1e;font-size:12px;font-weight:600;box-shadow:none}
#personDialog .editor-status [data-status=ok] .choice-trigger{background:#e9f6ee;color:#32805a}
#personDialog .choice-menu{position:fixed;z-index:100;right:auto;bottom:auto;margin:0;padding:6px;border:1px solid #e1e7ee;border-radius:15px;background:#fffffff5;backdrop-filter:blur(20px);box-shadow:0 14px 35px #1f355225;overflow:auto}
#personDialog .choice-menu[hidden]{display:none!important}
#personDialog .choice-menu button{display:flex;align-items:center;justify-content:space-between;gap:15px;width:100%;min-height:40px;padding:9px 11px;border:0;border-radius:9px;background:transparent;color:#1d1d1f;text-align:left;font:400 14px/1.35 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;cursor:pointer}
#personDialog .choice-menu button[aria-selected=true]{font-weight:600}
#personDialog .choice-menu button:after{content:none!important}
#personDialog .choice-menu button:hover,#personDialog .choice-menu button:focus-visible{background:#eef0f3;outline:none}
#personDialog .choice-menu button[aria-selected=false] .ui-check-slot{visibility:hidden}
#personDialog .choice-group{font-size:11px;color:#8292a3;padding:9px 10px 5px;font-weight:500}
#personDialog .event-card,#personDialog .editor-flat-details{margin:0;padding:0;border:0;border-radius:0;background:transparent}
#personDialog .editor-flat-details>summary{display:none}
#personDialog .editor-flat-details#deathDetails{margin-top:20px;padding-top:19px;border-top:1px solid #e8eef4}
#personDialog .editor-flat-details#deathDetails:before{content:"Сведения о смерти";display:block;font-size:14px;font-weight:600;color:#111827;margin-bottom:15px}
#personDialog .editor-history-reason{margin:20px 0 0;padding:0;border-top:1px solid #e8eef4}
#personDialog .editor-history-reason>summary{padding:15px 0;color:#111827;font-size:13px;font-weight:600}
#personDialog .editor-history-reason>.relative-field{margin:0 0 13px}
#personDialog .relative-more#familyDetails{border:1px solid #e1e9f0;border-radius:13px;padding:0;margin:15px 0 0}
#personDialog #familyDetails>summary{padding:13px 14px;color:#111827;font-size:13px;font-weight:600;list-style:none}
#personDialog #familyDetails>summary:after{content:"";display:inline-block;float:right;width:8px;height:8px;margin:2px 3px 0;border-right:1.5px solid #111;border-bottom:1.5px solid #111;transform:rotate(45deg)}
#personDialog #familyDetails[open]>summary:after{transform:rotate(225deg);margin-top:6px}
#personDialog #familyDetails>summary::-webkit-details-marker{display:none}
#personDialog #familyDetails>*:not(summary){margin:0 14px 13px}
#personDialog .relative-hint{font-size:12px;line-height:1.55;color:#8292a3}
#personDialog .form-actions{flex:none;padding:16px 26px;margin:0;border-top:1px solid #e9eef3;display:flex;justify-content:flex-end;gap:9px;background:#fff;border-radius:0 0 25px 25px}
#personDialog .form-actions .ui-button{width:auto;min-height:40px;padding:0 16px;border:1px solid #d5e1ec;border-radius:12px;background:#fff;color:#3d5874;font:600 13px Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;cursor:pointer}
#personDialog .form-actions .ui-button--finish{border-color:#2469e6;background:#2469e6;color:#fff}
#personDialog .form-actions .ui-button--finish:hover{background:#1858c8}
#personDialog .validation-message:empty{display:none}#personDialog .validation-message{flex:none;margin:0;padding:9px 26px;color:#bb3434;font-size:12px}
#personDialog .relative-field[hidden],#personDialog label[hidden]{display:none!important}
.editor-field-tooltip{position:fixed;z-index:200;max-width:min(280px,calc(100vw - 24px));padding:11px 13px;border:1px solid #dce6ee;border-radius:13px;background:#fff;color:#263b55;box-shadow:0 12px 28px #14263d25;font:500 12px/1.5 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
.editor-field-tooltip[hidden]{display:none!important}
#personDialog .editor-field-help{display:inline-grid;place-items:center;width:16px;height:16px;padding:0;border:1px solid #b9cbe0;border-radius:50%;background:#fff;color:#6c829d;font:500 11px/1 Arial,sans-serif;cursor:pointer;flex:none}#personDialog .editor-field-help:hover{border-color:#2469e6;color:#2469e6}
#personDialog .ui-button--close,#personProfile .ui-button--close,.photo-upload-dialog .ui-button--close{display:grid;place-items:center;width:34px;height:34px;min-height:34px;padding:0;border:1px solid #dce6ef;border-radius:50%;background:#fff;color:#1765ef;font-size:0;cursor:pointer}
#personDialog .ui-button--close:hover,#personProfile .ui-button--close:hover,.photo-upload-dialog .ui-button--close:hover{background:#eaf2ff;color:#1858c8}
.ui-button--close svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round}
.editor-crop-dialog{width:min(560px,calc(100vw - 24px));max-height:92svh;padding:23px;border:1px solid #e0e6ec;border-radius:24px;background:#fff;color:#263b55;overflow:auto;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
.editor-crop-head{display:flex;justify-content:space-between;gap:15px;align-items:flex-start}.editor-crop-head h2{margin:0;font-size:22px}.editor-crop-head p{margin:7px 0 0;color:#72849a;font-size:13px}
.editor-crop-frame{position:relative;width:212px;height:265.6px;margin:20px auto;overflow:hidden;border-radius:17px;background:#e7ebf0;touch-action:none;cursor:grab}.editor-crop-frame:active{cursor:grabbing}.editor-crop-frame img{position:absolute;max-width:none;pointer-events:none;user-select:none}.editor-crop-zoom{display:grid;gap:8px;color:#111827;font-size:12px;font-weight:600}.editor-crop-zoom input{width:100%;accent-color:#2469e6}.editor-crop-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:17px}.editor-crop-error{font-size:12px;color:#71849b}
#personProfile{border-radius:22px;background:#fff;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
#personProfile .profile-top{padding:17px 20px}#personProfile .profile-person{padding:20px}#personProfile #profileName{font-size:22px;line-height:1.3;font-weight:700}#personProfile .profile-dates,#personProfile .profile-maiden,#personProfile .profile-age{font-size:13px;line-height:1.5}#personProfile .profile-age{font-weight:600}
#personProfile .profile-detail-tabs{padding:0 10px}#personProfile .profile-detail-tabs button{font-size:12px;padding:9px 10px}
#personProfile .profile-section{padding:20px}#personProfile .profile-section>h3{display:none}#personProfile .profile-section[hidden]{display:none!important}
#personProfile .profile-action-menu{padding:6px;border:1px solid #e1e7ee;border-radius:15px;background:#fffffff5;backdrop-filter:blur(20px);box-shadow:0 14px 35px #1f355225}
#personProfile .profile-action-menu button{display:flex;align-items:center;min-height:40px;padding:9px 11px;border:0;border-radius:9px;background:transparent;color:#1d1d1f;font:500 14px/1.35 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
#personProfile .profile-action-menu button:hover,#personProfile .profile-action-menu button:focus-visible{background:#eef0f3;outline:none}#personProfile .profile-action-menu button[hidden]{display:none!important}
@media(hover:none){.editor-photo-actions{opacity:1;pointer-events:auto}}
@media(max-width:760px){#personDialog.editor-refined{width:calc(100vw - 16px);max-height:94svh;border-radius:20px}#personDialog .person-form{max-height:94svh;border-radius:20px}#personDialog .form-head{padding:20px 16px 15px}#personDialog .form-head h2{font-size:23px}.person-editor-tabs{padding:0 9px}.person-editor-tabs button{font-size:12px;padding:9px 10px}.person-editor-body{display:flex;flex-direction:column;max-height:calc(94svh - 240px);min-height:220px;overflow-y:auto}.person-editor-side{display:grid;grid-template-columns:100px 1fr;gap:8px 14px;overflow:visible;border-right:0;border-bottom:1px solid #e8edf2;border-radius:0;padding:15px 16px;flex:none}.editor-photo{height:125px;grid-row:1/4}.person-editor-side>strong{margin:4px 0 0}.person-editor-side>p{margin:0}.editor-photo-status{grid-column:1/-1}.editor-photo-actions{gap:5px;padding:8px}.editor-photo-actions button{width:34px;height:34px}.person-editor-content{padding:20px 16px;overflow:visible;flex:none}.person-editor-content .form-row,#personDialog .person-name-fields{grid-template-columns:1fr}#personDialog .form-actions{padding:14px 16px;border-radius:0 0 20px 20px}.editor-crop-dialog{padding:18px}.editor-crop-frame{width:190px;height:238px}}



/* Pill tabs already outline themselves; the two full-width separators were redundant. */
#personProfile .profile-detail-tabs{border-bottom:0}
#personProfile .profile-detail-tabs ~ .profile-section{margin-top:0;border-top:0}
