:root{font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;color:#272638;background:#f7f7fa;font-synthesis:none;--purple:#7360ce;--muted:#90909e;--line:#e7e6ed;--surface:white}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,label.file-button{ -webkit-tap-highlight-color:transparent}button,.button,.file-button{border:1px solid var(--line);background:white;border-radius:8px;padding:9px 13px;cursor:pointer;color:inherit;text-decoration:none;font-size:12px;white-space:nowrap}button:hover,.button:hover{border-color:#b7acd9;background:#faf9ff}button:disabled{opacity:.42;cursor:not-allowed}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #bfb2ec;outline-offset:3px}.primary{background:var(--purple);color:white;border:1px solid var(--purple);border-radius:9px;padding:11px 19px;box-shadow:0 3px 7px #7060d422;font-weight:600;font-size:13px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.primary:hover{background:#6451bf;color:white}header{height:76px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 36px;gap:65px}.brand{display:flex;align-items:center;gap:10px;font-size:23px;font-weight:750;letter-spacing:1px}.brand-icon{display:inline-grid;place-items:center;width:34px;height:34px;background:var(--purple);border-radius:10px;color:white;font-size:26px}.brand-en{font-size:10px;letter-spacing:2px;color:#9a97a7;margin-left:3px;font-weight:600}nav{display:flex;height:100%;gap:30px;align-items:center}nav a{height:100%;display:flex;align-items:center;font-size:13px;color:#85818f;position:relative}nav .active{color:var(--purple);font-weight:600}nav .active:after{content:'';height:3px;position:absolute;bottom:0;width:100%;background:var(--purple)}.header-right{margin-left:auto;display:flex;align-items:center;gap:14px}.recognition-toggle{display:flex;align-items:center;gap:7px;font-size:11px;color:#655d70;cursor:pointer}.recognition-toggle input{accent-color:var(--purple)}.model-pill{border:1px solid var(--line);border-radius:20px;padding:7px 12px;font-size:11px;display:flex;align-items:center;gap:7px}.model-pill select{border:0;outline:0;background:transparent;color:#4d4657;font-size:11px;cursor:pointer}.model-pill i{width:6px;height:6px;border-radius:50%;background:#68ad80}.text-btn{background:transparent;border:0;font-size:12px;color:#81788f}.workspace-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:23px;gap:20px}.eyebrow{font-size:9px;color:#9a95a7;font-weight:600;letter-spacing:2px;margin-bottom:9px}.title-row{display:flex;align-items:center;gap:16px}#project-name{border:0;background:transparent;font-weight:650;font-size:24px;color:#292438;max-width:340px;width:300px;padding:0}.save-status{display:block;border:0;padding:6px 0 0;background:none;font-size:10px;color:#92929e}.save-status:before{content:'●';color:#7aac86;margin-right:5px;font-size:7px}.bad{color:#c25853}.bad:before{color:#c25853}.toolbar{display:flex;gap:8px;align-items:center}main{max-width:1640px;margin:auto;padding:30px 36px 48px;min-height:calc(100vh - 135px)}.notice{display:flex;justify-content:space-between;gap:20px;padding:11px 16px;background:#f0edf8;border:1px solid #e8e1f6;border-radius:8px;font-size:11px;color:#82709c}.notice small{font-size:10px}.notice.simulation{background:#fff7e9;color:#936e35;border-color:#f1e6d3}.step-strip{display:flex;gap:21px;align-items:center;padding:23px 0 19px;font-size:11px;color:#87838f}.step-strip b{font-size:10px;font-weight:500;color:var(--purple);border:1px solid #d9d1ef;border-radius:50%;padding:4px;margin-right:7px}.step-strip i{color:#c1bdc9;font-style:normal}.workspaces{display:grid;grid-template-columns:minmax(0,1fr) 30px minmax(0,1fr);align-items:center}.panel{background:white;border:1px solid #e3e1ea;border-radius:12px;overflow:hidden;box-shadow:0 4px 12px #25223b03}.panel-head{height:57px;display:flex;align-items:center;justify-content:space-between;padding:0 17px;border-bottom:1px solid var(--line);font-size:12px}.panel-head>div{display:flex;align-items:center;gap:8px}.panel-head small{color:#a19ba9;font-size:10px;margin-left:6px}.panel-head .file-button{font-size:10px;border:0;padding:8px;background:#f8f7fa}.dot{height:6px;width:6px;border-radius:50%}.main-dot{background:#7e70c6}.ref-dot{background:#86a994}#reference-count{font-size:10px;color:#a5a0ad}.canvas-wrap{position:relative;height:415px;background-color:#efeff3;background-image:radial-gradient(#d9d8e1 .7px,transparent .7px);background-size:14px 14px;overflow:hidden}.canvas-wrap canvas{display:block;touch-action:none;cursor:crosshair}.reference-content{display:grid;grid-template-columns:minmax(0,1fr) 74px}.filmstrip{border-left:1px solid var(--line);background:#fbfbfd;display:flex;align-items:center;flex-direction:column;gap:12px;padding:13px 8px;height:415px;overflow:auto}.thumb{width:54px;position:relative;border-radius:7px;border:2px solid transparent}.thumb.selected{border-color:var(--purple);box-shadow:0 0 0 3px #e8e3f8}.thumb>button:first-child{display:block;width:50px;height:58px;border:0;padding:0;overflow:hidden;border-radius:5px;position:relative}.thumb img{width:100%;height:100%;object-fit:cover}.thumb span{position:absolute;bottom:1px;left:2px;background:#25233377;color:white;border-radius:2px;font-size:8px;padding:1px 4px}.remove-ref{position:absolute;right:-5px;top:-5px;border:0;border-radius:50%;padding:0;background:#6c647c;color:white;width:15px;height:15px;font-size:11px;opacity:0}.thumb:hover .remove-ref,.remove-ref:focus{opacity:1}.add-ref{width:50px;min-height:47px;display:grid;place-items:center;font-size:20px;color:#a69cb7;border-style:dashed;padding:0;background:transparent}.file-button input{display:none}.empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none}.empty>*{pointer-events:auto}.empty[hidden]{display:none}.upload-glyph{width:58px;height:58px;background:white;border:1px solid var(--line);border-radius:15px;display:grid;place-items:center;font-size:28px;color:#b1a8c7;box-shadow:0 6px 14px #29213706}.empty h3{font-size:15px;font-weight:600;margin:20px 0 0}.empty p{font-size:11px;color:#93909d;margin:9px 0 23px}.empty small{font-size:9px;color:#aaa6b3;margin-top:13px}.panel-foot{height:45px;border-top:1px solid var(--line);padding:0 13px;display:flex;align-items:center;justify-content:space-between;gap:8px}.panel-foot span{color:#a6a0ae;font-size:9px}.panel-foot button{font-size:10px;border:0;padding:6px;background:#f6f4fb;color:#8775aa}.transfer-mark{text-align:center;color:#b6adc9;font-size:18px}.canvas-status{position:absolute;bottom:10px;left:10px;background:#292539bb;color:white;padding:5px 9px;border-radius:5px;font-size:10px;pointer-events:none}.canvas-status:empty{display:none}.selection-bar{padding:12px 2px;min-height:48px;display:flex;align-items:center;justify-content:space-between;color:#93869f;font-size:10px;gap:10px}.selection-bar>div{display:flex;gap:8px}.selection-bar button{padding:5px 10px;font-size:10px}.editing-bottom{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr);gap:23px;margin-top:5px}.operations,.requirements{background:white;border:1px solid var(--line);border-radius:10px;padding:19px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px}h2{font-size:13px;font-weight:650;margin:0}h2>span{margin-left:6px;color:#9988b2;background:#f3effb;border-radius:5px;padding:1px 6px;font-size:10px}.section-title small{font-size:9px;color:#b0a9b8}.empty-mappings{border:1px dashed #e4dfec;display:flex;align-items:center;justify-content:center;gap:16px;background:#fdfcff;border-radius:8px;min-height:105px;color:#aaa2b4}.empty-mappings>span{font-size:28px;font-weight:300}.empty-mappings b{font-size:11px;font-weight:500}.empty-mappings p{font-size:9px;color:#bcb6c3}.requirements h2 small{font-size:9px;color:#b7b0bf;font-weight:400;margin-left:8px}textarea{width:100%;height:95px;resize:vertical;border:1px solid var(--line);border-radius:7px;padding:11px;font-size:11px;background:#fcfbfe;line-height:1.9;margin-top:14px;color:#514659}textarea::placeholder{color:#b7b0c0}.requirements p{font-size:9px;line-height:1.7;color:#a9a1b3}.requirements details{font-size:10px;color:#8d839a}.mapping{display:flex;align-items:flex-start;gap:12px;padding:13px 0;border-bottom:1px solid #efecf3}.mapping:last-child{border:0}.mapping-number{width:26px;height:26px;background:var(--mapping);color:white;border:0;padding:0;border-radius:8px;font-size:11px}.mapping>img{width:39px;height:43px;object-fit:cover;border-radius:6px}.mapping-info{flex:1}.mapping-info b{display:block;font-size:11px;font-weight:600}.mapping-info b span{margin-left:8px;font-size:10px;font-weight:400;color:#98909e}.mapping-info small{font-size:9px;color:#a294b0}.mapping-info details{font-size:9px;margin-top:7px;color:#a196ae}.mapping-info label{display:block;margin-top:8px}.mapping-info input{border:1px solid var(--line);border-radius:5px;padding:6px;margin-left:8px;font-size:11px;width:150px}.inline-actions{display:flex;gap:6px;margin-top:8px}.inline-actions button{font-size:9px;padding:5px}.delete-mapping{padding:0;width:20px;height:20px;border:0;color:#b3a6be;font-size:16px}.page-heading{display:flex;align-items:center;justify-content:space-between;margin:20px 0 42px}.page-heading h1{font-size:28px;font-weight:600;letter-spacing:-.8px;margin:12px 0}.page-heading p{font-size:12px;color:#a099ab}.history-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}select{padding:9px;border:1px solid var(--line);border-radius:7px;font-size:12px;color:#80758b;background:white}.history-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}.history-card{border:1px solid var(--line);border-radius:11px;overflow:hidden;background:white;transition:transform .15s}.history-card:hover{transform:translateY(-3px);box-shadow:0 8px 20px #3026410c}.history-image{position:relative;aspect-ratio:4/3;background:#ebe9f0}.history-image>img{width:100%;height:100%;object-fit:contain}.status-badge{display:inline-block;font-size:10px;border-radius:5px;padding:5px 8px;background:#efebf7;color:#89779e}.history-image .status-badge{position:absolute;top:10px;left:10px;background:#fffd}.status-badge.succeeded{color:#408660;background:#e6f3e9}.status-badge.failed,.status-badge.save_failed{color:#b2635c;background:#fceeea}.history-image small{position:absolute;bottom:8px;left:8px;font-size:9px;background:#fffd;padding:4px 6px;border-radius:4px;color:#93849c}.card-info{padding:15px}.card-info h3{font-size:13px;margin:0 0 10px}.card-info p{display:flex;justify-content:space-between;font-size:9px;color:#a69cac}.empty-history{grid-column:1/-1;text-align:center;padding:70px;color:#9d94a7}.empty-history h3{font-weight:500}.empty-history p,.empty-history a{font-size:12px}.back{display:inline-block;color:#9d91ab;font-size:11px;margin:4px 0 22px}.detail-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px}.detail-heading h1{font-size:26px;font-weight:600;margin:12px 0}.detail-heading p{font-size:11px;color:#9d91aa}.detail-layout{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(280px,1fr);gap:26px}.result-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.result-heading>div{display:flex;gap:8px}.result-image{background:#eeecf3;border-radius:10px;padding:12px;min-height:360px;display:grid;place-items:center}.result-image>img{max-width:100%;max-height:650px;object-fit:contain;display:block}.detail-sidebar{border:1px solid var(--line);background:white;border-radius:10px;padding:22px;height:fit-content}.subtle,.detail-sidebar>p{font-size:11px;color:#a095ac;line-height:1.8}.snapshot-images{display:flex;gap:9px;flex-wrap:wrap;margin:20px 0}.snapshot-images img{width:60px;height:67px;object-fit:cover;border-radius:6px}.snapshot-mapping{display:flex;align-items:center;gap:8px;margin:12px 0;flex-wrap:wrap}.snapshot-mapping span{padding:4px 7px;color:white;font-size:10px;border-radius:5px}.snapshot-mapping b{font-size:11px;font-weight:500}.snapshot-mapping small{font-size:9px;color:#a49bab}.detail-sidebar h3{font-size:11px;margin-top:22px}dl{display:grid;grid-template-columns:95px 1fr;font-size:10px;line-height:2;color:#9c8eaa}dd{margin:0;color:#766682;overflow-wrap:anywhere}.detail-sidebar details{font-size:10px;color:#92859d}.detail-sidebar pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:10px;max-height:300px;overflow:auto;padding:8px;background:#f9f7fc}.detail-notice{font-size:11px;color:#94859f;padding:14px 0;line-height:1.8}.danger{color:#b27474;margin-top:25px}.result-choices{display:flex;gap:10px;margin-top:10px}.result-choices img{height:50px}.login{max-width:370px;margin:15vh auto;text-align:center;padding:20px}.login>.brand-icon{width:53px;height:53px;font-size:38px}.login h1{font-size:25px;margin-top:28px}.login>p{color:#9a8fa6;font-size:12px}.login form{margin:34px 0;text-align:left}.login label{font-size:11px;color:#8d8298;display:block}.login input{display:block;width:100%;margin:10px 0 17px;padding:13px;border:1px solid var(--line);border-radius:8px;font-size:12px}.login form button{width:100%}.login small{font-size:10px;color:#b1a7ba}#login-error{font-size:11px;color:#b96868}footer{max-width:1640px;margin:auto;padding:20px 36px;border-top:1px solid #edebf1;font-size:9px;color:#b7b0c0;display:flex;justify-content:space-between}#toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,20px);background:#342c43;color:white;padding:13px 22px;border-radius:9px;font-size:12px;max-width:80vw;opacity:0;pointer-events:none;transition:.2s;z-index:50}#toast.show{opacity:1;transform:translate(-50%,0)}#drag-proxy,#preview-drag-proxy{position:fixed;z-index:100000;pointer-events:none;border:2px solid #a491d4;border-radius:9px;padding:5px;background:white;box-shadow:0 12px 30px #30204030}#drag-proxy canvas,#preview-drag-proxy canvas{display:block;width:100px;height:80px;border-radius:5px;object-fit:cover}#drag-proxy small,#preview-drag-proxy small{display:block;font-size:9px;color:#8a77a1;margin-top:5px}dialog{border:0;border-radius:12px;padding:18px;max-width:94vw;max-height:94vh}dialog::backdrop{background:#1e1629c9}dialog img{display:block;max-width:88vw;max-height:80vh;object-fit:contain}dialog button{display:block;margin-left:auto;margin-bottom:10px}summary{cursor:pointer}#more{display:block;margin:24px auto}#more[hidden]{display:none}@media(min-width:1500px){.canvas-wrap,.filmstrip{height:490px}}@media(max-width:1050px){header{padding:0 22px;gap:30px}.brand-en{display:none}main{padding:25px 22px}.canvas-wrap,.filmstrip{height:350px}.panel-head small{display:none}.panel-foot span{display:none}.panel-foot{justify-content:flex-end}.title-row .text-btn{display:none}.notice{flex-direction:column;gap:5px}.history-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.section-title small{display:none}}@media(max-width:760px){header{height:64px;gap:20px}.brand{font-size:18px}nav{gap:15px}nav a{font-size:11px}.model-pill{display:none}.header-right{gap:0}.workspace-heading{align-items:flex-start;flex-direction:column}.toolbar{flex-wrap:wrap}.workspaces{grid-template-columns:1fr;gap:12px}.transfer-mark{display:none}.editing-bottom,.detail-layout{grid-template-columns:1fr}.canvas-wrap,.filmstrip{height:370px}.history-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.page-heading h1{font-size:22px}.page-heading,.detail-heading{align-items:flex-start;gap:18px;flex-direction:column}.step-strip{gap:8px;font-size:9px}.step-strip b{margin-right:3px}.selection-bar{align-items:flex-start;flex-direction:column}footer span{display:none}.result-heading{gap:12px;flex-direction:column;align-items:flex-start}}

#history-regions{margin-top:24px;padding:20px;background:white;border:1px solid var(--line);border-radius:16px;scroll-margin-top:24px}#history-regions canvas{display:block;max-width:100%;max-height:75vh;width:auto;height:auto;margin:16px auto 0;cursor:zoom-in}#history-regions[hidden],#history-regions canvas[hidden]{display:none}.history-card .history-image img{cursor:pointer}
.image-viewer.minimal-viewer[open]{display:block;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none}.minimal-viewer .viewer-head,.minimal-viewer .viewer-options,.minimal-viewer .viewer-gallery,.minimal-viewer .viewer-foot{display:none}.minimal-viewer .viewer-stage{position:absolute;inset:0;background:transparent}.minimal-viewer::backdrop{background:#16131a99}.magic-tools{position:absolute;z-index:3;left:50%;bottom:22px;transform:translateX(-50%);display:flex;align-items:center;gap:6px;padding:7px;border:1px solid #ffffff2e;border-radius:999px;background:#2d2934a8;box-shadow:0 8px 30px #0d091450;backdrop-filter:blur(14px)}.magic-tools button{width:42px;height:42px;padding:0;border:0;border-radius:50%;background:transparent;color:#fff;font-size:18px}.magic-tools button:hover{background:#ffffff1c}.magic-tools button[aria-pressed=true]{background:linear-gradient(135deg,#a855f7,#6d5dfc,#c026d3);box-shadow:0 0 18px #a855f799}.magic-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.magic-drawing{cursor:none}.magic-cursor{display:none;position:fixed;z-index:4;left:-7px;top:-7px;width:14px;height:14px;pointer-events:none}.magic-cursor.active.visible{display:block}.magic-cursor>span{position:absolute;inset:0;border:2px solid #a855f7;border-radius:50%;background:transparent;box-shadow:0 0 0 1px #fff9}.magic-cursor>span::before,.magic-cursor>span::after{content:"";position:absolute;background:#a855f7}.magic-cursor>span::before{left:5px;top:-4px;width:2px;height:18px}.magic-cursor>span::after{left:-4px;top:5px;width:18px;height:2px}.magic-cursor::after{content:none}@keyframes magic-flow{to{background-position:100% 100%}}@keyframes magic-spark{50%{transform:scale(.65) rotate(35deg);opacity:.55}}

.overlap-dialog{width:520px;padding:26px;color:var(--heading-color,#272638);box-shadow:0 18px 70px #1e162933}.overlap-dialog h2{font-size:19px;margin:0 0 18px}.overlap-dialog p{font-size:13px;line-height:1.8;color:#686074}.overlap-dialog .toolbar{justify-content:flex-end;margin-top:24px}.overlap-dialog button{margin:0}
.composer{position:relative}.composer-shell{position:relative;border:1px solid #ded9ed;border-radius:16px;background:#fff;box-shadow:0 8px 30px #33264a0d;overflow:visible}.composer-assets{height:64px;display:flex;align-items:center;gap:10px;padding:9px 13px;border-bottom:1px solid #eeeaf5;background:#faf9fd;border-radius:16px 16px 0 0}.composer-assets>small{font-size:10px;color:#958da2}.asset-stack-label{font-size:11px;font-weight:700;color:#70677b}.asset-stack{position:relative;display:flex;align-items:center;min-width:58px;height:44px}.asset-stack button{position:relative;width:44px;height:44px;padding:0;margin-left:-28px;border:2px solid white;border-radius:9px;transform:rotate(calc((var(--i) - 2) * 2deg));transition:margin .18s,transform .18s;box-shadow:0 3px 9px #281b3a33;overflow:hidden}.asset-stack button:first-child{margin-left:0}.asset-stack:hover button{margin-left:5px;transform:none}.asset-stack:hover button:first-child{margin-left:0}.asset-stack img{width:100%;height:100%;object-fit:cover}.composer-editor{min-height:190px;max-height:360px;overflow:auto;padding:18px 16px 24px;line-height:2.15;outline:0;white-space:pre-wrap;word-break:break-word}.composer-editor:empty:before{content:attr(data-placeholder);color:#aaa3b2}.composer-fragment{display:inline;box-decoration-break:clone;-webkit-box-decoration-break:clone}.composer-fragment.mapping{background:color-mix(in srgb,var(--mapping) 7%,transparent)}.composer-fragment.full-image{background:#eff6ff}.composer-token{display:inline-flex;vertical-align:middle;align-items:center;gap:6px;height:34px;margin:0 5px;padding:3px 8px 3px 4px;border:1px solid color-mix(in srgb,var(--mapping,#3b82f6) 45%,white);border-radius:9px;background:#f4f1ff;color:#514294}.composer-fragment.full-image .composer-token{border-color:#93c5fd;background:#eff6ff;color:#1d4ed8}.composer-token img{width:26px;height:26px;border-radius:6px;object-fit:cover}.composer-token i{font-style:normal;font-weight:700;padding-left:3px}.composer-text{min-width:1ch;border-bottom:1px dashed transparent}.composer-text:empty:before{content:attr(data-placeholder);color:#aaa3b2}.composer-fragment.just-inserted .composer-token{animation:composer-pop .7s ease}.composer-fragment.global{display:inline}.composer-toolbar{display:flex;align-items:center;gap:10px;padding:9px 12px;border-top:1px solid #eeeaf5}.composer-toolbar>span{font-size:10px;color:#958da2}.composer-toolbar button{color:#6555bb;background:#f5f2ff}.composer-empty{color:#8c8496;font-size:12px;text-align:center;padding:24px 8px}#mention-menu{position:absolute;left:12px;right:12px;bottom:54px;z-index:12;max-height:310px;overflow:auto;padding:10px;border:1px solid #ded9ed;border-radius:12px;background:white;box-shadow:0 14px 35px #2b214229}#mention-menu[hidden]{display:none}#mention-menu>b,#mention-menu>small{display:block;padding:7px;color:#80768d;font-size:11px}#mention-menu>button{width:100%;display:flex;gap:9px;align-items:center;margin:3px 0}#mention-menu img{width:34px;height:34px;border-radius:7px;object-fit:cover}@keyframes composer-pop{50%{transform:scale(1.06);box-shadow:0 0 0 5px #8b5cf622}}
.reference-scope{display:none!important}.composer-token{height:42px;border-width:2px}.composer-fragment.mapping .composer-token{background:#f4efff;color:#5b21b6;border-color:#c4b5fd}.composer-fragment.full-image .composer-token{background:#eaf4ff;color:#1d4ed8;border-color:#60a5fa}.token-image{position:relative;display:inline-flex;width:34px;height:32px;overflow:hidden;border-radius:7px}.composer-token .token-image img{width:34px;height:32px;border-radius:7px;object-fit:cover}.composer-fragment.mapping .token-image img{transform:scale(1.38)}.token-image em{position:absolute;inset:auto 0 0;padding:1px 2px;background:#201439c9;color:white;font:normal 7px/1.3 sans-serif;text-align:center}.composer-text{display:inline-block;min-width:108px;margin:0 8px 0 2px;padding:2px 7px;border-bottom:1px dashed #c8c0d4;line-height:1.5;color:#272638}.composer-text:empty:before{content:attr(data-placeholder);color:#aaa5b2;font-weight:400}.composer-fragment.full-image .composer-text:empty:before,.composer-fragment.mapping .composer-text:empty:before{color:#aaa5b2}.history-composer .composer-text:empty:before{color:#b4afbb}#mention-menu button span{display:flex;flex-direction:column;align-items:flex-start}#mention-menu button span small{font-size:9px;color:#938aa0}#mention-menu [data-add-whole] b{color:#2563eb}#mention-menu [data-insert-element] b{color:#7c3aed}
.bubble-layer{position:absolute;inset:0;pointer-events:none}.bubble-layer button{position:absolute;transform:translate(-50%,-50%);pointer-events:auto;width:28px;height:28px;padding:0;border:2px solid white;border-radius:50%;color:white;font-weight:700;box-shadow:0 3px 12px #21153666}.bubble-editor{position:fixed;z-index:1000;width:288px;padding:12px;border:1px solid #dcd5ea;border-radius:13px;background:white;box-shadow:0 18px 55px #24163444;display:grid;grid-template-columns:1fr auto;gap:8px}.bubble-editor b{grid-column:1/-1;font-size:12px}.bubble-editor textarea{min-height:74px;resize:none;border:1px solid #e8e3ef;border-radius:9px;padding:9px}.bubble-editor button{align-self:end;background:#7461cf;color:white;font-size:16px}.filmstrip .thumb{transition:transform .18s}
.bubble-layer button.has-requirement:after{content:'';position:absolute;right:-2px;top:-2px;width:8px;height:8px;border:2px solid white;border-radius:50%;background:#fbbf24}.history-requirement-bubbles{position:absolute;inset:0;z-index:5;pointer-events:none}.history-requirement-bubbles button{position:absolute;transform:translate(-50%,-50%);pointer-events:auto;width:29px;height:29px;padding:0;border:2px solid white;border-radius:50%;color:white;font-weight:700;box-shadow:0 3px 12px #21153666}.bubble-layer button.local-edit,.mapping-number.local-edit{border-radius:5px}.history-requirement-bubbles button i{position:absolute;right:-3px;top:-3px;width:8px;height:8px;border:2px solid white;border-radius:50%;background:#fbbf24}.history-requirement-popover{position:absolute;z-index:6;width:240px;padding:11px;border:1px solid #ddd5eb;border-radius:11px;background:white;box-shadow:0 12px 35px #20163044;color:#342d40}.history-requirement-popover b,.history-requirement-popover small{display:block;font-size:11px}.history-requirement-popover p{margin:7px 0;font-size:12px;line-height:1.55;white-space:pre-wrap}.history-requirement-popover small{color:#8b8492}
.bubble-layer button.transient-add{background:#84cc16;border-radius:5px;font-size:20px;line-height:1;box-shadow:0 0 0 4px #a3e63544,0 3px 12px #21153666}
.filmstrip.standard-strip{gap:6px;overflow-y:hidden;overflow-x:hidden}
.filmstrip.standard-strip .thumb{margin-top:0!important}
.filmstrip.standard-strip .thumb>button:first-child{width:52px;height:46px;border-radius:6px}
.filmstrip.standard-strip .add-ref{width:52px;height:32px;border-radius:6px;font-size:14px;padding:0;display:flex;align-items:center;justify-content:center}
.filmstrip.compact-strip{gap:6px;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:rgba(144,144,158,0.3) transparent}
.filmstrip.compact-strip::-webkit-scrollbar{width:4px}
.filmstrip.compact-strip::-webkit-scrollbar-thumb{background:rgba(144,144,158,0.3);border-radius:2px}
.filmstrip.compact-strip .thumb>button:first-child{width:50px;height:42px;border-radius:5px}
.filmstrip.compact-strip .add-ref{width:50px;height:30px;border-radius:5px}
.asset-hover-preview{position:fixed;z-index:99999;pointer-events:none;transition:opacity .18s cubic-bezier(0.16,1,0.3,1),transform .18s cubic-bezier(0.16,1,0.3,1)}
.hover-preview-card{position:relative;width:250px;background:rgba(20,18,26,0.95);border:1px solid rgba(255,255,255,0.15);border-radius:14px;box-shadow:0 16px 48px rgba(0,0,0,0.55),0 0 0 1px rgba(0,0,0,0.2);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);padding:8px;overflow:hidden}
.hover-preview-card img{width:100%;max-height:270px;object-fit:cover;border-radius:10px;display:block}
.hover-preview-badge{position:absolute;top:14px;left:14px;background:rgba(0,0,0,0.65);color:#fff;font-size:11px;font-weight:500;padding:4px 10px;border-radius:6px;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);border:1px solid rgba(255,255,255,0.2);letter-spacing:0.5px}.minimal-viewer.drag-fading,.minimal-viewer.drag-fading::backdrop{opacity:.12;transition:opacity .16s}.viewer-stage{cursor:grab}.minimal-viewer .magic-status{position:static;width:auto;height:auto;overflow:visible;clip-path:none;color:#f5f3ff;font-size:11px;padding:0 7px;white-space:nowrap}
.image-viewer{width:1160px;max-width:96vw;height:92vh;max-height:96vh;padding:0;background:#f7f7fa;color:#272638;overflow:hidden}.image-viewer[open]{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto auto}.image-viewer button{margin:0;display:inline-flex;align-items:center;justify-content:center}.image-viewer [hidden]{display:none!important}.viewer-head{height:auto;min-height:62px;padding:14px 20px;gap:12px;justify-content:space-between}.viewer-head strong{font-size:15px}.viewer-tools{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.viewer-tools output{font-size:12px;min-width:46px;text-align:center}.viewer-options{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:9px 20px;font-size:12px;color:#756e82}.viewer-options label{display:flex;align-items:center;gap:5px}.viewer-options input{accent-color:var(--purple)}.viewer-stage{position:relative;overflow:hidden;background:#e9e8ef;min-height:120px;touch-action:none;cursor:grab}.viewer-stage.panning{cursor:grabbing}.viewer-stage canvas{position:absolute;left:0;top:0;transform-origin:0 0;max-width:none;max-height:none}.viewer-loading{position:absolute;top:40%;width:100%;text-align:center;color:#756e82;font-size:13px}.viewer-gallery{display:flex;height:auto;gap:8px;padding:10px 18px;overflow-x:auto;border-top:1px solid var(--line)}.viewer-gallery button{flex-shrink:0}.viewer-gallery button[aria-pressed=true]{background:#eee9fb;border-color:var(--purple);color:var(--purple)}.viewer-foot{display:flex;justify-content:space-between;gap:10px;height:auto;padding:10px 20px;font-size:11px;color:#82778c}.viewer-foot a{color:var(--purple)}.view-regions-button{width:100%;margin:5px 0 18px;color:var(--purple);background:#f3effc}.snapshot-images img,.mapping>img,.result-image img,.history-image img{cursor:zoom-in}.panel-foot{gap:8px}.panel-foot>span{margin-right:auto}@media(max-width:760px){.viewer-head{align-items:flex-start;flex-direction:column;padding:10px 14px}.viewer-tools{gap:5px}.viewer-options,.viewer-foot{padding:8px 14px}.viewer-tools button{padding:7px 10px}}

/* History waiting preview + read-only unified prompt. */
.detail-layout .generation-waiting{position:absolute;inset:0;z-index:2;pointer-events:none;overflow:hidden}.detail-layout .generation-wait-region{position:absolute;inset:0;background:linear-gradient(115deg,transparent 12%,#8b5cf699 34%,#67e8f9aa 49%,#f0abfaaa 64%,transparent 86%);background-size:250% 250%;mix-blend-mode:screen;filter:saturate(1.3);-webkit-mask-image:var(--mask);mask-image:var(--mask);-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;animation:generation-dream 2.8s ease-in-out infinite;animation-delay:var(--delay,0s)}.detail-layout .generation-wait-region.whole-image{-webkit-mask-image:linear-gradient(#fff,#fff);mask-image:linear-gradient(#fff,#fff);opacity:.5}.detail-layout .generation-wait-status{position:relative;z-index:3;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:2px 9px;width:max-content;max-width:100%;margin:0 auto 12px;padding:10px 15px;border:1px solid #d9d2ef;border-radius:999px;background:#f1eef9;color:#3c3450;box-shadow:0 6px 20px #2016301f}.detail-layout .generation-wait-status>span{grid-row:1/3;width:9px;height:9px;border-radius:50%;background:#8b5cf6;box-shadow:0 0 0 0 #c4b5fd;animation:generation-pulse 1.6s ease-out infinite}.detail-layout .generation-wait-status b{font-size:12px}.detail-layout .generation-wait-status small{font-size:9px;color:#766b8e}.history-unified-prompt{margin-top:18px}.history-prompt-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}.history-prompt-heading h2{margin:0;font-size:15px}.history-prompt-heading>span{padding:3px 8px;border-radius:999px;background:#f0edfa;color:#6d5ac4;font-size:10px}.history-composer{pointer-events:none}.history-composer .composer-assets{height:auto;min-height:58px}.history-composer .composer-editor{min-height:92px;max-height:none;padding:13px 14px}.history-composer .composer-token i{display:none}.histor...
@media(prefers-reduced-motion:reduce){.detail-layout .generation-wait-region,.detail-layout .generation-wait-status>span{animation:none}}

/* Clipboard/file-drop targeting and transparent masked drag previews. */
.canvas-wrap.intake-active{outline:2px solid #c4b5fd;outline-offset:-2px}.canvas-wrap.file-drag-over{outline:3px solid #7360ce;outline-offset:-3px;background:#f5f1ff}#drag-proxy,#preview-drag-proxy{position:fixed;z-index:100000;pointer-events:none;padding:7px;border:1px solid #ffffff55;border-radius:11px;background-color:#2a2730;background-image:linear-gradient(45deg,#3b3742 25%,transparent 25%),linear-gradient(-45deg,#3b3742 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#3b3742 75%),linear-gradient(-45deg,transparent 75%,#3b3742 75%);background-size:12px 12px;background-position:0 0,0 6px,6px -6px,-6px 0;box-shadow:0 10px 28px #17121e66}#drag-proxy canvas,#preview-drag-proxy canvas{display:block;margin:auto;object-fit:contain}#drag-proxy small,#preview-drag-proxy small{display:block;margin-top:5px;padding:2px 5px;border-radius:5px;background:#211d27dd;color:white;text-align:center;font-size:10px}
.product-tour{position:fixed;inset:0;z-index:200000}.product-tour-shade{position:absolute;inset:0;background:#252b3ab8}.product-tour-spot{position:fixed;border:3px dashed #7565f5;border-radius:14px;box-shadow:0 0 0 9999px #252b3ab8,0 0 0 8px white;pointer-events:none;transition:left .18s,top .18s,width .18s,height .18s}.product-tour-card{position:fixed;width:min(390px,calc(100vw - 24px));padding:22px;border:1px solid #ded9ed;border-radius:16px;background:white;color:#272638;box-shadow:0 20px 65px #17121e66}.product-tour-card h2{margin:0 28px 9px 0;font-size:18px;color:#4f46e5}.product-tour-card p{margin:0 0 20px;color:#625b6d;font-size:13px;line-height:1.75}.product-tour-card footer{height:auto;padding:0;display:flex;align-items:center;justify-content:space-between;color:#777084}.product-tour-card footer div{display:flex;gap:8px}.product-tour-close{position:absolute;right:10px;top:9px;border:0;background:transparent;font-size:22px;padding:3px 8px}.product-tour-count{font-size:12px}@media(max-width:600px){.product-tour-card{padding:17px}.product-tour-card footer{align-items:flex-start;gap:10px;flex-direction:column}.product-tour-card footer div{width:100%;justify-content:flex-end}}

/* History-only comparison: annotations belong to the original layer. */
.detail-layout .result-image{position:relative;overflow:hidden}.detail-layout .history-original-layer{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#f7f7fa;pointer-events:none}.detail-layout .history-original-layer[hidden]{display:none}.detail-layout .history-original-layer img{width:100%;height:100%;object-fit:contain;max-width:100%;max-height:100%;margin:0}.detail-layout .history-original-layer canvas{width:auto;height:auto;max-width:100%;max-height:100%;margin:0;pointer-events:auto;cursor:zoom-in}.detail-layout .history-original-layer .history-requirement-bubbles{position:absolute;inset:0}.detail-layout #history-regions{margin:0 0 12px;padding:12px}.detail-layout #history-regions h2{font-size:14px;margin:0 0 6px}.detail-layout #history-regions p{margin:6px 0}.detail-layout .result-heading{flex-wrap:wrap;gap:8px}.detail-layout #comparison-slider{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:ew-resize;z-index:4;touch-action:pan-y}.detail-layout #comparison-slider[hidden],.detail-layout .comparison-divider[hidden]{display:none}.detail-layout .comparison-divider{position:absolute;top:0;bottom:0;width:3px;background:white;box-shadow:0 0 3px #272638;pointer-events:none;z-index:3}.detail-layout .comparison-divider:after{content:'↔';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:white;color:#272638;border-radius:50%;padding:8px;box-shadow:0 1px 5px #27263866}.detail-layout #slider-toggle[aria-pressed=true]{color:#7360ce;border-color:#7360ce}

/* Narrow layout fixes for comments 11 and 12. */
@media(min-width:981px){#page .editing-bottom{grid-template-columns:minmax(0,1fr) minmax(0,2fr)}}
#page .editing-bottom>*,.history-unified-prompt,.history-composer .composer-assets{min-width:0}
.detail-sidebar .snapshot-mapping.whole{display:grid;grid-template-columns:60px minmax(0,1fr);align-items:center}.detail-sidebar .snapshot-mapping.whole img{grid-row:1/3;width:60px;height:67px;max-width:60px;max-height:67px;object-fit:cover;border-radius:6px}.detail-sidebar .snapshot-mapping.whole b,.detail-sidebar .snapshot-mapping.whole small{min-width:0}
.history-composer .composer-assets{height:72px;min-height:72px;overflow:hidden;gap:10px}
.history-composer .asset-stack-label{flex:0 0 auto;white-space:nowrap}
.history-composer .history-asset-strip{display:flex;flex:1 1 auto;min-width:0;gap:8px;overflow-x:auto;overflow-y:hidden;align-items:center;height:54px}
.history-composer .history-asset-strip>span{display:block;flex:0 0 44px;width:44px;height:48px}
.history-composer .history-asset-strip>span>img{display:block;width:44px;height:48px;max-width:44px;max-height:48px;object-fit:cover;border-radius:7px}

/* Visible, compact header controls; no behavior changes. */
#app header .header-right{gap:10px;flex-wrap:wrap;align-items:center}
#app header #product-tour-start{background:#7360ce;color:#fff;border:1px solid #7360ce;border-radius:10px;padding:10px 14px;font-size:13px;font-weight:600;box-shadow:0 3px 9px #7360ce25}
#app header .recognition-toggle{display:flex;align-items:center;gap:8px;padding:9px 12px;min-height:38px;border:1px solid #ddd7ed;border-radius:10px;background:#fff;font-size:13px;color:#55476b;cursor:pointer}
#app header .recognition-toggle input{accent-color:#7360ce;width:17px;height:17px;margin:0}
#app header .recognition-toggle:has(input:checked){background:#f0ebff;border-color:#7360ce;color:#6243b8}
#app header .model-pill{padding:8px 12px;min-height:38px;border-radius:10px;background:#f6f3fc;border-color:#d8d0eb}
#app header .model-pill select{font-size:13px;font-weight:600;color:#55476b;cursor:pointer}
#app header #logout{font-size:12px;color:#80788a;padding:9px}
#app header #product-tour-start:focus-visible,#app header .recognition-toggle:focus-within,#app header .model-pill:focus-within{outline:2px solid #7360ce;outline-offset:3px}

/* Waiting overlays stay locked to the rendered original image. */
.detail-layout .generation-waiting{right:auto;bottom:auto;overflow:visible}
.detail-layout .generation-wait-effects,.detail-layout .generation-wait-markers{position:absolute;inset:0;overflow:hidden}
.detail-layout .generation-wait-markers{overflow:visible}
.detail-layout .generation-wait-marker{position:absolute;transform:translate(-50%,-50%);width:29px;height:29px;padding:0;border:2px solid white;border-radius:50%;color:white;font-weight:700;box-shadow:0 3px 12px #21153666;animation:generation-marker-float 2.6s ease-in-out infinite;animation-delay:var(--delay,0s)}
.detail-layout .generation-wait-marker i{position:absolute;right:-3px;top:-3px;width:8px;height:8px;border:2px solid white;border-radius:50%;background:#fbbf24}
@keyframes generation-dream{0%,100%{background-position:0 30%;opacity:.36;transform:none}50%{background-position:100% 70%;opacity:.82;transform:none}}
@keyframes generation-marker-float{0%,100%{transform:translate(-50%,-50%)}50%{transform:translate(-50%,calc(-50% - 4px))}}
@media(prefers-reduced-motion:reduce){.detail-layout .generation-wait-marker{animation:none}}

.history-composer .history-asset-strip img,.history-composer .composer-token img{pointer-events:auto;cursor:zoom-in}
