/* Export controls share the understated footer treatment. */
.card-footer .card-download{display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid var(--border-color);border-radius:.65rem;color:var(--text-secondary)}
.card-download svg{width:19px;height:19px}.card-download.is-export-ready{color:#268565}.card-download.is-export-ready::after{content:'';position:absolute;right:3px;top:3px;width:5px;height:5px;border-radius:50%;background:currentColor}.card-download{position:relative}.card-download.is-exporting svg{opacity:.4}.card-download.is-exporting::after{content:'';position:absolute;width:19px;height:19px;border:2px solid transparent;border-top-color:var(--accent);border-radius:50%;animation:sce-spin .8s linear infinite}.card-download:disabled{cursor:default}
.sce-dialog{--sce-primary:#2563eb;--sce-scroll-thumb:#b5bdcd;--sce-scroll-hover:#8c99af;box-sizing:border-box;width:min(620px,calc(100vw - 32px));max-height:calc(100dvh - 32px);margin:auto;padding:0;border:1px solid var(--modal-border,#dce4ef);border-radius:26px;background:#f8f9fd;color:var(--text-primary,#18233b);box-shadow:var(--modal-shadow,0 24px 80px #0a142a30);overflow:hidden;font-family:Inter,system-ui,sans-serif;color-scheme:light}
.sce-dialog[open]{display:flex;flex-direction:column}
[data-theme=dark] .sce-dialog{--sce-primary:#60a5fa;--sce-scroll-thumb:#4f5e76;--sce-scroll-hover:#788aa5;background:#192236;color-scheme:dark}
.sce-dialog::backdrop{background:#11182770;backdrop-filter:blur(8px)}
.sce-header{display:flex;flex:none;align-items:center;gap:20px;justify-content:space-between;padding:24px 28px 20px;border-bottom:1px solid var(--modal-border,#dce4ef)}
.sce-eyebrow{display:inline-block;font-size:10px;font-weight:750;letter-spacing:.12em;color:var(--text-secondary);text-transform:uppercase}
.sce-header h2{font-size:1.28rem;line-height:1.4;margin:7px 0 0;font-weight:750;letter-spacing:-.025em}
.sce-close{display:grid;place-items:center;flex:none;width:38px;height:38px;border:1px solid transparent;border-radius:50%;background:var(--bg-surface-2);color:var(--text-secondary);cursor:pointer}
.sce-close svg{width:18px;height:18px}.sce-close:hover{background:var(--bg-surface-3);color:var(--text-primary)}
.sce-body{flex:1 1 auto;min-height:0;padding:22px 28px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--sce-scroll-thumb) transparent;scrollbar-gutter:stable}
.sce-body::-webkit-scrollbar{width:6px;height:6px}.sce-body::-webkit-scrollbar-track{background:transparent;margin-block:12px}.sce-body::-webkit-scrollbar-thumb{background:var(--sce-scroll-thumb);border-radius:99px}.sce-body::-webkit-scrollbar-thumb:hover{background:var(--sce-scroll-hover)}.sce-body::-webkit-scrollbar-button{display:none}
.sce-preview{display:flex;justify-content:center;min-height:160px;background:transparent}.sce-preview img{display:block;width:auto;max-width:100%;max-height:45dvh;object-fit:contain}
.sce-preview img[hidden],.sce-placeholder[hidden]{display:none}.sce-placeholder{display:grid;place-items:center;min-height:230px;font-size:12px;color:var(--text-secondary);padding:20px}
.sce-feedback{display:grid;gap:7px;margin-top:20px;font-size:13px}.sce-feedback strong{display:flex;align-items:center;gap:9px;font-weight:650;line-height:1.5}
.sce-feedback strong::before{content:'';flex:none;width:6px;height:6px;border-radius:50%;background:var(--accent-blue,#477eea)}
.sce-dialog:is([data-phase=ready],[data-phase=download-requested],[data-phase=share-handed-off]) .sce-feedback strong::before{background:#268565}
.sce-feedback small{color:var(--text-secondary);font-size:11px;line-height:1.6;padding-left:15px}
.sce-feedback progress{width:100%;height:4px;border:0;border-radius:99px;overflow:hidden;accent-color:var(--accent-blue,#477eea)}.sce-feedback progress::-webkit-progress-bar{background:var(--bg-key-zone,#e5ebf5);border-radius:99px}.sce-feedback progress::-webkit-progress-value{background:var(--accent-blue,#477eea);border-radius:99px}.sce-feedback progress[hidden]{display:none}
.sce-dialog[data-phase=error] [data-export-status]{color:var(--danger,#e11d48)}.sce-dialog[data-phase=error] .sce-feedback strong::before{background:var(--danger,#e11d48)}
.sce-footer{flex:none;padding:18px 28px 22px;border-top:1px solid var(--modal-border,#dce4ef)}
.sce-actions{display:flex;align-items:center;gap:10px}.sce-actions button{display:inline-flex;align-items:center;justify-content:center;gap:9px;box-sizing:border-box;min-height:46px;padding:12px 18px;border:1px solid var(--modal-border,#dce4ef);border-radius:13px;background:var(--bg-surface-2);color:var(--text-primary);font:inherit;font-size:12px;font-weight:650;cursor:pointer;transition:background .15s,box-shadow .15s}
.sce-actions svg{width:18px;height:18px;flex:none}.sce-actions .sce-download{background:var(--sce-primary);color:#fff;border-color:transparent}.sce-actions button:hover:not(:disabled){box-shadow:inset 0 0 0 100px #0000000a}.sce-actions button:disabled{opacity:.5;cursor:default}.sce-actions [hidden]{display:none}
[data-theme=dark] .sce-actions .sce-download{color:#10223d}
.sce-hint{margin:12px 0 0;color:var(--text-secondary);font-size:11px;line-height:1.65}.sce-dialog button:focus-visible{outline:3px solid var(--accent-blue,#477eea);outline-offset:3px}
@keyframes sce-spin{to{transform:rotate(360deg)}}
@media(max-width:480px){.sce-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:22px}.sce-header{padding:20px 18px 16px;gap:12px}.sce-header h2{font-size:1.1rem}.sce-body{padding:18px}.sce-footer{padding:16px 18px 18px}.sce-actions button{padding:11px 12px;gap:7px}.sce-actions .sce-download{flex:1}.sce-preview img{max-height:42dvh}}
@media(prefers-reduced-motion:reduce){.card-download.is-exporting::after{animation:none}.sce-dialog::backdrop{backdrop-filter:none}.sce-actions button{transition:none}}
