/* Rodovid v66 · Family Poster Atelier. No image requests, no paywall, no AI. */
.family-poster-dialog{width:min(1490px,calc(100vw - 18px));max-height:97dvh;border:1px solid #9fb4b2;border-radius:22px;overflow:auto;padding:0;background:#eef3f1;color:#244458;box-shadow:0 40px 110px #041725c0}
.family-poster-dialog::backdrop{background:#051626e3;backdrop-filter:blur(7px)}
.family-poster-head{display:flex;justify-content:space-between;gap:20px;align-items:start;padding:27px 30px;background:radial-gradient(circle at 85% 20%,#486878,#143d53 70%,#10273b);color:#fff;position:relative;overflow:hidden}
.family-poster-head:after{content:"";position:absolute;pointer-events:none;inset:0;background:repeating-radial-gradient(circle at 82% 29%,transparent 0 45px,#ffffff10 46px 47px,transparent 48px 90px)}
.family-poster-head>div,.family-poster-head button{position:relative;z-index:1}
.family-poster-head small{font:800 10px Manrope,sans-serif;letter-spacing:.19em;color:#eecb91}
.family-poster-head h2{font:700 clamp(27px,4vw,44px) Georgia,serif;margin:8px 0}
.family-poster-head p{font:500 12px/1.6 Manrope,sans-serif;opacity:.91;max-width:960px}
.family-poster-close{width:44px;height:44px;border:1px solid #ffffff80;background:#ffffff23;color:#fff;border-radius:11px;cursor:pointer;font:600 25px Manrope,sans-serif;flex-shrink:0}
.family-poster-grid{display:grid;grid-template-columns:minmax(275px,320px) minmax(0,1fr);gap:0;min-width:0;min-height:500px}
.family-poster-editor{background:#f9fbfa;border-right:1px solid #ccdbd8;padding:19px;max-height:79dvh;overflow:auto;display:flex;flex-direction:column;gap:13px}
.family-poster-editor h3{font:700 24px Georgia,serif;color:#2e6675;margin:0}
.family-poster-editor p{font:600 11px/1.55 Manrope,sans-serif;color:#6f8991;margin:0}
.family-poster-editor label{display:grid;gap:6px;min-width:0;color:#517382;font:800 11px Manrope,sans-serif}
.family-poster-editor input:not([type=checkbox]),.family-poster-editor select{min-width:0;box-sizing:border-box;width:100%;background:#fff;color:#204960;border:1px solid #b8cfd3;border-radius:9px;padding:11px;font:600 12px Manrope,sans-serif}
.family-poster-editor .family-poster-check{display:flex;gap:9px;align-items:center;line-height:1.45}
.family-poster-check input{min-width:17px;min-height:17px;accent-color:#397f8f}
.family-poster-editor .family-poster-private{background:#faf0e1;border:1px solid #ead5ba;border-left:3px solid #bf9965;border-radius:9px;padding:12px;color:#8f6948}
.family-poster-reset{margin-top:8px;border:1px solid #b9d0d2;border-radius:10px;color:#2c7183;background:#fff;font:800 12px Manrope,sans-serif;padding:12px;cursor:pointer}
.family-poster-stage{display:flex;flex-direction:column;min-width:0;max-height:79dvh;overflow:auto;background:#dce7e5}
.family-poster-metrics{position:sticky;top:0;z-index:2;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;padding:13px;background:#e3eeeddf;backdrop-filter:blur(7px)}
.family-poster-stat{padding:12px 13px;border:1px solid #d2dedc;background:#fff;border-radius:12px;min-width:0;box-shadow:0 5px 15px #1644570d}
.family-poster-stat strong{display:block;color:#2e7b87;font:800 23px Manrope,sans-serif}
.family-poster-stat span{display:block;color:#758e96;font:700 10px/1.4 Manrope,sans-serif}
.family-poster-preview-outer{padding:22px;min-width:0;overflow:auto;flex:1}
.family-poster-preview{min-height:380px;display:flex;align-items:start;justify-content:center;overflow:auto}
.family-poster-preview svg{display:block;width:100%;max-width:100%;height:auto;max-height:none;box-shadow:0 17px 36px #09293e33;flex-shrink:0}
.family-poster-empty{padding:30px;color:#6f8d93;font:700 12px Manrope,sans-serif;text-align:center}
.family-poster-preview-note{padding:12px 19px;font:600 11px/1.6 Manrope,sans-serif;color:#607d88;background:#f0f6f4}
.family-poster-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 20px;border-top:1px solid #d5e2e2;background:#f9fbfa}
.family-poster-footer p{font:600 11px/1.6 Manrope,sans-serif;color:#65828a;margin:0}
.family-poster-footer>div{display:flex;gap:8px;flex-shrink:0}
.family-poster-footer button{background:#fff;border:1px solid #b7cfd2;border-radius:10px;color:#2a6c80;padding:12px 17px;font:800 11px Manrope,sans-serif;cursor:pointer}
.family-poster-footer button.primary{background:#246c83;color:#fff;border-color:#246c83}
.family-poster-dialog button:disabled{opacity:.45;cursor:not-allowed}
.family-poster-dialog [hidden]{display:none!important}
.family-poster-dialog :is(button,input,select):focus-visible{outline:3px solid #d6a66a;outline-offset:3px}
@media(max-width:1050px){.family-poster-grid{grid-template-columns:270px minmax(0,1fr)}.family-poster-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.family-poster-preview-outer{padding:12px}}
@media(max-width:720px){.family-poster-dialog{width:100vw;height:100dvh;max-height:100dvh;border-radius:0;border:0}.family-poster-head{padding:17px}.family-poster-grid{display:block}.family-poster-editor{max-height:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:11px;gap:9px}.family-poster-editor h3,.family-poster-editor p,.family-poster-editor .family-poster-private{grid-column:1/-1}.family-poster-stage{max-height:none;overflow:visible}.family-poster-metrics{position:static;grid-template-columns:repeat(4,minmax(0,1fr))}.family-poster-preview-outer{padding:9px}.family-poster-preview{min-height:260px}.family-poster-footer{flex-direction:column;align-items:stretch}.family-poster-footer>div{width:100%}.family-poster-footer button{flex:1}}
@media(max-width:440px){.family-poster-editor{grid-template-columns:1fr}.family-poster-editor label{grid-column:1/-1}.family-poster-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.family-poster-stat strong{font-size:18px}.family-poster-footer button{padding:10px 9px}}
@media(prefers-reduced-motion:reduce){.family-poster-dialog *{transition:none!important;animation:none!important}}
@media print{
 @page{size:A3 landscape;margin:6mm}
 html,body{height:auto!important;overflow:visible!important;margin:0!important;background:white!important}
 body>*:not(#family-poster-dialog){display:none!important}
 #family-poster-dialog{position:static!important;display:block!important;inset:auto!important;width:100%!important;height:auto!important;max-height:none!important;overflow:visible!important;border:0!important;margin:0!important;box-shadow:none!important;background:white!important}
 #family-poster-dialog::backdrop{display:none!important}
 .family-poster-head,.family-poster-editor,.family-poster-metrics,.family-poster-footer,.family-poster-preview-note{display:none!important}
 .family-poster-grid,.family-poster-stage,.family-poster-preview-outer,.family-poster-preview{display:block!important;min-height:0!important;max-height:none!important;padding:0!important;margin:0!important;overflow:visible!important;background:white!important}
 .family-poster-preview svg{max-height:280mm!important;max-width:405mm!important;width:100%!important;height:auto!important;box-shadow:none!important;page-break-inside:avoid!important}
}
