
.poster-editor{padding:0;border:1px solid #ecd4df;border-radius:26px;width:min(1680px,calc(100vw - 32px));max-width:none;height:calc(100dvh - 32px);max-height:none;background:#fff9fc;color:#603b50;overflow:hidden;box-shadow:0 30px 100px #54304440}
.poster-editor::backdrop{background:#35233280;backdrop-filter:blur(7px)}
.poster-shell{display:grid;grid-template-rows:auto minmax(0,1fr) auto;height:100%;font-family:"Nyangee Profile Sans","Malgun Gothic",sans-serif}
.poster-header{padding:20px 26px;display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid #eedee6;background:#fff}
.poster-kicker{font-size:11px;font-weight:700;letter-spacing:.16em;color:#b1577f}.poster-header h2{font-size:24px;line-height:1.4;margin:3px 0}.poster-header p{font-size:13px;color:#937488;margin:0}.poster-header .icon-button{flex-shrink:0;display:grid;place-items:center;width:42px;height:42px}
.poster-workspace{display:grid;grid-template-columns:390px minmax(0,1fr);min-height:0}
.poster-controls{overflow:auto;overscroll-behavior:contain;padding:0 24px 28px;border-right:1px solid #eedee6;background:#fff}
.poster-tabs{position:sticky;top:0;z-index:2;display:flex;gap:4px;background:#fff;padding:17px 0 15px;border-bottom:1px solid #f1e4eb;margin-bottom:18px}
.poster-tabs button{flex:1;border:0;background:#f9f0f5;color:#937087;border-radius:12px;padding:11px 5px;font:inherit;font-size:12px;white-space:nowrap;cursor:pointer}
.poster-tabs button[aria-pressed=true]{background:#75425f;color:white;box-shadow:0 4px 12px #75425f20}
.poster-editor [hidden]{display:none!important}.poster-controls h3{font-size:16px;line-height:1.5;margin:24px 0 13px}.poster-controls section>h3:first-child{margin-top:0}
.poster-field{display:flex;flex-direction:column;gap:7px;margin:14px 0;font-size:13px;font-weight:700;min-width:0}.poster-field>span{display:flex;justify-content:space-between;align-items:center;gap:12px}.poster-field output{font-size:12px;font-variant-numeric:tabular-nums;color:#a4597e}
.poster-field input:not([type=range]):not([type=color]),.poster-field textarea,.poster-field select{box-sizing:border-box;width:100%;min-height:43px;border:1px solid #e8d7e1;background:#fffcfe;color:#603b50;border-radius:11px;padding:10px 12px;font:inherit;font-weight:400;outline-offset:3px}
.poster-field textarea{resize:vertical;line-height:1.65;min-height:82px}.poster-field input[type=range]{width:100%;accent-color:#b65988;height:22px}.poster-field input[type=color]{width:100%;height:42px;box-sizing:border-box;border:1px solid #ead9e3;background:#fff;border-radius:10px;padding:4px}
.poster-field input:disabled{opacity:.4}.poster-check{display:flex;align-items:center;gap:9px;font-size:13px;line-height:1.6;margin:13px 0;cursor:pointer}.poster-check input{width:17px;height:17px;accent-color:#a9547e;flex-shrink:0}
.poster-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.poster-help{font-size:12px;line-height:1.75;color:#987a8e;margin:8px 0 14px;overflow-wrap:anywhere}
.poster-upload{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:10px 12px;border:1px dashed #cba4b9;border-radius:13px;background:#fff7fb;font-size:13px;cursor:pointer;box-sizing:border-box}.poster-upload input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.poster-upload:focus-within{outline:2px solid #a84e7b;outline-offset:3px}
.poster-button-row{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}.poster-small-button{border:1px solid #e7d6e0;background:#fff;color:#805570;font:inherit;font-size:12px;line-height:1.4;border-radius:10px;padding:9px 12px;cursor:pointer;white-space:normal}.poster-small-button:hover{background:#fff1f8;border-color:#cba5ba}.poster-small-button:disabled{opacity:.4;cursor:default}
.poster-presets{padding:15px;border:1px solid #eadce4;border-radius:14px;margin-top:24px;background:#fcf8fb}.poster-presets summary{font-size:13px;cursor:pointer;font-weight:700;line-height:1.7}.poster-presets p{font-size:12px;line-height:1.75;color:#94798b}
.poster-day{border:1px solid #eedee7;border-radius:16px;padding:5px 15px 14px;margin:25px 0}.poster-day legend{padding:0 7px;font-size:14px;font-weight:700;color:#a84e7b}.poster-day .poster-field{margin:10px 0}
.poster-preview{min-width:0;min-height:0;display:flex;flex-direction:column;background:#f1eaf0}
.poster-preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 22px;flex-shrink:0}.poster-preview-toolbar>span{font-size:12px;font-weight:700;color:#92788b;font-variant-numeric:tabular-nums}.poster-preview-toolbar>div{display:flex;gap:6px}
.poster-preview-scroll{flex:1;min-height:0;overflow:auto;padding:26px;display:grid;align-items:center;overscroll-behavior:contain}
.poster-stage{position:relative;width:100%;margin:auto;box-shadow:0 16px 50px #68425f25;background:#fff;isolation:isolate}
.poster-stage canvas{display:block;width:100%;height:100%}
.poster-region{position:absolute;background:transparent!important;border:1px dashed #865b95!important;border-radius:4px!important;padding:0!important;min-height:0!important;min-width:0!important;box-shadow:none!important;cursor:move;touch-action:none;color:#fff;font:inherit;transition:none!important}
.poster-region.is-selected{border:2px solid #75425f!important;z-index:2}.poster-region.is-locked{cursor:default}
.poster-region-label{position:absolute;top:0;left:0;transform:translateY(-100%);font-size:10px;line-height:1.4;white-space:nowrap;background:#75425fe8;color:#fff;border-radius:5px 5px 0 0;padding:3px 7px;pointer-events:none}
.poster-region:not(.is-selected) .poster-region-label{opacity:.65}.poster-resize{display:none;position:absolute;right:-7px;bottom:-7px;width:14px;height:14px;box-sizing:border-box;border:3px solid #fff;border-radius:50%;background:#75425f;box-shadow:0 0 0 1px #75425f;cursor:nwse-resize}.poster-region.is-selected:not(.is-locked) .poster-resize{display:block}
.poster-warning{font-size:12px;line-height:1.6;color:#9d5e38;margin:10px 24px 17px;min-height:0}.poster-warning:empty{display:none}
.poster-footer{padding:15px 24px;display:flex;align-items:center;justify-content:flex-end;gap:12px;background:#fff;border-top:1px solid #eedee6}.poster-footer p{flex:1;font-size:12px;line-height:1.65;color:#927489;margin:0}.poster-footer p.error{color:#bd4063}.poster-footer .button{white-space:nowrap;font:inherit;font-size:14px;padding:12px 18px;border-radius:13px}.poster-footer .button:disabled{opacity:.5}
@media(min-width:1550px){.poster-workspace{grid-template-columns:420px minmax(0,1fr)}.poster-preview-scroll{padding:36px}}
@media(max-width:1000px){.poster-editor{width:calc(100vw - 16px);height:calc(100dvh - 16px);border-radius:18px}.poster-workspace{grid-template-columns:320px minmax(0,1fr)}.poster-controls{padding-left:16px;padding-right:16px}.poster-preview-scroll{padding:14px}.poster-header{padding:15px 20px}.poster-header h2{font-size:21px}.poster-footer{flex-wrap:wrap;padding:12px 18px}.poster-footer p{flex-basis:100%}}
@media(max-width:720px){.poster-workspace{display:flex;flex-direction:column;overflow:auto}.poster-preview{order:-1;flex:0 0 auto;min-height:0}.poster-preview-scroll{overflow:visible;flex:none;padding:18px}.poster-preview-toolbar{padding:10px 16px}.poster-controls{overflow:visible;border-right:0}.poster-stage{max-width:650px}.poster-tabs{position:static}.poster-header p{display:none}.poster-header h2{font-size:18px}.poster-footer{gap:6px}.poster-footer .button{font-size:12px;padding:10px}.poster-footer p{font-size:11px}.poster-region-label{font-size:8px;padding:2px 4px}}
@media(prefers-reduced-motion:reduce){.poster-editor *{scroll-behavior:auto!important}}

@supports(width:1cqh){@media(min-width:721px){.poster-preview-scroll{container-type:size}.poster-stage{width:min(100%,calc(100cqh * var(--poster-ratio,1.77778)))}}}

.poster-type-panel{border:1px solid #eedde7;background:#fff9fc;border-radius:16px;padding:4px 15px 14px;margin:16px 0}
.poster-font-sample{font-size:24px;line-height:1.6;padding:12px;background:white;border:1px solid #f0e4eb;border-radius:11px;overflow-wrap:anywhere;color:#9d426d}
.poster-center-line{position:absolute;pointer-events:none;z-index:3;opacity:.45;background:#856092}.poster-center-line.horizontal{top:50%;left:0;right:0;height:1px}.poster-center-line.vertical{left:50%;top:0;bottom:0;width:1px}
