.legacy-archive {
    width: min(720px, calc(100vw - 32px));
    max-height: calc(100dvh - 48px);
    box-sizing: border-box;
    overflow: auto;
    border: 1px solid #ccd5e0;
    border-radius: 12px;
    padding: 24px;
    color: #17263c;
    background: #fff;
    box-shadow: 0 18px 70px #10213c40;
}
.legacy-archive::backdrop { background: #10213c88; }
.legacy-archive h2 { margin: 0 0 12px; }
.legacy-archive p { line-height: 1.45; overflow-wrap: anywhere; }
.legacy-archive__search { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.legacy-archive__search label { width: 100%; font-weight: 600; }
.legacy-archive__search input { flex: 1; min-width: 140px; padding: 10px; border: 1px solid #a9b7c8; border-radius: 6px; font: inherit; }
.legacy-archive button { padding: 9px 14px; border: 1px solid #8297b2; border-radius: 6px; color: #17263c; background: #f2f6fc; cursor: pointer; font: inherit; }
.legacy-archive button:disabled { opacity: .55; cursor: wait; }
.legacy-archive button:focus-visible, .legacy-archive input:focus-visible { outline: 3px solid #2878d5; outline-offset: 2px; }
.legacy-archive__results { list-style: none; padding: 0; margin: 16px 0; }
.legacy-archive__report { border-top: 1px solid #dbe2ec; padding: 16px 0; }
.legacy-archive__report h3 { font-size: 1rem; margin: 0; overflow-wrap: anywhere; }
.legacy-archive__report p { margin: 7px 0; }
.legacy-archive__dates { font-size: .85rem; color: #53657c; }
.legacy-archive__warning { background: #fff5da; color: #6f4c00; padding: 8px; border-radius: 5px; }
.legacy-archive__actions { display: flex; gap: 12px; justify-content: flex-end; position: sticky; bottom: -24px; padding: 12px 0; background: #fff; }
@media print { .legacy-archive { display: none !important; } }
