/* Header actions and export dialog only; list/editor typography is unchanged. */
.queue-export-open[hidden],.queue-header-actions #planBadge[hidden] { display:none!important; }
.ui-language .app .queue-export-open { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:40px; padding:0 16px; font:600 14px var(--ds-font); white-space:nowrap; }
.queue-export-open svg,.qe-close svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.ui-language .app .queue-header-actions .ui-page-help>summary { box-sizing:border-box; width:40px; min-width:40px; height:40px; padding:0; border-radius:50%; }
.queue-header-actions .ui-page-help>summary span { display:none; }
.ui-language .app .queue-header-actions .ui-page-help>summary svg { display:block; width:20px; height:20px; }
dialog.marps-dialog.queue-export-dialog { width:min(700px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); }
.queue-export-dialog .marps-dialog-form { padding:28px; display:flex; flex-direction:column; box-sizing:border-box; height:min(780px,calc(100dvh - 32px)); }
.qe-heading { display:flex; align-items:flex-start; gap:16px; justify-content:space-between; flex:none; }
.qe-heading h2 { margin:0 0 6px; }
.qe-heading p { margin:0; color:var(--ds-ink-secondary,#626977); font-size:14px; }
.qe-close { flex:none; display:grid; place-items:center; width:36px; height:36px; border:1px solid var(--ds-line,#e6e9f1); border-radius:50%; background:#fff; color:var(--ds-ink-secondary,#626977); cursor:pointer; }
.qe-options { border:0; padding:0 8px 0 0; margin:24px -8px 0 0; min-width:0; min-height:0; overflow:auto; scrollbar-width:thin; }
.qe-options>section+section { margin-top:24px; }
.qe-options h3 { margin:0 0 12px; font-size:14px; font-weight:650; }
.qe-presets { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:12px; }
.qe-presets button { border:1px solid #e4e6eb; border-radius:999px; padding:7px 13px; background:#fff; font:inherit; font-size:13px; color:#626977; cursor:pointer; }
.qe-presets button[aria-pressed="true"] { background:var(--ds-accent-soft,#edf3fc); border-color:#ccdaf7; color:var(--ds-accent-strong,#2855b5); }
.qe-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; }
.qe-grid>label { display:flex; flex-direction:column; gap:6px; font-size:13px; color:#626977; min-width:0; }
.qe-grid :is(input,select) { box-sizing:border-box; min-width:0; width:100%; min-height:42px; border:1px solid #e1e4eb; border-radius:12px; padding:8px 10px; background:#fff; color:#191b22; font:inherit; font-size:14px; }
.qe-grid .ds-select { width:100%; min-width:0; }
.qe-grid .ds-select-trigger { box-sizing:border-box; display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; min-height:42px; padding:8px 10px; border:1px solid #e1e4eb; border-radius:12px; background:#fff; color:#191b22; font:inherit; font-size:14px; text-align:left; }
.qe-grid .ds-select-trigger-chevron { flex:none; width:16px; height:16px; }
.qe-section-head { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:12px; }
.qe-section-head h3 { margin:0; }
.qe-section-head [data-field-count] { font-size:12px; font-weight:400; margin-left:6px; color:#777e8a; }
.qe-select-all { border:0; padding:0; background:none; color:var(--ds-accent-strong,#2855b5); font:inherit; font-size:12px; cursor:pointer; }
.qe-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; padding:16px; border:1px solid #e6e9ef; border-radius:16px; background:#fafbfe; }
.qe-fields fieldset { min-width:0; margin:0; padding:0; border:0; }
.qe-fields legend { margin-bottom:10px; font-size:12px; font-weight:650; color:#626977; }
.qe-fields label { display:flex; align-items:flex-start; gap:8px; padding:5px 0; font-size:12px; line-height:1.45; cursor:pointer; }
.qe-fields input,.qe-formats input { width:15px; height:15px; flex:none; margin:1px 0 0; accent-color:var(--ds-accent,#3d6dda); }
.qe-note { color:#777e8a; font-size:12px; line-height:1.5; margin:10px 0 0; }
.qe-formats { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.qe-formats label { display:flex; gap:10px; padding:12px; border:1px solid #e1e4eb; border-radius:12px; cursor:pointer; }
.qe-formats label:has(input:checked) { border-color:#acc4f0; background:#f4f7fd; }
.qe-formats b,.qe-formats small { display:block; font-size:13px; }
.qe-formats small { margin-top:3px; font-size:11px; color:#777e8a; }
.qe-footer { display:flex; align-items:center; justify-content:space-between; gap:16px; padding-top:18px; margin-top:16px; border-top:1px solid #e6e9ef; flex:none; }
.qe-limit { color:#777e8a; font-size:12px; }
.queue-export-dialog .qe-download { min-height:44px; padding:10px 18px; border-radius:999px; border:0; background:#18181b; color:#fff; font:600 14px var(--ds-font); cursor:pointer; white-space:nowrap; }
.queue-export-dialog :disabled { opacity:.55; cursor:default; }
.qe-status { min-height:20px; margin:16px 0 0; font-size:13px; color:#626977; flex:none; }
.qe-status[data-state="error"] { color:#b42335; }
.qe-status[data-state="success"],.qe-ready { color:#2855b5; }
.qe-ready { display:block; font-size:13px; margin-top:8px; }
.qe-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
@media(max-width:760px) {
 .ui-language .app .queue-export-open { min-height:44px; padding-inline:12px; }
 .ui-language .app .queue-header-actions .ui-page-help>summary { width:44px; min-width:44px; height:44px; padding:0; }
}
@media(max-width:540px) {
 .queue-export-dialog .marps-dialog-form { padding:22px 18px; }
 .qe-fields { grid-template-columns:1fr; gap:16px; }
 .qe-fields label { min-height:26px; padding-block:5px; font-size:13px; }
 .qe-formats { grid-template-columns:1fr; }
 .qe-footer { align-items:stretch; flex-direction:column; gap:10px; }
 .qe-grid { gap:8px; }
 .qe-section-head { align-items:flex-start; }
}

@media(max-width:400px) {
 .qe-options>section.qe-grid { grid-template-columns:1fr; }
}
