/* Shared export workspace for the workshop and detailed editor. */
.export-dialog { width:min(1480px,calc(100vw - 32px)); height:min(920px,calc(100dvh - 32px)); max-height:calc(100dvh - 32px); overflow:hidden; padding:0; border:1px solid #e5e5e5; border-radius:18px; background:#fff; color:#171717; box-shadow:0 24px 70px #0003; font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif; }
.export-dialog::backdrop { background:#17171799; }
.export-dialog-inner,.export-dialog:has(.export-dialog-options:not([hidden])) .export-dialog-inner { position:relative; display:flex; flex-direction:column; min-height:0; height:100%; max-height:none; padding:0; }
.export-header { position:relative; display:block; flex:none; padding:20px 26px 16px; border-bottom:1px solid #e5e5e5; }
.export-header h2 { margin:0; font-size:22px; line-height:29px; }
.export-header p { margin:5px 0 0; color:#737373; font-size:12px; line-height:17px; }
.export-header #closeExport { position:absolute; top:17px; right:22px; width:30px; height:30px; padding:0; border:0; background:transparent; color:#737373; font-size:20px; opacity:1; cursor:pointer; }
.export-body { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(360px,.88fr); flex:1; min-height:0; overflow:hidden; padding:0; }
.export-preview { display:flex; flex-direction:column; min-width:0; min-height:0; padding:18px; background:#edf0f4; }
.export-preview-heading { display:flex; align-items:baseline; justify-content:space-between; gap:12px; padding:0 4px 12px; color:#171717; font-size:12px; }
.export-preview-heading span { color:#737373; font-size:11px; }
.export-preview-stage { display:flex; align-items:center; justify-content:center; flex:1; min-width:0; min-height:0; overflow:hidden; border:1px solid #dce0e6; border-radius:10px; background:#e7ebf0; }
.export-preview-stage img { display:block; max-width:100%; max-height:100%; min-width:0; min-height:0; width:auto; height:auto; object-fit:contain; background:#fff; box-shadow:0 4px 18px #1717171c; }
.export-preview-stage img[hidden],.export-preview-stage p[hidden] { display:none; }
.export-preview-stage p { padding:16px; color:#737373; font-size:12px; text-align:center; }
.export-preview > p { margin:10px 4px 0; color:#737373; font-size:10px; }
.export-config { min-width:0; min-height:0; overflow-y:auto; padding:22px 24px; border-left:1px solid #e5e5e5; background:#fff; }
.export-config .export-format-heading { margin:0 0 13px; font-size:14px; }
.export-config .export-format-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.export-config .export-card { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:3px; min-height:64px; padding:8px 12px; border:1px solid #e5e5e5; border-radius:6px; background:#f5f5f5; color:#0a0a0a; text-align:left; box-shadow:none; cursor:pointer; }
.export-config .export-card strong { font-size:11px; line-height:15px; }
.export-config .export-card small { margin:0; color:#737373; font-size:10px; line-height:14px; }
.export-config .export-card:hover:not(:disabled),.export-config .export-card:focus-visible,.export-config .export-card.selected,.export-config .export-card.exporting { border:2px solid #a1a1a1; padding:7px 11px; background:#f5f5f5; box-shadow:none; }
.export-config .export-dialog-options { display:block; min-height:0; margin-top:18px; padding:14px; border:0; border-radius:8px; background:#f5f5f5; }
.export-config .export-dialog-options[hidden] { display:none; }
.export-config .export-dialog-options > strong { display:block; margin-bottom:13px; font-size:12px; }
.export-config .export-options { display:grid; grid-template-columns:1fr; gap:12px; min-width:0; margin:0; }
.export-config .export-toggle-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 8px; }
.export-config .export-toggle-grid label { display:flex; align-items:center; gap:5px; min-width:0; color:#0a0a0a; font-size:11px; cursor:pointer; }
.export-config .export-toggle-grid label[hidden] { display:none; }
.export-config .export-options input { accent-color:#171717; }
.export-config .export-detail { display:grid; gap:9px; padding-top:12px; border-top:1px solid #e5e5e5; font-size:11px; }
.export-config .export-detail[hidden] { display:none; }
.export-config .export-detail > label { display:flex; justify-content:space-between; min-width:0; }
.export-config .export-detail input[type=range] { width:100%; }
.export-color-choices,.export-watermark-styles,.export-shape-styles { display:flex; flex-wrap:wrap; gap:8px; }
.export-color-choices button { width:27px; height:27px; padding:4px; border:1px solid #b5b5b5; border-radius:50%; background:var(--choice); background-clip:content-box; }
.export-color-choices button[aria-pressed=true] { outline:2px solid #171717; outline-offset:2px; }
.export-color-choices input[type=color] { width:27px; height:27px; padding:2px; border:1px solid #b5b5b5; border-radius:50%; background:#fff; cursor:pointer; }
.export-watermark-styles button,.export-shape-styles button { min-width:70px; min-height:30px; border:1px solid #d5d5d5; border-radius:6px; background:#fff; color:#171717; }
.export-watermark-styles button[aria-pressed=true],.export-shape-styles button[aria-pressed=true] { border-color:#171717; background:#171717; color:#fff; }
#exportWatermarkText { width:100%; min-height:32px; padding:6px 9px; border:1px solid #d5d5d5; border-radius:6px; background:#fff; color:#171717; font:inherit; }
.export-config .export-option-help { margin:13px 0 0; color:#737373; font-size:11px; line-height:1.5; }
.export-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; flex:none; min-height:75px; padding:12px 24px; border-top:1px solid #e5e5e5; color:#737373; }
.export-footer-meta { display:grid; gap:4px; min-width:0; }
.export-footer .export-footer-meta span { padding:0; color:#404040; font-size:11px; }
.export-footer-meta small { display:block; overflow:hidden; max-width:65vw; color:#737373; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.export-footer > div:last-child { display:flex; flex:none; gap:12px; }
.export-footer button { min-height:40px; padding:0 12px; border:0; border-radius:8px; background:#f5f5f5; color:#171717; font-size:12px; font-weight:700; cursor:pointer; }
.export-footer .primary-export { background:#171717; color:#fafafa; }
.export-footer .primary-export:hover:not(:disabled) { background:#333; }
.export-message:not([hidden]) { position:absolute; z-index:5; top:50%; left:50%; display:block; width:min(620px,calc(100% - 50px)); min-height:170px; margin:0; padding:20px; border:1px solid #e5e5e5; border-radius:8px; background:#fff; color:#171717; box-shadow:0 16px 45px #1717172b; transform:translate(-50%,-50%); }
.export-message strong,.export-message span,.export-message small { display:block; }
.export-message strong { margin-bottom:10px; font-size:17px; }
.export-message span { font-size:12px; }
.export-message small { margin-top:10px; color:#737373; font-size:11px; }
@media(max-width:900px){
  .export-dialog { width:calc(100vw - 20px); height:calc(100dvh - 20px); max-height:calc(100dvh - 20px); }
  .export-body { grid-template-columns:1fr; grid-template-rows:minmax(200px,38%) minmax(0,1fr); }
  .export-preview { padding:12px; }
  .export-config { border-top:1px solid #e5e5e5; border-left:0; padding:16px; }
  .export-footer { gap:10px; padding:10px 16px; }
  .export-footer-meta small { max-width:40vw; }
}
