:root{--ink:#17232d;--muted:#64727d;--line:#dfe5e8;--paper:#f4f6f6;--card:#fff;--navy:#12202b;--green:#1e8065;--green2:#dcefe8;--orange:#cb793c;--blue:#3d90a7;--shadow:0 16px 44px rgba(21,38,48,.08)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',sans-serif}button{font:inherit;cursor:pointer}.shell{width:min(1240px,calc(100% - 48px));margin:0 auto}.topbar{height:76px;padding:0 max(24px,calc((100vw - 1240px)/2));display:flex;align-items:center;justify-content:space-between;background:#111e28;color:#f4f7f8;position:sticky;top:0;z-index:20;box-shadow:0 5px 20px #07101822}.brand{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none}.brand-mark{height:38px;width:38px;border-radius:11px;background:#2c8a6f;display:grid;place-items:center;font:800 14px Manrope;letter-spacing:-1px}.brand-text{display:grid;gap:2px}.brand-text strong{font:700 14px Manrope}.brand-text small{font-size:9px;letter-spacing:1.4px;color:#9eb0ba}.main-nav{display:flex;align-items:center;gap:6px}.nav-button{border:0;background:transparent;color:#b6c2c9;padding:11px 17px;border-radius:9px;font-size:13px;font-weight:600}.nav-button:hover,.nav-button.active{background:#263946;color:#fff}.topbar-right{font-size:11px;color:#b7c6ce;display:flex;align-items:center;gap:8px}.status-dot,.live-dot{width:7px;height:7px;border-radius:50%;background:#59c69c;display:inline-block;box-shadow:0 0 0 4px #59c69c22}.page{display:none;min-height:calc(100vh - 140px)}.page.active{display:block}.hero{padding:64px 0 48px;display:grid;grid-template-columns:1.45fr .8fr;gap:70px;align-items:center}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:700;color:var(--green);margin:0 0 12px}.hero h1,.page-heading h1{font:800 clamp(34px,4.4vw,55px)/1.12 Manrope;margin:0;letter-spacing:-2px}.hero h1 span{color:var(--green)}.hero-lead{max-width:690px;color:#596873;font-size:16px;line-height:1.75;margin:20px 0 25px}.hero-actions{display:flex;gap:10px;flex-wrap:wrap}.button{border:1px solid transparent;padding:13px 18px;border-radius:9px;font-size:13px;font-weight:700}.button.primary{background:var(--green);color:white}.button.primary:hover{background:#176d55}.button.secondary{background:white;border-color:var(--line);color:var(--ink)}.button.secondary:hover{border-color:#9db6ac}.stat-row{display:flex;gap:34px;margin-top:34px}.stat-row div{display:grid;gap:3px}.stat-row strong{font:800 22px Manrope}.stat-row span{font-size:11px;color:var(--muted)}.hero-aside{background:#fff;border:1px solid var(--line);border-radius:16px;padding:25px 26px;box-shadow:var(--shadow)}.mini-label,.sidebar-title,.accessory-title{font-size:9px;letter-spacing:1.7px;color:#85939b;font-weight:800;margin-bottom:16px}.path-item{display:flex;align-items:center;gap:13px;padding:13px 0;border-bottom:1px solid #edf0f1}.path-item:last-child{border:0;padding-bottom:0}.path-item>span{height:31px;width:31px;border-radius:9px;background:#edf5f1;color:var(--green);display:grid;place-items:center;font:700 11px Manrope}.path-item div{display:grid;gap:3px}.path-item b{font-size:13px}.path-item small{font-size:11px;color:var(--muted)}.section-block{padding:24px 0 64px}.section-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:18px;gap:20px}.section-heading h2{font:750 27px Manrope;margin:0 0 7px;letter-spacing:-.7px}.section-heading p:not(.eyebrow){margin:0;color:var(--muted);font-size:13px}.view-controls{display:flex;gap:7px}.small-button{border:1px solid var(--line);background:#fff;padding:9px 13px;border-radius:8px;font-size:11px;font-weight:700;color:#42515b}.small-button:hover{border-color:#9bb7ac;color:var(--green)}.viewer-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px}.viewer-card{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:var(--shadow)}.viewer-topline,.viewer-bottomline{height:42px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;font-size:9px;letter-spacing:1.1px;font-weight:800;color:#6e7c85}.viewer-topline{border-bottom:1px solid #edf0f1}.viewer-topline .live-dot{margin-right:7px;width:6px;height:6px}.viewer-hint{font-size:10px;letter-spacing:0;font-weight:500;color:#9aa5ab}.viewer-host{height:470px;position:relative;background:radial-gradient(ellipse at 50% 44%,#fff 0,#f1f5f4 67%,#e9efed 100%);overflow:hidden}.viewer-host canvas{display:block;width:100%;height:100%;outline:none}.viewer-bottomline{height:38px;border-top:1px solid #edf0f1;font-size:10px;letter-spacing:0;font-weight:500;color:#88959c}.info-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:24px;box-shadow:var(--shadow)}.info-card h3{font:750 21px Manrope;margin:0 0 12px}.info-card>p:not(.eyebrow){font-size:12px;line-height:1.7;color:var(--muted);margin:0}.info-divider{height:1px;background:#edf0f1;margin:20px 0}.info-fact{display:flex;gap:12px;margin:15px 0}.fact-icon{flex:0 0 28px;height:28px;border-radius:8px;background:#edf5f1;color:var(--green);display:grid;place-items:center;font:700 10px Manrope}.info-fact div{display:grid;gap:4px}.info-fact b{font-size:12px}.info-fact small{font-size:11px;line-height:1.5;color:var(--muted)}.text-button{border:0;background:none;color:var(--green);font-weight:700;font-size:12px;padding:10px 0 0}.page-heading{padding:48px 0 25px}.page-heading h1{font-size:38px;letter-spacing:-1.4px}.page-heading>p:not(.eyebrow){color:var(--muted);font-size:13px;margin:10px 0 0}.components-layout{display:grid;grid-template-columns:220px minmax(360px,1fr) 270px;gap:16px;padding-bottom:65px;align-items:start}.component-sidebar{background:#fff;border:1px solid var(--line);border-radius:13px;padding:18px;height:max-content;box-shadow:var(--shadow)}.component-list{display:grid;gap:4px}.component-group{font-size:9px;letter-spacing:1.4px;color:#9aa5ab;font-weight:800;padding:13px 8px 5px}.component-item{border:0;background:transparent;text-align:left;padding:10px 9px;border-radius:8px;color:#42515b;font-size:12px;display:flex;align-items:center;gap:9px}.component-item:hover,.component-item.active{background:#edf5f1;color:#176d55}.component-item i{width:7px;height:7px;border-radius:50%;background:#9ba9ae;display:inline-block}.component-item.active i{background:var(--green);box-shadow:0 0 0 4px #1e80651c}.component-viewer-column{display:grid;gap:14px}.component-viewer-card .viewer-host{height:510px}.component-detail{background:#fff;border:1px solid var(--line);border-radius:13px;padding:19px 18px;display:block;align-self:start;position:sticky;top:94px;min-height:230px;box-shadow:var(--shadow)}.detail-icon{height:38px;width:38px;flex:0 0 38px;border-radius:11px;background:#edf5f1;color:var(--green);display:grid;place-items:center;font-size:21px}.component-detail h3{font:750 18px Manrope;margin:0 0 5px}.component-detail p:not(.eyebrow){font-size:12px;color:var(--muted);line-height:1.6;margin:0}.component-detail .eyebrow{margin-bottom:5px}
.component-category{display:grid;gap:3px}.component-group{padding-top:15px}.component-item{width:100%;font-size:11px;padding:9px 8px}.component-item span{flex:1}.component-item small{font-size:9px;color:#91a09f;font-weight:700;background:#f0f4f3;border-radius:5px;padding:2px 5px}.component-item.active small{background:#dcefe8;color:#176d55}
.detail-heading{display:flex;align-items:flex-start;gap:11px;margin-bottom:15px}.detail-heading .detail-icon{margin-top:1px}.detail-heading .eyebrow{margin:0 0 5px;font-size:9px;line-height:1.35}.detail-heading h3{font:750 17px/1.3 Manrope;margin:0}.detail-count{font-size:12px;color:#82908f;font-weight:600}.detail-description{font-size:12px;line-height:1.65;color:#56656e;margin:0 0 16px}.detail-section{border-top:1px solid #edf0f1;padding:13px 0 0;margin-top:12px}.detail-label{display:block;font-size:9px;letter-spacing:1.4px;font-weight:800;color:#81908f;margin-bottom:6px}.detail-section p{font-size:11px;line-height:1.6;color:#66757c;margin:0}.detail-section.note{background:#f5f8f6;border:1px solid #e4ece7;border-radius:9px;padding:11px;margin-top:13px}.detail-section.note .detail-label{color:#39745d}
.integration-heading{display:flex;align-items:end;justify-content:space-between;gap:20px}.integration-heading h1{font-size:36px}.setup-pills{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.setup-pills span{font-size:10px;padding:8px 10px;border:1px solid #d8e3df;background:#fff;border-radius:20px;color:#52635d}.integration-layout{display:grid;grid-template-columns:minmax(0,1fr) 365px;gap:18px;padding-bottom:18px}.integration-viewer-card .viewer-host{height:575px}.inline-view-button{border:0;background:none;color:var(--green);font-weight:700;font-size:10px}.legend-row{display:flex;gap:18px;flex-wrap:wrap;padding:11px 3px 16px;color:#718089;font-size:10px}.legend-row span{display:flex;align-items:center;gap:6px}.legend-dot{height:8px;width:8px;border-radius:50%;display:inline-block}.legend-dot.input{background:#2a9bb8}.legend-dot.output{background:#d98a42}.legend-dot.common{background:#c75b58}.accessory-strip{background:#fff;border:1px solid var(--line);border-radius:13px;padding:16px;box-shadow:var(--shadow)}.accessory-title{margin-bottom:10px}.accessory-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.accessory-card{border:1px solid #e6ebed;background:#fbfcfc;border-radius:9px;padding:10px;display:grid;grid-template-columns:35px 1fr;column-gap:9px;text-align:left;align-items:center}.accessory-card:hover,.accessory-card.active{border-color:#7cae9d;background:#f2f8f5}.accessory-symbol{grid-row:span 2;width:34px;height:34px;border-radius:9px;display:grid;place-items:center;font:800 10px Manrope}.accessory-symbol.green{background:#dceee6;color:#247457}.accessory-symbol.black{background:#e5e8e9;color:#29343a}.accessory-symbol.silver{background:#e9eff0;color:#66747b;font-size:19px}.accessory-card b{font-size:10px}.accessory-card small{font-size:9px;color:#839098;line-height:1.35}.integration-panel{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);overflow:hidden;align-self:start}.panel-tabs{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid var(--line)}.panel-tab{border:0;background:#fff;padding:15px 8px;font-size:11px;font-weight:700;color:#75838a;border-bottom:2px solid transparent}.panel-tab span{margin-left:3px;color:#a3adb2;font-size:9px}.panel-tab.active{color:var(--green);border-bottom-color:var(--green);background:#fbfdfc}.panel-content{padding:18px}.panel-content h3{font:750 17px Manrope;margin:0 0 7px}.panel-content>p{font-size:11px;line-height:1.6;color:var(--muted);margin:0 0 13px}.mapping-note{background:#f1f7f4;border:1px solid #dcebe4;border-radius:8px;padding:10px;font-size:10px;line-height:1.5;color:#49665a;margin:12px 0}.signal-list{display:grid;gap:7px;max-height:395px;overflow:auto;padding-right:3px}.signal-row{border:1px solid #e6ebed;border-radius:9px;padding:9px 10px;display:grid;grid-template-columns:minmax(0,1fr) 92px;gap:8px;align-items:center}.signal-row.active{border-color:#75ad9b;background:#f5faf7}.signal-name{display:grid;gap:3px}.signal-name b{font-size:11px}.signal-name small{font-size:9px;color:#839099}.signal-row select{width:100%;border:1px solid #dfe6e8;border-radius:7px;padding:7px 5px;background:#fff;color:#44535b;font-size:10px}.signal-row select option:disabled{color:#9aa3aa;background:#eef1f2;font-style:italic}.signal-actions{display:flex;gap:7px;margin-top:13px}.button.compact{padding:9px 12px;font-size:10px}.button.outline{background:#fff;border-color:var(--line);color:#43535d}.button:disabled{opacity:.45;cursor:not-allowed}.progress-label{font-size:9px;color:#839099;margin-top:9px}.progress-track{height:5px;background:#edf1f2;border-radius:8px;overflow:hidden;margin-top:6px}.progress-fill{height:100%;background:var(--green);width:0;transition:width .2s}.setup-step{padding:12px 0;border-bottom:1px solid #edf0f1;display:flex;gap:10px}.setup-step:last-child{border:0}.setup-step span{height:25px;width:25px;border-radius:8px;background:#edf5f1;color:var(--green);display:grid;place-items:center;font:700 10px Manrope;flex:0 0 25px}.setup-step b{font-size:11px}.setup-step small{display:block;color:var(--muted);font-size:10px;line-height:1.5;margin-top:3px}.safety-note{margin:0 auto 55px;background:#fff8ef;border:1px solid #f0dfc9;border-radius:11px;padding:15px 18px;display:flex;gap:12px;align-items:flex-start}.safety-icon{width:24px;height:24px;border-radius:50%;background:#f5e1c8;color:#a35d26;display:grid;place-items:center;font-weight:800;flex:0 0 24px}.safety-note b{font-size:11px;color:#815125}.safety-note p{font-size:10px;line-height:1.55;color:#8b7258;margin:4px 0 0}.footer{border-top:1px solid var(--line);padding:18px 0;color:#89969d;font-size:10px}.footer .shell{display:flex;justify-content:space-between;gap:12px}.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);background:#17252e;color:#fff;padding:11px 15px;border-radius:9px;font-size:11px;opacity:0;pointer-events:none;transition:.2s;z-index:40;box-shadow:var(--shadow)}.toast.show{opacity:1;transform:translate(-50%,0)}.empty-state{padding:20px;border:1px dashed #d5dfe2;border-radius:9px;color:#87939a;font-size:11px;line-height:1.5}.wire-summary{display:flex;justify-content:space-between;align-items:center;margin:10px 0 4px;font-size:10px;color:#77858d}.pin-chip{font:700 10px Manrope;background:#eef3f3;border-radius:6px;padding:4px 6px;color:#475961}.small-caption{font-size:9px;color:#87939a;line-height:1.45;margin-top:9px}
@media(max-width:1050px){.hero{gap:28px}.viewer-layout{grid-template-columns:minmax(0,1fr) 285px}.integration-layout{grid-template-columns:minmax(0,1fr) 340px}.components-layout{grid-template-columns:190px minmax(300px,1fr) 235px}}
@media(max-width:820px){.topbar{padding:0 18px}.topbar-right{display:none}.hero{grid-template-columns:1fr;padding-top:42px}.hero-aside{max-width:560px}.viewer-layout,.integration-layout{grid-template-columns:1fr}.components-layout{grid-template-columns:1fr}.component-sidebar{order:1}.component-viewer-column{order:2}.component-detail{order:3;position:static;min-height:0}.integration-heading{display:block}.setup-pills{justify-content:flex-start;margin-top:15px}.integration-panel{order:2}.integration-viewer-column{order:1}}
@media(max-width:600px){.shell{width:calc(100% - 28px)}.topbar{height:auto;min-height:68px;flex-wrap:wrap;padding:12px 14px;gap:8px}.brand-mark{width:34px;height:34px}.main-nav{order:3;width:100%;justify-content:space-between}.nav-button{padding:9px 12px;font-size:11px}.hero{padding:38px 0 28px}.hero h1{font-size:36px;letter-spacing:-1.3px}.hero-lead{font-size:13px}.stat-row{gap:18px}.stat-row strong{font-size:19px}.hero-aside{padding:20px}.section-heading{align-items:flex-start;flex-direction:column}.section-heading h2{font-size:23px}.viewer-host{height:360px}.component-viewer-card .viewer-host{height:390px}.integration-viewer-card .viewer-host{height:420px}.viewer-hint{display:none}.page-heading{padding:35px 0 20px}.page-heading h1,.integration-heading h1{font-size:31px}.accessory-grid{grid-template-columns:1fr}.footer .shell{flex-direction:column}.view-controls{flex-wrap:wrap}}

.viewer-status{position:absolute;inset:14px 14px auto 14px;z-index:5;padding:10px 12px;border:1px solid #d9e5e0;border-radius:9px;background:#ffffffed;color:#52635d;font-size:12px;line-height:1.45;box-shadow:0 5px 18px #152a2010;pointer-events:none}.viewer-status.error{border-color:#e7c7c2;background:#fff8f6;color:#9a443b}.viewer-status[hidden]{display:none}

.startup-error{position:fixed;left:16px;right:16px;bottom:16px;z-index:1000;padding:12px 16px;border:1px solid #e2b6ae;border-radius:10px;background:#fff5f2;color:#8d3d32;font-size:12px;line-height:1.5;box-shadow:0 8px 30px #14202b22}


/* V1.8: the catalogue scrolls with the document; the 3D viewer and detail card stay in view. */
@media (min-width: 821px){
  /* Give the sticky columns enough travel space while the longer catalogue is browsed. */
  .components-layout{padding-bottom:280px;}
  .component-sidebar{
    position:static;
    height:max-content;
    max-height:none;
    min-height:0;
    overflow:visible;
  }
  .component-viewer-column{
    position:sticky;
    top:94px;
    align-self:start;
    height:max-content;
  }
  .component-viewer-card{
    position:relative;
  }
  .component-detail{
    position:sticky;
    top:94px;
    max-height:calc(100vh - 112px);
    overflow-y:auto;
    scrollbar-width:thin;
    align-self:start;
  }
}
@media (max-width:820px){
  .component-sidebar{position:static;height:auto;max-height:none;min-height:0;overflow:visible;}
  .component-viewer-column{position:static;height:auto;}
  .component-detail{position:static;max-height:none;overflow:visible;}
}
/* V1.9: keep the 3D viewer and information panel in the viewport using sticky positioning.
   The catalogue remains a scrollable panel, rather than extending the page. */
@media (min-width: 821px){
  .components-layout{align-items:start;padding-bottom:65px;}
  .component-sidebar{
    position:sticky;
    top:94px;
    align-self:start;
    height:auto;
    max-height:calc(100vh - 112px);
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-width:thin;
  }
  .component-viewer-column{
    position:sticky;
    top:94px;
    align-self:start;
    height:max-content;
  }
  .component-detail{
    position:sticky;
    top:94px;
    align-self:start;
    max-height:calc(100vh - 112px);
    overflow-y:auto;
    scrollbar-width:thin;
  }
}
@media (max-width:820px){
  .component-sidebar,.component-viewer-column,.component-detail{
    position:static;max-height:none;height:auto;overflow:visible;
  }
}

/* Make the selected catalogue item visibly distinct while its model group pulses. */
.component-item.active{background:#e6f4ee;color:#145f49;box-shadow:inset 3px 0 0 #239b76;}
.component-item.active i{background:#20a77c;box-shadow:0 0 0 4px #20a77c24;}


/* V1.12: Integration is a full-scene 3D workspace with floating controls. */
body.integration-active{overflow:hidden;}
body.integration-active .footer{display:none;}
.page.integration-fullscreen{position:relative;min-height:calc(100vh - 76px);height:calc(100vh - 76px);overflow:hidden;padding:0;margin:0;}
.integration-fullscreen .integration-layout{position:absolute;inset:0;width:100%;max-width:none;height:100%;margin:0;padding:0;display:block;}
.integration-fullscreen .integration-viewer-column{position:absolute;inset:0;display:block;}
.integration-fullscreen .integration-viewer-card{position:absolute;inset:0;border:0;border-radius:0;box-shadow:none;background:transparent;overflow:hidden;}
.integration-fullscreen .integration-viewer-card .viewer-host{position:absolute;inset:0;height:auto;min-height:0;background:radial-gradient(ellipse at 43% 48%,#ffffff 0,#edf3f1 62%,#e4ece9 100%);}
.integration-fullscreen .integration-viewer-card .viewer-topline{position:absolute;z-index:3;left:24px;top:20px;width:auto;height:auto;padding:9px 12px;border:1px solid #dfe7e4;border-radius:9px;background:#ffffffdf;backdrop-filter:blur(10px);box-shadow:0 6px 24px #152a2010;}
.integration-fullscreen .integration-viewer-card .viewer-bottomline{position:absolute;z-index:3;left:24px;bottom:18px;width:auto;height:auto;padding:9px 12px;border:1px solid #dfe7e4;border-radius:9px;background:#ffffffdf;backdrop-filter:blur(10px);box-shadow:0 6px 24px #152a2010;}
.integration-fullscreen .integration-panel{position:absolute;z-index:8;right:18px;top:18px;bottom:18px;width:390px;max-height:none;display:flex;flex-direction:column;overflow:hidden;background:#ffffffef;backdrop-filter:blur(16px);box-shadow:0 18px 55px #152a2020;border:1px solid #dce5e2;border-radius:16px;}
.integration-panel-heading{padding:18px 18px 12px;border-bottom:1px solid #edf0f1;}
.integration-panel-heading .eyebrow{margin-bottom:6px;font-size:9px;}
.integration-panel-heading h2{font:800 20px Manrope;margin:0 0 6px;letter-spacing:-.4px;}
.integration-panel-heading p:last-child{font-size:10px;line-height:1.5;color:#53616a;margin:0;}
.integration-fullscreen .panel-tabs{flex:0 0 auto;}
.integration-fullscreen #wiring-panel-content{min-height:0;flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;}
.integration-fullscreen .panel-content{padding:14px 16px;}
.integration-fullscreen .signal-list{max-height:none;overflow:visible;}
.integration-fullscreen .legend-row{flex:0 0 auto;padding:9px 15px 5px;gap:10px;font-size:9px;border-top:1px solid #edf0f1;}
.integration-fullscreen .accessory-strip{flex:0 0 auto;margin:7px 12px 12px;padding:11px;box-shadow:none;background:#f9fbfa;}
.integration-fullscreen .accessory-title{margin-bottom:8px;font-size:8px;}
.integration-fullscreen .accessory-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;}
.integration-fullscreen .accessory-card{padding:7px;grid-template-columns:28px 1fr;column-gap:7px;}
.integration-fullscreen .accessory-symbol{width:27px;height:27px;font-size:9px;}
.integration-fullscreen .accessory-card b{font-size:9px;}
.integration-fullscreen .accessory-card small{font-size:8px;}
.integration-title-overlay{position:absolute;z-index:5;top:20px;left:24px;pointer-events:none;padding:0 0 0 0;max-width:520px;}
.integration-title-overlay .eyebrow{font-size:9px;margin:0 0 5px;text-shadow:0 1px 8px #fff;}
.integration-title-overlay h1{font:800 23px/1.15 Manrope;letter-spacing:-.7px;margin:0;text-shadow:0 1px 12px #fff;}
.integration-title-overlay>p:last-child{font-size:10px;color:#53616a;margin:5px 0 0;text-shadow:0 1px 8px #fff;}
.integration-fullscreen .viewer-topline{left:24px;top:108px;}
.integration-safety-overlay{position:absolute;z-index:5;left:24px;bottom:68px;display:grid;gap:3px;max-width:490px;padding:10px 13px;border:1px solid #ecdcc8;border-radius:10px;background:#fffaf4e8;backdrop-filter:blur(8px);box-shadow:0 5px 20px #152a2010;pointer-events:none;}
.integration-safety-overlay b{font-size:10px;color:#815125;}
.integration-safety-overlay span{font-size:9px;line-height:1.45;color:#7b6a57;}
.integration-fullscreen .viewer-status{top:155px;left:24px;right:430px;}
@media(max-width:1050px){.integration-fullscreen .integration-panel{width:350px;}.integration-title-overlay{max-width:440px;}}
@media(max-width:820px){
 .page.integration-fullscreen{height:calc(100vh - 104px);min-height:calc(100vh - 104px);}
 .integration-fullscreen .integration-panel{right:10px;left:10px;top:auto;bottom:10px;width:auto;max-height:48vh;}
 .integration-fullscreen .integration-viewer-card .viewer-topline{left:12px;top:12px;}
 .integration-fullscreen .integration-viewer-card .viewer-bottomline{left:12px;bottom:calc(48vh + 20px);}
 .integration-title-overlay{top:12px;left:12px;max-width:calc(100% - 24px);}
 .integration-title-overlay h1{font-size:18px;}
 .integration-title-overlay>p:last-child{display:none;}
 .integration-fullscreen .viewer-topline{left:12px;top:84px;}
 .integration-safety-overlay{display:none;}
 .integration-fullscreen .integration-panel-heading{padding:10px 13px 8px;}
 .integration-fullscreen .integration-panel-heading h2{font-size:16px;}
 .integration-fullscreen .integration-panel-heading p:last-child{display:none;}
 .integration-fullscreen .accessory-strip{display:none;}
 .integration-fullscreen .legend-row{display:none;}
}

.integration-fullscreen .integration-viewer-card .viewer-topline{top:112px;}
@media(max-width:820px){.integration-fullscreen .integration-viewer-card .viewer-topline{top:84px;left:12px;}}


/* V1.13: make the complete Integration sidebar scrollable. The 3D scene remains full-screen. */
.integration-fullscreen .integration-panel{
  display:block;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  touch-action:pan-y;
}
.integration-fullscreen .integration-panel-heading,
.integration-fullscreen .panel-tabs,
.integration-fullscreen #wiring-panel-content,
.integration-fullscreen .legend-row,
.integration-fullscreen .accessory-strip{
  flex:none;
}
.integration-fullscreen #wiring-panel-content{
  min-height:auto;
  overflow:visible;
  overscroll-behavior:auto;
}
.integration-fullscreen .signal-list{max-height:none;overflow:visible;}
@media(max-width:820px){
  .integration-fullscreen .integration-panel{overflow-y:auto;max-height:48vh;}
  .integration-fullscreen #wiring-panel-content{overflow:visible;}
}


/* V1.16: make the complete floating Integration panel reliably scrollable. */
.integration-fullscreen .integration-panel{
  display:block !important;
  position:absolute;
  top:18px;
  bottom:18px;
  right:18px;
  height:auto;
  min-height:0;
  max-height:none;
  overflow-y:scroll !important;
  overflow-x:hidden !important;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-y;
  scrollbar-width:auto;
  scrollbar-color:#9aaba5 #edf2f0;
  pointer-events:auto;
}
.integration-fullscreen .integration-panel > *{
  flex:none;
}
.integration-fullscreen #wiring-panel-content{
  display:block;
  min-height:0;
  height:auto;
  max-height:none;
  overflow:visible !important;
  overscroll-behavior:auto;
  pointer-events:auto;
}
.integration-fullscreen .integration-panel::-webkit-scrollbar{width:10px;}
.integration-fullscreen .integration-panel::-webkit-scrollbar-track{background:#edf2f0;border-radius:8px;}
.integration-fullscreen .integration-panel::-webkit-scrollbar-thumb{background:#9aaba5;border:2px solid #edf2f0;border-radius:8px;}
@media(max-width:820px){
  .integration-fullscreen .integration-panel{
    top:auto;
    bottom:10px;
    left:10px;
    right:10px;
    width:auto;
    height:48vh;
    max-height:48vh;
    overflow-y:scroll !important;
  }
  .integration-fullscreen #wiring-panel-content{overflow:visible !important;}
}


/* V1.17: explicit scroll viewport for the entire Integration pop-out. */
.integration-fullscreen .integration-panel{
  position:absolute !important;
  top:18px !important;
  right:18px !important;
  bottom:18px !important;
  left:auto !important;
  width:390px !important;
  height:auto !important;
  max-height:none !important;
  min-height:0 !important;
  display:block !important;
  overflow:hidden !important;
  padding:0 !important;
  pointer-events:auto !important;
  z-index:20 !important;
}
.integration-fullscreen .integration-panel-scroll{
  display:block !important;
  width:100%;
  height:100%;
  max-height:100%;
  min-height:0;
  overflow-x:hidden !important;
  overflow-y:scroll !important;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-y;
  scrollbar-width:auto;
  scrollbar-color:#91a69e #edf2f0;
  pointer-events:auto !important;
  padding-bottom:14px;
}
.integration-fullscreen .integration-panel-scroll > *{
  flex:none !important;
  pointer-events:auto;
}
.integration-fullscreen #wiring-panel-content{
  display:block !important;
  height:auto !important;
  max-height:none !important;
  min-height:0 !important;
  overflow:visible !important;
}
.integration-fullscreen .signal-list{
  max-height:none !important;
  overflow:visible !important;
}
.integration-fullscreen .integration-panel-scroll::-webkit-scrollbar{width:11px;}
.integration-fullscreen .integration-panel-scroll::-webkit-scrollbar-track{background:#edf2f0;border-radius:8px;}
.integration-fullscreen .integration-panel-scroll::-webkit-scrollbar-thumb{background:#91a69e;border:2px solid #edf2f0;border-radius:8px;}
@media(max-width:820px){
  .integration-fullscreen .integration-panel{
    top:auto !important;
    right:10px !important;
    bottom:10px !important;
    left:10px !important;
    width:auto !important;
    height:48vh !important;
    max-height:48vh !important;
  }
  .integration-fullscreen .integration-panel-scroll{height:100%;max-height:100%;}
}


/* V1.18: reliable full-panel scrolling.
   The panel has a definite height from its absolute top/bottom constraints and
   acts as a flex column. Its single inner child is the constrained scroll viewport. */
.integration-fullscreen .integration-panel{
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  justify-content:flex-start !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  overflow:hidden !important;
}
.integration-fullscreen .integration-panel > .integration-panel-scroll{
  display:block !important;
  flex:1 1 0% !important;
  align-self:stretch !important;
  width:100% !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  box-sizing:border-box !important;
  overflow-x:hidden !important;
  overflow-y:scroll !important;
  overscroll-behavior-y:contain !important;
  -webkit-overflow-scrolling:touch !important;
  scrollbar-width:auto !important;
  scrollbar-color:#82978f #e8efec !important;
  touch-action:pan-y !important;
  padding:0 0 18px !important;
}
.integration-fullscreen .integration-panel-scroll > *{
  display:block;
  flex:0 0 auto !important;
  width:100%;
  min-height:0;
}
.integration-fullscreen .integration-panel-scroll > .panel-tabs{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.integration-fullscreen .integration-panel-scroll #wiring-panel-content{
  display:block !important;
  flex:0 0 auto !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  overflow:visible !important;
}
.integration-fullscreen .integration-panel-scroll .signal-list{
  height:auto !important;
  max-height:none !important;
  overflow:visible !important;
}
.integration-fullscreen .integration-panel-scroll::-webkit-scrollbar{width:12px;}
.integration-fullscreen .integration-panel-scroll::-webkit-scrollbar-track{background:#e8efec;border-left:1px solid #dbe4e0;}
.integration-fullscreen .integration-panel-scroll::-webkit-scrollbar-thumb{background:#82978f;border:2px solid #e8efec;border-radius:8px;min-height:36px;}
.integration-fullscreen .integration-panel-scroll::-webkit-scrollbar-thumb:hover{background:#617b70;}
@media(max-width:820px){
  .integration-fullscreen .integration-panel{
    display:flex !important;
    flex-direction:column !important;
    top:auto !important;
    right:10px !important;
    bottom:10px !important;
    left:10px !important;
    width:auto !important;
    height:48vh !important;
    min-height:0 !important;
    max-height:48vh !important;
    overflow:hidden !important;
  }
  .integration-fullscreen .integration-panel > .integration-panel-scroll{
    flex:1 1 0% !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    overflow-y:scroll !important;
  }
}

/* V1.19: true 70/30 Integration workspace.
   The 3D scene occupies the larger left column; the complete setup panel is
   constrained to the right column and scrolls inside its own viewport. */
@media (min-width: 821px){
  .page.integration-fullscreen{
    height:calc(100vh - 76px) !important;
    min-height:560px !important;
    max-height:calc(100vh - 76px) !important;
    overflow:hidden !important;
  }
  .integration-fullscreen .integration-layout{
    position:absolute !important;
    inset:0 !important;
    display:grid !important;
    grid-template-columns:minmax(0,7fr) minmax(320px,3fr) !important;
    grid-template-rows:minmax(0,1fr) !important;
    gap:0 !important;
    width:100% !important;
    height:100% !important;
    min-height:0 !important;
    padding:0 !important;
    margin:0 !important;
  }
  .integration-fullscreen .integration-viewer-column{
    position:relative !important;
    inset:auto !important;
    grid-column:1 !important;
    grid-row:1 !important;
    width:100% !important;
    height:100% !important;
    min-width:0 !important;
    min-height:0 !important;
    overflow:hidden !important;
  }
  .integration-fullscreen .integration-viewer-card{
    position:absolute !important;
    inset:0 !important;
    width:100% !important;
    height:100% !important;
    border:0 !important;
    border-radius:0 !important;
    overflow:hidden !important;
  }
  .integration-fullscreen .integration-viewer-card .viewer-host{
    position:absolute !important;
    inset:0 !important;
    width:100% !important;
    height:100% !important;
    min-height:0 !important;
  }
  .integration-fullscreen .integration-panel{
    position:relative !important;
    inset:auto !important;
    grid-column:2 !important;
    grid-row:1 !important;
    align-self:stretch !important;
    justify-self:stretch !important;
    width:auto !important;
    height:auto !important;
    min-width:0 !important;
    min-height:0 !important;
    max-width:none !important;
    max-height:none !important;
    margin:14px 14px 14px 0 !important;
    padding:0 !important;
    display:flex !important;
    flex-direction:column !important;
    overflow:hidden !important;
    border-radius:16px !important;
    z-index:20 !important;
  }
  .integration-fullscreen .integration-panel > .integration-panel-scroll{
    display:block !important;
    flex:1 1 0px !important;
    width:100% !important;
    height:0 !important;
    min-height:0 !important;
    max-height:none !important;
    box-sizing:border-box !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
    overscroll-behavior-y:contain !important;
    -webkit-overflow-scrolling:touch !important;
    scrollbar-width:thin !important;
    scrollbar-color:#82978f #e8efec !important;
    touch-action:pan-y !important;
  }
  .integration-fullscreen .integration-panel-scroll > *{
    width:100% !important;
    flex:none !important;
  }
  .integration-fullscreen .integration-panel-scroll #wiring-panel-content{
    display:block !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    overflow:visible !important;
  }
  .integration-fullscreen .integration-panel-scroll .signal-list{
    height:auto !important;
    max-height:none !important;
    overflow:visible !important;
  }
  .integration-fullscreen .integration-panel-scroll::-webkit-scrollbar{width:10px;}
  .integration-fullscreen .integration-panel-scroll::-webkit-scrollbar-track{background:#e8efec;border-left:1px solid #dbe4e0;}
  .integration-fullscreen .integration-panel-scroll::-webkit-scrollbar-thumb{background:#82978f;border:2px solid #e8efec;border-radius:8px;}
  .integration-fullscreen .integration-panel-scroll::-webkit-scrollbar-thumb:hover{background:#617b70;}
  .integration-fullscreen .integration-title-overlay{max-width:calc(70% - 48px);}
  .integration-fullscreen .integration-safety-overlay{max-width:calc(70% - 48px);}
  .integration-fullscreen .viewer-status{left:24px !important;right:24px !important;}
}

/* Compact screens: keep the scene above and the independently scrollable panel below. */
@media (max-width:820px){
  .page.integration-fullscreen{
    height:calc(100vh - 104px) !important;
    min-height:520px !important;
    max-height:calc(100vh - 104px) !important;
  }
  .integration-fullscreen .integration-layout{
    position:absolute !important;
    inset:0 !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    grid-template-rows:minmax(0,55fr) minmax(220px,45fr) !important;
    gap:0 !important;
    width:100% !important;
    height:100% !important;
    min-height:0 !important;
  }
  .integration-fullscreen .integration-viewer-column{
    position:relative !important;
    inset:auto !important;
    grid-column:1 !important;
    grid-row:1 !important;
    min-width:0 !important;
    min-height:0 !important;
    overflow:hidden !important;
  }
  .integration-fullscreen .integration-viewer-card{position:absolute !important;inset:0 !important;}
  .integration-fullscreen .integration-viewer-card .viewer-host{position:absolute !important;inset:0 !important;width:100% !important;height:100% !important;min-height:0 !important;}
  .integration-fullscreen .integration-panel{
    position:relative !important;
    inset:auto !important;
    grid-column:1 !important;
    grid-row:2 !important;
    width:auto !important;
    height:auto !important;
    min-width:0 !important;
    min-height:0 !important;
    max-height:none !important;
    margin:0 10px 10px !important;
    display:flex !important;
    flex-direction:column !important;
    overflow:hidden !important;
    border-radius:14px !important;
  }
  .integration-fullscreen .integration-panel > .integration-panel-scroll{
    display:block !important;
    flex:1 1 0px !important;
    width:100% !important;
    height:0 !important;
    min-height:0 !important;
    max-height:none !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
    overscroll-behavior:contain !important;
    -webkit-overflow-scrolling:touch !important;
    scrollbar-width:thin !important;
    touch-action:pan-y !important;
  }
  .integration-fullscreen .integration-title-overlay{top:10px !important;left:12px !important;max-width:calc(100% - 24px) !important;}
  .integration-fullscreen .integration-title-overlay h1{font-size:17px !important;}
  .integration-fullscreen .integration-title-overlay>p:last-child{display:none !important;}
  .integration-fullscreen .integration-viewer-card .viewer-topline{top:75px !important;left:12px !important;}
  .integration-fullscreen .integration-viewer-card .viewer-bottomline{left:12px !important;bottom:8px !important;}
  .integration-fullscreen .integration-safety-overlay{display:none !important;}
  .integration-fullscreen .integration-panel-heading{padding:10px 13px 8px !important;}
  .integration-fullscreen .integration-panel-heading h2{font-size:16px !important;}
  .integration-fullscreen .integration-panel-heading p:last-child{display:block !important;}
}

/* V1.20: cleaner Integration scene controls and Setup checklist. */
.integration-fullscreen .integration-viewer-card .integration-controls-hint{
  left:auto !important;
  right:calc(30% + 24px) !important;
  top:20px !important;
  width:auto !important;
  height:auto !important;
  min-height:0 !important;
  padding:6px 9px !important;
  border:1px solid #dfe7e4 !important;
  border-radius:8px !important;
  background:#ffffffdc !important;
  box-shadow:0 4px 16px #152a2010 !important;
  letter-spacing:0 !important;
  font-size:9px !important;
  z-index:6 !important;
}
.integration-fullscreen .integration-controls-hint .viewer-hint{
  color:#5f6f76 !important;
  font-size:9px !important;
  font-weight:600 !important;
  letter-spacing:0 !important;
  white-space:nowrap;
}
.integration-fullscreen .integration-viewer-card .viewer-bottomline,
.integration-fullscreen .integration-safety-overlay{display:none !important;}
.setup-checklist{margin:15px 0 13px;border:1px solid #e2eae6;border-radius:11px;background:#fbfdfc;overflow:hidden;}
.setup-checklist-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 12px;background:#f1f7f4;border-bottom:1px solid #e2eae6;}
.setup-checklist-heading b{font:700 11px Manrope;color:#25343a;}
.setup-checklist-heading span{font-size:9px;font-weight:700;color:#247457;background:#e0f0e8;padding:4px 7px;border-radius:20px;}
.setup-check-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;padding:9px 10px;border-bottom:1px solid #edf1ef;}
.setup-check-row:last-child{border-bottom:0;}
.setup-check-row label{display:flex;align-items:flex-start;gap:8px;min-width:0;cursor:pointer;}
.setup-check-row input{margin:2px 0 0;accent-color:#238568;flex:0 0 auto;width:14px;height:14px;}
.setup-check-row label span{display:grid;gap:2px;min-width:0;}
.setup-check-row label b{font-size:10px;color:#25343a;line-height:1.35;}
.setup-check-row label small{font-size:9px;line-height:1.4;color:#5d6b70;}
.setup-focus-button{border:1px solid #dce7e2;background:#fff;border-radius:7px;padding:6px 8px;font-size:9px;font-weight:700;color:#247457;}
.setup-focus-button:hover,.setup-focus-button.active{background:#eaf5ef;border-color:#8bbba7;}
.brand-logo{display:block;width:116px;height:38px;object-fit:contain;object-position:left center;}
.brand-logo[hidden]{display:none !important;}
@media(max-width:820px){
  .integration-fullscreen .integration-viewer-card .integration-controls-hint{right:12px !important;top:12px !important;max-width:calc(100% - 24px);}
  .integration-fullscreen .integration-controls-hint .viewer-hint{font-size:8px !important;white-space:normal;}
}

/* V1.22: fixed common/supply wiring and gated Setup tabs. */
.panel-tab:disabled{opacity:.42;cursor:not-allowed;pointer-events:none;}
.fixed-wiring-note{line-height:1.75;}
.wire-chip{display:inline-block;min-width:34px;text-align:center;border-radius:5px;padding:1px 5px;margin:1px 3px 1px 0;font-size:9px;font-weight:800;}
.wire-chip.blue{background:#e6effb;color:#1559a8;}
.wire-chip.red{background:#fbeaea;color:#b52e35;}

/* V1.25 LED wiring legend */
.legend-dot.negative{background:#1769c2}.legend-dot.common{background:#d94343}

/* V1.29: final readability pass across Overview, Components and Integration. */
:root{--ink:#101a21;--muted:#46525a;}
body{color:#101a21;font-size:15px;}

/* Overview */
#page-overview .eyebrow{font-size:11px;color:#17664f;}
#page-overview .hero-lead{font-size:17px;color:#35424a;line-height:1.72;}
#page-overview .mini-label,
#page-overview .sidebar-title,
#page-overview .accessory-title{font-size:10px;color:#43515a;}
#page-overview .path-item b{font-size:14px;color:#1b2830;}
#page-overview .path-item small{font-size:12px;color:#46535b;}
#page-overview .stat-row span{font-size:12px;color:#46535b;}
#page-overview .section-heading p:not(.eyebrow){font-size:14px;color:#3f4c54;}
#page-overview .info-card>p:not(.eyebrow){font-size:13px;color:#3d4a52;}
#page-overview .info-fact b{font-size:13px;color:#202d34;}
#page-overview .info-fact small{font-size:12px;color:#46535b;}
#page-overview .viewer-topline{font-size:10px;color:#34424a;}
#page-overview .viewer-hint{font-size:11px;color:#43515a;}
#page-overview .viewer-bottomline{font-size:11px;color:#46535b;}

/* Components */
#page-components .page-heading .eyebrow{font-size:11px;color:#17664f;}
#page-components .page-heading>p:not(.eyebrow){font-size:15px;color:#3d4a52;}
#page-components .component-group{font-size:11px;color:#3e4b53;}
#page-components .component-item{font-size:13px;color:#25323a;}
#page-components .component-item small{font-size:11px;color:#46535b;}
#page-components .component-detail .eyebrow{font-size:10px;color:#287458;}
#page-components .component-detail h3{font-size:19px;color:#14212a;}
#page-components .detail-count{font-size:13px;color:#46535b;}
#page-components .detail-description{font-size:14px;color:#35424a;line-height:1.65;}
#page-components .detail-label{font-size:10px;color:#3d4b53;}
#page-components .detail-section p{font-size:13px;color:#3d4a52;line-height:1.65;}
#page-components .viewer-topline{font-size:10px;color:#34424a;}
#page-components .viewer-hint{font-size:11px;color:#43515a;}
#page-components .viewer-bottomline{font-size:11px;color:#46535b;}

/* Integration */
#page-integration .integration-title-overlay .eyebrow{font-size:10px;color:#1d624e;}
#page-integration .integration-title-overlay h1{font-size:25px;color:#111b22;}
#page-integration .integration-title-overlay>p:last-child{font-size:12px;color:#35424a;}
#page-integration .integration-controls-hint .viewer-hint{font-size:10px;color:#35424a;}
#page-integration .integration-panel-heading .eyebrow{font-size:10px;color:#17664f;}
#page-integration .integration-panel-heading h2{font-size:22px;color:#14212a;}
#page-integration .integration-panel-heading p:last-child{font-size:12px;color:#3b4850;line-height:1.6;}
#page-integration .panel-tab{font-size:13px;color:#34424a;}
#page-integration .panel-tab span{font-size:11px;color:#526069;}
#page-integration .panel-content h3{font-size:19px;color:#17242c;}
#page-integration .panel-content>p{font-size:13px;color:#3b4850;line-height:1.65;}
#page-integration .mapping-note{font-size:12px;color:#2d4037;line-height:1.65;}
#page-integration .mapping-note small{font-size:11px;color:#3d4a52;}
#page-integration .signal-name b{font-size:13px;color:#1b2830;}
#page-integration .signal-name small{font-size:11px;color:#46535b;line-height:1.4;}
#page-integration .signal-row select{font-size:12px;color:#24323a;}
#page-integration .signal-row select option:disabled{color:#929da3;background:#e8ecee;font-style:italic;}
#page-integration .wire-summary{font-size:12px;color:#3f4c54;}
#page-integration .pin-chip{font-size:11px;color:#27363e;}
#page-integration .small-caption{font-size:11px;color:#46535b;line-height:1.55;}
#page-integration .legend-row{font-size:10px;color:#3d4a52;}
#page-integration .setup-checklist-heading b{font-size:12px;color:#1d2b32;}
#page-integration .setup-checklist-heading span{font-size:10px;color:#1d624e;}
#page-integration .setup-check-row label b{font-size:12px;color:#202d34;}
#page-integration .setup-check-row label small{font-size:11px;color:#46535b;}
#page-integration .setup-focus-button{font-size:10px;color:#1d624e;}
#page-integration .setup-step b{font-size:12px;color:#202d34;}
#page-integration .setup-step small{font-size:11px;color:#46535b;}
#page-integration .viewer-status{font-size:13px;color:#27363e;}

/* Keep the dark top navigation legible while the page content uses darker body text. */
.topbar .nav-button{font-size:14px;color:#d4dde2;}
.topbar .nav-button.active,.topbar .nav-button:hover{color:#fff;}
.topbar .brand-text small{font-size:10px;color:#c0cbd1;}
.footer{font-size:11px;color:#4b5860;}

@media(max-width:820px){
  #page-overview .hero-lead{font-size:15px;}
  #page-components .page-heading>p:not(.eyebrow){font-size:14px;}
  #page-integration .integration-title-overlay h1{font-size:18px;}
  #page-integration .integration-panel-heading h2{font-size:18px;}
}


/* V1.30: SHRDC brand lockup and final header cleanup. */
.brand{gap:10px;}
.brand-logo{display:block;width:180px;height:50px;object-fit:contain;object-position:left center;flex:0 0 auto;}
.brand-logo[hidden]{display:none !important;}
.brand-mark{flex:0 0 38px;}
@media(max-width:820px){.brand-logo{width:160px;height:46px;}}
@media(max-width:600px){.brand-logo{width:142px;height:42px;}.brand{gap:8px;}}
