.relive-header .relive-header-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end}
.relive-header #relive-export{display:flex;gap:6px;align-items:center;justify-content:center;min-height:42px;padding:9px 13px;border:1px solid #9aafa3;border-radius:24px;background:#244a3c;color:#fff;font-size:12px;white-space:nowrap;cursor:pointer}
#relive-export svg{width:17px;height:19px;flex:none}
.relive-header{grid-template-columns:48px minmax(0,1fr) auto!important;gap:8px!important}
.relive-header .page-title small{font-size:10px;letter-spacing:.12em}
/* Scope every rule: shared dialog styles also target forms, headings and controls. */
dialog.relive-export-dialog{box-sizing:border-box;width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:28px;border:1px solid #bac7b6;border-radius:24px;background:#f5f3eb;color:#294339;box-shadow:0 24px 100px #102b2540;font-family:system-ui,sans-serif;text-align:left}
.relive-export-dialog::backdrop{background:#102a2570;backdrop-filter:blur(7px)}
.relive-export-dialog form.export-heading{position:relative;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;width:100%;margin:0;padding:0;text-align:left}
.relive-export-dialog .export-heading>div{min-width:0;text-align:left}
.relive-export-dialog .export-heading small{display:block;font-size:10px;line-height:1.5;letter-spacing:.16em}
.relive-export-dialog .export-heading h2{padding:0;margin:8px 0 0;text-align:left;font-size:28px;line-height:1.2;letter-spacing:-.02em}
.relive-export-dialog .export-heading button.round{position:static;display:grid;place-items:center;flex:0 0 44px;box-sizing:border-box;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:0;border:1px solid #bac7b6;border-radius:50%;background:transparent;color:#294339;font:400 24px/1 system-ui;cursor:pointer}
.relive-export-dialog p.export-intro{margin:18px 0 0;text-align:left;font-size:13px;line-height:1.65;font-weight:400;letter-spacing:0;color:#5c7367}
.relive-export-dialog .export-options{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin:24px 0 0}
.relive-export-dialog .export-options label{display:grid;gap:8px;min-width:0;margin:0;text-align:left;font-size:13px!important;font-weight:500;line-height:1.4}
.relive-export-dialog .export-options span{display:block;margin:0;text-align:left}
.relive-export-dialog .export-options select{box-sizing:border-box;width:100%;height:48px;margin:0;padding:0 12px;text-align:left;border:1px solid #b6c3b3;border-radius:10px;background:#fffdf7;color:#294339;font:400 15px/1.4 system-ui}
.relive-export-dialog p.export-format{margin:18px 0 0;padding-top:16px;border-top:1px solid #d7ded1;text-align:left;font-size:12px;line-height:1.5;letter-spacing:.035em;font-weight:500}
.relive-export-dialog p.export-music{margin:6px 0 0;text-align:left;font-size:12px;line-height:1.6;font-weight:400;letter-spacing:0;color:#5c7367}
.relive-export-dialog p.export-status{margin:16px 0 0;text-align:left;font-size:13px;line-height:1.5;min-height:0;letter-spacing:0}
.relive-export-dialog .export-status:empty{display:none}
.relive-export-dialog canvas,.relive-export-dialog video{display:block;width:100%;max-height:40dvh;object-fit:contain;margin:20px auto 0;background:#ece9df;border-radius:10px}
.relive-export-dialog progress{display:block;width:100%;height:6px;margin-top:16px;accent-color:#244a3c}
.relive-export-dialog .export-actions{display:flex;flex-wrap:wrap;gap:10px;margin:24px 0 0}
.relive-export-dialog .export-actions button,.relive-export-dialog .export-actions a{box-sizing:border-box;flex:1 1 100%;display:flex;align-items:center;justify-content:center;min-height:48px;margin:0;border:1px solid #a6b8a9;border-radius:12px;padding:12px 16px;background:transparent;color:#294339;text-decoration:none;text-align:center;font:500 14px/1.5 system-ui;cursor:pointer}
.relive-export-dialog .export-actions .primary,.relive-export-dialog .export-actions .export-download{background:#244a3c!important;border-color:#244a3c;color:#fff!important}
.relive-export-dialog .export-actions :disabled{opacity:.5;cursor:default}
.relive-export-dialog [hidden]{display:none!important}
@media(max-width:480px){.relive-header .relive-header-actions{gap:6px}.relive-header #relive-export{font-size:10px;padding:8px 10px;min-height:38px}.relive-header .relive-header-actions .round{width:38px;height:38px;min-width:38px}.relive-header .page-title small{font-size:7px;letter-spacing:.05em}.relive-header .page-title{font-size:16px}dialog.relive-export-dialog{padding:24px}.relive-export-dialog .export-heading h2{font-size:25px}.relive-export-dialog .export-options{gap:12px}}
