@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+KR:wght@400;500;600;700&display=swap');
:root{--ink:#2f434f;--muted:#7b9bad;--line:#e1eaf0;--accent:#5c9cc2;--light:#ebf4fa;--panel:326px}*{box-sizing:border-box;scrollbar-width:thin;scrollbar-color:#bfd4e1 transparent}body{margin:0;background:#fff;color:var(--ink);font:12px 'DM Sans','Noto Sans KR',sans-serif}button,input,textarea,select{font:inherit;color:inherit}button{border:0;background:transparent;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px;transition:background .15s;border-radius:6px}button:hover{background:#e6f0f6}button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}button:disabled{opacity:.4;cursor:default}input,textarea,select{width:100%;min-width:0;border:1px solid #d5e3ec;border-radius:7px;background:#fff;padding:10px 11px;outline:none}input:focus,textarea:focus,select:focus{border-color:#87b6d1;box-shadow:0 0 0 3px #7fadc813}input[type=color]{padding:3px;width:38px;height:34px;cursor:pointer}input[type=color]::-webkit-color-swatch{border:0;border-radius:4px}input[type=color]::-webkit-color-swatch-wrapper{padding:0}input[type=range]{padding:0;accent-color:#7aaac6;height:6px;box-shadow:none;cursor:pointer}input[type=checkbox]{width:auto;accent-color:var(--accent)}textarea{resize:vertical;line-height:1.7;min-height:85px}svg{width:18px;height:18px;stroke-width:1.7;flex-shrink:0}i{display:inline-flex;font-style:normal}.topbar{height:70px;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 24px;gap:35px}.brand{color:#314c5b;text-decoration:none;display:flex;align-items:center;font-size:23px;font-weight:700;letter-spacing:-1px;white-space:nowrap}.brand-light{font-weight:400;margin-left:3px}.brand-mark{font:bold 34px Georgia,serif;color:#6aa0bf;margin-right:12px;position:relative}.brand-mark>span{position:absolute;right:-8px;top:-2px;font-size:16px;color:#91bcd5}.project-meta{display:flex;align-items:center;gap:13px;flex:1}.project-meta input{border:0;width:170px;font-weight:500;padding:6px 0}.project-meta>span{font-size:10px;color:#86a5b7}.project-meta>span::before{content:'✓';margin-right:5px}.header-actions{display:flex;align-items:center;gap:9px}.header-actions button{padding:10px 12px;font-size:11px}.primary{background:var(--accent);color:#fff}.primary:hover{background:#4788ae}.primary.small{padding:8px 13px}.app-shell{display:grid;grid-template-columns:var(--panel) minmax(0,1fr);height:calc(100dvh - 70px);min-height:560px}.editor-panel{border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0;background:#fff}.editor-nav{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:18px 18px 16px;border-bottom:1px solid var(--line)}.editor-nav button{height:43px;justify-content:flex-start;padding:0 10px;color:#7294a8;font-size:11px;border:1px solid #e9f1f6}.editor-nav button.active{background:var(--light);border-color:#d6e7f1;color:#5694b8;font-weight:600}.editor-nav svg{width:16px;height:16px}.step{color:#9cbccf;font-size:8px;font-weight:400;margin-right:1px}.panel-content{overflow:auto;flex:1;padding:24px 22px 30px}.panel-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.panel-title h1{font-size:17px;font-weight:600;margin:0;letter-spacing:-.5px}.eyebrow{font-size:8px;letter-spacing:1.4px;color:#9cb8c8}.panel-desc{font-size:10px;line-height:1.9;color:#82a2b5;margin:0 0 21px}.panel-section{border-top:1px solid var(--line);margin-top:23px;padding-top:20px}.panel-section h2{font-size:12px;font-weight:600;margin:0 0 15px}label{display:block;font-size:11px;color:#7092a6;margin:0 0 8px}.field{margin-bottom:16px}.field:last-child{margin-bottom:0}.field-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:11px}.field-head label{margin:0}.field-head output{font-size:10px;color:#7fa4ba}.field-note{font-size:10px;color:#8ca8b8;line-height:1.9;margin:9px 0}.segmented{display:flex;background:#f3f8fb;border:1px solid #deebf3;padding:3px;border-radius:8px;gap:4px;margin-bottom:9px}.segmented button{flex:1;font-size:11px;min-height:32px;color:#7ea5bb}.segmented button.selected{background:white;box-shadow:0 1px 4px #35648014;color:#5592b6}.size-label{font-size:9px;color:#90afc0;margin:9px 0 0}.color-row{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:16px}.color-row label{margin:0}.color-value{display:flex;align-items:center;gap:8px;font-size:10px;color:#80a2b5}.pattern-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin-bottom:17px}.pattern-grid button{padding:8px 2px 6px;flex-direction:column;border:1px solid #dfecf3;gap:6px;font-size:9px;color:#80a5ba}.pattern-grid button.selected{border-color:#85b6d2;background:#f0f8fc;color:#5a95b7}.pattern-swatch{display:block;height:29px;width:29px;border-radius:5px;background:#e3eff6;border:1px solid #dcebf3}.swatch-none{background:#f8fbfd}.swatch-check{background-image:conic-gradient(#fff8 25%,transparent 0 50%,#fff8 0 75%,transparent 0);background-size:12px 12px}.swatch-dots{background-image:radial-gradient(#ffffff 2px,transparent 2px);background-size:9px 9px}.swatch-stars{display:grid;place-items:center;color:white;font-size:24px}.swatch-gradient{background:linear-gradient(135deg,#d9eaf4,#d6daf2)}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:11px}.upload-box{width:100%;padding:17px 10px;border:1px dashed #c3dae8;background:#fbfdfe;flex-direction:column;color:#6c9db9;line-height:1.8;font-size:11px}.upload-box small{font-size:9px;color:#8eb1c5}.asset-thumb{width:100%;height:90px;object-fit:contain;background:#f2f8fb;border-radius:7px;border:1px solid #e5eff5;margin-bottom:8px}.asset-actions{display:flex;gap:7px}.small-button{border:1px solid #d6e7f0;padding:8px 10px;color:#6a99b4;font-size:10px;flex:1}.full-button{width:100%;border:1px dashed #c1dae9;padding:12px 8px;margin-top:15px;font-size:11px;color:#659ab8}.switch-row{display:flex;align-items:center;justify-content:space-between;margin:16px 0 0;font-size:11px}.theme-swatches{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:17px}.theme-choice{display:flex;flex-direction:column;border:1px solid #e0edf4;padding:10px 4px 8px;gap:7px;font-size:9px;color:#7ea5bb}.theme-choice.selected{border-color:#80b3d1;background:#f4fafd}.theme-choice>span{width:30px;height:22px;border-radius:8px 8px 3px 8px;background:var(--accent)}.bubble-slot{border:1px solid #d9e8f0;border-radius:8px;margin:9px 0;background:#fff}.bubble-slot summary{padding:13px 11px;cursor:pointer;font-size:10px;color:#6994ad;display:flex;align-items:center;justify-content:space-between}.bubble-slot summary:after{content:'+';font-size:16px;color:#8db1c5}.bubble-slot[open] summary:after{content:'−'}.slot-status{font-size:8px;color:#92b4c8;margin-left:auto;margin-right:10px}.slot-body{padding:0 12px 13px}.patch-fields{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:10px 0}.patch-fields label{font-size:9px}.patch-fields input{padding:6px;font-size:10px}.profile-row{display:flex;gap:13px;align-items:center;margin:20px 0}.profile-upload{border:1px dashed #c1d8e6;width:56px;height:56px;border-radius:50%;background:#f3f9fc;color:#85afc8;flex-shrink:0;overflow:hidden}.profile-upload img{width:100%;height:100%;object-fit:cover}.profile-row .field{flex:1;margin:0}.profile-row input{padding:9px;font-size:11px}.profile-row label{font-size:10px}.profile-remove{font-size:9px;color:#8cb5cd;padding:0 0 8px}.message-list{display:flex;flex-direction:column;gap:10px}.message-card{border:1px solid #ddebf3;border-radius:9px;padding:13px;background:#fff}.message-card.selected{border-color:#92bfd9;background:#fafdfe}.message-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.message-head>span{font-size:9px;color:#80a9c0}.card-actions{display:flex;gap:4px}.card-actions button{padding:3px;color:#85adc4}.card-actions svg{width:12px;height:12px}.message-body{font-size:11px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 9px}.message-card .edit-button{font-size:9px;color:#659dbd;padding:3px 0}.message-editor label{font-size:10px;margin-top:12px}.message-editor textarea{font-size:11px;margin-top:0}.edit-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}.text-button{font-size:10px;padding:7px;color:#7da7c0}.danger{color:#7baac5!important}.motion-option{display:flex;align-items:center;gap:11px;padding:13px;border:1px solid #dce9f1;width:100%;text-align:left;justify-content:flex-start;margin:9px 0}.motion-option.selected{border-color:#8cb9d3;background:#f4fafd}.motion-option strong{font-size:11px;display:block;font-weight:500}.motion-option small{font-size:9px;color:#8aaec3;display:block;margin-top:4px}.duration-summary{display:flex;justify-content:space-between;padding:12px 0;font-size:10px;color:#89aec3}.panel-footer{height:44px;flex-shrink:0;border-top:1px solid var(--line);display:flex;align-items:center;gap:7px;padding:0 20px;color:#8dadc0;font-size:9px}.panel-footer button{margin-left:auto;color:#7faac3;padding:4px}.panel-footer svg{width:15px;height:15px}.save-dot{width:5px;height:5px;border-radius:50%;background:#a4b7a2}.workspace{min-width:0;min-height:0;display:flex;flex-direction:column;background:#f4f8fa}.preview-toolbar{height:55px;flex-shrink:0;padding:0 26px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:#fbfcfd}.preview-toolbar>div:first-child{display:flex;gap:14px;align-items:center}.preview-toolbar strong{font-size:11px;font-weight:500}.preview-toolbar span{font-size:9px;color:#83a3b6}.view-controls{display:flex;align-items:center;gap:8px}.view-controls button{padding:5px;font-size:15px;color:#7ea8c0}.view-controls button#fitPreview{font-size:9px;min-width:57px}.view-controls svg{width:15px;height:15px}.separator{height:15px;width:1px;background:#dae6ed;margin:0 3px}.preview-surface{flex:1;min-height:0;overflow:auto;display:flex;align-items:center;justify-content:center;padding:32px;background-image:radial-gradient(#cadce64a .7px,transparent .7px);background-size:16px 16px}#scene{display:block;flex-shrink:0;border:1px solid #dce7ed;box-shadow:0 7px 30px #39668015;border-radius:2px;cursor:pointer}.preview-footer{height:59px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 26px;border-top:1px solid var(--line);background:#fbfcfd}.preview-hint{display:flex;gap:6px;align-items:center;color:#90b2c5;font-size:9px}.preview-hint svg{width:13px;height:13px}.playback{display:flex;align-items:center;gap:12px}.playback button{padding:5px;color:#6e9eba}.playback svg{width:14px;height:14px}.play-button{background:#e2f0f8;width:31px;height:31px;border-radius:50%;color:#5796bb!important}.playback>span{font-size:10px;color:#729bb3;min-width:85px;font-variant-numeric:tabular-nums}.empty{font-size:11px;color:#80a9c0;line-height:1.9;text-align:center;padding:20px 5px}dialog{width:500px;max-width:calc(100% - 28px);padding:34px;border:1px solid #cfe2ed;border-radius:17px;box-shadow:0 25px 100px #233c4b33;text-align:center;color:var(--ink)}dialog::backdrop{background:#20374455;backdrop-filter:blur(4px)}dialog h2{font-size:20px;font-weight:600;letter-spacing:-.4px}dialog p{font-size:11px;color:#7ba2b8;line-height:1.9}.dialog-close{position:absolute;right:12px;top:9px;font-size:25px;color:#8cb0c5;width:30px;height:30px;border-radius:50%}.dialog-icon{margin:0 auto 18px;background:#e8f3fa;border-radius:14px;width:47px;height:47px;display:grid;place-items:center;color:#6ea7c8}.export-options{display:flex;gap:10px;margin:25px 0}.export-options button{flex:1;flex-direction:column;border:1px solid #d4e6f0;padding:23px 3px;border-radius:9px;color:#6aa0c0;gap:10px}.export-options strong{font-size:12px;font-weight:500}.export-options span{font-size:9px;color:#91b6cb}dialog small{font-size:10px;color:#8aadc2;line-height:1.9}progress{width:100%;accent-color:var(--accent)}#helpDialog{text-align:left}#helpDialog ol{padding-left:20px;line-height:1.8}#helpDialog li{margin:15px 0}#helpDialog li p{margin:5px 0 0}#helpDialog .help-note{font-size:10px;margin-bottom:0}#toast{position:fixed;left:50%;bottom:25px;transform:translate(-50%,10px);opacity:0;pointer-events:none;transition:.2s;padding:13px 20px;border-radius:9px;box-shadow:0 5px 20px #294d612a;background:#385a6d;color:#fff;font-size:11px;z-index:10;max-width:85%;line-height:1.7}#toast.visible{opacity:1;transform:translate(-50%,0)}[hidden]{display:none!important}@media(min-width:1700px){:root{--panel:350px}.panel-content{padding:28px}.preview-surface{padding:42px}.topbar{height:76px}.app-shell{height:calc(100dvh - 76px)}}@media(max-width:1050px){:root{--panel:295px}.topbar{gap:22px;padding:0 18px}.project-meta>span{display:none}.header-actions{gap:4px}.header-actions button{padding:10px}.preview-hint{font-size:8px}.preview-toolbar,.preview-footer{padding:0 18px}.panel-content{padding:22px 18px}}@media(max-width:700px){.topbar{height:60px;padding:0 13px;gap:10px}.brand{font-size:19px}.brand-mark{font-size:29px}.project-meta{display:none}.header-actions{margin-left:auto}.header-actions button{padding:8px;font-size:10px}.header-actions button:not(.primary)>span{display:none}.app-shell{height:auto;min-height:calc(100dvh - 60px);grid-template-columns:1fr;display:flex;flex-direction:column}.editor-panel{order:2;border-right:0;border-top:1px solid var(--line)}.workspace{order:1;height:620px;min-height:450px}.preview-toolbar{height:48px;padding:0 14px}.preview-toolbar>div:first-child{gap:9px}.preview-toolbar strong{font-size:10px}.preview-toolbar span{font-size:8px}.view-controls{gap:4px}.view-controls .separator{margin:0}.preview-surface{padding:20px}.preview-footer{height:53px;padding:0 14px;justify-content:center}.preview-hint{display:none}.editor-nav{grid-template-columns:repeat(4,1fr);padding:12px 13px;gap:6px;position:sticky;top:0;background:white;z-index:2}.editor-nav button{padding:0 6px;justify-content:center;font-size:10px;gap:5px}.editor-nav .step{display:none}.editor-nav svg{width:14px;height:14px}.panel-content{overflow:visible;padding:24px}.editor-panel .panel-footer{height:45px}.two-col{gap:12px}.pattern-grid{grid-template-columns:repeat(5,1fr)}.theme-swatches{grid-template-columns:repeat(3,1fr)}dialog{padding:28px 20px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.card-actions [data-move] svg{transform:rotate(90deg)}

.profile-upload{border-radius:13px}.status-time-field{margin-top:18px}

.first-section{margin-top:18px;padding-top:0;border-top:0}.bubble-style-field{margin-top:20px}.panel-section h3{font-size:12px;margin:22px 0 10px;color:#65899e}

/* Auto margins collapse at overflow, so both canvas edges remain reachable. */
.preview-viewport{position:relative;flex:1;min-height:0;min-width:0;overflow:hidden}
.preview-surface{height:100%;width:100%;align-items:flex-start;justify-content:flex-start;overscroll-behavior:contain}
.scene-wrap{position:relative;flex:none;width:max-content;height:max-content;margin:auto}
.preview-floating{position:absolute;bottom:18px;left:18px;z-index:3;max-width:calc(100% - 36px);pointer-events:none;display:flex;flex-direction:column;align-items:flex-start;gap:9px}
.preview-fab-row{display:flex;gap:8px;flex-wrap:wrap}
.preview-fab{pointer-events:auto;background:#fff;border:1px solid #d9e5ec;box-shadow:0 3px 14px #2f434f12;padding:11px 15px;border-radius:22px;font-size:11px}
.preview-fab.active{color:#4788ae;background:#e7f3fa;border-color:#afd0e3}
.preview-edit-tools{pointer-events:auto;display:flex;align-items:center;flex-wrap:wrap;gap:8px;background:#fffefeee;border:1px solid #d9e5ec;padding:9px 12px;border-radius:12px;box-shadow:0 3px 14px #2f434f12;font-size:10px}
.preview-edit-tools span{color:#62879d}.preview-edit-tools button{padding:5px 8px;border:1px solid #dce9f0;background:white}.preview-edit-tools #finishPreviewEdit{background:#5c9cc2;color:white;border-color:#5c9cc2}
.sticker-selection{position:absolute;outline:1.5px solid #639ec0;pointer-events:none;z-index:2}
.sticker-selection button{pointer-events:auto;position:absolute;background:white;box-shadow:0 1px 5px #2f434f30;border:1px solid #639ec0;color:#4788ae;touch-action:none}
#removeSticker{top:-12px;right:-12px;width:24px;height:24px;border-radius:50%;font-size:19px;line-height:1}
#resizeSticker{right:-7px;bottom:-7px;width:14px;height:14px;border-radius:3px;cursor:nwse-resize}
input[type=range]{appearance:none;-webkit-appearance:none;border:0;border-radius:5px;background:linear-gradient(to right,#7aaac6 0 var(--range-fill,0%),#e9eff2 var(--range-fill,0%) 100%);height:6px}
input[type=range]::-webkit-slider-runnable-track{height:6px;border-radius:5px;background:transparent}
input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:15px;height:15px;border-radius:50%;margin-top:-4.5px;background:#7aaac6;border:0}
input[type=range]::-moz-range-track{height:6px;border:0;border-radius:5px;background:#e9eff2}
input[type=range]::-moz-range-progress{height:6px;border-radius:5px;background:#7aaac6}
input[type=range]::-moz-range-thumb{height:15px;width:15px;border-radius:50%;background:#7aaac6;border:0}
.swatch-dots{background-image:radial-gradient(#fff 1.6px,transparent 1.6px),radial-gradient(#fff 1.6px,transparent 1.6px);background-position:0 0,6px 6px;background-size:12px 12px}
.swatch-stars{font-size:0;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath fill='white' d='m6 1 1.5 3.5L11 5l-2.5 2.5.5 4L6 9.5 2.5 11l.5-3.5L.5 5l4-.5zM18 13l1.5 3.5 3.5.5-2.5 2.5.5 4-3-2-3.5 1.5.5-3.5-2.5-2.5 4-.5z'/%3E%3C/svg%3E");background-size:24px 24px}

.brand{display:flex;align-items:center}.swatch-hearts{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath fill='white' d='M6 10C-3 4 4-2 6 3c3-5 10 1 0 7Zm12 12c-9-6-2-12 0-7 3-5 10 1 0 7Z'/%3E%3C/svg%3E");background-size:24px 24px}.swatch-gradient{background:linear-gradient(135deg,#e5f5ff,#c6e7fa)}

.brand{flex:none}.brand .service-icon{width:45px;height:43px;stroke-width:initial}

.topbar{gap:12px}.project-meta{flex:0 1 auto;gap:10px;min-width:0}.project-meta input{min-width:40px;max-width:260px}.project-meta>span{white-space:nowrap}.header-actions{margin-left:auto}@media(max-width:1050px) and (min-width:701px){.project-meta>span{display:inline}.topbar{gap:12px}.project-meta input{max-width:180px}}

.brand .service-icon{display:block}.project-meta{flex:none}

.brand .service-icon{object-fit:contain}

.sticker-selection{transform-origin:center}#rotateSticker{left:calc(50% - 13px);top:-42px;width:26px;height:26px;border-radius:50%;font-size:19px;cursor:grab}#rotateSticker:active{cursor:grabbing}#rotateSticker:after{content:"";position:absolute;left:11px;top:25px;height:15px;border-left:1px solid #639ec0;pointer-events:none}

.message-section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.message-section-heading h2{margin:0}.message-section-heading button{white-space:nowrap}
