.book-cover.has-cover,.reader-cover-frame,.current-cover-frame,.cover-editor-canvas{position:relative;overflow:hidden;container-type:inline-size}
.cover-composition{position:absolute;inset:0;container-type:inline-size;pointer-events:none;z-index:1}
.cover-composition-shade{position:absolute;inset:0}
.cover-text-layer{position:absolute;display:block;width:84%;max-height:85%;transform:translate(-50%,-50%);line-height:1.13;overflow-wrap:anywhere;white-space:pre-line;text-shadow:0 2px 8px #000c;font-weight:700;letter-spacing:.01em}
.cover-text-layer:empty{display:none}
.cover-font-serif{font-family:Georgia,'Times New Roman',serif}
.cover-font-sans{font-family:Arial,Helvetica,sans-serif;font-weight:500}
.cover-font-bold{font-family:Arial,Helvetica,sans-serif;font-weight:800}
@font-face{font-family:GSLCrimson;src:url('fonts/CrimsonText-Regular.ttf') format('truetype');font-display:swap;font-weight:400}
@font-face{font-family:GSLAbril;src:url('fonts/AbrilFatface-Regular.ttf') format('truetype');font-display:swap;font-weight:400}
@font-face{font-family:GSLAnton;src:url('fonts/Anton-Regular.ttf') format('truetype');font-display:swap;font-weight:400}
@font-face{font-family:GSLBebas;src:url('fonts/BebasNeue-Regular.ttf') format('truetype');font-display:swap;font-weight:400}
@font-face{font-family:GSLLobster;src:url('fonts/Lobster-Regular.ttf') format('truetype');font-display:swap;font-weight:400}
@font-face{font-family:GSLPacifico;src:url('fonts/Pacifico-Regular.ttf') format('truetype');font-display:swap;font-weight:400}
.cover-font-crimson{font-family:GSLCrimson,serif;font-weight:400}
.cover-font-abril{font-family:GSLAbril,serif;font-weight:400}
.cover-font-anton{font-family:GSLAnton,sans-serif;font-weight:400}
.cover-font-bebas{font-family:GSLBebas,sans-serif;font-weight:400}
.cover-font-lobster{font-family:GSLLobster,cursive;font-weight:400;line-height:1.3}
.cover-font-pacifico{font-family:GSLPacifico,cursive;font-weight:400;line-height:1.3}
.cover-composition.is-editor{pointer-events:auto}
.cover-composition.is-editor .cover-text-layer{cursor:grab;touch-action:none;user-select:none;border:1px dashed transparent;border-radius:4px;padding:2px}
.cover-composition.is-editor .cover-text-layer:hover,.cover-composition.is-editor .cover-text-layer:focus-visible,.cover-composition.is-editor .cover-text-layer.is-selected{border-color:#d7c9ff;outline:2px solid #2a1a60;outline-offset:1px;background:#0708154d}
.cover-composition.is-editor .cover-text-layer.is-dragging{cursor:grabbing}
.cover-editor{margin:28px 0 38px;padding:22px;border:1px solid #62588b;border-radius:14px;background:#141a30}
.cover-editor h3{font-size:1.22rem;margin:0 0 7px}
.cover-editor>.tool-help{margin:0 0 20px}
.cover-editor-grid{display:grid;grid-template-columns:minmax(230px,340px) minmax(290px,1fr);gap:26px;align-items:start}
.cover-editor-stage{position:sticky;top:18px;min-width:0}
.cover-editor-canvas{width:100%;aspect-ratio:2/3;border:1px solid #71639f;border-radius:8px;box-shadow:0 18px 40px #0007;background:#0b1020}
.cover-editor-canvas>img{display:block;width:100%;height:100%;object-fit:cover}
.cover-editor-stage>.tool-help{font-size:.74rem;line-height:1.4}
.cover-editor-controls{display:grid;gap:18px;min-width:0}
.cover-editor-controls label{display:block;font-size:.78rem;font-weight:700;margin:8px 0 5px}
.cover-editor-controls input:not([type=range]),.cover-editor-controls select{width:100%;min-width:0}
.cover-editor-controls input[type=color]{height:41px;padding:4px;cursor:pointer}
.cover-editor-controls input[type=range]{width:100%;accent-color:#a18aff;cursor:pointer}
.cover-editor-controls output{color:#b7a4ff;font-variant-numeric:tabular-nums}
.cover-editor-global,.cover-text-controls{min-width:0;padding:14px;border:1px solid #39425f;border-radius:10px;background:#1b233c}
.cover-text-controls legend{font-size:.9rem;font-weight:800;color:#f5f0ff;padding:0 5px}
.cover-editor-control-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:end}
.cover-center-button{min-height:40px;width:100%}
.cover-editor form>.button{margin-top:22px}
@media(max-width:1040px){.cover-editor-grid{grid-template-columns:1fr}.cover-editor-stage{position:static;max-width:340px;margin:auto}.cover-editor-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.cover-editor-global{grid-column:1/-1}}
@media(max-width:650px){.cover-editor{padding:15px}.cover-editor-controls{grid-template-columns:1fr}.cover-editor-global{grid-column:auto}}
