.poster-sizing{border:1px solid #dbe5d7;border-radius:12px;padding:14px;margin:18px 0}.poster-sizing legend{padding:0 6px;font-weight:600;font-size:13px}.poster-sizing #poster-swap{align-self:center;margin-top:6px}.poster-preview-toolbar{display:flex;align-items:center;gap:12px;margin:15px 0;font-size:12px;color:#687c6c}.poster-preview{margin:10px 0;padding:10px;border:1px solid #d5dfd0;background:#f0f3ec;border-radius:12px}.poster-preview img{display:block;max-width:100%;max-height:58vh;object-fit:contain;margin:auto;background:#fff}.poster-preview figcaption{font-size:11px;color:#677762;margin-top:9px;text-align:center}.poster-readability{font-size:13px;line-height:1.7;padding:12px;background:#edf4e8;border-radius:10px}.poster-warning{color:#9a4a31!important;background:#fcf1e7}.poster-sizing .poster-warning{padding:8px;border-radius:8px}.poster-sizing input[type=number]{width:100%;min-width:0}#poster-form .form-row>*{min-width:0}@media(max-width:560px){.poster-sizing{padding:10px}.poster-preview-toolbar{align-items:flex-start}.poster-preview img{max-height:50vh}}

.poster-preview-scroll{overflow:auto;max-height:58vh;overscroll-behavior:contain;border-radius:6px}.poster-preview.is-large img{max-width:none;max-height:none}.poster-preview figcaption button{font-size:12px;padding:4px 6px}#poster-root-label input{margin-bottom:5px}.service-selected-cover{margin:14px 0}.service-selected-cover summary{cursor:pointer;font-size:13px;padding:10px 0}
#modal:has(#poster-form),#modal:has(#service-cover-gallery),#modal:has(#service-new-form){width:min(900px,96vw);max-width:900px;overflow:hidden}#modal:has(#poster-form) #modal-body,#modal:has(#service-cover-gallery) #modal-body,#modal:has(#service-new-form) #modal-body{max-height:90dvh;overflow:auto;overscroll-behavior:contain}#poster-form{gap:10px!important}#poster-form .poster-sizing{margin:6px 0}#poster-form .design-picker{margin:8px 0}
.print-cover-art{width:100%;aspect-ratio:3/2;object-fit:cover}

/* Keep every export choice above the real preview; the drawing is already set. */
#poster-form .poster-settings{display:grid;grid-template-columns:minmax(230px,.85fr) minmax(0,1.3fr);gap:18px;align-items:start}
#poster-form .poster-sizing{padding:12px;min-width:0}
#poster-form .poster-sizing .form-row{gap:8px;margin:8px 0}
#poster-form .design-picker-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
#poster-form .design-choice-art{height:78px;aspect-ratio:auto}
#poster-form .design-choice-art>.design-poster-preview{height:100%;aspect-ratio:auto}
#poster-form .design-choice-info{padding:5px}
#poster-form .design-choice-info>strong{font-size:12px}
#poster-form .design-choice-info>small,#poster-form .design-picker-preview{display:none}
#poster-form .design-picker-hint{margin:5px 0 8px}
.poster-advanced{border:1px solid #dbe5d7;border-radius:10px;padding:0 12px}
.poster-advanced>summary{cursor:pointer;padding:11px 0;font-size:13px}
.poster-advanced>summary>span{float:right;color:#738371;font-size:12px;margin-left:12px}
.poster-advanced>.form-row{padding-bottom:12px}
#poster-form .poster-preview-toolbar{margin:4px 0;flex-wrap:wrap}
#poster-form .poster-preview-toolbar>#poster-enlarge{margin-left:auto}
#poster-form .poster-readability{margin:0}
@media(max-width:650px){#poster-form .poster-settings{grid-template-columns:1fr;gap:6px}#poster-form .design-choice-info>strong{font-size:11px}.poster-advanced>summary>span{float:none;display:block;margin:4px 0 0}}

.poster-ratio-advice{padding:10px 12px;margin-top:12px;border-radius:9px;background:#edf4e8;font-size:12px;line-height:1.65;color:#345943}.poster-ratio-advice>strong{display:block;font-size:13px}.poster-ratio-advice>p{margin:4px 0 8px}.poster-ratio-advice>button{font-size:12px;padding:7px 12px}

#poster-image-viewer>div{height:100%;display:flex;flex-direction:column;min-height:0}
#poster-image-viewer header{display:flex;align-items:center;gap:10px;padding:12px;flex-wrap:wrap;background:#fff;flex:none;margin:0}
#poster-image-viewer header strong{flex:1;min-width:120px}
#poster-image-viewer [data-stage]{flex:1;min-height:0;position:relative;overflow:hidden;touch-action:none;cursor:grab}
#poster-image-viewer img{position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;user-select:none;pointer-events:none;margin:0}
#poster-image-viewer>div>p{margin:0;padding:8px 12px;background:#fff;flex:none;font-size:13px}
#poster-image-viewer button{padding:8px 12px;border-radius:8px;border:1px solid #b8c6ba;background:#fff;font:inherit;cursor:pointer}
#poster-image-viewer button.primary{background:#194e3b;color:#fff}
#poster-image-viewer::backdrop{background:#001a14d9}
@media(max-width:600px){#poster-image-viewer header{gap:6px;padding:8px}#poster-image-viewer header strong{flex-basis:100%}#poster-image-viewer button{padding:7px 9px}#poster-image-viewer>div>p{font-size:12px;padding:6px 8px}}

/* Give export settings the full viewport, including on phones. */
#modal:has(#poster-form){position:fixed;inset:0;margin:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;box-sizing:border-box}
#modal:has(#poster-form) #modal-body{height:100%;max-height:100dvh;box-sizing:border-box;padding:24px 32px;overflow:auto}
#poster-form>.modal-actions{position:sticky;bottom:-24px;z-index:2;background:var(--paper,#fffdf7);padding:14px 0;margin-bottom:0;border-top:1px solid #dbe5d7}
@media(min-width:1100px){#poster-form .design-picker-grid{grid-template-columns:repeat(4,minmax(0,1fr))}#poster-form .design-choice-art{height:110px}}
@media(max-width:600px){#modal:has(#poster-form) #modal-body{padding:16px}#poster-form>.modal-actions{bottom:-16px}#poster-form>.modal-actions>button{flex:1;min-height:44px}}

.poster-root-results{display:flex;flex-direction:column;gap:6px;max-height:240px;overflow:auto;margin-bottom:12px}.poster-root-results[hidden]{display:none}.poster-root-results button{text-align:left;white-space:normal;overflow-wrap:anywhere}

.poster-print-notes{padding:14px 16px;margin:14px 0;background:#f0f4ed;border:1px solid #d9e3d4;border-radius:10px;font-size:13px;line-height:1.7}.poster-print-notes p{margin:6px 0}.poster-print-notes ul{padding-left:20px;margin:8px 0}.poster-print-notes li+li{margin-top:6px}
