*{box-sizing:border-box} :root{font-family:"Microsoft YaHei UI","PingFang SC",system-ui,sans-serif;color:#223a40;background:#edf3f4;font-synthesis:none;font-size:14px;--green:#075b51;--muted:#6b7e84;--line:#dbe5e7;--yellow:#f4d782}body{margin:0;min-width:360px}button,input,select{font:inherit}button{cursor:pointer;border:1px solid #d1dfe2;border-radius:7px;background:#fff;color:#294d55;padding:.5rem .9rem;line-height:1.3;transition:background .15s,border-color .15s}button:hover:not(:disabled){background:#eef7f4;border-color:#7fa99f}button:disabled{cursor:default;opacity:.43}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #8cc9bd;outline-offset:2px}button.primary{background:var(--green);border-color:var(--green);color:white;font-weight:600}button.primary:hover:not(:disabled){background:#137566}.topbar{height:82px;padding:14px 28px;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--line)}.brand{display:flex;gap:12px;align-items:center}.brand h1{font-size:22px;margin:0;font-weight:700;letter-spacing:.035em}.brand h1 span{font-size:11px;color:#4d7971;margin-left:8px;vertical-align:middle;border:1px solid #c5dcd5;border-radius:4px;padding:3px 5px;letter-spacing:.08em}.brand p{font-size:11px;color:#7b9296;letter-spacing:.1em;margin:4px 0 0}.header-actions{display:flex;align-items:center;gap:8px}.local-badge{font-size:12px;color:#527b70;background:#eff7f3;border-radius:20px;padding:6px 12px;margin-right:9px}.icon-button{border-radius:50%;width:30px;height:30px;padding:0}.mode-nav{display:flex;align-items:center;gap:5px;padding:13px 24px 0;background:#fff;border-bottom:1px solid var(--line);min-height:58px}.mode-nav button{border:0;border-radius:7px 7px 0 0;background:transparent;color:#647d82;padding:12px 19px;position:relative;display:flex;gap:9px;align-items:center;font-size:17px}.mode-nav button span{font-size:14px}.mode-nav button.active{color:var(--green);background:#edf6f3;font-weight:700}.mode-nav button.active:after{content:"";position:absolute;bottom:-1px;height:3px;background:var(--green);left:16px;right:16px;border-radius:3px}.nav-note{margin-left:auto;color:#8a9ba0;font-size:12px;padding:0 8px 12px}.workspace{display:grid;grid-template-columns:320px minmax(0,1fr);gap:18px;padding:20px 24px;height:calc(100dvh - 178px);min-height:650px}.parameters,.stage{border:1px solid var(--line);border-radius:12px;background:#fff;min-height:0;overflow:hidden}.parameters{overflow:auto;position:relative;scrollbar-width:thin}.panel-heading{display:flex;align-items:center;justify-content:space-between;padding:19px 20px 14px}.panel-heading h2{font-size:16px;margin:0}.small-tag{font-size:11px;letter-spacing:.04em;color:#7c9296}.form-section{padding:16px 20px;border-top:1px solid #edf1f2}.form-section:first-child{border:0;padding-top:4px}.form-section h3{font-size:13px;margin:0 0 12px;font-weight:700;color:#3b615f}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px}.field{display:flex;flex-direction:column;gap:6px;min-width:0;color:#536b70;font-size:12px}.field.wide{grid-column:1/-1}.field input,.field select{min-width:0;width:100%;height:34px;background:#fbfcfd;border:1px solid #cadadd;border-radius:5px;color:#233d43;padding:5px 9px;font-variant-numeric:tabular-nums}.field input:disabled,.field select:disabled{background:#f0f3f3;color:#92a0a2}.check{display:flex;align-items:center;gap:7px;color:#49656b;font-size:12px;line-height:1.5}.check input{accent-color:var(--green);width:14px;height:14px;margin:0;flex-shrink:0}.check-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px}.hint{font-size:12px;color:#7a8b91;line-height:1.65;margin:10px 0 0}.warning{color:#aa650e;background:#fff9ed;border:1px solid #f3e0bb;border-radius:6px;padding:8px 10px;font-size:12px;line-height:1.6}.button-row{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.button-row button{font-size:12px}.generate-bar{position:sticky;bottom:0;padding:16px 20px;background:#fff;border-top:1px solid var(--line);display:flex;gap:8px}.generate-bar .primary{flex:1;background:var(--yellow);border-color:#ebc55e;color:#4f431d}.form-section summary{cursor:pointer;font-size:13px;font-weight:700;color:#3b615f;list-style-position:inside}.form-section summary span{float:right;font-size:11px;font-weight:400;color:#8b999b}.form-section details[open] summary{margin-bottom:16px}.recipe-tools .button-row>*{flex:1}.stage{display:flex;flex-direction:column;padding:0;min-width:0}.preview-heading{display:flex;align-items:center;justify-content:space-between;padding:20px 22px 16px}.eyebrow{font-size:10px;color:#8ca29f;letter-spacing:.15em}.preview-heading h2{font-size:18px;margin:3px 0 0}.preview-toolbar{padding:10px 18px;border-top:1px solid #edf1f2;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:8px;align-items:center}.segmented{display:flex;background:#edf2f3;border-radius:6px;padding:3px}.segmented button{font-size:12px;border:0;background:transparent;padding:5px 12px;color:#6b8185}.segmented button.active{background:#fff;box-shadow:0 1px 3px #253e4b14;color:#1a6359}.preview-toolbar .button-row button{padding:4px 9px}#zoomValue{font-size:11px;min-width:45px;text-align:center;color:#6f8487}.preview-viewport{position:relative;min-height:200px;flex:1;overflow:hidden;background-color:#f3f6f7;background-image:radial-gradient(#cbdadd .7px,transparent .7px);background-size:16px 16px;touch-action:none;cursor:grab}.preview-viewport:active{cursor:grabbing}.preview-viewport canvas{position:absolute;inset:0;width:100%;height:100%;image-rendering:pixelated}.empty-state{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#758e92;text-align:center;padding:20px}.empty-mark{width:78px;height:78px;border-radius:20px;background:#e6efed;display:grid;place-items:center;color:#6c9b8f;font-size:44px}.empty-state h3{font-size:18px;color:#415f65;font-weight:500;margin:18px 0 4px}.empty-state p{font-size:13px;line-height:1.8}.subtle-primary{font-size:12px;color:#196658;border-color:#bed8d0;background:#f4f9f6}.pixel-inspector{font-size:11px;color:#7d9195;padding:8px 20px;border-top:1px solid var(--line);font-variant-numeric:tabular-nums;min-height:30px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:15px 22px;background:#fcfdfd;border-top:1px solid var(--line);gap:18px}.metrics>div{min-width:0;display:flex;flex-direction:column;gap:6px;border-right:1px solid var(--line)}.metrics>div:last-child{border:0}.metrics span{font-size:11px;color:#809297}.metrics strong{font-size:14px;font-weight:600;color:#36575b;word-break:break-word}.result-tools{padding:12px 20px 17px;border-top:1px solid #edf1f2}.result-tools .hint{display:block}footer{min-height:38px;padding:9px 26px;display:flex;justify-content:space-between;gap:20px;color:#73898e;font-size:11px}#status{color:#416a66}#status.error{color:#b7442e}#status.dirty{color:#a76d0d}#busyOverlay{position:absolute;inset:0;background:#f6faf8e8;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;color:#3c6c61;font-size:14px}#busyOverlay span{font-size:12px;color:#7e9790}.spinner{width:32px;height:32px;border:3px solid #d0e2da;border-top-color:var(--green);border-radius:50%;animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}[hidden]{display:none!important}dialog{padding:0;border:1px solid #bed0d2;border-radius:14px;box-shadow:0 15px 80px #173a3840;width:min(1000px,calc(100vw - 40px));max-height:90dvh;color:#304e53}dialog::backdrop{background:#1a33385c}.dialog-title{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;background:#f7faf9;border-bottom:1px solid var(--line)}.dialog-title h2{font-size:18px;margin:0}.dialog-title button{padding:2px 10px;font-size:22px;background:transparent;border:0}#dialogBody{padding:22px;overflow:auto;max-height:calc(90dvh - 72px);font-size:14px;line-height:1.7}.table-scroll{overflow:auto;max-height:420px;border:1px solid var(--line);border-radius:8px;margin-top:14px}table{border-collapse:collapse;width:100%;font-size:12px;white-space:nowrap}th,td{text-align:center;padding:8px 12px;border-bottom:1px solid #e4ecec}th{background:#edf4f3;color:#48766c;position:sticky;top:0;font-weight:600}tr:nth-child(even){background:#fafcfc}.tabs{display:flex;gap:8px;margin-bottom:12px}.section-title{margin:16px 0 10px;font-size:14px}.edge-row{display:grid;grid-template-columns:52px 1fr 1fr;gap:7px;align-items:center;margin:9px 0}.edge-row .field{font-size:11px}.asset-drop{background:#f4f8f7;border:1px dashed #a4c5bd;border-radius:8px;padding:18px 12px;text-align:center;margin:10px 0}.asset-drop strong{font-size:12px;word-break:break-all}.asset-drop button{margin-top:10px}.canvas-editor{display:grid;grid-template-columns:1fr 260px;gap:16px}.layout-stage{background:#f1f5f4;border:1px solid var(--line);border-radius:8px;min-height:360px;overflow:hidden;position:relative;touch-action:none}.layout-stage svg{display:block;width:100%;height:400px}.shape-list{max-height:140px;overflow:auto;border:1px solid var(--line);border-radius:6px;margin:10px 0}.shape-item{padding:5px 8px;font-size:12px;cursor:pointer;border-bottom:1px solid #e7eeee}.shape-item.selected{background:#dceee8;color:#0d6756}.layout-toolbar{margin-bottom:10px}.layout-toolbar button{font-size:12px}.file-hint{font-size:11px;line-height:1.6;word-break:break-all;color:#607e7c;margin:8px 0}.analysis-chart{width:100%;height:100px;background:#f4f8f6;border:1px solid var(--line);border-radius:6px}.dialog-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}.progress-note{background:#eff6f2;padding:12px 16px;border-radius:8px}.form-divider{border-top:1px solid var(--line);margin:14px 0}.about-links a{color:#1b7267}
@media(min-width:1600px){.workspace{grid-template-columns:350px minmax(0,1fr);gap:24px;padding:24px 32px}.topbar{padding:16px 32px}.form-section{padding:18px 24px}.preview-viewport{min-height:340px}}
@media(max-width:1100px){.workspace{grid-template-columns:290px minmax(0,1fr);padding:14px;gap:12px}.mode-nav{padding-left:10px;overflow:auto}.mode-nav button{padding:12px 13px;white-space:nowrap}.nav-note{display:none}.preview-toolbar{flex-wrap:wrap}.metrics{grid-template-columns:repeat(2,1fr);gap:12px}.local-badge{display:none}.header-actions button{font-size:12px}.form-section{padding:14px 16px}}
@media(max-width:760px){.topbar{height:auto;padding:13px 15px;flex-wrap:wrap;gap:12px}.brand h1{font-size:20px}.brand p{font-size:10px}.workspace{display:flex;flex-direction:column;height:auto;min-height:0}.parameters{max-height:none;overflow:visible;order:1}.stage{min-height:570px;order:0}.preview-viewport{min-height:260px}.mode-nav{padding-top:4px}.generate-bar{position:sticky;bottom:0}.form-section{padding:16px 20px}footer{padding:12px;flex-wrap:wrap}.canvas-editor,.dialog-grid{grid-template-columns:1fr}.preview-heading{padding:14px}.preview-heading h2{font-size:16px}.parameters .panel-heading{padding:15px 20px}.header-actions{margin-left:auto}.canvas-editor .layout-stage svg{height:320px}.metrics strong{font-size:12px}}

.research-body{padding:20px;overflow:auto;max-height:calc(90dvh - 75px)}.research-body .dialog-grid{margin:16px 0}.research-actions{margin:16px 0}.research-actions input{max-width:130px;min-width:0;padding:6px;border:1px solid #cbdcda;border-radius:5px}.research-body summary{cursor:pointer;margin:12px 0;color:#156553}.profile-json{width:100%;height:240px;font:12px/1.6 monospace;border:1px solid #cbdcda;border-radius:6px;resize:vertical;padding:10px}

@media(max-width:760px){.generate-bar{position:static}.parameters{scroll-margin-top:16px}}

.cloud-limits{padding:10px 16px;margin:0;border-bottom:1px solid var(--border,#dbe6e2);font-size:.78rem;line-height:1.65;}
