.cover-format-dialog { box-sizing:border-box; width:min(560px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); padding:24px; margin:auto; overflow:auto; border:1px solid var(--border,#ded9e9); border-radius:18px; background:var(--card,#faf9fd); color:var(--ink,#302b45); box-shadow:0 20px 80px #18122635; }
.cover-format-dialog::backdrop { background:#201b3d80; }
.cover-format-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.cover-format-heading h2 { margin:0; font-family:inherit; font-weight:600; font-size:19px; line-height:1.5; }
.cover-format-dialog p { margin:10px 0 20px; color:var(--ink-light,#706a80); font-size:13px; line-height:1.8; }
.cover-format-fixed { display:flex; align-items:center; gap:9px; margin:0 0 16px; padding:10px 12px; border:1px solid var(--border,#ded9e9); border-radius:10px; color:var(--accent-dark,#685294); font-size:13px; }
.cover-format-icon { width:16px; height:22px; border:1.5px solid currentColor; border-radius:3px; color:var(--accent,#8470b7); flex:none; }
.cover-format-icon[data-aspect="portrait-3x4"] { width:17px; height:23px; }
.cover-crop-stage { display:flex; justify-content:center; align-items:center; padding:12px; border-radius:12px; background:color-mix(in srgb,var(--ink,#302b45) 6%,transparent); }
.cover-crop-canvas { display:block; width:auto; height:min(340px,40dvh); max-width:100%; box-shadow:0 0 0 1px var(--border,#ded9e9); touch-action:none; cursor:grab; background:#eeecf3; }
.cover-crop-canvas[data-aspect="portrait-3x4"] { aspect-ratio:3/4; }
.cover-crop-canvas:active { cursor:grabbing; }
.cover-crop-zoom { display:flex; align-items:center; gap:12px; margin:16px 0 8px; font-size:13px; }
.cover-crop-zoom input { flex:1; min-width:0; min-height:28px; width:auto; margin:0; padding:0; accent-color:var(--accent,#8470b7); }
.cover-crop-zoom output { min-width:36px; font-variant-numeric:tabular-nums; }
.cover-crop-tools { display:flex; align-items:center; gap:12px; justify-content:space-between; }
.cover-crop-status { font-size:12px; color:var(--ink-light,#706a80); }
.cover-format-dialog .cover-crop-reset { border:0; padding:4px 0; min-height:32px; color:var(--accent-dark,#685294); }
.cover-format-options strong { font-size:14px; font-weight:600; }
.cover-format-options small { font-size:12px; color:var(--ink-light,#706a80); }
.cover-format-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:22px; }
.cover-format-dialog button { min-height:42px; padding:8px 16px; border:1px solid var(--border,#ded9e9); border-radius:9px; background:transparent; color:inherit; font:inherit; font-size:13px; cursor:pointer; }
.cover-format-dialog .cover-format-close { min-width:40px; padding:4px; border:0; font-size:24px; }
.cover-format-dialog .cover-format-confirm { background:var(--accent,#8470b7); color:#fff; border-color:transparent; }
.cover-format-dialog button:disabled { opacity:.5; cursor:wait; }
.cover-format-dialog :focus-visible { outline:2px solid var(--accent,#8470b7); outline-offset:3px; }
/* The current cover format is 3:4, including previews of older saved images. */
.creator-page [data-workspace-layout="continuous"] .basics-identity .cover-preview { height:auto; aspect-ratio:3/4; }
.creator-page [data-workspace-layout="continuous"] .basics-identity .cover-preview img { width:100%; height:100%; max-height:none; object-fit:cover; }
@media(max-width:480px) { .cover-format-dialog { padding:18px; } }
