/* Shared brand and progressively disclosed controls across the local product. */
:root{--brand-blue:#103969;--ink:#19364c;--muted:#526b7b;--teal:#103969;--accent:#103969;--blue:#103969;--navy:#103969;--cyan:#477a9e}body{font-family:'Microsoft YaHei','PingFang SC',system-ui,sans-serif;font-size:14px;color:var(--ink)}[hidden]{display:none!important}
.system-header{height:76px!important;min-height:76px;display:flex!important;align-items:center!important;gap:28px!important;padding:0 28px!important;border-bottom:1px solid #dde5ed;background:#fff;width:100%;position:relative;z-index:20;box-sizing:border-box}.system-brand{display:flex;align-items:center;gap:12px;flex:none;color:#103969;white-space:nowrap}.system-brand img{width:58px;height:58px;display:block;max-width:none;object-fit:contain}.system-brand strong{font-size:16px;font-weight:700;letter-spacing:0}.system-header .system-nav{margin:0;display:flex;align-self:stretch;align-items:center;gap:6px;font-size:14px}.system-header .system-nav a{display:flex!important;align-items:center;min-height:42px;padding:0 18px!important;border-radius:8px;background:transparent;color:#526b7b;font-size:14px;white-space:nowrap}.system-header .system-nav a[aria-current=page]{background:#eaf0f7;color:#103969;font-weight:700}.system-header .system-nav a:after{display:none}.system-header .system-account{margin-left:auto;font-size:13px;white-space:nowrap;color:#526b7b}.system-header .local-label{font-size:11px;color:#526b7b;border:1px solid #d8e2ec;border-radius:5px;padding:4px 7px;margin-left:auto}.system-header .local-label+.system-account{margin-left:0}
.system-intro{max-width:1280px;margin:32px auto 24px;padding:0 28px}.system-intro h1{font-size:30px;margin:0 0 10px;line-height:1.35;letter-spacing:0}.system-intro p{font-size:14px;color:#526b7b;line-height:1.8;margin:0}.system-link-row{display:flex;gap:18px;align-items:center;flex-wrap:wrap;font-size:13px}.system-disclosure{border:1px solid #dce5ed;border-radius:10px;background:#fff;margin:16px 0;padding:0 18px}.system-disclosure>summary{padding:16px 0;cursor:pointer;font-weight:600;font-size:14px}.system-disclosure>section{margin:0 0 20px}.system-disclosure[open]>summary{border-bottom:1px solid #e5ebf1;margin-bottom:16px}.system-disclosure .section-head,.system-disclosure .section-heading{margin-top:18px}.primary,button.primary{background:#103969!important;border-color:#103969!important;color:white!important}.primary:hover{background:#1c4b7f!important}button,a,summary{touch-action:manipulation}summary:focus-visible{outline:3px solid #6c9dcc;outline-offset:3px}button{border-radius:7px}.action-menu{position:relative;flex:none}.action-menu>summary{list-style:none;cursor:pointer;padding:10px 13px;border:1px solid #d6e1eb;border-radius:7px;background:white;font-size:13px;white-space:nowrap}.action-menu>summary::-webkit-details-marker{display:none}.action-menu>div{position:absolute;right:0;top:calc(100% + 5px);width:200px;padding:7px;background:white;border:1px solid #d8e3eb;border-radius:10px;box-shadow:0 12px 32px #17365022;z-index:50;display:grid;gap:4px}.action-menu>div button,.action-menu>div a{display:block;background:white;text-align:left;padding:11px;border:0;color:#19364c;font-size:13px;border-radius:5px}.action-menu>div button:hover{background:#eef3f8}.simple-dialog{width:min(650px,calc(100vw - 24px));max-height:88dvh;overflow:auto;border:1px solid #d5e1eb;border-radius:14px;padding:24px;color:#19364c}.simple-dialog::backdrop{background:#16365055;backdrop-filter:none}.dialog-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.dialog-title h2{margin:0;font-size:22px}.dialog-title button{font-size:24px;background:none;border:none;color:#19364c;width:36px;height:36px}.simple-dialog .summary{padding:0;border:0;display:block;overflow:visible}.simple-dialog .summary .panel-heading{display:none}.simple-dialog .stock{margin-top:22px}.summary-section{margin:20px 0;border-top:1px solid #e3eaf0}.summary-section>summary{cursor:pointer;padding:15px 0;font-size:14px}.summary-section .technical-note{margin-top:14px}
body[data-page=designer] .project-bar{min-height:68px;padding:10px 24px;gap:10px}body[data-page=designer] .project-bar>div:first-child{gap:10px}body[data-page=designer] #saveStatus{font-size:11px;max-width:120px}body[data-page=designer] .project-actions{display:flex;align-items:center;gap:8px;overflow:visible}body[data-page=designer] .project-actions>button{padding:10px 14px;font-size:13px}body[data-page=designer] .studio-layout{grid-template-columns:260px minmax(0,1fr);min-height:620px;height:calc(100dvh - 178px)}body[data-page=designer] .builder{display:block;padding:20px 18px}body[data-page=designer] .builder h1{font-size:19px;margin:0}body[data-page=designer] .builder h2{font-size:14px}body[data-page=designer] .builder .subtle{font-size:13px;line-height:1.8;margin:10px 0 20px}body[data-page=designer] .builder .field{font-size:13px;margin:14px 0}body[data-page=designer] .builder .field input,body[data-page=designer] .builder .field select{font-size:14px}body[data-page=designer] .builder .template-launch{margin:14px 0;padding:13px}body[data-page=designer] #openOutlets{margin:10px 0;padding:13px}body[data-page=designer] .step-tag,body[data-page=designer] .eyebrow{display:none}body[data-page=designer] .viewport-area{min-height:0}body[data-page=designer] .viewport-top{height:auto;min-height:56px;padding:10px 16px;flex-wrap:wrap}body[data-page=designer] #engineStatus{font-size:11px}body[data-page=designer] .scene-badge{top:72px;left:20px}body[data-page=designer] .scene-badge small{display:none}body[data-page=designer] .scene-badge span{font-size:18px}body[data-page=designer] .viewport-bottom{padding:10px 14px;gap:12px}body[data-page=designer] .viewport-bottom>span{font-size:11px}body[data-page=designer] .tools{display:flex;align-items:center;gap:6px}body[data-page=designer] .tools button{font-size:13px}body[data-page=designer] .viewport-bottom label{font-size:11px}body[data-page=designer] .direction-grid button{padding:10px 2px;font-size:13px}body[data-page=designer] .studio-footer{padding:9px 20px;font-size:11px}.build-step{padding:0 0 17px;border-bottom:1px solid #e0e8ef;margin-bottom:17px}.build-step>summary{cursor:pointer;font-size:15px;font-weight:600;padding:4px 0 12px}.build-step>summary small{display:block;font-size:11px;font-weight:400;color:#607484;margin-top:5px}.build-step .mini{font-size:11px}.builder .selection-block{margin:18px 0;padding:14px;background:#f2f6fa;border-radius:8px}.builder .selection-block .row-heading{margin-top:0}.builder .selection-block .mini{line-height:1.6}.builder .secondary-settings{font-size:12px;margin-top:18px}.builder .secondary-settings>summary{cursor:pointer;padding:10px 0}.builder .secondary-settings .templates{display:grid;gap:6px}.builder .secondary-settings .templates button{font-size:12px;padding:9px}.quick-summary{font-size:13px;color:#345770;margin-right:auto;white-space:nowrap}.template-settings .fine-options{margin:15px 0;font-size:13px}.fine-options>summary{cursor:pointer;padding:8px 0}.template-settings .template-sizes{gap:10px}.template-heading small,.template-heading .eyebrow{display:none}
body[data-page=library] .library-section{max-width:1280px;margin:auto;padding:0 28px 28px}body[data-page=library] .section-heading{display:none}body[data-page=library] .library-layout{display:block}body[data-page=library] .filters{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:12px 0 20px;border:0;background:none;position:static;width:auto}body[data-page=library] .filters fieldset{border:0;padding:0;margin:0}body[data-page=library] .filters legend{display:none}body[data-page=library] .filter-title{order:5;margin:0;padding:0}body[data-page=library] .filter-title h3{display:none}body[data-page=library] #categoryFilters{display:none}body[data-page=library] #categorySelect{display:block;width:210px;max-width:100%;padding:11px;border:1px solid #d4e0e8;border-radius:7px;background:#fff;font-size:13px}body[data-page=library] .diameter-buttons{display:flex;gap:5px;flex-wrap:wrap;margin:0}body[data-page=library] .diameter-buttons button{min-width:38px;padding:10px 11px;font-size:12px}body[data-page=library] .search-bar{margin-bottom:8px}body[data-page=library] .search-bar input{font-size:15px}body[data-page=library] .model-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}body[data-page=library] .card-image{height:142px}body[data-page=library] .card-body{padding:15px}body[data-page=library] .card h3{font-size:14px}body[data-page=library] .card-meta{font-size:12px}body[data-page=library] .results-heading{margin-bottom:12px}body[data-page=library] .packs-section{padding:0 0 20px}body[data-page=library] .help{background:white;padding:0;display:block}body[data-page=library] .help h2{font-size:18px}body[data-page=library] .help .eyebrow{display:none}body[data-page=library] .extra-resources{max-width:1224px;margin:0 auto 30px}body[data-page=library] #seriesFilters{display:flex;gap:5px}body[data-page=library] .series-extra>summary{cursor:pointer;font-size:12px;padding:10px;color:#526b7b}body[data-page=library] .series-extra[open]{width:100%}body[data-page=library] .detail-image{max-height:180px}body[data-page=library] .checksum{font-size:10px;overflow-wrap:anywhere}
body[data-page=installation] main{max-width:1280px;margin:auto;padding:0 28px}body[data-page=installation] .intro{padding:28px 0 24px;margin:0}body[data-page=installation] .intro h1{font-size:30px;margin:0 0 8px}body[data-page=installation] .intro .eyebrow,body[data-page=installation] .review-tag{display:none}body[data-page=installation] .intro p{font-size:14px}body[data-page=installation] .watch{grid-template-columns:minmax(0,1fr) 300px;gap:24px}body[data-page=installation] .chapter strong{font-size:14px}body[data-page=installation] .scope{font-size:12px;line-height:1.7}body[data-page=installation] .system-disclosure .review-section{border:0;padding:0}body[data-page=installation] .system-disclosure .eyebrow{display:none}body[data-page=installation] .system-disclosure h2{font-size:20px}.auth-copy .auth-benefits{display:none}.auth-copy h1{font-size:34px}.auth-layout{margin-top:40px}.auth-card{box-shadow:none}.system-footer{font-size:12px;color:#607484;display:flex;gap:20px;align-items:center;justify-content:space-between;padding:20px 28px;border-top:1px solid #e3eaf0}.system-footer img{width:36px;height:36px}.system-footer a{color:#103969}
@media(max-width:1050px){.system-header{padding:0 18px!important;gap:18px!important}.system-brand strong{display:none}.system-header .system-nav a{padding:0 12px!important}body[data-page=designer] .studio-layout{grid-template-columns:235px minmax(0,1fr)}body[data-page=designer] .project-bar input{width:180px}body[data-page=designer] #saveStatus{display:none}body[data-page=library] .model-grid{grid-template-columns:repeat(3,minmax(0,1fr))}body[data-page=library] .extra-resources{margin:0 28px 28px}body[data-page=installation] .watch{grid-template-columns:minmax(0,1fr) 250px}}
@media(max-width:700px){.system-header{height:auto!important;min-height:66px;padding:8px 14px!important;gap:10px!important;flex-wrap:wrap}.system-brand img{width:44px;height:44px}.system-header .local-label{display:none}.system-header .system-nav{order:3;width:100%;justify-content:space-between;gap:6px}.system-header .system-nav a{justify-content:center;flex:1;min-height:38px;font-size:13px}.system-header .system-account{margin-left:auto}.system-intro{margin:24px auto 16px;padding:0 18px}.system-intro h1{font-size:25px}.system-intro p{font-size:13px}.system-intro .system-link-row{margin-top:12px}.system-footer{padding:16px 18px;font-size:11px;flex-wrap:wrap}.system-footer img{display:none}body[data-page=designer] .project-bar{padding:10px 14px;flex-wrap:wrap}body[data-page=designer] .project-bar input{width:220px;max-width:65vw;font-size:15px}body[data-page=designer] .project-actions{width:100%;gap:6px;flex-wrap:wrap}body[data-page=designer] .project-actions>button{font-size:12px;padding:10px;flex:1}body[data-page=designer] .project-actions .action-menu summary{font-size:12px;padding:10px}body[data-page=designer] .studio-layout{display:flex;height:auto;min-height:0}body[data-page=designer] .viewport-area{height:410px;min-height:410px;order:0}body[data-page=designer] .builder{display:block;order:1;padding:20px;border-right:0}body[data-page=designer] .viewport-top{padding:8px 12px;gap:8px}body[data-page=designer] #engineStatus{font-size:10px}body[data-page=designer] .quick-summary{font-size:12px}body[data-page=designer] .tools .action-menu summary{padding:7px 9px;font-size:12px}body[data-page=designer] .viewport-bottom{flex-wrap:wrap;gap:5px;padding:7px 12px}body[data-page=designer] .viewport-bottom>span{font-size:10px}body[data-page=designer] .scene-badge{top:80px}.simple-dialog{padding:20px}.simple-dialog .summary{display:block}.builder .coordinate{display:block}body[data-page=library] .library-section{padding:0 18px 22px}body[data-page=library] .model-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}body[data-page=library] .card-image{height:110px}body[data-page=library] .card-body{padding:12px}body[data-page=library] .card h3{font-size:13px;min-height:38px}body[data-page=library] .card .code{font-size:18px}body[data-page=library] .card-meta{font-size:11px;gap:5px}body[data-page=library] .card-actions{display:grid;gap:8px}body[data-page=library] .card-actions a,body[data-page=library] .card-actions button{font-size:12px;text-align:center;width:100%;padding:9px 4px}body[data-page=library] #categorySelect{width:100%;font-size:13px}body[data-page=library] .filters{gap:10px}body[data-page=library] .filters fieldset{max-width:100%}body[data-page=library] .diameter-buttons button{min-width:34px;padding:9px}body[data-page=library] .extra-resources{margin:0 18px 25px}body[data-page=library] .search-bar{padding:9px 10px}body[data-page=library] .search-bar input{font-size:13px}body[data-page=installation] main{padding:0 18px}body[data-page=installation] .watch{display:block}body[data-page=installation] .intro h1{font-size:25px}body[data-page=installation] .watch aside{margin-top:18px}body[data-page=installation] .chapters{display:grid;grid-template-columns:1fr 1fr;gap:7px}body[data-page=installation] .chapter{padding:10px;gap:8px}body[data-page=installation] .chapter-number{font-size:12px}body[data-page=installation] .chapter strong{font-size:12px}.auth-layout{margin-top:24px}.auth-copy{display:none}.auth-card{margin-top:0}.auth-layout.mobile-entry{margin:20px auto}.system-disclosure{padding:0 13px}.system-disclosure>summary{font-size:13px}}

@media(max-width:700px){.system-header .local-label+.system-account{margin-left:auto}}

.system-header .website-home{display:inline-flex;align-items:center;justify-content:center;flex:none;gap:5px;min-height:36px;padding:0 12px;border:1px solid #c6d6e5;border-radius:7px;background:#fff;color:#103969;font-size:13px;font-weight:600;white-space:nowrap;text-decoration:none}.system-header .website-home:hover{background:#edf3fa;border-color:#103969}.system-header .website-home:focus-visible{outline:2px solid #3f7db1;outline-offset:3px}@media(max-width:700px){.system-header .website-home{padding:0 9px;min-height:34px;font-size:12px}}

/* Selection v2: clear connection choices and an always-visible estimate. */
.dimension-editor{position:fixed;margin:0;padding:16px;width:300px;max-width:calc(100vw - 16px);box-sizing:border-box;border:1px solid #91adc5;border-radius:12px;box-shadow:0 8px 32px #17395833;color:#19364c;background:white}
.dimension-editor::backdrop{background:transparent;backdrop-filter:none}.dimension-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;font-size:16px}.dimension-title button{border:0;background:transparent;font-size:24px;padding:0 4px;color:#345770}
.dimension-editor .dimension-input{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch}.dimension-editor .dimension-input .primary{width:auto;min-width:66px;margin:0}.dimension-editor .dimension-input input{width:100%;margin:0}
.dimension-editor label{display:block;font-size:13px;margin-bottom:7px}.dimension-input{display:flex;gap:8px}.dimension-input input{min-width:0;width:100%;font:600 19px system-ui;border:1px solid #9bb1c3;border-radius:6px;padding:9px}.dimension-input input:focus{outline:2px solid #3f7db1;outline-offset:1px}.dimension-input button{flex:none;padding:9px 14px;border-radius:6px;border:0;font-size:14px}.dimension-editor small{font-size:11px;color:#526b7b}.dimension-editor p{font-size:12px;color:#ac391d;margin:8px 0}.dimension-editor p:empty{display:none}
.template-dialog{width:min(1100px,96vw);max-width:1100px;padding:26px;background:#fff}
.template-workspace{grid-template-columns:minmax(0,1fr) 300px;gap:24px;margin-top:18px;align-items:start}
.template-browser{min-width:0}.template-filters{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 14px}
.template-filters button{padding:9px 12px;font-size:13px;color:#304f68;border:1px solid #cfdae5;background:#fff}
.template-filters button[aria-pressed=true]{background:#103969;border-color:#103969;color:#fff}
.template-card{background:#fff!important;border-color:#bdcdda!important;padding:14px!important}
.template-card[aria-pressed=true]{background:#edf3fa!important;border-color:#103969!important;box-shadow:0 0 0 1px #103969}
.template-card svg{height:112px}.template-card strong{font-size:15px;color:#173958}.template-card small{font-size:12px;color:#415d72}
.template-card .template-view{background:#edf1f5;color:#415d72;font-size:11px}
.template-settings{position:sticky;top:0;padding-left:22px}.template-settings h3{font-size:20px;line-height:1.5}
.template-settings .field{font-size:13px}.template-settings .field input,.template-settings .field select{font-size:16px}
.template-estimate{background:#edf3fa;color:#103969;border-radius:7px;padding:13px 10px;font-size:13px;font-weight:700;line-height:1.7}
.template-estimate:empty{display:none}.template-preview{background:white;border-color:#c9d6e1}
.bom-actions{display:flex;align-items:center;gap:14px;grid-column:1/-1;margin-top:7px}
.bom-actions a,.bom-actions button{font-size:12px;color:#103969;text-decoration:none}
.bom-actions a{padding:7px 10px;border:1px solid #bccddd;border-radius:6px}
.bom-actions a:focus-visible,.template-card:focus-visible,.template-filters button:focus-visible{outline:3px solid #4a86bb;outline-offset:3px}
@media(max-width:700px){.template-dialog{padding:18px;max-height:94dvh}.template-workspace{grid-template-columns:1fr;gap:16px}.template-settings{position:static;border-left:0;border-top:1px solid #d6e0e9;padding:18px 0 0}.template-card svg{height:90px}.template-card{padding:10px!important}.template-card strong{font-size:13px}.template-filters button{font-size:12px;padding:8px}.template-heading h2{font-size:22px}.template-heading p{padding-right:10px}.template-estimate{font-size:13px}}

body[data-page=designer] #clearCanvas{color:#a43b2c}body[data-page=designer] .viewport-top .tools{flex-wrap:wrap}body[data-page=designer] .viewport-top .tools button{white-space:nowrap}@media(max-width:850px){body[data-page=designer] .viewport-top{height:auto;flex-wrap:wrap}body[data-page=designer] .viewport-top .tools{width:100%;justify-content:flex-end;gap:5px}body[data-page=designer] .viewport-top .tools>button{padding:8px;font-size:12px}body[data-page=designer] .scene-badge{top:105px}}
