#v26-export-dialog{width:min(650px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:0;border:1px solid #a8becb;border-radius:22px;background:#eff5f7;color:#193345;box-shadow:0 25px 90px #102c4460;overflow:auto;z-index:5000}
#v26-export-dialog::backdrop{background:#102f4166;backdrop-filter:blur(3px)}
#v26-export-dialog .v26-export-content{padding:28px}
#v26-export-dialog h2{margin:0 0 20px;font-size:24px}
#v26-export-dialog p{font-size:16px;line-height:1.55}
#v26-export-dialog .hint{font-size:14px;color:#526b79}
.v26-export-file{display:grid;gap:8px;padding:18px;border:1px solid #a8c4cf;border-radius:13px;background:#dfeef0;overflow-wrap:anywhere}
.v26-export-file strong{font-size:17px}.v26-export-file span{font-size:26px;font-weight:750;color:#235e51}.v26-export-file small{font-size:13px}
.v26-export-actions{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:10px;margin-top:24px;padding-top:18px;border-top:1px solid #bcced5}
.v26-export-error:not([hidden]){padding:12px;border-radius:8px;background:#f9e1e8;color:#8a2340}
@media(max-width:540px){#v26-export-dialog .v26-export-content{padding:20px}.v26-export-actions .button{width:100%;justify-content:center}}

.v26-export-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px}.v26-export-header h2{margin:0!important}.v26-export-header .button{flex-shrink:0}
@media(max-width:540px){.v26-export-header{flex-wrap:wrap}.v26-export-header .button{margin-left:auto}}

/* The all-dossiers archive has optional document formats; backups keep their fixed contents. */
#v26-export-dialog .v29-export-formats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 20px;padding:18px;border:1px solid #aac2ce;border-radius:14px;background:#f8fbfc;min-width:0}
#v26-export-dialog .v29-export-formats legend{padding:0 7px;font-size:17px;font-weight:750;color:#213f50}
#v26-export-dialog .v29-export-formats label{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #c4d3db;border-radius:10px;background:white;cursor:pointer;min-width:0}
#v26-export-dialog .v29-export-formats input[type=checkbox]{width:24px;height:24px;min-width:24px;margin:0;accent-color:#19775b;cursor:pointer}
#v26-export-dialog .v29-export-formats input[type=checkbox]:focus-visible{outline:3px solid #2d77bd;outline-offset:4px}
#v26-export-dialog .v29-export-formats label:has(input:checked){border-color:#3b9477;background:#e6f5ee}
#v26-export-dialog .v29-export-formats span{display:grid;gap:4px}#v26-export-dialog .v29-export-formats strong{font-size:17px}#v26-export-dialog .v29-export-formats small{font-size:13px;line-height:1.4;color:#3f5c69}
#v26-export-dialog .v29-export-formats p{grid-column:1/-1;margin:0;font-size:14px}#v26-export-dialog .v29-export-formats p[role=status]{font-weight:650}
#v26-export-dialog .v29-export-format-required{color:#972e47}#v26-export-dialog .v29-export-formats:disabled label{cursor:default}#v26-export-dialog .v29-export-formats:disabled input{cursor:default;opacity:.7}
#v26-export-dialog .v29-export-selected{padding:10px 14px;background:#e1f0ea;border-radius:9px;color:#1f5946}
@media(max-width:480px){#v26-export-dialog .v29-export-formats{grid-template-columns:1fr;padding:14px}}

/* V53: export dialogs are outside the main modal and need explicit action tones. */
body[data-portal] #v26-export-dialog .button{--v53-export-color:#476582;background-color:var(--v53-export-color)!important;background-image:linear-gradient(#ffffff20,#00000016)!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
body[data-portal] #v26-export-dialog [data-export=cancel]{--v53-export-color:#a12949}
body[data-portal] #v26-export-dialog [data-export=prepare],body[data-portal] #v26-export-dialog [data-export=save]{--v53-export-color:#1c6f51}
body[data-portal] #v26-export-dialog [data-export=download]{--v53-export-color:#98521c}
body[data-portal] #v26-export-dialog [data-export=formats]{--v53-export-color:#70498f}
