/* Rodovid v61 · Evidence Ledger editorial research room */
.heritage-ledger-dialog{width:min(1280px,calc(100vw - 24px));max-height:94dvh;padding:0;border:1px solid #9db3bb;border-radius:24px;overflow:auto;box-sizing:border-box;color:#29465a;background:#f3f6f5;box-shadow:0 35px 90px #091d31b0}
.heritage-ledger-dialog::backdrop{background:#061827cb;backdrop-filter:blur(5px)}
.heritage-ledger-head{display:flex;justify-content:space-between;align-items:start;gap:20px;padding:24px 26px;background:radial-gradient(ellipse at 95% 15%,#396783,#173b53 65%,#13273e);color:white}
.heritage-ledger-head small{font:800 10px Manrope,sans-serif;letter-spacing:.17em;color:#e4be79}
.heritage-ledger-head h2{font:700 clamp(26px,4vw,39px) Georgia,serif;margin:7px 0}
.heritage-ledger-head p{font:500 12px/1.65 Manrope,sans-serif;max-width:690px;opacity:.86}
.heritage-ledger-head button{background:#ffffff1c;border:1px solid #ffffff9c;color:white;border-radius:11px;width:44px;height:44px;font-size:24px;flex-shrink:0;cursor:pointer}
.heritage-ledger-tabs{display:flex;gap:9px;padding:15px 20px 0}
.heritage-ledger-tabs button{padding:12px 16px;border-radius:12px 12px 0 0;background:#e0ecee;color:#315b6b;border:1px solid #b9cdd3;border-bottom-color:transparent;font:800 12px Manrope,sans-serif;cursor:pointer}
.heritage-ledger-tabs button[aria-selected=true]{background:#fff;color:#195572;border-color:#aec1c8}
.heritage-ledger-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:15px 20px}
.heritage-ledger-metric{padding:12px;background:white;border:1px solid #dde6e7;border-radius:13px;min-width:0;box-shadow:0 4px 12px #21445c0a}
.heritage-ledger-metric strong{display:block;font:800 24px Manrope,sans-serif;color:#2c7290}
.heritage-ledger-metric span{display:block;font:600 10px Manrope,sans-serif;color:#627a86}
.heritage-ledger-controls{display:grid;grid-template-columns:minmax(190px,2fr) minmax(120px,1fr) minmax(120px,1fr) minmax(120px,1fr) auto;gap:9px;padding:10px 20px;align-items:end}
.heritage-ledger-controls label{display:grid;gap:6px;min-width:0;font:800 11px Manrope,sans-serif}
.heritage-ledger-controls input,.heritage-ledger-controls select{box-sizing:border-box;min-width:0;width:100%;padding:11px 9px;border:1px solid #bbcdd3;border-radius:9px;background:#fff;color:#203d54;font:500 12px Manrope,sans-serif}
.heritage-ledger-controls button{background:white;border:1px solid #bbcdd3;border-radius:10px;padding:11px 14px;color:#2e6175;font-weight:800;cursor:pointer}
.heritage-ledger-content{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,1fr);gap:12px;padding:10px 20px}
.heritage-ledger-list{min-width:0;padding:12px;border:1px solid #dce4e4;border-radius:14px;background:white;max-height:500px;overflow:auto}
.heritage-ledger-inspector{min-width:0;padding:18px;border:1px solid #dce4e4;border-radius:14px;background:#fff;max-height:500px;overflow:auto}
.heritage-ledger-inspector h3{font:700 23px Georgia,serif;margin:8px 0;overflow-wrap:anywhere}
.heritage-ledger-inspector p{font-size:12px;line-height:1.5;color:#617d88}
.heritage-ledger-kicker{letter-spacing:.1em;font-size:10px;color:#6892a1;font-weight:800}
.heritage-ledger-source{width:100%;min-width:0;display:block;margin-bottom:8px;padding:13px;border-radius:10px;border:1px solid #e0e9e9;background:#f6fafa;color:#234353;text-align:left;cursor:pointer;overflow-wrap:anywhere}
.heritage-ledger-source[aria-pressed=true],.heritage-ledger-source:hover{background:#e2f0f1;border-color:#76a8b8}
.heritage-ledger-source strong,.heritage-ledger-source small{display:block}
.heritage-ledger-source strong{font:800 12px Manrope,sans-serif}.heritage-ledger-source small{font:500 10px Manrope,sans-serif;margin-top:5px;color:#65838d}
.heritage-ledger-claim,.heritage-ledger-mention{display:flex;align-items:center;gap:8px;justify-content:space-between;border:1px solid #e1e9e9;padding:10px;margin-bottom:9px;border-radius:11px;background:#f8fbfb}
.heritage-ledger-person{flex:1;text-align:left;border:0;background:transparent;min-width:0;color:#234251;cursor:pointer;padding:5px}
.heritage-ledger-person strong,.heritage-ledger-person span,.heritage-ledger-person small{display:block;overflow-wrap:anywhere;font-size:11px;line-height:1.5}
.heritage-ledger-person strong{font-weight:800;font-size:12px}
.heritage-ledger-person .ledger-ok{color:#276e56}.heritage-ledger-person .ledger-warn{color:#aa6d3b}
.heritage-ledger-basket{border:1px solid #b6cdd3;color:#386779;background:#fff;border-radius:8px;padding:7px 8px;font-size:10px;font-weight:800;cursor:pointer;white-space:nowrap}
.heritage-ledger-basket[aria-pressed=true]{background:#d7f0e4;color:#236047}
.heritage-ledger-disclaimer{background:#faf4e9;padding:10px;border-radius:10px;border-left:3px solid #bc955f}
.heritage-ledger-empty{padding:27px;text-align:center;color:#748994;font-size:12px}
.heritage-ledger-more{display:block;margin:4px auto 18px;border:1px solid #b9ced1;background:#fff;padding:12px 17px;color:#246578;border-radius:10px;font-weight:800;cursor:pointer}
.heritage-ledger-status{font:600 11px Manrope,sans-serif;color:#607e87;padding:0 20px 8px;margin:0}
.heritage-ledger-foot{display:flex;gap:10px;justify-content:end;align-items:center;border-top:1px solid #c9d7dc;padding:12px 20px}
.heritage-ledger-foot span{margin-right:auto;color:#6e8288;font-size:11px}
.heritage-ledger-foot button{border:1px solid #a7c3cc;background:#fff;border-radius:10px;padding:11px 15px;color:#2b6074;font-weight:800;cursor:pointer}
.heritage-ledger-foot .primary{background:#1d5976;color:white}
.heritage-ledger-foot button:disabled{opacity:.4;cursor:not-allowed}
.heritage-ledger-dialog :is(input,select,button):focus-visible{outline:3px solid #e3ac60;outline-offset:2px}
@media(max-width:940px){.heritage-ledger-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.heritage-ledger-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.heritage-ledger-controls label:first-child{grid-column:1/-1}.heritage-ledger-content{grid-template-columns:1fr}.heritage-ledger-inspector{max-height:310px}}
@media(max-width:600px){.heritage-ledger-dialog{width:100vw;height:100dvh;max-height:100dvh;border-radius:0;border:0}.heritage-ledger-head{padding:16px}.heritage-ledger-tabs{padding:11px 8px 0;gap:3px}.heritage-ledger-tabs button{padding:9px 7px;font-size:10px;flex:1}.heritage-ledger-metrics{grid-template-columns:repeat(2,minmax(0,1fr));padding:11px;gap:6px}.heritage-ledger-controls{padding:10px}.heritage-ledger-content{padding:8px}.heritage-ledger-list{max-height:350px}.heritage-ledger-foot{padding:10px}.heritage-ledger-foot button{padding:10px 11px;font-size:10px}.heritage-ledger-foot span{font-size:9px}}
@media(prefers-reduced-motion:reduce){.heritage-ledger-dialog *{transition:none!important;animation:none!important}}

.heritage-ledger-dialog [hidden]{display:none!important}
