:root{--green:#1DA63B;--green-dark:#147e2b;--green-light:#edf8ef;--ink:#223129;--muted:#6c7870;--line:#e1e7e2;--canvas:#f4f6f4;--white:#fff;--amber:#8d5c09;--amber-bg:#fff5dc;--red:#b43b36;--red-bg:#fff0ef;--blue:#32678a;--radius:8px;font-family:"Segoe UI","Microsoft YaHei","PingFang SC",sans-serif;font-size:12px;color:var(--ink);background:var(--canvas);line-height:1.6}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}input,select,textarea{color:var(--ink);background:#fff;border:1px solid #ccd6ce;border-radius:5px;min-height:32px;padding:5px 8px;max-width:100%}input[type=checkbox],input[type=radio]{width:14px;height:14px;min-height:0;padding:0;accent-color:var(--green);flex:none}input[type=search]{min-width:0}input:disabled,select:disabled,textarea:disabled{background:#f4f6f4;color:#68746c;border-color:#e3e8e4}textarea{resize:vertical;min-height:66px;width:100%;line-height:1.6}a{color:var(--green-dark);text-decoration:none}a:hover{text-decoration:underline}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--green);outline-offset:3px}h1,h2,h3,p{margin:0}h1{font-size:14px;font-weight:650;letter-spacing:.2px}h2{font-size:13px;font-weight:650}h3{font-size:12px;margin:10px 0 4px}p+p{margin-top:8px}fieldset{border:0;padding:0;margin:0;min-width:0}pre{white-space:pre-wrap;overflow-wrap:anywhere;tab-size:2;font:11px/1.6 Consolas,"Microsoft YaHei",monospace;max-height:240px;overflow:auto;margin:6px 0 0;padding:9px;background:#f5f7f5;border:1px solid var(--line);border-radius:5px}label{cursor:pointer}summary{cursor:pointer;font-weight:600}details[open]>summary{margin-bottom:8px}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;left:12px;top:-70px;z-index:20;padding:8px 14px;background:#fff;border:1px solid var(--green)}.skip-link:focus{top:8px}.muted{color:var(--muted)}.micro{font-size:11px}.required{color:var(--green-dark);font-size:10px;margin-left:4px}.section-kicker,.eyebrow{font-size:10px;letter-spacing:1.25px;color:var(--muted)}.button{display:inline-flex;align-items:center;justify-content:center;gap:5px;border:1px solid #ccd6ce;border-radius:5px;min-height:32px;padding:5px 12px;background:white;color:var(--ink);white-space:nowrap;font-weight:550}.button:hover:not(:disabled){border-color:#9caf9f;background:#f5f8f5}.button.primary{background:var(--green);border-color:var(--green);color:white}.button.primary:hover:not(:disabled){background:var(--green-dark);border-color:var(--green-dark)}.button.quiet{border-color:transparent;background:transparent;color:var(--muted)}.button.small{min-height:26px;padding:3px 8px;font-size:11px}.button.danger{color:var(--red);border-color:#edc8c5}.icon-button{background:transparent;border:1px solid transparent;color:var(--muted);border-radius:4px;min-width:28px;height:28px;font-size:14px;line-height:1}.icon-button:hover:not(:disabled){background:#eef2ee}.full-width{width:100%}.badge,.count{display:inline-flex;align-items:center;justify-content:center;gap:4px;font-size:10px;line-height:1.6;border-radius:4px;padding:2px 7px;font-weight:600;white-space:nowrap}.count{background:#edf1ed;color:#67756b;min-width:20px;padding:0 5px}.neutral{background:#edf1ee;color:#667269}.green{background:var(--green-light);color:var(--green-dark)}.warning{background:var(--amber-bg);color:var(--amber)}.error{background:var(--red-bg);color:var(--red)}.working{background:#edf4fa;color:var(--blue)}
.topbar{height:64px;background:var(--white);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:34px;padding:0 26px}.brand{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:700;white-space:nowrap;color:var(--ink);line-height:1.4}.brand:hover{text-decoration:none}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:8px;background:var(--green);color:white;font-size:13px;letter-spacing:1px}.brand-sub{display:block;color:var(--muted);font-size:10px;font-weight:400;letter-spacing:.7px;margin-top:3px}.main-nav{height:100%;display:flex;gap:24px}.nav-item{border:0;border-bottom:3px solid transparent;background:transparent;padding:3px 0 0;font-size:12px;color:var(--muted)}.nav-item.active{color:var(--green-dark);border-bottom-color:var(--green);font-weight:650}.nav-item .count{margin-left:4px}.account{margin-left:auto;display:flex;align-items:center;gap:10px;min-width:0}.identity{font-size:11px;max-width:270px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.demo-banner{display:flex;gap:14px;align-items:center;justify-content:center;border-bottom:1px solid #ecd28e;background:#fff0c5;color:#714807;padding:11px 24px;font-size:12px}.demo-banner strong{font-size:13px;white-space:nowrap}.notice{display:flex;align-items:flex-start;gap:10px;padding:10px 16px;border:1px solid #cadfcd;background:#eef8f0;margin:12px 24px 0;border-radius:6px;overflow-wrap:anywhere}.notice.error{background:var(--red-bg);border-color:#f0cac7;color:var(--red)}.notice.warning{background:var(--amber-bg);border-color:#eedda9;color:var(--amber)}.notice>span{flex:1}.notice .icon-button{height:22px;flex:none}.login-screen{min-height:calc(100vh - 64px);display:grid;grid-template-columns:minmax(280px,430px) 360px;justify-content:center;align-items:center;gap:90px;padding:50px 28px}.login-intro h1{font-size:14px;margin:18px 0 14px}.login-intro>p{font-size:13px;line-height:2}.login-intro>p.muted{font-size:11px}.login-steps{display:grid;gap:10px;margin:28px 0;border-left:2px solid var(--green);padding-left:16px;font-size:12px}.login-card{padding:28px;background:white;border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 32px #243e2a06}.login-card h2{font-size:14px;margin:5px 0 6px}.login-card form{margin-top:20px}.login-card label{display:block;font-size:11px;margin-bottom:5px}.login-card input{width:100%;margin-bottom:14px;min-height:35px}.form-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}.login-card .button.primary{margin-top:4px;min-height:36px}.form-status{margin-top:12px;font-size:11px;min-height:18px;overflow-wrap:anywhere}.security-note{font-size:10px;color:var(--muted);border-top:1px solid var(--line);padding-top:13px;margin-top:15px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.page-heading h1{margin:3px 0 4px}.page-heading p{font-size:11px}.page-heading-meta{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:11px}.status-dot{width:6px;height:6px;background:var(--green);border-radius:50%}main{max-width:1900px;margin:0 auto;padding:24px}.workspace-grid{display:grid;grid-template-columns:245px minmax(390px,1fr) 280px;gap:16px;align-items:start}.panel{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;min-width:0}.panel-heading{min-height:47px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 14px;border-bottom:1px solid var(--line)}.panel-heading h2{font-size:11px;color:var(--green);display:flex;align-items:center;gap:8px}.panel-heading h2 span{font-size:12px;color:var(--ink)}.panel-body{padding:14px}.search-row{display:flex;gap:6px;padding:12px 12px 4px}.search-row input{width:100%}.browser-location{display:flex;align-items:center;gap:6px;margin:5px 9px;font-size:11px}.browser-location span{overflow-wrap:anywhere}.target-panel .micro{margin:4px 12px 8px}.target-list-wrap{max-height:370px;min-height:190px;overflow:auto;border-top:1px solid var(--line)}.compact-table{width:100%;border-collapse:collapse;text-align:left;table-layout:fixed;font-size:11px}.compact-table th{background:#f7f9f7;color:var(--muted);font-size:10px;font-weight:550;border-bottom:1px solid var(--line);padding:8px 10px;position:sticky;top:0;z-index:1}.compact-table td{padding:9px 10px;border-bottom:1px solid #edf0ed;vertical-align:top;overflow-wrap:anywhere}.compact-table tr:last-child td{border-bottom:0}.compact-table tbody tr:hover{background:#fbfcfb}.target-table th:first-child{width:43px}.target-table th:last-child{width:43px;padding-left:4px;padding-right:4px}.target-table td:first-child{padding-top:12px}.target-table td:last-child{padding:7px 3px}.target-name{font-size:11px;color:var(--ink);display:block;width:100%;text-align:left;padding:0;border:0;background:none;overflow-wrap:anywhere;line-height:1.6}.target-name:hover{color:var(--green-dark)}.target-type{display:block;font-size:10px;color:var(--muted);margin-top:2px}.target-selected{background:#f1f9f2}.selected-targets{padding:12px;border-top:1px solid var(--line);background:#fbfcfb}.selected-targets dl{margin:8px 0}.selected-targets dt{font-size:10px;color:var(--muted);margin-top:9px}.selected-targets dd{margin:3px 0 0;font-size:11px;overflow-wrap:anywhere}.uid{display:block;font-size:10px;color:var(--muted);font-family:Consolas,monospace}.template-strip{padding:12px 14px;display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);font-size:11px}.template-strip select{width:106px}.template-strip .button{margin-left:auto}.parameter-toolbar{display:flex;align-items:center;gap:12px;padding:12px 14px 8px}.search-input{flex:1}.search-input input{width:100%}.checkbox-label{display:flex;gap:5px;align-items:center;white-space:nowrap;font-size:11px;color:var(--muted)}.group-tabs{display:flex;flex-wrap:wrap;gap:5px;padding:3px 14px 10px;border-bottom:1px solid var(--line)}.group-tab{border:1px solid transparent;background:#f3f5f3;color:#65736a;border-radius:4px;padding:3px 7px;font-size:10px}.group-tab.active{border-color:#a5dcb0;background:var(--green-light);color:var(--green-dark)}.parameter-guidance{padding:9px 14px;color:var(--muted);border-bottom:1px solid var(--line)}.parameter-scroll{max-height:calc(100vh - 360px);min-height:260px;overflow:auto}.parameter-table .override-col{width:42px}.parameter-table .reset-col{width:46px}.parameter-table th:nth-child(2){width:34%}.parameter-table td{padding:10px 9px}.parameter-table td:first-child{padding-top:14px}.parameter-label{font-weight:550;font-size:11px}.field-key{font:10px/1.6 Consolas,"Microsoft YaHei",monospace;color:var(--muted);margin:3px 0;overflow-wrap:anywhere}.field-hint{font-size:10px;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere;margin-top:5px}.field-help{font-size:10px;margin-top:5px;color:var(--muted)}.field-help summary{font-weight:400}.field-help p{white-space:pre-wrap;margin-top:4px}.field-editor input:not([type=checkbox]),.field-editor select,.field-editor textarea{width:100%;font-size:11px}.field-editor select[multiple]{min-height:88px;padding:4px}.field-editor select[multiple] option{padding:3px 5px}.field-editor .bool-editor{display:flex;align-items:center;gap:7px;min-height:32px}.field-editor textarea{font-family:Consolas,"Microsoft YaHei",monospace}.field-default{margin-top:5px;font-size:10px;color:var(--muted);max-height:62px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}.field-error{font-size:10px;color:var(--red);white-space:pre-wrap;overflow-wrap:anywhere;margin-top:5px}.field-editor [aria-invalid=true]{border-color:var(--red)}.field-reset{padding:0;font-size:10px;min-height:26px;min-width:26px}.multi-editor{margin-top:6px;font-size:10px}.multi-editor summary{color:var(--green-dark);font-weight:400}.token-list{display:flex;flex-wrap:wrap;gap:4px;max-height:125px;overflow:auto;margin:5px 0}.token{display:inline-flex;align-items:center;gap:5px;max-width:100%;border:1px solid var(--line);background:#f5f8f5;padding:1px 5px;border-radius:4px;font-size:10px;overflow-wrap:anywhere}.token button{border:0;padding:0 2px;color:var(--muted);background:transparent;font-size:12px}.token-add{display:flex;gap:5px}.token-add input{min-width:0;flex:1}.parameter-footer{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:9px 12px;border-top:1px solid var(--line);font-size:11px}.parameter-footer .button{margin-left:auto}.submission-column{display:grid;gap:14px}.summary-list{display:grid;grid-template-columns:72px 1fr;gap:9px;margin:0 0 15px;font-size:11px}.summary-list dt{color:var(--muted)}.summary-list dd{margin:0;text-align:right;overflow-wrap:anywhere}.validation-badge{font-size:11px;padding:9px 10px;border-radius:5px;font-weight:600;margin:12px 0 7px}.submit-actions{display:grid;gap:8px;margin:15px 0 10px}.validation-results{padding:12px;max-height:265px;overflow:auto}.validation-error-item{padding:8px 9px;background:var(--red-bg);border-left:2px solid #d37c76;border-radius:3px;margin-bottom:8px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px}.validation-warning-item{background:var(--amber-bg);border-left-color:#d6ac52}.payload-details,.capability-panel details{padding:12px;font-size:11px}.payload-details{border-top:1px solid var(--line)}.empty-state{text-align:center;padding:34px 12px;color:var(--muted);font-size:11px}.app-footer{display:flex;justify-content:space-between;gap:14px;padding-top:22px;color:#879189;font-size:10px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:16px}.metrics>div{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--line);background:white;border-radius:8px;padding:16px 20px}.metrics span{font-size:11px;color:var(--muted)}.metrics strong{font-size:14px;color:var(--ink)}.metrics>div:nth-child(3) strong{color:var(--green-dark)}.metrics>div:nth-child(4) strong{color:var(--amber)}.jobs-toolbar{display:flex;align-items:center;gap:10px;padding:12px 14px;font-size:11px;border-bottom:1px solid var(--line)}.jobs-toolbar select{min-width:150px}.jobs-toolbar #poll-status{margin-left:auto}.jobs-scroll{overflow:auto;max-height:65vh;min-height:220px}.jobs-table{min-width:840px}.jobs-table th:first-child{width:24%}.jobs-table th:nth-child(2){width:15%}.jobs-table th:last-child{width:16%}.job-id{border:0;background:none;padding:0;text-align:left;color:var(--green-dark);font-size:11px;font-family:Consolas,"Microsoft YaHei",monospace;overflow-wrap:anywhere;cursor:pointer}.job-id:hover{text-decoration:underline}.job-date{font-size:10px;color:var(--muted);margin-top:4px}.job-actions{display:flex;gap:5px;flex-wrap:wrap}.stage-label{font-size:10px;color:var(--muted)}.job-error-summary{font-size:10px;color:var(--red);margin-top:5px;max-height:48px;overflow:auto;white-space:pre-wrap}.poll-failed{color:var(--red)!important}dialog{border:1px solid var(--line);border-radius:10px;background:white;color:var(--ink);width:min(970px,calc(100vw - 40px));max-height:90vh;padding:0;box-shadow:0 20px 90px #15361e33}dialog::backdrop{background:#172b2259}.dialog-heading{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--line)}.dialog-heading h2{margin-top:3px}.job-detail{padding:20px;overflow:auto;max-height:calc(90vh - 85px)}.job-detail-top{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:14px}.detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px}.preview-box{border:1px solid var(--line);border-radius:7px;min-height:280px;background:#f6f8f6;display:grid;place-items:center;overflow:hidden;padding:12px}.preview-box img{max-width:100%;max-height:460px;object-fit:contain}.preview-placeholder{text-align:center;color:var(--muted);font-size:11px}.detail-stages{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}.detail-stages>div{background:#f6f8f6;border:1px solid var(--line);border-radius:5px;padding:10px;font-size:11px}.detail-stages .muted{display:block;font-size:10px;margin-bottom:3px}.artifact-list{list-style:none;margin:8px 0;padding:0}.artifact-list li{padding:8px 0;border-bottom:1px solid var(--line);font-size:11px;overflow-wrap:anywhere}.artifact-list a{display:block}.detail-warning{padding:10px;border-radius:5px;margin-bottom:12px;font-size:11px}.detail-meta{font-size:11px;margin-bottom:12px}.detail-meta p{margin:4px 0;overflow-wrap:anywhere}.result-list{font-size:11px;white-space:pre-wrap;overflow-wrap:anywhere}.busy{cursor:progress}.busy .submit-actions .button{cursor:progress}
@media(min-width:1550px){.workspace-grid{grid-template-columns:270px minmax(480px,1fr) 310px}.parameter-table th:nth-child(2){width:35%}.target-list-wrap{max-height:450px}}
@media(max-width:1200px){.workspace-grid{grid-template-columns:225px minmax(360px,1fr)}.submission-column{grid-column:1/-1;grid-template-columns:1fr 1fr 1fr;align-items:start}.topbar{gap:24px;padding:0 20px}.identity{max-width:190px}.parameter-scroll{max-height:600px}.parameter-footer .muted{display:none}}
@media(max-width:860px){.topbar{height:auto;min-height:64px;flex-wrap:wrap;gap:10px 20px;padding:12px 18px}.main-nav{order:3;width:100%;height:35px}.account{max-width:55%;gap:6px}.identity{max-width:130px}.brand-sub{font-size:10px}.workspace-grid{grid-template-columns:210px minmax(0,1fr);gap:12px}main{padding:18px 14px}.submission-column{grid-template-columns:1fr 1fr}.capability-panel{grid-column:1/-1}.page-heading-meta{display:none}.parameter-toolbar{flex-wrap:wrap}.parameter-toolbar .search-input{flex-basis:100%}.parameter-table th:nth-child(2){width:37%}.parameter-table .reset-col{width:34px}.parameter-table td{padding:8px 5px}.login-screen{gap:30px;grid-template-columns:minmax(190px,1fr) 340px;padding:35px 22px}.demo-banner{align-items:flex-start;flex-direction:column;gap:3px;padding:10px 18px}.detail-grid{grid-template-columns:1fr}.metrics{gap:8px}.metrics>div{padding:12px}.jobs-toolbar{flex-wrap:wrap}}
@media(max-width:620px){.topbar{padding:10px 12px}.brand{font-size:12px}.brand-sub{display:none}.brand-mark{width:28px;height:28px;font-size:11px}.identity{display:none}.account{max-width:none}.login-screen{display:flex;flex-direction:column;gap:25px;padding:26px 16px;min-height:0}.login-intro{width:100%;max-width:360px}.login-intro h1{margin:8px 0}.login-intro>p{font-size:12px}.login-steps{display:none}.login-intro>.muted{margin-top:12px}.login-card{width:100%;max-width:360px;padding:22px}.workspace-grid{display:flex;flex-direction:column}.workspace-grid>.panel,.submission-column{width:100%}.target-list-wrap{max-height:230px;min-height:100px}.submission-column{display:flex;flex-direction:column;gap:12px}.submission-column>.panel{width:100%}.parameter-scroll{max-height:540px;min-height:200px}.parameter-table th:nth-child(2){width:34%}.page-heading{margin-bottom:12px}.template-strip{gap:6px;padding:10px}.group-tabs{padding:3px 10px 10px}.parameter-toolbar{padding:10px}.metrics{grid-template-columns:1fr 1fr}.metrics>div{padding:12px}.app-footer{flex-direction:column;gap:4px}.jobs-toolbar #poll-status{margin-left:0;width:100%}.notice{margin:10px 12px 0}dialog{width:calc(100vw - 20px)}.job-detail{padding:12px}.preview-box{min-height:200px}.detail-stages{gap:5px}.detail-stages>div{padding:7px}}
@media(prefers-reduced-motion:no-preference){.button,.nav-item{transition:background-color .12s,border-color .12s}}

/* Output intent and engineering completeness are separate, visible decisions. */
.output-entry{flex:none;min-width:0}
.output-entry fieldset{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px}
.output-entry label{font-size:12px;font-weight:600}
.output-entry select{width:310px;max-width:100%;min-height:30px}
.output-help,.engineering-details{position:relative;font-size:11px}
.output-help summary{white-space:nowrap}
.output-help[open]>summary,.engineering-details[open]>summary{margin-bottom:0}
.output-alert{color:var(--red)}
.output-help>p,.engineering-popover{position:absolute;top:100%;right:0;z-index:8;width:360px;max-width:calc(100vw - 40px);margin:5px 0 0;padding:10px 12px;background:#fff;border:1px solid var(--line);border-radius:6px;box-shadow:0 6px 20px #22312920;white-space:normal;overflow-wrap:anywhere;line-height:1.7}
.output-help>p{white-space:pre-line}
.target-mode-note{font-size:11px;line-height:1.6;margin:0;padding:8px 12px;background:#f0f6fb;border-bottom:1px solid var(--line);color:#354e66}
.parameter-panel{overflow:visible}
.engineering-entry{flex:none;padding:5px 12px;background:#f6faf4;border-block:1px solid #d5e4cf}
.engineering-entry-heading{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.engineering-entry-heading h3{font-size:11px;margin:0}
.engineering-entry-heading .button{margin-left:auto;min-height:25px;padding:2px 8px}
.engineering-entry-heading .engineering-details{margin-right:auto}
.engineering-popover{right:auto;left:0}
.engineering-popover p{font-size:11px;white-space:pre-wrap}
.delivery-choice{display:flex;align-items:center;gap:8px;margin-top:3px;font-size:11px;flex-wrap:wrap}
.delivery-choice select{flex:0 1 350px;min-width:0;min-height:26px;padding:2px 7px;font-size:11px}
.delivery-choice .micro{white-space:nowrap}
.engineering-status{font-size:11px;line-height:1.6;margin:0;padding:1px 5px;overflow-wrap:anywhere}
.engineering-status.warning{border-left:2px solid #b48522;background:#fff6dd;color:#715014}
.readable-error{white-space:normal;overflow-wrap:anywhere}
.readable-error h3{font-size:12px;margin:0 0 5px}
.readable-error p{white-space:pre-wrap;font-size:11px;margin:4px 0;line-height:1.6}
.readable-error .button{margin-top:6px}
.engineering-error-list{margin:4px 0;padding-left:18px;font-size:11px;line-height:1.6}
.engineering-error-list li+li{margin-top:3px}
.error-technical{margin-top:7px;font-size:10px}
.error-technical pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:220px;overflow:auto}
.download-result{background:#eff8ef;border:1px solid #c7dfc7;color:var(--green-dark)}
.archive-only-result,.combined-result{background:#f0f6fb;border:1px solid #d1e0ec;color:#354e66;line-height:1.6}
.delivery-number{font-weight:600;overflow-wrap:anywhere}
.job-file-name,.job-file-names{font-size:10px;overflow-wrap:anywhere;white-space:normal;margin-top:4px}
.job-file-names summary{font-weight:400;color:var(--muted)}
.job-file-names ul,.file-name-list{padding-left:16px;margin:4px 0;font-size:11px;overflow-wrap:anywhere}
@media(max-width:860px){.page-heading:has(.output-entry){flex-wrap:wrap}.output-entry{width:100%}}
@media(max-width:620px){.output-entry select{width:100%}.delivery-choice select{flex-basis:100%;max-width:100%}.engineering-popover{position:static;width:auto;max-width:100%;box-shadow:none}.engineering-entry-heading .engineering-details{position:static}.engineering-entry:has(.engineering-details[open]) .engineering-entry-heading{display:block}.engineering-entry:has(.engineering-details[open]) .engineering-entry-heading>.button{margin-top:5px}.engineering-details[open] .engineering-popover{margin-block:5px}.output-help>p{right:auto;left:0}}

/* Compact engineering workspace: one parameter scroller, no per-value scrollers. */
.template-strip select{width:auto;max-width:75%;border:0;background:transparent;opacity:1;font-weight:600;color:var(--ink);padding-left:0;appearance:none}
.parameter-toolbar{padding:10px 12px 6px;gap:8px}
.group-tabs{align-items:center;flex-wrap:nowrap;padding:2px 12px 8px;border-bottom:0;gap:8px}
.group-tabs label{font-size:11px;white-space:nowrap}
.group-tabs select{min-width:0;flex:1;max-width:210px;min-height:29px;padding:3px 7px;font-size:11px}
.group-tabs>.micro{margin-left:auto;white-space:nowrap}
.parameter-toolbar{flex-wrap:wrap}
.parameter-toolbar .search-input{min-width:170px}
.parameter-toolbar .group-tabs{flex:0 1 240px;padding:0;border:0;gap:6px}
.parameter-toolbar .group-tabs select{max-width:none}
.parameter-guidance{padding:5px 12px 7px;font-size:10px}
.parameter-table .override-col{width:38px}
.parameter-table .reset-col{width:30px}
.parameter-table th:nth-child(2){width:48%}
.parameter-table td{padding:7px 8px;vertical-align:middle;height:44px}
.parameter-table td:first-child{padding:7px 10px}
.parameter-table td:last-child{padding:4px 2px}
.parameter-table th{padding:6px 8px;font-size:10px}
.parameter-label{font-size:11px;font-weight:500;line-height:1.5}
.parameter-info{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;width:23px;height:24px;margin-left:3px;padding:0;border:0;background:transparent;color:var(--green-dark);font-size:12px;border-radius:4px}
.parameter-info:hover{background:var(--green-light)}
.parameter-table .field-help{margin:4px 0 2px;padding:6px 8px;background:#f3f8f4;border-left:2px solid #bed9c3;font-size:11px}
.parameter-modified{background:#f7fbf7}
.field-inherited{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.5;color:#34473a;font-size:11px}
.field-editor input:not([type=checkbox]),.field-editor select{min-height:29px;padding:3px 7px}
.field-editor textarea{min-height:56px}
.field-error:empty{display:none}
.field-reset:disabled{visibility:hidden}
.field-default{max-height:none;overflow:visible}
.selected-targets{padding:9px 12px;background:#fafcfb}
.selected-targets>.section-kicker{display:none}
.selected-targets dl{margin:0}
.selected-targets dt{margin-top:5px;font-size:10px}
.selected-targets dd{margin-top:1px;font-size:11px;line-height:1.5}
.selected-targets .button{padding-left:0;margin-top:4px;min-height:23px}
.browser-location{margin:2px 10px 0;justify-content:space-between}
.target-panel .micro{margin:3px 12px 5px;font-size:10px;line-height:1.5}
.target-list-wrap{padding:5px 6px;border-top:1px solid var(--line)}
.target-tree,.target-tree-group{list-style:none;margin:0;padding:0}
.target-tree-group{margin-left:12px;padding-left:9px;border-left:1px solid #e3e9e4}
.target-tree [role=treeitem]{outline-offset:-1px;border-radius:5px}
.target-tree [role=treeitem]:focus{outline:none}
.target-tree [role=treeitem]:focus-visible>.target-tree-row{outline:2px solid var(--green);outline-offset:-2px}
.target-tree-row{display:flex;align-items:flex-start;gap:3px;padding:6px 3px;border-radius:5px;min-height:40px}
.target-tree-row:hover{background:#f4f8f4}
.target-tree-row.target-selected{background:var(--green-light)}
.target-tree-row.target-match .tree-name{color:var(--green-dark);font-weight:600}
.tree-toggle,.tree-spacer{width:17px;height:24px;flex:none;display:inline-grid;place-items:center}
.tree-toggle{border:0;background:transparent;border-radius:3px;font-size:13px;color:#687c6c;padding:0}
.tree-toggle:hover:not(:disabled){background:#e4eee5}
.tree-toggle:disabled{opacity:1;cursor:default}
.tree-icon{display:block;width:14px;height:13px;flex:none;margin:5px 3px 0 0;border:1px solid #8ba490;border-radius:2px;background:#f5faf5}
.tree-icon-folder{height:11px;margin-top:7px;position:relative;background:#f0f7ea;border-color:#91ab7b}
.tree-icon-folder:before{content:"";position:absolute;top:-4px;left:0;width:7px;height:3px;border:1px solid #91ab7b;border-bottom:0;border-radius:2px 2px 0 0;background:#f0f7ea}
.tree-icon-item{transform:rotate(-2deg);border-color:#7b9eb6;background:#eff5fa}
.tree-icon-revision{border-color:#9a9eb1;background:#f5f5fa;position:relative}
.tree-icon-revision:after{content:"";position:absolute;left:3px;right:3px;top:4px;height:3px;border-top:1px solid #9a9eb1;border-bottom:1px solid #9a9eb1}
.tree-label{display:grid;grid-template-columns:15px minmax(0,1fr);column-gap:5px;align-items:start;min-width:0;flex:1;line-height:1.45;padding:1px 1px 1px 0}
.tree-label input{grid-column:1;grid-row:1/3;margin:4px 0 0;width:13px;height:13px}
.tree-name{grid-column:2;font-size:11px;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tree-meta{grid-column:2;color:var(--muted);font-size:10px;margin-top:1px}
.tree-container-label{grid-template-columns:minmax(0,1fr)}
.tree-container-label .tree-name,.tree-container-label .tree-meta{grid-column:1}
.summary-list{gap:7px;grid-template-columns:62px minmax(0,1fr)}
.summary-list dd{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.5}
.submit-help{font-size:10px;color:var(--muted)}
.submit-help summary{font-weight:400}
.validation-results{max-height:none;overflow:visible}
@media(min-width:1050px){
  body:has(#main-content:not([hidden])){height:100dvh;display:flex;flex-direction:column;overflow:hidden}
  .topbar{height:54px;flex:none;gap:24px;padding:0 18px}
  .brand-mark{width:30px;height:30px}
  main{padding:14px 16px 8px;width:100%;flex:1;min-height:0;display:flex;flex-direction:column}
  #design-view:not([hidden]){flex:1;min-height:0;display:flex;flex-direction:column}
  #jobs-view:not([hidden]){min-height:0;overflow:auto}
  .page-heading{margin-bottom:10px;flex:none}
  .page-heading .section-kicker{display:none}
  .page-heading h1{margin:0 0 2px}
  .workspace-grid{grid-template-columns:248px minmax(350px,1fr) 238px;gap:12px;flex:1;min-height:0;align-items:stretch;grid-template-rows:minmax(0,1fr)}
  .target-panel,.parameter-panel{display:flex;flex-direction:column;min-height:0}
  #target-fields,#parameter-fields{display:flex;flex-direction:column;flex:1;min-height:0}
  .target-list-wrap{flex:1;min-height:120px;max-height:none;overflow:auto}
  .parameter-scroll{flex:1;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
  .submission-column{grid-column:auto;grid-template-columns:minmax(0,1fr);grid-auto-rows:max-content;gap:10px;min-height:0;overflow:auto;align-content:start;scrollbar-width:thin}
  .capability-panel{grid-column:auto}
  .panel-heading{min-height:40px;padding:7px 12px}
  .panel-body{padding:12px}
  .template-strip{padding:5px 12px;min-height:37px}
  .app-footer{padding-top:7px;font-size:9px;flex:none}
  .parameter-footer .muted{display:inline}
}
@media(min-width:1450px){.workspace-grid{grid-template-columns:280px minmax(430px,1fr) 270px}.parameter-table td{height:42px}}
@media(max-width:1049px){
  .parameter-scroll{max-height:none;overflow:visible;min-height:0}
  .parameter-table th{position:static}
  .parameter-panel{overflow:visible}
  .target-list-wrap{max-height:440px}
  .group-tabs>.micro{display:none}
}

/* Original-image viewer and real backend progress; no additional progress overlay. */
.preview-enlarge{border:0;background:transparent;padding:0;display:grid;place-items:center;width:100%;cursor:zoom-in;color:var(--muted)}
.preview-open-hint{font-size:10px;display:block;margin-top:5px}
.preview-dialog{width:calc(100vw - 24px);max-width:none;height:calc(100dvh - 24px);max-height:none}
.preview-dialog[open]{display:flex;flex-direction:column}
.preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border-bottom:1px solid var(--line);flex-wrap:wrap;flex:none}
.preview-toolbar h2{margin:0;font-size:12px}
.preview-controls{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
#preview-scale{font-size:11px;min-width:42px;text-align:center}
.preview-help{font-size:10px;padding:6px 12px;margin:0;color:var(--muted);flex:none}
.preview-stage{position:relative;flex:1;min-height:0;display:flex;isolation:isolate}
.preview-stage>.preview-cad-host{position:absolute!important;inset:0;z-index:1}
.preview-loading{position:absolute;inset:0;z-index:2;display:flex;align-items:center;justify-content:center;gap:10px;background:#f8fbf955;pointer-events:none;font-size:12px;color:#245b3b}
.preview-loading>span:last-child{background:#fffffff0;padding:6px 10px;border-radius:4px}
.preview-viewport{flex:1;min-height:0;overflow:auto;background:#edf1ee;overscroll-behavior:contain;touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab;scroll-behavior:auto;overflow-anchor:none}
.preview-viewport[data-panning=true]{cursor:grabbing}
.preview-cad-host{position:relative;flex:1;min-height:0;padding:0;background:white;touch-action:none;user-select:none;cursor:grab;overscroll-behavior:contain}
.preview-cad-host[data-panning=true]{cursor:grabbing}
.preview-cad-host canvas{outline:none}
.preview-controls [aria-pressed=true]{border-color:var(--green);color:var(--green-dark);background:var(--green-light)}
.preview-message{margin:0;padding:5px 12px;font-size:11px;color:var(--amber);background:var(--amber-bg);flex:none}
.review-hint,.redraw-source{font-size:11px;padding:6px 10px;color:#77530d;background:#fff6dc;border-left:2px solid #c1983e;margin:0 0 8px}
.redraw-source{font-size:10px;padding:4px 12px;margin:0;flex:none}
.template-strip{flex-wrap:wrap}
.template-strip #source-load{margin-left:auto}
.template-strip #catalog-retry{margin-left:0}
.source-current{padding:3px 12px;font-size:10px;color:#345f43;background:#f1f7f2;overflow-wrap:anywhere;flex:none}
.source-dialog{width:min(1050px,calc(100vw - 24px));max-height:92dvh;overflow:visible}
.source-dialog[open]{display:flex;flex-direction:column}
.source-dialog>.dialog-heading{flex:none}
.source-busy{position:absolute;inset:0;z-index:20;display:grid;place-items:center;padding:20px;background:#f8fbf9ed;border-radius:inherit;outline:none}
.source-busy-panel{display:flex;flex-direction:column;align-items:center;gap:12px;max-width:390px;text-align:center;font-size:12px;line-height:1.6}
.source-spinner{width:27px;height:27px;border:3px solid #d8e6dc;border-top-color:var(--green);border-radius:50%;animation:pv-progress-spin .9s linear infinite}
.tree-branch-empty{font-size:10px;color:var(--muted);margin:3px 0 5px 26px}
.tree-more-row{padding:4px 0 5px 22px;list-style:none}
.target-view-tabs{display:flex;gap:6px;padding:7px 12px}
.target-view-tabs [aria-selected=true]{background:var(--green-light);border-color:var(--green);color:var(--green-dark)}
#target-status:empty{display:none}
.source-toast{position:sticky;bottom:8px;align-self:center;z-index:21;display:flex;align-items:center;gap:10px;width:calc(100% - 24px);margin:0 12px 10px;padding:12px 14px;border:1px solid #c18a27;border-radius:7px;background:#fff5d8;color:#674806;box-shadow:0 5px 20px #39260030;font-size:12px;line-height:1.55;flex:none;pointer-events:auto;animation:source-toast-enter .22s ease-out}
.source-toast-icon{display:grid;place-items:center;flex:none;width:24px;height:24px;border-radius:50%;background:#a96b00;color:white;font-weight:700;animation:source-toast-enter .3s ease-out}
.source-toast .icon-button{flex:none;margin-left:auto}
.source-returned-files{font-size:11px;margin:8px 0;overflow-wrap:anywhere}
.source-returned-files ul{padding-left:18px}
.pveng-dialog .delivery-choice{margin:10px 16px;gap:8px}
@keyframes source-toast-enter{from{opacity:.25;transform:translateY(6px) scale(.8)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.source-toast,.source-toast-icon{animation:none}}
.source-dialog-body{padding:10px 16px;overflow:auto;min-height:0;flex:0 1 auto;max-height:none}
.source-boundary{font-size:11px;color:var(--muted);margin-bottom:9px}
.source-tabs{display:flex;gap:8px;margin-bottom:9px}
.source-tabs [aria-selected=true]{color:var(--green-dark);background:var(--green-light);border-color:var(--green)}
.source-input-row,.source-input-panel{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:9px;font-size:11px}
.source-input-panel input[type=file]{min-width:0;max-width:100%;flex:1}
.source-input-panel select{flex:1;min-width:180px;max-width:100%}
.source-input-panel>p{flex-basis:100%}
.source-status{font-size:11px;padding:7px 9px;background:#eff5f0;border-radius:4px;margin:6px 0}
.source-status.error,.source-error{color:var(--red);background:var(--red-bg)}
.source-warning{font-size:11px;color:var(--amber);margin:5px 0}
.source-candidate-note{font-size:11px;margin:5px 0;color:#4c6654;line-height:1.5}
.source-warnings{font-size:11px;margin:5px 0}
.source-warnings>summary{font-weight:500;color:var(--amber)}
.source-warnings ul{padding-left:18px;margin:5px 0}
.source-error{padding:6px 8px;font-size:11px;overflow-wrap:anywhere}
.source-candidate-scroll{overflow:visible;max-height:none;margin-top:7px;border:1px solid var(--line);border-radius:4px}
.source-candidates{min-width:660px;table-layout:fixed}
.source-candidates th:first-child{width:42px}.source-candidates th:last-child{width:130px}
.source-candidates td{font-size:11px;white-space:pre-wrap;overflow-wrap:anywhere}
.source-candidates details p{white-space:pre-wrap;font-size:10px}
.source-field-status{display:block;color:var(--muted);font-size:10px;margin-top:3px}
.source-technical,.source-results>details,.source-history{font-size:11px;margin-top:10px}
.source-dialog-footer{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:10px 16px;border-top:1px solid var(--line);flex-wrap:wrap;flex:none}
.source-dialog-footer p{flex:1;min-width:210px}
.source-history p{font-size:10px;overflow-wrap:anywhere;margin:4px 0}
.source-diff{margin-top:7px}
.source-diff th{position:static}.source-diff td{white-space:pre-wrap;font-size:10px}
@media(max-width:620px){.source-dialog-body{padding:10px}.source-dialog-footer{padding:10px}.source-dialog-footer .button{width:100%}.source-input-row select{max-width:100%}}
.preview-canvas{display:flex;align-items:center;justify-content:center;min-width:100%;min-height:100%;padding:12px}
.preview-canvas img{display:block;max-width:none;max-height:none;flex:none;background:white;-webkit-user-drag:none;user-select:none}
.bundle-download{width:100%;text-align:center;justify-content:center;margin:4px 0}
.bundle-note{font-size:10px;line-height:1.5;margin:3px 0 8px}
.artifact-list li,.file-name-list li{padding:5px 0}
.artifact-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto 16px;align-items:center;gap:6px;font-size:11px}
.artifact-row .artifact-format{font-size:9px;padding:1px 4px;line-height:1.5;white-space:nowrap;border:1px solid #d8e1da}
.artifact-row .artifact-filename{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}
.artifact-size{white-space:nowrap;font-size:10px}
.artifact-name{position:relative;font-size:10px;margin:0;color:var(--muted)}
.artifact-name summary{font-weight:400;font-size:12px;text-align:center;list-style:none}
.artifact-name summary::-webkit-details-marker{display:none}
.artifact-name span{position:absolute;top:100%;right:0;z-index:5;width:min(320px,75vw);padding:7px 9px;border:1px solid var(--line);border-radius:4px;background:white;box-shadow:0 4px 12px #22312920;display:block;overflow-wrap:anywhere;white-space:normal}
.supplementary-files{font-size:11px;margin-top:8px}
.supplementary-files>summary{font-weight:500}
.detail-stages{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:10px 0 12px}
.detail-stages[data-mode=download]{grid-template-columns:repeat(3,minmax(0,1fr))}
.detail-stages>.stage-step{position:relative;padding:0;border:0;border-radius:0;display:flex;flex-direction:column;align-items:center;gap:4px;background:transparent;min-width:0}
.stage-step:not(:last-child)::after{content:"";position:absolute;top:9px;left:50%;right:calc(-50% - 8px);height:1px;background:#d9e3dc}
.step-icon{position:relative;z-index:1;display:grid;place-items:center;width:19px;height:19px;border:1px solid #d4ddd6;border-radius:50%;background:#eef2ef;color:#839087;font-size:13px;line-height:1;flex:none}
.step-copy{display:flex;align-items:baseline;justify-content:center;gap:4px;flex-wrap:wrap;position:relative}
.stage-name{font-size:10px;color:var(--muted)}
.stage-value{font-size:10px;overflow-wrap:anywhere}
.stage-success .step-icon{background:var(--green);border-color:var(--green);color:white}
.stage-success .stage-value{color:var(--green-dark)}
.stage-working .step-icon{border:2px solid #d2e2d6;border-top-color:var(--green-dark);background:white;animation:pv-progress-spin .9s linear infinite}
.stage-working .stage-value{color:var(--green-dark)}
.stage-failed .step-icon{background:var(--red);border-color:var(--red);color:white}
.stage-failed .stage-value{color:var(--red)}
.job-progress{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:11px;padding:0;margin:0;background:transparent;border:0;order:1}
.job-detail-top>.job-actions{margin-left:auto;order:2}
.progress-spinner{width:14px;height:14px;flex:none;border:2px solid #c6d8ca;border-top-color:var(--green-dark);border-radius:50%;animation:pv-progress-spin .9s linear infinite}
@keyframes pv-progress-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.progress-spinner,.source-spinner,.stage-working .step-icon{animation:none}}
@media(max-width:620px){.detail-stages[data-mode=archive]{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-stages[data-mode=archive]>.stage-step:nth-child(2)::after{display:none}.preview-toolbar{padding:8px}.preview-controls{gap:5px}.preview-help{padding:5px 8px}.preview-dialog{width:calc(100vw - 12px);height:calc(100dvh - 12px)}}

/* Design-only layout contract; leave login, job details and CAD viewers unchanged. */
/* Equal primary work areas; the review/submit rail remains compact. */
#design-view .workspace-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr) clamp(220px,16vw,300px);gap:12px}
#design-view .workspace-grid>*{min-width:0}
#design-view .parameter-table .override-col{width:40px;white-space:nowrap}
#design-view .parameter-table .reset-col{width:28px}
#design-view .parameter-table th:nth-child(2){width:clamp(120px,12vw,210px)}
#design-view .field-editor,#design-view .field-inherited{min-width:0;max-width:420px}
#design-view .field-editor input:not([type=checkbox]),#design-view .field-editor select,#design-view .field-editor textarea{min-width:0}
#design-view .parameter-toolbar .search-input{min-width:0;flex:1 1 170px}
#design-view .parameter-toolbar .group-tabs{min-width:0}

/* A row always reserves columns for disclosure and icon, not for optional actions. */
#design-view .target-tree-group{margin-left:5px;padding-left:4px}
#design-view .target-tree-row{display:grid;grid-template-columns:16px 14px minmax(0,1fr);align-items:start;gap:0 5px;padding:5px 3px;min-width:0}
#design-view .target-tree-row>.tree-toggle,#design-view .target-tree-row>.tree-spacer{grid-column:1;grid-row:1;width:16px}
#design-view .target-tree-row>.tree-icon{grid-column:2;grid-row:1;margin-right:0}
#design-view .target-tree-row>.tree-label{grid-column:3;grid-row:1;display:flex;align-items:flex-start;gap:5px;min-width:0;padding:1px 0;line-height:1.5}
#design-view .tree-label input[type=radio]{order:-1;flex:none;grid-area:auto;width:14px;height:14px;margin:3px 0 0}
#design-view .tree-name{grid-column:auto;flex:1;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.5}
#design-view .tree-row-actions{grid-column:3;grid-row:2;display:flex;align-items:center;flex-wrap:wrap;gap:3px 8px;min-width:0;margin-top:2px;line-height:1.5}
#design-view .tree-row-actions:empty{display:none}
#design-view .tree-row-actions>*{min-width:0;max-width:100%;overflow-wrap:anywhere}
#design-view .tree-row-actions .tree-meta{grid-column:auto;margin:0;color:var(--muted);font-size:10px}
#design-view .target-tree-row.tree-row-compact{grid-template-columns:16px 14px minmax(0,1fr) auto;align-items:center;min-height:36px;padding-top:6px;padding-bottom:6px}
#design-view .tree-row-compact>.tree-label{align-self:center}
#design-view .tree-row-compact>.tree-row-actions{grid-column:4;grid-row:1;flex-wrap:nowrap;gap:6px;justify-content:flex-end;margin-top:0;align-self:center}
#design-view .target-tree-row.tree-no-icon{grid-template-columns:16px minmax(0,1fr) auto}
#design-view .tree-no-icon>.tree-label{grid-column:2}
#design-view .tree-no-icon>.tree-row-actions{grid-column:3}
#design-view .target-tree [role=treeitem]{container-type:inline-size}
@container(max-width:260px){
  #design-view .target-tree-row.tree-row-compact{grid-template-columns:16px 14px minmax(0,1fr)}
  #design-view .tree-row-compact>.tree-row-actions{grid-column:3;grid-row:2;flex-wrap:wrap;justify-content:flex-start}
  #design-view .target-tree-row.tree-no-icon{grid-template-columns:16px minmax(0,1fr)}
  #design-view .tree-no-icon>.tree-row-actions{grid-column:2}
}
#design-view .tree-row-actions .tree-type-badge{display:inline-block;flex:none;max-width:112px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:1px 5px;border:1px solid #dce4df;border-radius:4px;background:#f5f7f6;color:#52645a;font-size:10px;line-height:18px;vertical-align:middle}
#design-view .tree-row-actions .tree-type-word{background:#edf4ff;border-color:#d0dff5;color:#3261a0}
#design-view .tree-row-actions .tree-type-pdf{background:#fff1ef;border-color:#f0d3cd;color:#a94c42}
#design-view .tree-row-actions .tree-type-excel{background:#edf7f1;border-color:#cce3d5;color:#33754d}
#design-view .tree-row-actions .tree-type-powerpoint{background:#fff3e9;border-color:#edd9c5;color:#a86635}
#design-view .tree-row-actions .tree-type-item{background:#eef5fb;border-color:#ccdeeb;color:#3c6b8d}
#design-view .tree-row-actions .tree-type-revision{background:#f3f0fa;border-color:#ded5ee;color:#71618e}
#design-view .tree-readonly{font-size:10px;color:var(--muted);white-space:nowrap}
#design-view .tree-icon-dataset{width:12px;height:15px;margin-top:3px;border-color:#5d91b2;position:relative;background:#f6fbff}
#design-view .tree-icon-dataset:before{content:"";position:absolute;top:-1px;right:-1px;width:4px;height:4px;border-left:1px solid #5d91b2;border-bottom:1px solid #5d91b2;background:white}
#design-view .tree-icon-dataset:after{content:"";position:absolute;left:2px;right:2px;top:7px;height:3px;border-top:1px solid #86a8bd;border-bottom:1px solid #86a8bd}
#design-view .tree-source-hint{color:var(--blue);font-size:10px;cursor:inherit}
#design-view .tree-tc-link,#design-view button.tree-drawing-list{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:26px;padding:2px 7px;border:1px solid #cbdccf;border-radius:4px;color:var(--green-dark);background:#f4f9f5;font-size:10px;line-height:1.5;margin:0;text-decoration:none;white-space:nowrap}
#design-view .tree-tc-link:before{content:"↗";font-size:12px;line-height:1}
#design-view button.tree-drawing-list{color:#3c6b8d;border-color:#c8dce8;background:#f1f7fb}
#design-view .tree-tc-link:hover,#design-view button.tree-drawing-list:hover:not(:disabled){box-shadow:0 0 0 2px #39794c16;border-color:#8fb49a}
#design-view button.tree-expand-branch{display:inline-flex;align-items:center;justify-content:center;gap:4px;flex:0 1 auto;min-height:26px;padding:2px 6px;border:1px solid #cbdccf;border-radius:4px;background:#f4f9f5;color:var(--green-dark);font-size:10px;white-space:nowrap;line-height:1.5}
#design-view button.tree-expand-branch[aria-expanded=false]:before{content:"+";font-size:12px;line-height:1}
#design-view button.tree-expand-branch[aria-expanded=true]:before{content:"−";font-size:12px;line-height:1}
#design-view .target-expand-controls button.tree-expand-branch{min-height:26px;padding:2px 6px;white-space:nowrap}
#design-view button.tree-expand-branch:hover:not(:disabled){background:#e4f2e7;border-color:#9abca4}
#design-view .tree-source-row{cursor:pointer}
#design-view .tree-source-row:not([aria-disabled=true]):hover{background:#edf6ef}
#design-view .tree-source-row:focus-visible,#design-view .tree-source-row:focus-within{outline:2px solid var(--green);outline-offset:-2px}
#design-view .target-tree-row.target-selected,#design-view .target-tree-row:has(input[type=radio]:checked){background:var(--green-light);box-shadow:inset 2px 0 var(--green)}
#design-view .tree-label:has(input[type=radio]:checked) .tree-name{font-weight:600;color:var(--green-dark)}
#design-view .tree-label:has(input[type=radio]:disabled){cursor:default}
#design-view .tree-label input[type=radio]:disabled{opacity:.65;cursor:not-allowed}
#design-view .tree-label:has(input[type=radio]:disabled) .tree-name,#design-view .tree-source-row[aria-disabled=true] .tree-name{color:var(--muted)}
#design-view .browser-location{min-width:0;flex-wrap:wrap;gap:4px 8px}
#design-view .browser-location>span{flex:1 1 95px;min-width:0;overflow-wrap:anywhere}
#design-view .target-expand-controls{display:flex;align-items:center;justify-content:flex-end;flex:0 1 auto;flex-wrap:wrap;gap:4px;min-width:0;max-width:100%;margin-left:auto}
#design-view .browser-location .button{min-width:0;max-width:100%;min-height:25px;padding:2px 6px;font-size:10px;white-space:normal}

/* Local status only: fetching drawings never overlays or locks parameter editors. */
#design-view .object-drawings{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;flex:none;min-width:0;padding:6px 12px;border-bottom:1px solid var(--line);background:#f6faf7;font-size:11px;line-height:1.5}
#design-view .object-drawings[hidden]{display:none}
#design-view .object-drawings-heading{display:flex;align-items:center;gap:6px;flex:1 1 180px;min-width:0}
#design-view .object-drawings-heading :is(h2,h3){margin:0;font-size:11px;flex:none}
#design-view #object-drawing-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}
#design-view #object-drawing-status{flex:0 1 auto;min-width:0;max-width:100%;overflow-wrap:anywhere;color:var(--muted);font-size:10px}
#design-view .object-drawings label{min-width:0;overflow-wrap:anywhere}
#design-view #object-drawing-choice{flex:1 1 180px;min-width:0;max-width:360px;min-height:28px;padding:3px 6px;font-size:11px}
#design-view .object-drawings-spinner{display:none;flex:none;width:12px;height:12px;border:2px solid #d2e2d6;border-top-color:var(--green-dark);border-radius:50%}
#design-view .object-drawings[aria-busy=true] .object-drawings-spinner{display:inline-block}
@media(prefers-reduced-motion:no-preference){
  #design-view .object-drawings[aria-busy=true] .object-drawings-spinner{animation:pv-progress-spin .9s linear infinite}
}
@media(prefers-reduced-motion:reduce){
  #design-view .object-drawings-spinner{animation:none}
}
@media(min-width:1100px){
  #design-view .workspace-grid{display:grid;grid-template-rows:minmax(0,1fr)}
  #design-view .target-list-wrap{min-height:0;overscroll-behavior:contain;scrollbar-width:thin}
  #design-view .submission-column{grid-column:auto;grid-template-columns:minmax(0,1fr)}
}
/* Narrow layouts have one document scroller; panels grow instead of clipping content. */
@media(max-width:1099px){
  body:has(#main-content:not([hidden]) #design-view:not([hidden])){height:auto;min-height:100dvh;overflow:visible}
  #main-content:has(#design-view:not([hidden])){display:block;flex:none}
  #design-view:not([hidden]){display:block}
  #design-view .workspace-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto;align-items:start}
  #design-view .submission-column{display:grid;grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));min-width:0;overflow:visible}
  #design-view .target-panel,#design-view .parameter-panel{min-height:0}
  #design-view .target-list-wrap,#design-view .parameter-scroll{flex:none;min-height:0;max-height:none;overflow:visible}
  #design-view .parameter-table th{position:static}
}
@media(max-width:720px){
  #design-view .workspace-grid{grid-template-columns:minmax(0,1fr)}
  #design-view .workspace-grid>.panel,#design-view .submission-column{width:100%}
  #design-view .submission-column{grid-template-columns:minmax(0,1fr)}
  #design-view .template-strip{gap:6px;padding:6px 10px}
  #design-view .object-drawings{padding:6px 10px}
  #design-view .object-drawings-heading{flex-basis:100%}
}
@media(max-width:420px){
  #design-view .parameter-table th:nth-child(2){width:34%}
  #design-view .parameter-table .override-col{width:30px}
  #design-view .parameter-table .reset-col{width:36px}
  #design-view .parameter-table td,#design-view .parameter-table th{padding-left:5px;padding-right:5px}
  #design-view .parameter-toolbar .group-tabs{flex:1 1 180px}
}
