:root{font-family:Segoe UI,Microsoft JhengHei,Noto Sans TC,sans-serif;color:#19352e;background:#f0f2ec;font-synthesis:none;color-scheme:light;--ink:#19352e;--quiet:#526860;--panel:#fdfef9;--line:#d6dfd4;--accent:#1c654f;--muted:#eaf1e8;--danger:#965130}*{box-sizing:border-box}body{margin:0;min-width:340px}button,select{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.44}button:focus-visible,select:focus-visible{outline:2px solid #2e8d71;outline-offset:3px}h1,h2,p{margin:0}.app{max-width:2048px;margin:auto}.top{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:74px;padding:13px 24px;background:#fbfcf7;border-bottom:1px solid var(--line)}.brand,.topactions,.add-row,.panel-heading,.edit-actions,.view-buttons,.stage-top,.stage-bottom,.check-title,.preview-box,.notice{display:flex;align-items:center}.brand{gap:11px;flex-shrink:0}.mark{display:grid;place-items:center;width:42px;height:42px;border-radius:10px;color:#f4fbf5;background:#28624f;box-shadow:inset 0 0 0 1px #103d2d22}h1{font-weight:760;font-size:21px;line-height:1.2;letter-spacing:.015em}.subtitle{margin-top:4px;color:var(--quiet);font-size:.72rem;letter-spacing:.08em}.topactions{gap:8px}.button,select{min-height:35px;border:1px solid #c5d3c7;background:#fcfdf8;color:var(--ink);border-radius:7px;padding:0 9px}select{cursor:pointer}.button{display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:.79rem;font-weight:650;white-space:nowrap;transition:background .15s,border-color .15s}.button:hover:not(:disabled){background:#edf4ec;border-color:#83a590}.button.active{background:#d8ebe0;border-color:#6a9a84;color:#164c3b}.button.primary{background:#245f4d;border-color:#245f4d;color:#f7fcf5;font-weight:730}.button.primary:hover:not(:disabled){background:#174937;border-color:#174937}.topactions .primary{padding:0 13px;min-height:40px}.workspace{display:grid;grid-template-columns:216px minmax(0,1fr) 246px;gap:12px;padding:12px 16px;min-height:calc(100dvh - 74px)}.panel{background:var(--panel);border:1px solid var(--line);border-radius:10px;min-width:0}.left,.right{display:flex;flex-direction:column;min-height:0;max-height:calc(100dvh - 98px)}.panel-heading{min-height:51px;padding:0 13px;border-bottom:1px solid var(--line);justify-content:space-between;gap:5px}h2{font-size:.92rem;font-weight:750}.badge{white-space:nowrap;background:#edf2e9;color:#4b6557;border-radius:4px;padding:4px 6px;font-size:.68rem;font-weight:700}.badge.good{background:#dceee2;color:#26614c}.badge.bad{background:#f7e8dc;color:#8d4e32}.left-content,.right-content{overflow:auto;scrollbar-width:thin;scrollbar-color:#bdcbbb transparent;padding:11px;flex:1}.example-field{display:grid;gap:7px;margin:1px 0 17px}.example-field span,.section-label{font-size:.73rem;color:var(--quiet);font-weight:680}.example-field select{width:100%;min-width:0;background:#eaf2e9;border-color:#b7cbbd;font-size:.79rem;font-weight:690}.section-label{margin:10px 0 6px}.add-row{gap:6px;margin-bottom:10px}.add-row select{flex:1;min-width:0;font-size:.79rem}.add-row .button{width:34px;padding:0;flex:none}.object-list{display:grid;gap:2px}.object-list button{display:flex;align-items:center;gap:7px;min-height:33px;min-width:0;padding:0 6px;color:#344d44;background:transparent;border:1px solid transparent;border-bottom-color:#e7ece4;border-radius:5px;text-align:left;font-size:.78rem}.object-list button:hover,.object-list button.selected{background:#e8f1e8;border-color:#c2d6c6}.object-list button svg{color:#53776a;flex:none}.object-dots{margin-left:auto;display:flex;gap:4px}.object-dots i,.gas-dot,.port-chip i{width:8px;height:8px;border-radius:50%;display:inline-block;flex:none}.inspector{margin-top:10px;padding:9px;border:1px solid #cfdbce;border-radius:7px;background:#f4f8ef;font-size:.8rem}.coord{margin:5px 0 8px;color:var(--quiet);font-size:.73rem;font-variant-numeric:tabular-nums}.edit-actions{gap:5px;flex-wrap:wrap}.edit-actions .button{min-height:31px;padding:0 7px}.object-ports{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin-top:9px;color:#516961;font-size:.7rem}.port-chip{display:inline-flex;align-items:center;gap:4px;background:#e6eee5;border-radius:4px;padding:3px 5px;font-weight:650}.center{display:flex;flex-direction:column;min-width:0;gap:9px}.stage{overflow:hidden;position:relative;height:calc(100dvh - 178px);min-height:455px;background:#e8ece3}.viewport{position:absolute;inset:0;overflow:hidden}.viewport canvas{display:block;outline:0;touch-action:none}.viewport.inspect canvas{cursor:grab}.viewport.inspect canvas:active,.viewport canvas.dragging{cursor:grabbing}.viewport.placing canvas{cursor:crosshair}.stage-top,.stage-bottom{position:absolute;left:12px;right:12px;justify-content:space-between;gap:7px;pointer-events:none}.stage-top{top:12px;justify-content:flex-end}.stage-bottom{bottom:12px}.instruction,.preview-box{background:#fbfdf6f2;border:1px solid #c6d4c6;border-radius:7px;box-shadow:0 2px 8px #264b3120}.view-buttons{gap:5px;pointer-events:auto}.view-buttons .button{padding:0 7px;min-height:34px}.instruction{align-self:flex-end;padding:7px 8px;font-size:.72rem;line-height:1.35;color:#3d5b4e}.placement-instruction{display:flex;flex-direction:column;gap:3px}.placement-instruction strong{font-weight:650;color:#2a493c}kbd{display:inline-grid;place-items:center;min-width:17px;padding:1px 4px;border:1px solid #bdcfc0;border-radius:3px;background:#ebf3e9;color:#355d4d;font:650 .78em/1.2 system-ui}.placement-position{align-self:flex-end;padding:5px 7px;background:#edf5e9;border:1px solid #bbd2c0;border-radius:5px;color:#35634e;font-size:.7rem;font-weight:670}.preview-box{position:absolute;top:56px;left:12px;right:12px;gap:8px;padding:9px}.preview-box>div{display:flex;flex:1;flex-direction:column;gap:3px}.preview-box strong{color:#225d45;font-size:.84rem}.preview-box span{color:#4b6256;font-size:.73rem}.fallback{padding:80px 24px;text-align:center}.metrics{display:flex;align-items:center;padding:10px 8px;min-height:68px}.metrics>div{flex:1;min-width:0;padding:0 9px;border-right:1px solid #dce6db}.metrics>div:last-child{border:0}.metrics>div>span{display:block;color:#536c60;font-size:.7rem;white-space:nowrap}.metrics strong{display:block;margin-top:3px;font-size:1.15rem;line-height:1.2;font-variant-numeric:tabular-nums;white-space:nowrap}.metrics small{color:#526c5f;font-size:.65rem;font-weight:600}.notice{gap:8px;padding:7px 9px;border:1px solid #e1bda7;background:#fff4e8;color:#844c36;border-radius:7px;font-size:.8rem}.notice button{margin-left:auto;min-height:27px}.tabs{display:flex;padding:0 11px;border-bottom:1px solid var(--line)}.tabs button{flex:1;min-height:36px;background:transparent;border:0;border-bottom:2px solid transparent;color:#597269;font-size:.8rem}.tabs button.selected{color:#215b47;border-bottom-color:#42866c;font-weight:730}.check-group{margin-bottom:6px;border:1px solid #dae4d8;border-radius:7px;background:#f6f9f2}.check-title{min-height:35px;gap:6px;padding:0 6px}.check-title strong{font-size:.76rem;font-weight:660}.check-result{margin-left:auto;color:#556e61;font-size:.68rem;white-space:nowrap}.check-icon{display:grid;place-items:center;width:21px;height:21px;border-radius:5px}.check-icon.pass{color:#236c4e;background:#e1eee2}.check-icon.fail{color:#9b5435;background:#f5e6dc}.check-icon.waiting{color:#826830;background:#f2ecd6}.issue{display:block;width:calc(100% - 12px);margin:0 6px 4px;padding:5px;text-align:left;background:#f9eee4;border:1px solid #eed8c9;border-radius:5px;color:#78452f;font-size:.69rem;line-height:1.35}.issue:hover{border-color:#aa7354}.more{display:block;margin:0 8px 6px;color:#725e51;font-size:.7rem}.bends-setting{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:6px 0;color:#456256;font-size:.71rem}.bends-setting select{min-height:29px;font-size:.71rem}.reading{padding:8px;margin-bottom:7px;border:1px solid #d9e4d7;border-radius:7px;background:#f3f8ef;font-size:.8rem}.reading button{display:flex;align-items:center;gap:6px;width:100%;padding:5px 0 0;margin-top:5px;background:transparent;border:0;border-top:1px solid #dce7da;color:#34574a;text-align:left;font-size:.74rem}.reading button>span:last-child{margin-left:auto}.solve-failure{position:absolute;z-index:2;top:58px;left:50%;transform:translate(-50%);width:min(424px,calc(100% - 24px));display:flex;align-items:flex-start;gap:9px;padding:12px;background:#fff5e9;border:1px solid #d5a587;border-radius:8px;color:#633b28;box-shadow:0 5px 20px #50302420}.solve-failure-message{display:flex;align-items:flex-start;gap:8px;flex:1;min-width:0}.solve-failure-message svg{color:#a95c37;flex:none}.solve-failure-message strong{display:block;font-size:.94rem}.solve-failure-message p{margin:4px 0 0;color:#85513a;font-size:.79rem;line-height:1.4}.solve-failure>.button{min-height:27px;padding:0 5px}@media(max-width:1150px){.workspace{grid-template-columns:182px minmax(0,1fr) 204px;padding:10px 12px;gap:9px}.top{padding-inline:14px}.metrics>div{padding:0 5px}.metrics>div>span{font-size:.65rem}}@media(max-width:900px){.workspace{grid-template-columns:160px minmax(0,1fr) 184px}.topactions{gap:5px}.topactions .button{font-size:.71rem;padding:0 6px}.topactions .button svg{width:14px}.metrics strong{font-size:1rem}h1{font-size:18px}.panel-heading{padding:0 8px}.right-content,.left-content{padding:7px}}@media(max-width:750px){.workspace{grid-template-columns:156px minmax(0,1fr)}.right{grid-column:1/-1}.left,.right{max-height:none}.stage{height:56dvh;min-height:390px}.right-content{max-height:310px}.top{flex-wrap:wrap;gap:8px}}@media(max-width:560px){.top,.workspace{padding:8px}.workspace{display:flex;flex-direction:column}.center{order:-1}.stage{height:52dvh;min-height:350px}.topactions{width:100%;flex-wrap:wrap}.topactions .primary{margin-left:auto;min-height:35px}.stage-top,.stage-bottom{left:7px;right:7px}.view-buttons .button{font-size:.66rem;padding:0 4px}.metrics small{font-size:.57rem}}
