:root{font-family:Pretendard,Malgun Gothic,Apple SD Gothic Neo,system-ui,sans-serif;color:#211f1b;background:#f7f5ed;font-synthesis:none;color-scheme:light;--ink:#211f1b;--muted:#656158;--blue:#2947e8;--line:#e5e0d5;--white:#fffefa;--warm:#f7f5ed}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;overflow:hidden;font-size:17px}button,input,select,textarea{font:inherit}button{cursor:pointer;color:inherit}button:disabled{opacity:.47;cursor:default}button:focus-visible,textarea:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #5874ff;outline-offset:3px}a{color:var(--blue)}#app{height:100vh;height:100dvh;display:grid;grid-template-rows:72px minmax(0,1fr) auto;position:relative;isolation:isolate;background:radial-gradient(ellipse at 50% 46%,#fcfaf3,#f7f5ed 63%)}.topbar{display:flex;align-items:center;justify-content:space-between;padding:0 clamp(18px,3.25vw,54px);border-bottom:1px solid #ebe6db;background:#f9f7ef}.brand,.top-actions{display:flex;align-items:center;gap:12px}.brand{font-weight:800;letter-spacing:-.055em;font-size:23px}.brand-icon{height:35px;width:35px;border-radius:11px;display:grid;place-items:center;background:var(--blue);color:#fff;box-shadow:0 2px 5px #2947e825}.brand-icon svg{width:22px;height:22px}.top-actions{gap:9px}.button,.icon-button{height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;border:1px solid #dedbd2;border-radius:12px;background:var(--white);padding:0 14px;font-size:14px;font-weight:680;line-height:1.2;flex-shrink:0}.button:hover,.icon-button:hover{background:#eeebe2}.icon-button{width:44px;padding:0}.primary,.button.primary{background:var(--blue);border-color:var(--blue);color:#fff}.primary:hover,.button.primary:hover{background:#1c36c7}.button.active,.icon-button[aria-pressed=true]{background:#e8ecff;border-color:#bac5ff;color:#243acc}.top-actions .button,.top-actions .icon-button{background:transparent}.top-actions .button:hover,.top-actions .icon-button:hover{background:#eeebe2}.feed{min-height:0;overflow:auto;scrollbar-gutter:stable both-edges}.conversation{width:min(100%,1116px);min-height:100%;margin:0 auto;padding:24px 24px 28px;display:flex;flex-direction:column;gap:20px}.conversation.started{min-height:0;padding-top:26px}.home{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:23px;padding:0 0 35px;text-align:center}.home h1{font-size:clamp(32px,4.1vw,59px);letter-spacing:-.084em;font-weight:800;margin:0;line-height:1.19;word-break:keep-all}.home-graphic{width:130px;height:113px;position:relative;display:grid;place-items:center;margin-bottom:3px}.graphic-outline,.graphic-plate{position:absolute;width:78px;height:75px;border-radius:22px}.graphic-outline{display:block;border:1px solid #a7b4fd;background:#eeedff;transform:translate(-13px,8px) rotate(-15deg)}.graphic-plate{display:grid;place-items:center;color:#fff;background:linear-gradient(145deg,#5873ff,#304de8 52%,#273ed7);box-shadow:0 10px 24px #2947e83a,inset 0 1px 1px #fff7;transform:translate(9px,-4px) rotate(9deg)}.graphic-plate svg{transform:rotate(-9deg)}.home-graphic i{position:absolute;background:#f4b34c;right:8px;top:11px;width:11px;height:11px;border-radius:3px;transform:rotate(45deg)}.example{border-radius:999px;padding:0 17px;background:#fffdf7;border-color:#dfd9cb;color:#312b21;height:46px;font-size:15px;margin-top:5px;box-shadow:0 2px 4px #39301a06}.example svg{color:var(--blue)}.dock{width:min(calc(100% - 42px),960px);margin:0 auto;padding:0 0 23px;display:grid;gap:9px}.composer{background:var(--white);border:1px solid #e0dace;border-radius:23px;box-shadow:0 8px 30px #3d34240e,0 1px 3px #403a2b09}.composer:focus-within{border-color:#a7b5f7;box-shadow:0 8px 28px #253fc714}.composer-row{display:flex;align-items:flex-end;gap:12px;padding:11px}.composer textarea{border:0;flex:1;min-width:0;width:100%;outline:none!important;resize:none;padding:10px 3px 7px;line-height:26px;font-size:18px;color:var(--ink);background:transparent;scrollbar-width:thin}.composer textarea::placeholder{color:#77736c;opacity:1}.attach{background:#f3f0e7;border-color:#f3f0e7;border-radius:14px;color:#4f493d}.send{background:var(--blue);color:#fff;border-color:var(--blue);border-radius:14px}.send:hover{background:#213ac6}.send:disabled{background:#e8ebfc;border-color:#e8ebfc;color:#4f63bc;opacity:1}.attachments{padding:9px 11px 0;display:flex;gap:8px;align-items:center;overflow-x:auto;scrollbar-width:thin}.attachment-group{border:1px solid #eee9df;border-radius:12px;padding:4px 6px;display:flex;align-items:center;gap:6px;flex-shrink:0}.group-name{font-size:13px;font-weight:750;color:#514a41;padding:0 4px;white-space:nowrap}.attachment-card{position:relative}.thumbnail{display:grid;place-items:center;height:46px;width:48px;padding:0;border:1px solid #ddd8cc;border-radius:8px;background:#ebe7dc;overflow:hidden}.thumbnail img{width:100%;height:100%;object-fit:contain}.remove-file{position:absolute;z-index:1;top:0;right:0;display:grid;place-items:center;height:24px;width:24px;border:0;border-radius:8px;color:#fff;background:#2e2b25bb;padding:0}.remove-file svg{width:13px;height:13px}.check-dot{position:absolute;bottom:3px;left:3px;background:#f4bb54;width:7px;height:7px;border-radius:100%}.material-open{border:none;background:transparent;color:#4b4b5a;margin-left:auto;order:3}.material-open svg,.mini svg{order:2;width:15px}.suggestions{display:flex;gap:8px;flex-wrap:wrap}.suggestion{background:#fcfaf2;border-color:#e6e0d1;border-radius:999px;font-size:13px;color:#554b37}.user-note,.assistant-note{max-width:min(670px,92%);font-size:18px;line-height:1.57;border-radius:17px;white-space:pre-wrap;overflow-wrap:anywhere;padding:12px 17px}.user-note{align-self:flex-end;background:#e8ecff;color:#242a53;border-bottom-right-radius:5px}.assistant-note{align-self:flex-start;background:#fffcf4;border:1px solid var(--line);border-bottom-left-radius:5px}.preparation{display:flex;align-items:center;gap:12px;padding-block:3px}.job-card,.result-card{position:relative;width:100%;border-radius:22px;padding:18px;align-self:center}.job-card{background:#101b32;color:#edf2ff;box-shadow:0 7px 25px #0a14262a;border:1px solid #233655}.job-head,.job-tail,.job-label{display:flex;align-items:center;gap:10px}.job-head{justify-content:space-between;margin-bottom:9px}.job-label{font-weight:700;font-size:16px}.job-label svg{color:#a2b4ff}.job-cancel{height:44px;padding:0 14px;border:1px solid #35487a;border-radius:10px;background:#202e4d;color:#f0f2ff;font-size:14px}.terminal{height:152px;overflow:auto;background:#0c1426;border:1px solid #283750;border-radius:11px;scrollbar-width:thin;scrollbar-color:#4c5a82 #0c1426}.code-lines{margin:0;padding:7px 14px 7px 49px;font:13px/20px Cascadia Code,Consolas,monospace;color:#c7eddb;white-space:pre;min-width:max-content}.code-lines li::marker{color:#8292b6}.job-tail{margin-top:12px;min-height:26px}.job-tail progress{width:100%;height:8px;border:0;appearance:none;border-radius:9px;overflow:hidden;background:#293551}.job-tail progress::-webkit-progress-bar{background:#293551}.job-tail progress::-webkit-progress-value,.job-tail progress::-moz-progress-bar{background:#8299ff}.job-tail progress::-webkit-progress-value{background:#8299ff}.countdown{font-size:13px;color:#d7e0ff;min-width:105px;text-align:right;white-space:nowrap}.result-card{background:#fffdf8;border:1px solid #e4dfd4;box-shadow:0 7px 25px #2a21120c}.result-heading{display:flex;align-items:center;gap:11px;margin-bottom:13px}.result-heading h2{font-size:19px;letter-spacing:-.045em;margin:0 0 3px}.result-meta{font-size:12px;color:#6d665b;margin:0}.result-check{display:grid;place-items:center;width:36px;height:36px;background:#e9edff;color:#2947e8;border-radius:13px;flex:none}.clip{display:block;width:100%;max-height:min(40vh,max(170px,calc(100dvh - 490px)),465px);background:#16181b;border-radius:12px;cursor:pointer;object-fit:contain}.player-controls{display:flex;align-items:center;gap:8px;margin-top:5px}.player-controls .icon-button{border-color:transparent;background:transparent}.player-controls .icon-button:hover{background:#efedf0}.player-controls .icon-button[aria-pressed=true]{background:#e8ecff;color:#243acc}.seek{flex:1;min-width:35px}input[type=range]{accent-color:var(--blue);cursor:pointer}.play-time{color:var(--muted);font-size:12px;min-width:65px;text-align:right}.result-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:9px;padding-top:12px;border-top:1px solid #eee9df}.used-cuts,.result-buttons{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.used-cuts img{object-fit:contain;width:37px;height:34px;border:1px solid #e0dacd;border-radius:6px;background:#f0ece2}.mini{border:0;background:transparent;font-size:13px;color:#5b564d;padding:0 9px}.result-note{font-size:14px;color:#57544f;line-height:1.5;margin:5px 0}.dialog{border:1px solid #e0dcd0;box-shadow:0 26px 95px #211a1a45;border-radius:23px;background:#fffcf5;color:var(--ink);padding:0;max-width:min(920px,calc(100vw - 36px));max-height:calc(100dvh - 38px);overflow:auto;margin:auto}.dialog::backdrop{background:#1c1a28a5;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.dialog-head{background:#fffcf5;position:sticky;z-index:4;top:0;border-bottom:1px solid #eae4d7;display:flex;justify-content:space-between;gap:16px;align-items:center;padding:12px 17px}.dialog-head h2{font-size:20px;margin:0;letter-spacing:-.04em;word-break:keep-all}.dialog-body{padding:14px 16px;display:grid;gap:10px}.dialog-body p{margin:0 0 4px}.toolbar,.material-tabs{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.toolbar.end{justify-content:flex-end}.field{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:680;color:#565148;white-space:nowrap}.field input[type=number],.field select{min-height:44px;border:1px solid #dfd9cd;border-radius:10px;padding:0 8px;background:#fffefa;color:#262521;max-width:150px;font-size:14px}.field input[type=number]{width:70px}.slider{min-height:44px}.slider input{width:112px}.canvas-stage{margin:auto;position:relative;max-width:100%;line-height:0;touch-action:none;border-radius:9px;overflow:hidden;background:#e7e0d6}.canvas-stage canvas,.canvas-stage>img{display:block;max-width:100%;width:auto;height:auto;max-height:52vh;object-fit:contain}.canvas-stage canvas[role=button],.canvas-stage.adding,.mask-canvas,.scene-stage[data-mode=seat],.scene-stage[data-mode=brush],.scene-stage[data-mode=erase]{cursor:crosshair}.mask-canvas,.source-stage{background:repeating-conic-gradient(#eeece5 0 25%,#dedbd3 0 50%) 0 0/21px 21px}.cut-box{position:absolute;border:1.5px solid #fff8;box-shadow:inset 0 0 0 1px #212d5699;pointer-events:none}.cut-box.selected{border:2px solid #637dff;box-shadow:inset 0 0 0 1px #2947e8,0 0 0 1px #fff}.cut-number,.face-hit{border:0;border-radius:8px;height:32px;min-width:32px;font-size:13px;background:#2845e8;color:#fff;pointer-events:auto}.cut-box:not(.selected) .cut-number{background:#141e40d4}.source-stage.adding .cut-number,.source-stage.adding .cut-handle{pointer-events:none}.cut-handle{position:absolute;pointer-events:auto;display:block}.cut-handle.top,.cut-handle.bottom{left:22%;right:22%;height:14px;cursor:ns-resize}.cut-handle.left,.cut-handle.right{top:22%;bottom:22%;width:14px;cursor:ew-resize}.cut-handle.top{top:-7px}.cut-handle.bottom{bottom:-7px}.cut-handle.left{left:-7px}.cut-handle.right{right:-7px}.cut-list{display:flex;gap:6px;overflow-x:auto;padding:4px 1px;max-width:100%}.cut-chip{display:flex;align-items:center;justify-content:center;gap:4px;min-height:44px;min-width:52px;border:1px solid #dfd9cd;border-radius:8px;background:#fffefa;padding:3px 6px;font-size:12px}.cut-chip.active{border-color:#6077f7;background:#e8ecff}.cut-chip img{width:36px;height:38px;object-fit:contain}.cue{font-size:14px;color:#6b593e}.credit{font-size:13px;justify-self:end;padding:10px}.point-marker,.placement-marker{position:absolute;width:21px;height:21px;border:3px solid white;border-radius:100%;background:#2947e8;transform:translate(-50%,-50%);box-shadow:0 1px 5px #0006;pointer-events:none}.face-hit{position:absolute;border:2px solid white;transform:translate(-50%,-50%);height:44px;min-width:44px}.scene-stage{cursor:grab}.scale-handle{position:absolute;transform:translate(-50%,-50%);border-color:#798dff;background:#e8ecff;color:var(--blue);width:44px;height:44px;border-radius:13px;cursor:nesw-resize}.drop-layer{position:fixed;inset:8px;z-index:8;display:grid;place-items:center;pointer-events:none;background:#eef0fff2;outline:2px dashed #5b73f6;outline-offset:-7px;border-radius:32px}.drop-layer div{display:flex;align-items:center;gap:13px;font-size:26px;font-weight:730;color:#2239cb}.burst{position:absolute;inset:35px 15% auto 84%;pointer-events:none;z-index:1}.burst i{position:absolute;left:0;top:0;width:8px;height:11px;border-radius:2px;animation:burst .83s ease-out forwards}@keyframes burst{0%{opacity:1;transform:translate(0) rotate(0)}70%{opacity:1}to{opacity:0;transform:translate(var(--x),var(--y)) rotate(var(--r))}}@media(max-width:760px){#app{grid-template-rows:62px minmax(0,1fr) auto}.conversation{padding:15px 10px}.dock{width:calc(100% - 24px);padding-bottom:10px}.home{gap:14px;padding-bottom:8px}.home-graphic{transform:scale(.85)}.topbar{padding:0 13px}.result-card,.job-card{padding:10px}.dialog{max-width:calc(100vw - 16px)}.dialog-body{padding:9px}.clip{max-height:42vh}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;scroll-behavior:auto!important}}
