@font-face{font-family:AppleNeo;src:url('./AppleSDGothicNeo.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:AppleNeo;src:url('./AppleSDGothicNeoThin.woff2') format('woff2');font-weight:100;font-display:swap}
:root{font-family:AppleNeo,-apple-system,BlinkMacSystemFont,sans-serif;color:#30353b;background:#ededed;--blue:#85a2c1;--muted:#85898f;--line:#d8dadd}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,textarea,select{font:inherit}button{cursor:pointer;color:inherit}button:disabled{opacity:.4;cursor:not-allowed}button,input,textarea,select{outline-offset:4px}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #638bb5}button{border:1px solid var(--line);background:#f8f8f8;border-radius:9px;min-height:38px;padding:8px 12px;font-size:12px}button:hover:not(:disabled){filter:brightness(.97)}.editor-shell{display:grid;grid-template-columns:minmax(412px,45.32%) 1fr;min-height:100vh}.control-panel{zoom:1.03;min-width:0;padding:42px clamp(28px,5vw,78px) 36px;border-right:1px solid #ddd}.brand{padding-bottom:25px}.wordmark{font-size:25px;letter-spacing:3.8px;color:#333b44}.wordmark span{font-size:12px;color:var(--blue);margin-left:9px}.brand p{font-size:12px;color:var(--muted);margin:10px 0 0}.panel-card{padding:23px 0;border-top:1px solid var(--line)}.section-heading{display:flex;align-items:baseline;gap:14px;margin-bottom:16px}.section-heading>span{font-size:10px;color:#8ba0b7;letter-spacing:1px}.section-heading h2{font-size:16px;font-weight:400;margin:0;flex:1}.section-heading small{float:right;font-size:11px;color:var(--muted);padding-top:3px}.controls-stack{display:grid;gap:15px}.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.text-field{display:grid;gap:7px;font-size:12px;color:#757b82;min-width:0}input:not([type=range],[type=checkbox],[type=file]),textarea{width:100%;min-width:0;border:1px solid var(--line);border-radius:8px;background:#f8f8f8;color:#333b44;padding:10px 12px;font-size:13px}textarea{resize:vertical;min-height:72px;line-height:1.6}.upload-field{position:relative;display:flex;align-items:center;gap:13px;min-height:82px;border:1px dashed #b7c3d1;border-radius:12px;padding:16px;background:#f4f6f8;cursor:pointer}.upload-plus{display:grid;place-items:center;width:34px;height:34px;flex:none;background:var(--blue);border-radius:50%;color:white;font-size:22px}.upload-field>span:nth-child(2){display:grid;gap:6px;min-width:0}.upload-field strong{font-weight:400;font-size:13px}.upload-field small{font-size:10px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upload-field input{position:absolute;inset:0;width:100%;opacity:0;cursor:pointer}.upload-field:focus-within{outline:2px solid #638bb5;outline-offset:3px}.range-field{display:grid;gap:10px}.range-field>span{display:flex;justify-content:space-between;font-size:12px;color:#757b82}.range-field output{color:#8b9eb4;font-size:11px}input[type=range]{appearance:none;width:100%;height:3px;margin:7px 0;background:linear-gradient(to right,var(--blue) var(--range-progress,50%),#d3d7db var(--range-progress,50%));cursor:pointer;border-radius:4px}input[type=range]::-webkit-slider-thumb{appearance:none;width:13px;height:13px;border-radius:50%;background:var(--blue);border:3px solid #ededed;box-shadow:0 0 0 1px #b5c4d4}input[type=range]::-moz-range-thumb{width:9px;height:9px;border-radius:50%;background:var(--blue);border:3px solid #ededed}.field-label{display:block;font-size:12px;color:#757b82;margin-bottom:7px}.segmented{display:flex;padding:3px;background:#f8f8f8;border:1px solid var(--line);border-radius:9px}.segmented button{flex:1;border:0;min-height:30px;font-size:11px;padding:6px}.segmented .active{background:var(--blue);color:white}.switch-row{display:flex;gap:8px;align-items:center;justify-content:flex-start;font-size:12px;padding-top:18px;cursor:pointer;position:relative}.switch-row>span{white-space:nowrap}.switch-row input{position:absolute;opacity:0}.switch-row i{width:34px;height:20px;background:#c3c9ce;border-radius:12px;position:relative;flex:none}.switch-row i:after{content:'';position:absolute;left:3px;top:3px;width:14px;height:14px;border-radius:50%;background:white;transition:transform .2s}.switch-row input:checked+i{background:var(--blue)}.switch-row input:checked+i:after{transform:translateX(14px)}.switch-row input:focus-visible+i{outline:2px solid #638bb5;outline-offset:3px}.section-note,.fine-print{margin:0;font-size:11px;color:var(--muted);line-height:1.6}#messageEditors{display:grid;gap:10px}.message-editor{border:1px solid var(--line);border-radius:11px;padding:14px;background:#f2f2f2;display:grid;gap:11px}.message-head{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#8397ae;letter-spacing:.8px}.message-head button{border:0;background:transparent;min-height:24px;padding:2px 5px;color:#92979d;font-size:11px}.message-editor .text-field{font-size:11px}.message-editor input,.message-editor textarea{background:#fafafa}.add-button{border-style:dashed;color:#7d97b2;background:transparent}.save-actions{border-top:1px solid var(--line);padding-top:24px}.primary{background:var(--blue);color:white;border-color:var(--blue)}.dark{background:#414d5b;border-color:#414d5b;color:white}.save-actions>.two button{font-size:14px;min-height:59px}.save-actions button span{display:block;font-size:10px;opacity:.75;margin-top:4px}.export-options{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#8a9097;margin-top:14px;gap:8px}.export-options select{font-size:10px;border:0;background:transparent;color:#647387;max-width:120px}.privacy{font-size:10px;color:#979ba1;text-align:center;margin:23px 0 0}.preview-stage{position:sticky;top:0;height:100dvh;min-height:660px;background:#f5f5f5;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:78px 24px 24px;overflow:hidden}.preview-head{position:absolute;top:31px;left:34px;right:34px;display:flex;align-items:center;justify-content:space-between}.preview-head h1{font-size:13px;font-weight:400;margin:0}.preview-head>span{font-size:8px;letter-spacing:1.8px;color:#a0a7af}.live-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:#8ea9c3;vertical-align:middle;margin-left:7px}.phone-shell{width:min(322px,calc((100dvh - 195px)*9/19.5));flex:none;padding:6px;background:#151619;border:1px solid #3f4246;border-radius:41px;box-shadow:0 22px 55px #28344225,0 3px 6px #0002;position:relative}.phone-shell:before{content:'';position:absolute;left:-3px;top:120px;width:2px;height:47px;background:#252729;border-radius:2px}.phone-shell button{display:block;width:100%;padding:0;border:0;background:transparent;border-radius:35px;overflow:hidden;line-height:0}.phone-shell button:hover{filter:none}#previewCanvas{display:block;width:100%;height:auto;aspect-ratio:9/19.5;background:#222d3b}.play-button{margin-top:23px;background:transparent;border:0;font-size:12px;color:#6f8195;min-height:30px}.preview-note{font-size:10px;color:#a1a6ad;margin:3px 0 0}dialog{padding:0;border:1px solid #cdd2d8;border-radius:18px;background:#ededed;color:#30353b;width:min(450px,calc(100vw - 24px));max-height:calc(100dvh - 24px)}dialog::backdrop{background:#1d253a66;backdrop-filter:blur(6px)}.crop-card{padding:20px;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;gap:18px;height:min(850px,calc(100dvh - 28px))}.crop-header{display:flex;justify-content:space-between;align-items:center}.crop-header h2{font-size:17px;font-weight:400;margin:0}.crop-header p{font-size:10px;color:var(--muted);margin:7px 0 0}.crop-header button{font-size:23px;min-height:32px;padding:0 8px;border:0;background:none}.crop-workspace{display:grid;place-items:center;min-height:0;overflow:hidden;background:#d9dce1;border-radius:10px}#cropCanvas{display:block;touch-action:none;cursor:grab}#cropCanvas.dragging{cursor:grabbing}#toast{position:fixed;bottom:26px;left:50%;transform:translate(-50%,15px);background:#364351;color:white;padding:13px 20px;border-radius:12px;font-size:12px;box-shadow:0 8px 30px #0002;opacity:0;pointer-events:none;transition:.2s;z-index:10;max-width:90vw;width:max-content}#toast.show{opacity:1;transform:translate(-50%,0)}#exportStatus{padding-top:15px;font-size:12px;color:#647a92}#exportStatus:not([hidden]){display:grid;gap:10px}progress{width:100%;accent-color:var(--blue)}
@media(min-width:1600px){.control-panel{padding-left:calc((100vw * .44 - 460px)/2);padding-right:calc((100vw * .44 - 460px)/2)}}
@media(max-width:850px){.editor-shell{grid-template-columns:1fr}.preview-stage{position:relative;grid-row:1;height:auto;min-height:0;padding:75px 20px 24px;border-bottom:1px solid var(--line)}.phone-shell{width:240px}.preview-head{top:24px;left:24px;right:24px}.control-panel{width:calc(100% / 1.03);max-width:560px;margin:0 auto;padding:30px 25px;border:0}.brand{padding-bottom:22px}.preview-note{font-size:10px}.play-button{margin-top:16px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

[hidden]{display:none!important}
.preview-modes{width:230px;flex:none;margin:0 0 22px}
.composition-shell{width:min(100%,680px,calc(100dvh - 230px));aspect-ratio:1;box-shadow:0 18px 55px #28344220;flex:none}
.composition-shell button{display:block;width:100%;height:100%;padding:0;border:0;border-radius:0;line-height:0;background:transparent;overflow:hidden}
.composition-shell button:hover{filter:none}
#compositionCanvas{display:block;width:100%;height:auto;aspect-ratio:1}
.gradient-switch{padding-top:0}
.text-field select{min-width:0;width:100%;height:40px;border:1px solid var(--line);border-radius:8px;background:#f8f8f8;color:#333b44;padding:0 8px;font-size:11px}
input[type=color]{height:40px;padding:4px;cursor:pointer}
@media(max-width:850px){.composition-shell{width:min(100%,480px);max-width:none}.preview-modes{margin-bottom:18px}}
@media(min-width:851px){.phone-shell{width:min(322px,calc((100dvh - 245px)*9/19.5))}}
