.access-page{min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding:32px 24px;background:#f3f6fa;color:#172235}.access-card{width:min(100%,400px);padding:36px 32px;background:#fff;border:1px solid #e0e6ef;border-radius:24px;box-shadow:0 16px 50px #17223508}.access-mark{width:58px;height:58px;border-radius:18px;background:#eaf1ff;color:#2468ec;display:grid;place-items:center;margin-bottom:32px}.access-eyebrow{color:#5b6c85;font-size:13px;margin:0 0 10px}.access-card h1{font-size:27px;line-height:1.35;letter-spacing:-.5px;margin:0 0 10px}.access-intro{color:#5b6c85;font-size:15px;line-height:1.6;margin:0 0 32px}.access-card form{display:flex;flex-direction:column;gap:10px}.access-card label{font-size:14px;font-weight:600}.access-card input{width:100%;min-height:50px;padding:12px 14px;border:1px solid #b7c5d8;border-radius:10px;font:inherit;font-size:17px;color:#172235;background:#fff}.access-card input:focus-visible,.access-enter:focus-visible{outline:3px solid #96baff;outline-offset:3px}.access-enter{display:flex;justify-content:center;align-items:center;gap:12px;width:100%;min-height:50px;margin-top:12px;padding:12px 20px;border:0;border-radius:10px;background:#2468ec;color:#fff;font:inherit;font-size:15px;font-weight:650;cursor:pointer}.access-enter:disabled{background:#e4eaf3;color:#5c6f8b;cursor:default}.access-error{color:#a12c2b;font-size:14px;line-height:1.6;margin:4px 0}.access-connecting{min-height:96px;color:#5b6c85}.access-note{font-size:12px;color:#66758b;margin:28px 0 0;text-align:center}@media(max-width:520px){.access-page{background:#fff;align-items:start;padding:11vh 24px 32px}.access-card{border:0;box-shadow:none;padding:12px 4px;border-radius:0}.access-mark{margin-bottom:36px}}@media(max-height:480px){.access-page,.access-card{padding:24px}.access-mark{display:none}.access-intro{margin-bottom:20px}.access-note{margin-top:18px}}:root{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;font-synthesis:none;color:#202939;background:#eef1f5;font-size:14px;--ink:#202939;--muted:#657184;--blue:#226ce5;--line:#e3e8ef;--surface:#fff;--radius:12px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button,a{-webkit-tap-highlight-color:transparent}button{min-height:44px;border:1px solid var(--line);border-radius:8px;background:#fff;color:inherit;padding:10px 16px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:transform .12s,background .12s}button:active:not(:disabled){transform:scale(.96);background:#eaf1fc}button:hover:not(:disabled){background:#f1f5fa}button:disabled{opacity:.4;cursor:default}button.primary,.primary{background:var(--blue);border-color:var(--blue);color:#fff;font-weight:600}.primary:hover:not(:disabled){background:#185dcc}.primary:active:not(:disabled){background:#144fb2}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #81adf6;outline-offset:2px}h1,h2,h3,p{margin:0}h1{font-size:16px;font-weight:650;letter-spacing:-.2px}h2{font-size:17px;font-weight:650}h3{font-size:15px}p{line-height:1.6}a{color:var(--blue);text-decoration:none}small,.muted{color:var(--muted)}small,.small{font-size:12px}.full{width:100%}.icon-button{width:44px;min-width:44px;padding:0;border:0;background:transparent}.app-shell{height:100dvh;display:flex;flex-direction:column;overflow:hidden}.workbench-header{height:60px;min-height:60px;display:flex;align-items:center;gap:8px;padding:0 12px;background:#fff;border-bottom:1px solid var(--line);z-index:2}.task-title{display:flex;align-items:center;gap:12px;flex:1;min-width:0}.task-title h1{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.task-title>span{font-size:11px;color:var(--muted);white-space:nowrap}.scope-badge{font-size:11px;letter-spacing:.04em;color:#667185;padding:5px 8px;background:#f4f6f9;border-radius:5px;white-space:nowrap}.status-strip{display:flex;flex-shrink:0;justify-content:space-between;min-height:36px;border:0;border-bottom:1px solid #eadfb9;background:#fff7df;border-radius:0;font-size:12px;text-align:left;padding:8px 16px}.status-strip.has-error{background:#fff1ec;color:#9c3e29}.status-strip>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.model-workspace{position:relative;flex:1;min-height:220px;display:flex;overflow:hidden}.viewport{flex:1;position:relative;min-height:0;overflow:hidden;background:#eef1f5}.canvas-host{position:absolute;top:0;right:0;bottom:0;left:0;touch-action:none}.canvas-host canvas{display:block;width:100%;height:100%;touch-action:none}.view-top{position:absolute;top:20px;left:20px;right:20px;display:flex;justify-content:space-between;pointer-events:none}.view-model-label{font-size:12px;color:#657184;letter-spacing:.03em}.view-units{font-size:10px;color:#7b8798}.view-tools{position:absolute;right:12px;top:58px;display:flex;flex-direction:column;gap:8px}.view-tools button{width:44px;height:44px;padding:0;border:1px solid #dce2ec;background:#ffffffed;box-shadow:0 2px 5px #26395707}.view-tools button[aria-pressed=true],.view-tools button[aria-expanded=true]{background:#e7effc;color:var(--blue);border-color:#b8cef0}.view-options{position:absolute;right:64px;top:58px;width:184px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:8px;box-shadow:0 8px 24px #22395912;max-height:calc(100% - 80px);overflow:auto;z-index:2}.view-options>button{width:100%;border:0;justify-content:space-between;font-size:13px}.view-options>button>span{font-size:11px;color:var(--muted)}.view-presets{display:flex;border-bottom:1px solid var(--line);padding-bottom:6px}.view-presets button{flex:1;border:0;padding:4px;font-size:12px}.section-control{position:absolute;left:16px;right:16px;bottom:40px;display:flex;align-items:center;gap:8px;padding:4px 8px 4px 12px;border:1px solid var(--line);border-radius:10px;background:#fffffff2}.section-control label{font-size:12px;white-space:nowrap}.section-control input{flex:1;min-width:0;height:44px}.section-control button{width:36px;min-width:36px}.view-measure{position:absolute;left:16px;bottom:100px;padding:12px;background:#fffffff0;border:1px solid var(--line);border-radius:10px;font-size:12px;line-height:1.8;pointer-events:none}.gesture-hint{position:absolute;bottom:18px;left:0;right:0;text-align:center;pointer-events:none;font-size:11px;color:#647286;letter-spacing:.04em}.viewport-empty{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;gap:20px;align-items:center;justify-content:center;color:#8997aa;pointer-events:none}.viewport-empty p{font-size:14px;color:#647286;max-width:260px;text-align:center}.generate-action{position:absolute;bottom:52px;left:50%;transform:translate(-50%);box-shadow:0 5px 14px #226ce522;min-width:152px;z-index:1}.generate-action:active:not(:disabled){transform:translate(-50%) scale(.97)}.calculation-progress{position:absolute;bottom:16px;left:16px;right:16px;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}.calculation-progress>div{display:flex;align-items:center;gap:10px;padding:4px 12px}.calculation-progress strong{font-size:12px;flex:1}.calculation-progress button{border:0;font-size:12px;padding:8px}.progress-orbit{height:16px;width:16px;border:2px solid #dde8fa;border-top-color:var(--blue);border-radius:50%;animation:orbit 1s linear infinite}.loading-line{height:3px;display:block;background:#e9eef7;overflow:hidden}.loading-line:after{content:"";display:block;width:35%;height:100%;background:var(--blue);animation:loading 1.8s ease-in-out infinite}.viewport-loading{width:100%;display:grid;place-content:center;gap:16px;color:var(--muted);font-size:13px}.workbench-bottom{flex-shrink:0;background:#fff;border-top:1px solid #dfe5ee;padding-bottom:env(safe-area-inset-bottom)}.step-card{padding:12px 16px 8px;position:relative}.step-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.step-heading>div{display:flex;flex-direction:column;gap:3px;min-width:0}.step-eyebrow{font-size:10px;color:#7b8696;letter-spacing:.08em}.step-heading strong{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.step-count{border:0;padding:0 0 0 10px;font-size:13px;min-width:82px;gap:3px;font-variant-numeric:tabular-nums}.step-count svg{margin-left:6px;color:var(--muted)}.step-total{color:#7a8697}.step-progress{height:2px;background:#edf1f7;margin:8px 0 12px}.step-progress>span{display:block;height:100%;background:var(--blue)}.step-controls{display:grid;grid-template-columns:1fr 48px 1fr;gap:12px}.step-controls button{height:44px;font-size:13px}.step-play{border-color:transparent!important;background:#f0f4f9;padding:0}.step-position{display:none}.workbench-actions{display:grid;grid-template-columns:1.3fr 1fr 1fr;padding:4px 12px 6px;gap:4px}.workbench-actions button{border:0;min-height:44px;padding:8px 4px;font-size:12px;color:#58677b}.workbench-actions button.has-issues{color:#a34b2d}.workbench-actions svg{width:18px;height:18px}.workbench-sheet{border:0;padding:0;background:transparent;width:100%;max-width:600px;max-height:88dvh;margin:auto 0 0;position:fixed;inset:auto 0 0;overflow:visible;color:var(--ink)}.workbench-sheet::backdrop{background:#19283d52}.sheet-surface{background:#fff;border-radius:20px 20px 0 0;max-height:88dvh;display:flex;flex-direction:column;overflow:hidden;animation:sheet-in .18s ease-out}.sheet-header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px 8px;border-bottom:1px solid var(--line);flex-shrink:0}.sheet-content{padding:20px 20px max(24px,env(safe-area-inset-bottom));overflow:auto;overscroll-behavior:contain}.field{display:flex;flex-direction:column;gap:8px;font-size:13px;margin:12px 0}.field input,.field select,.field textarea,textarea{border:1px solid #cad3df;border-radius:8px;padding:12px;width:100%;min-height:48px;background:#fff;color:var(--ink)}input[type=range]{accent-color:var(--blue);min-height:44px;padding:0}.inline-field{flex-direction:row;align-items:center;justify-content:space-between}.inline-field select{width:100px}.source-sheet{border:1px solid var(--line);border-radius:10px;background:#fafbfd;position:relative;overflow:hidden;margin-bottom:16px}.source-sheet svg{width:100%;height:140px}.sheet-label,.source-sheet>span{font-size:10px;color:var(--muted);display:block;padding:10px 12px}.source-diagram{width:100%;padding:0;border:0;background:transparent}.source-image{position:relative}.source-image img{max-width:100%;display:block;margin:auto}.source-region{position:absolute;background:#226ce51c;border:1px solid #226ce5}.upload-button{display:flex;align-items:center;justify-content:center;min-height:48px;border:1px dashed #a8b8cd;border-radius:8px;color:var(--blue);cursor:pointer;margin:12px 0;font-weight:500}.upload-button input{position:absolute;width:1px;height:1px;opacity:0}.upload-button:focus-within{outline:3px solid #81adf6}.section-label{margin:24px 0 10px;font-size:12px;font-weight:600;color:#607086}.parameter-meta{display:flex;justify-content:space-between;color:var(--muted);font-size:12px;margin-bottom:12px}.source-item{padding:10px 0;font-size:12px;display:flex;flex-direction:column;gap:4px}.source-item span{color:var(--muted)}.features .feature{width:100%;justify-content:flex-start;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:12px 0;text-align:left}.feature>span:nth-child(2){flex:1}.feature small{display:block;margin-top:4px}.feature-number{color:#8190a3;font-size:11px}.source-link{font-size:12px;color:var(--muted);margin:12px 0;line-height:1.7}.panel details,.plain-details{border-top:1px solid var(--line);margin-top:16px;padding-top:8px}summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:13px;gap:8px}.plain-details p,.panel details p{font-size:12px;color:var(--muted);margin:8px 0}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;line-height:1.65;background:#f5f7fa;padding:12px;border-radius:8px;max-height:260px;overflow:auto}.code-stats{display:flex;gap:12px;font-size:11px;color:var(--muted);margin-bottom:12px}.warning-text{color:#8a611f;margin:8px 0 16px}.code-columns{display:grid;gap:16px}.code-columns label{display:block;font-size:12px}.code-columns textarea{font-family:ui-monospace,SFMono-Regular,monospace;font-size:13px;height:240px;line-height:1.6;margin-top:8px}.expanded strong{font-size:12px}.execution-picker{display:flex!important;flex-direction:column;gap:8px;margin:12px 0}.execution-picker select{width:100%;min-height:44px;padding:8px;border:1px solid #cad3df;border-radius:8px;background:#fff}.code-drawer>.primary{width:100%;margin-top:16px}.review-summary{font-weight:600;margin-bottom:16px}.issues{display:grid;gap:8px}.issue{display:flex;flex-direction:column;align-items:flex-start;text-align:left;position:relative;background:#fff7f3;border-color:#f2ddd2;padding:14px 28px 14px 14px;gap:6px}.issue strong{font-size:13px;color:#943f26}.issue span,.issue small{font-size:12px;line-height:1.5}.issue svg{position:absolute;right:10px;top:16px}.check{border-bottom:1px solid var(--line)}.check summary>span{flex:1}.check summary svg{color:#6b8395}.check summary small{font-size:11px}.check p{font-size:12px;line-height:1.7;color:var(--muted);padding:0 0 12px}.inline-error,.inline-warning{background:#fff4ed;padding:14px;border-radius:8px;margin-bottom:16px;overflow-wrap:anywhere;white-space:pre-wrap;font-size:13px;line-height:1.6;color:#934426}.inline-error button{margin-top:12px}.sync-summary{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:16px}.sync-summary p{font-size:12px;color:var(--muted)}.review-actions{display:flex;flex-direction:column;gap:8px;margin:20px 0}.review-actions a{min-height:44px;display:flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:8px}.disabled-link{opacity:.4;pointer-events:none}.inspection-record{padding:12px 0;border-bottom:1px solid var(--line)}.inspection-record small{display:block;margin-top:4px}.decision-panel{margin:20px 0}.decision-panel p{font-size:12px;color:var(--muted)}.fact-conflict{padding:12px 0;border-bottom:1px solid var(--line)}.fact-conflict strong{font-size:13px}.fact-conflict small{overflow-wrap:anywhere}.step-list>button{display:flex;width:100%;justify-content:flex-start;text-align:left;margin:8px 0;padding:12px;border-radius:8px}.step-list>button>span{color:#8b97a8;font-size:11px}.step-list>button>strong{flex:1;font-size:13px}.step-list>button.is-current{border-color:#9bbcf4;background:#eef4ff;color:#195fcf}.start-page{overflow:auto;padding:24px 20px 40px;width:100%;max-width:640px;align-self:center}.start-mode{display:flex;padding:4px;background:#e3e8ef;border-radius:10px;margin-bottom:28px}.start-mode button{flex:1;border:0;background:transparent}.start-mode button[aria-pressed=true]{background:#fff;box-shadow:0 2px 4px #2435510a}.start-page h2{font-size:14px;margin-bottom:12px;color:#627087}.part-list{display:grid;gap:10px}.part-list button{padding:16px;text-align:left;justify-content:flex-start;gap:16px}.part-list button>span:nth-child(2){flex:1}.part-list strong{font-size:15px;font-weight:550;display:block}.part-list small{display:block;margin-top:6px;font-size:11px}.part-thumbnail{height:48px;width:48px;display:grid;place-items:center;background:#eef2f7;border-radius:8px;color:#7b8da4}.recent-jobs{margin-top:28px}.recent-jobs button{width:100%;justify-content:space-between;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;padding:12px 0;font-size:13px}.recent-jobs button>span{flex:1;text-align:left}.loading-list{display:grid;gap:12px}.loading-list span{height:82px;border-radius:10px;background:#e3e8ef;animation:soft-pulse 1.6s ease-in-out infinite}@keyframes orbit{to{transform:rotate(360deg)}}@keyframes loading{0%{transform:translate(-100%)}to{transform:translate(400%)}}@keyframes sheet-in{0%{transform:translateY(24px);opacity:.6}to{transform:translateY(0);opacity:1}}@keyframes soft-pulse{50%{opacity:.45}}@media(min-width:700px){.workbench-header{padding:0 24px}.task-title h1{font-size:17px}.workbench-bottom{position:absolute;bottom:24px;left:50%;transform:translate(-50%);width:440px;border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 40px #283a5010;overflow:hidden}.model-workspace{padding-bottom:80px}.view-tools{right:24px;top:64px}.view-options{right:80px;top:64px}.gesture-hint{bottom:190px}.generate-action{bottom:230px}.view-top{left:32px;right:32px;top:28px}.workbench-sheet{max-width:460px;left:auto;right:24px;bottom:24px}.sheet-surface{border-radius:16px}.section-control{left:24px;right:auto;width:300px;bottom:24px}.calculation-progress{left:50%;right:auto;width:400px;transform:translate(-50%);bottom:230px}.step-position{display:block;font-size:10px;color:var(--muted);text-align:center;margin-top:8px}}@media(max-width:380px){.task-title>span{display:none}.workbench-actions button{font-size:11px;gap:4px}.step-controls{gap:8px}.step-heading strong{font-size:13px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}.dimensions-form{display:grid;gap:14px;margin:20px 0}.dimensions-form h3{display:flex;justify-content:space-between}.dimension-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.dimension-grid .field{margin:0;min-width:0}.dimension-grid input{width:100%;min-width:0}.dimension-confirm,.dimension-sources label{display:flex;align-items:center;gap:10px;min-height:44px;font-size:13px;line-height:1.5}.dimension-confirm input,.dimension-sources input{width:20px;height:20px;flex-shrink:0;accent-color:var(--blue)}.dimension-sources{border:1px solid var(--line);border-radius:8px;padding:8px 12px}.dimension-sources legend{font-size:12px;color:var(--muted)}.generate-actions{position:absolute;bottom:36px;left:50%;transform:translate(-50%);display:flex;flex-direction:column;align-items:center;gap:4px;z-index:1}.generate-actions>.primary{min-width:170px;box-shadow:0 5px 14px #226ce522}.generate-actions>.try-example{border:0;background:transparent;font-size:12px;color:var(--muted)}.view-tools button{height:48px;gap:2px;flex-direction:column}.view-tools button>span{font-size:10px;line-height:12px}.playback-warning{position:absolute;left:16px;right:70px;top:48px;background:#fff3e7;border:1px solid #f2d4ac;border-radius:8px;padding:12px;font-size:12px;z-index:2}.viewport-empty[role=alert]{background:#eef1f5e8;z-index:3}.example-dimensions{justify-self:start;font-size:12px;min-height:36px}.workbench-sheet{overscroll-behavior:contain}.sheet-content{overscroll-behavior:contain;padding-bottom:max(24px,env(safe-area-inset-bottom))}@media(max-height:520px){.model-workspace{min-height:0}.workbench-sheet,.sheet-surface{max-height:94dvh}.gesture-hint{display:none}}@media(min-width:700px)and (max-height:520px){.workbench-bottom{left:auto;right:12px;bottom:12px;transform:none;width:300px}.canvas-host{right:320px}.view-tools{top:10px;right:12px;flex-direction:row;gap:6px}.view-top{left:16px;top:16px;right:330px}.view-options{top:64px;right:12px}.section-control{left:12px;right:332px;bottom:12px;width:auto}.view-measure{bottom:64px;left:12px}.step-heading strong{font-size:12px}.step-card{padding:12px}.workbench-actions button{font-size:11px;padding:8px}.step-position{display:none}.workbench-sheet{right:12px;bottom:12px}}button.scope-badge{border:0;min-height:44px;font-size:11px;letter-spacing:0}button.scope-badge:disabled{opacity:1}
