body[data-hyper-agile-front="true"] #layout{--ha-page-inset:24px}
@media(max-width:760px){body[data-hyper-agile-front="true"] #layout{--ha-page-inset:16px}}
body[data-hyper-agile-front="true"] [hidden]{display:none!important}
body[data-hyper-agile-front="true"] .layout[data-home-view]{grid-template-columns:minmax(0,1fr);align-items:start}
.support-service-button{display:inline-flex;align-items:center;gap:9px;margin-left:auto;padding:10px 14px;border:1px solid #d8dee2;border-radius:8px;background:#fff;color:#34424d;font-size:11px;font-weight:900;letter-spacing:.2px}.support-service-button:hover{border-color:#d0006c;color:#d0006c}.support-service-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.support-panel{position:fixed;z-index:1000;top:76px;right:22px;width:min(390px,calc(100vw - 32px));padding:22px;border:1px solid #d9dfe3;border-radius:12px;background:#fff;color:#2c3943;box-shadow:0 24px 70px rgba(23,32,39,.2)}.support-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.support-panel-head small{color:#d0006c;font-size:9px;font-weight:900;letter-spacing:1px}.support-panel-head h2{margin:5px 0 0;font-size:21px}.support-panel-head>button{width:31px;height:31px;border:1px solid #dfe4e7;border-radius:50%;background:#fff;color:#65747f;font-size:20px;line-height:1}.support-panel>p{margin:10px 0 16px;color:#7a8791;font-size:11px}.support-options{display:grid;gap:8px}.support-options button{display:grid;grid-template-columns:1fr auto;gap:3px 12px;padding:12px;border:1px solid #e1e5e8;border-radius:8px;background:#f8f9fa;color:#34424d;text-align:left}.support-options button:hover{border-color:#e2a3c4;background:#fff3f9}.support-options b{font-size:11px}.support-options span{grid-column:1;color:#7b8791;font-size:9px}.support-options i{grid-column:2;grid-row:1/3;align-self:center;color:#d0006c;font-style:normal;font-weight:900}
.home-hook{display:flex;align-items:center;gap:14px;margin-left:auto;padding-left:30px}.home-hook>span{display:grid;place-items:center;width:46px;height:46px;border:1px solid #ef1684;border-radius:50%;color:#ff4ba6;font-size:23px}.home-hook div{display:grid;gap:3px}.home-hook small{color:#ff55ae;font-size:8px;font-weight:900;letter-spacing:1.3px}.home-hook strong{color:#fff;font-size:17px;line-height:1.12;letter-spacing:-.2px}
.home-hub,.machines-view{grid-column:1/-1;min-height:500px}
.home-hub{display:grid;align-content:start;gap:24px;padding:30px var(--ha-page-inset) 44px}
.home-customer{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(220px,280px);align-items:center;gap:15px;max-width:1040px;padding:17px 19px;border:1px solid #dfe4e7;border-radius:12px;background:#fff;box-shadow:0 6px 20px rgba(36,49,59,.04)}
.home-customer-avatar{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#27343e;color:#fff;font-size:13px;font-weight:900;letter-spacing:.6px}
.home-customer-copy{display:grid;gap:2px}.home-customer-copy small{color:#d0006c;font-size:9px;font-weight:900;letter-spacing:1px}.home-customer-copy strong{color:#26343f;font-size:17px}.home-customer-copy>span{color:#7a8791;font-size:11px}
.home-customer-select{display:grid;gap:5px}.home-customer-select>span{color:#77848e;font-size:9px;font-weight:900;letter-spacing:.8px}.home-customer-select select{width:100%;height:40px;padding:0 34px 0 11px;border:1px solid #d8dee2;border-radius:7px;background:#f8f9fa;color:#2c3943;font-size:12px;font-weight:800}
.home-hub-intro{max-width:700px}
.home-hub-intro>span,.machines-view-head>span{color:#d0006c;font-size:11px;font-weight:900;letter-spacing:1.25px}
.home-hub-intro h2,.machines-view-head h2{margin:8px 0 7px;color:#26343f;font-size:26px;line-height:1.15}
.home-hub-intro p,.machines-view-head p{margin:0;color:#72818d;font-size:13px;line-height:1.55}
.home-hub-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;max-width:1040px}
.home-hub-card{display:grid;grid-template-rows:210px auto auto auto 1fr auto;gap:10px;min-height:500px;padding:18px 22px 24px;border:1px solid #dfe4e7;border-radius:14px;background:linear-gradient(145deg,#fff 0%,#fff 68%,#fff5fa 100%);color:#283640;text-align:left;cursor:pointer;box-shadow:0 8px 28px rgba(36,49,59,.05);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.home-hub-card:hover,.home-hub-card:focus-visible{transform:translateY(-3px);border-color:#dc197c;box-shadow:0 14px 36px rgba(132,22,80,.12);outline:0}
.home-card-visual{display:block;width:100%;height:200px;border-radius:10px;background:#eef1f2;overflow:hidden}
.home-card-visual img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}.portfolio-visual img{object-position:center 52%}.factory-visual img{object-position:center}.home-hub-card:hover .home-card-visual img{transform:scale(1.025)}
.home-hub-kicker{color:#d0006c;font-size:10px;font-weight:900;letter-spacing:1px}
.home-hub-card>strong{font-size:25px;line-height:1.1}
.home-hub-audience{color:#5f6e79;font-size:9px;font-weight:900;letter-spacing:.75px}
.home-hub-copy{max-width:390px;color:#71808c;font-size:13px;line-height:1.55}
.home-hub-meta{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-top:16px;border-top:1px solid #e6eaed;font-size:11px}
.home-hub-meta b{color:#4b5b67}.home-hub-meta i{color:#d0006c;font-style:normal;font-weight:900}




.home-backbar{grid-column:1/-1;padding:14px var(--ha-page-inset) 0}
.home-backbar button{display:inline-flex;align-items:center;gap:8px;padding:9px 13px;border:1px solid #dbe1e5;border-radius:8px;background:#fff;color:#4c5c68;font-size:11px;font-weight:800;cursor:pointer}
.home-backbar button:hover{border-color:#d0006c;color:#d0006c}
.layout[data-home-view="portfolio"] .context,.layout[data-home-view="portfolio"] .portfolio-top,.layout[data-home-view="portfolio"] .portfolio-main{grid-column:1/-1}
.machines-view{display:grid;align-content:start;gap:22px;padding:24px var(--ha-page-inset) 46px}
.machines-view-head{max-width:720px}
.saved-machine-card{display:grid;grid-template-columns:280px minmax(0,1fr) 110px;grid-template-rows:auto auto;align-items:center;gap:12px 24px;width:min(100%,980px);padding:18px;border:1px solid #e1a4c4;border-radius:13px;background:linear-gradient(135deg,#fff,#fff3f9);color:#293741;text-align:left;cursor:pointer;box-shadow:0 8px 26px rgba(60,34,48,.06);transition:transform .18s ease,box-shadow .18s ease}
.saved-machine-card:hover,.saved-machine-card:focus-visible{transform:translateY(-2px);box-shadow:0 14px 34px rgba(122,17,72,.13);outline:2px solid #e13b93;outline-offset:2px}
.saved-machine-preview{grid-row:1/3;display:block;width:280px;height:150px;overflow:hidden;border:1px solid #e0e5e8;border-radius:10px;background:#eef1f2}.saved-machine-preview img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.saved-machine-copy{display:grid;gap:5px}.saved-machine-copy small{text-transform:none;color:#d0006c;font-size:9px;font-weight:900;letter-spacing:1px}.saved-machine-copy strong{font-size:22px}.saved-machine-copy>span{color:#77848f;font-size:12px}
.saved-machine-status{align-self:start;color:#667681;font-size:9px;font-weight:900;letter-spacing:.7px}.saved-machine-status i{display:inline-block;width:7px;height:7px;margin-right:5px;border-radius:50%;background:#31a86b}
.saved-machine-open{grid-column:2/4;display:flex;align-items:center;justify-content:space-between;padding-top:10px;border-top:1px solid #eadce4;color:#d0006c;font-size:11px;font-weight:900}.saved-machine-open b{font-size:18px}
@media(max-width:760px){.home-hook{display:none}.support-service-button span{display:none}.support-service-button{padding:9px}.support-panel{top:70px;right:16px}.home-hub,.machines-view{padding:22px var(--ha-page-inset) 34px}.home-customer{grid-template-columns:auto 1fr}.home-customer-select{grid-column:1/-1}.home-hub-grid{grid-template-columns:1fr}.home-hub-card{min-height:480px}.saved-machine-card{grid-template-columns:1fr;padding:14px}.saved-machine-preview{grid-row:auto;width:100%;height:160px}.saved-machine-status{display:none}.saved-machine-open{grid-column:1}.home-backbar{padding:12px var(--ha-page-inset) 0}}

/* Workspace client management */
.home-customer-select {min-width:0;position:relative;}
.workspace-clients {position:relative;margin:6px 0;}
.workspace-clients summary {cursor:pointer;padding:13px 16px;border:1px solid #d6dde3;border-radius:7px;background:#f7f8fa;color:#263640;font-weight:700;overflow-wrap:anywhere;}
.workspace-client-list {position:absolute;top:100%;left:0;right:0;z-index:50;background:white;border:1px solid #d6dde3;border-radius:7px;box-shadow:0 8px 24px #0002;max-height:300px;overflow:auto;padding:5px;}
.workspace-client-row {display:flex;align-items:center;gap:4px;}
.workspace-client-row button {border:0;background:white;color:#263640;padding:12px;text-align:left;cursor:pointer;font:inherit;}
.workspace-client-row button:first-child {flex:1;min-width:0;overflow-wrap:anywhere;}
.workspace-client-row button[aria-pressed=true] {background:#fff0f8;color:#e5007d;}
.workspace-client-row .workspace-delete-client {font-size:22px;flex:0 0 42px;text-align:center;}
.workspace-client-row button:hover {background:#fff0f8;}
.workspace-add-client {border:1px solid #ed008c;border-radius:6px;padding:10px 14px;background:white;color:#e5007d;font-weight:700;cursor:pointer;width:100%;}
.workspace-client-status {font-size:12px;color:#526574;overflow-wrap:anywhere;margin-top:6px;}
.workspace-client-status button {border:0;background:none;color:#e5007d;cursor:pointer;font-weight:bold;}
.workspace-client-dialog {border:1px solid #d6dde3;border-radius:12px;padding:26px;width:min(430px,calc(100vw - 32px));box-sizing:border-box;color:#263640;}
.workspace-client-dialog::backdrop {background:#14212e80;}
.workspace-client-dialog h2 {margin-top:0;font-size:21px;}
.workspace-client-dialog label {display:block;font-size:12px;font-weight:bold;margin-bottom:8px;}
.workspace-client-dialog input {box-sizing:border-box;width:100%;padding:12px;border:1px solid #b8c4ce;border-radius:6px;font:inherit;}
.workspace-client-dialog form>div {display:flex;justify-content:flex-end;gap:10px;}
.workspace-client-dialog button {padding:11px;border:1px solid #e5007d;background:white;color:#e5007d;border-radius:6px;cursor:pointer;}
.workspace-client-dialog button[type=submit] {background:#e5007d;color:white;}
.workspace-client-dialog [role=alert] {color:#b82039;font-size:13px;}
.portfolio-editor {width:min(940px,94vw);max-height:88vh;overflow:auto;border:1px solid #d6dde3;border-radius:12px;padding:26px;color:#263640;box-sizing:border-box;}
.portfolio-editor::backdrop {background:#14212e80;}
.portfolio-field-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
.portfolio-field-grid label {font-size:12px;font-weight:700;display:flex;flex-direction:column;gap:7px;}
.portfolio-field-grid input,.portfolio-field-grid select {padding:10px;border:1px solid #bdc9d1;border-radius:5px;min-width:0;width:100%;box-sizing:border-box;font:inherit;}
.portfolio-editor button {padding:11px 15px;border:1px solid #e5007d;border-radius:5px;color:#e5007d;background:white;margin:6px;cursor:pointer;}
.portfolio-editor button:disabled {opacity:.45;cursor:default;}
.portfolio-editor-actions {display:flex;justify-content:flex-end;margin-top:20px;}
.portfolio-editor-section {border:1px solid #d6dde3;border-radius:8px;padding:16px;margin:20px 0 0;min-width:0;}
.portfolio-editor-section>legend {color:#e5007d;font-size:14px;font-weight:700;padding:0 8px;}
.portfolio-component-columns {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start;}
.portfolio-component-columns .portfolio-editor-section>legend {display:flex;flex-direction:column;align-items:center;gap:5px;}
.portfolio-component-icon svg {width:30px;height:38px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;}
.portfolio-component-columns .portfolio-field-grid {grid-template-columns:1fr;}
.portfolio-component-columns .portfolio-cad-drawing {grid-template-columns:repeat(2,minmax(0,1fr));}
.portfolio-component-columns .portfolio-cad-fields {padding:12px;margin-top:18px;}
.portfolio-other-measurements {margin-top:12px;}
.portfolio-other-measurements summary {font-size:13px;cursor:pointer;padding:8px 0;}
.portfolio-editor form [hidden] {display:none!important;}
@media(max-width:600px){.portfolio-component-columns{grid-template-columns:1fr}}
.portfolio-editor [role=alert] {color:#b82039;white-space:pre-wrap;}
.portfolio-import-preview {max-height:280px;overflow:auto;}
@media(max-width:600px){.portfolio-field-grid{grid-template-columns:1fr}.portfolio-editor{padding:16px}}
.portfolio-cad-fields {margin-top:24px;border:1px solid #d6dde3;border-radius:8px;padding:18px;}
.portfolio-cad-fields legend {font-size:12px;color:#e5007d;font-weight:bold;}
.portfolio-cad-fields>p {font-size:13px;}
.portfolio-cad-groups {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;}
.portfolio-cad-part {min-width:0;}
.portfolio-cad-part h3 {font-size:16px;margin:0 0 16px;}
.portfolio-cad-part label {display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:700;margin:12px 0;}
.portfolio-cad-part input:not([type=checkbox]),.portfolio-cad-part select {padding:10px;border:1px solid #bdc9d1;border-radius:5px;min-width:0;width:100%;box-sizing:border-box;font:inherit;background:white;}
.portfolio-cad-part .portfolio-cad-confirm {flex-direction:row;align-items:center;font-weight:400;}
.portfolio-cad-confirm input {width:auto;flex-shrink:0;}
.portfolio-cad-part details {margin-top:16px;font-size:13px;}
.portfolio-cad-part summary {cursor:pointer;padding:9px 0;}
.portfolio-cad-part p {font-size:13px;overflow-wrap:anywhere;}
.portfolio-cad-note {color:#627c8b;}
.portfolio-cad-fields [hidden] {display:none!important;}
@media(max-width:600px){.portfolio-cad-groups{grid-template-columns:1fr}}
.portfolio-cad-actions button {padding:9px;margin:5px;border:1px solid #e5007d;background:white;color:#e5007d;cursor:pointer;}
.visplantis-lockup strong {max-width:240px;overflow-wrap:anywhere;font-size:15px;}
.portfolio-edit-format {display:block;margin-top:9px;padding:7px 12px;border:1px solid #e5007d;border-radius:5px;background:white;color:#e5007d;font:inherit;cursor:pointer;}

.ai-product-image-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px;max-width:640px}.ai-product-image-grid figure{margin:0;min-width:0}.ai-product-image-grid img{width:100%;height:140px;object-fit:contain;background:#f5f7fa;border:1px solid #dae1e7;border-radius:8px}.ai-product-image-grid figcaption{font-size:11px;overflow-wrap:anywhere}.ai-product-images{margin:12px 0;padding-top:8px;border-top:1px solid #dae1e7}.preview-label{font-size:10px;color:#56748a}

.product-preview{margin:0;position:relative}.product-preview .preview-label{position:absolute;bottom:0;left:0;background:#fff;padding:2px 4px}
.portfolio-editor-photo{width:100%;max-height:160px;object-fit:contain;border:1px solid #e1e6eb;border-radius:8px;background:#f8fafb}
.workspace-registry-action{margin:4px 6px 4px 0;padding:8px 10px;border:1px solid #d6dde3;border-radius:6px;background:white;color:#526574;font:12px Arial,sans-serif;cursor:pointer}.workspace-client-scope{display:block;font-size:11px;color:#617889;line-height:1.5;margin-top:6px}.workspace-registry-action[hidden]{display:none}
.portfolio-field-help{display:block;margin-top:6px;color:#677f8e;font-size:11px;line-height:1.5;font-weight:400}
.portfolio-extra-fields{margin-top:14px;font-size:12px}.portfolio-extra-fields summary{cursor:pointer;padding:8px 0;color:#617889}.portfolio-extra-fields[open]>.portfolio-field-grid{margin-top:10px}
.portfolio-choice-field{min-width:0;grid-column:1/-1;margin:0;padding:12px;border:1px solid #dce3e8;border-radius:8px}.portfolio-choice-field legend{color:#263640;font-size:12px;font-weight:700;padding:0 4px}
.portfolio-token-buttons{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.portfolio-token-buttons button{border:1px solid #cdd8df;border-radius:6px;background:white;padding:8px 11px;color:#4e687a;font:12px Arial,sans-serif;cursor:pointer}.portfolio-token-buttons button[aria-pressed=true]{border-color:#e5007d;background:#fff0f8;color:#bb0067}.portfolio-token-buttons button:focus-visible{outline:2px solid #e5007d;outline-offset:2px}
.portfolio-winding-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.portfolio-winding-grid button{position:relative;display:block;min-width:0;padding:6px;border:2px solid #d9e1e7;border-radius:8px;background:#fff;cursor:pointer;overflow:hidden}.portfolio-winding-grid svg{display:block;width:100%;height:auto;aspect-ratio:1.87}.portfolio-winding-grid button[aria-pressed=true]{border-color:#e5007d;box-shadow:0 0 0 2px #e5007d16}.portfolio-winding-grid button:disabled{opacity:.5;cursor:default}.portfolio-winding-grid button:focus-visible{outline:2px solid #e5007d;outline-offset:3px}.portfolio-winding-selected{display:none;position:absolute;top:7px;right:7px;border-radius:50%;background:#e5007d;color:white;font:700 13px/22px Arial;width:22px;height:22px;text-align:center}.portfolio-winding-grid button[aria-pressed=true] .portfolio-winding-selected{display:block}.portfolio-winding-count{display:block;text-align:right;margin-top:6px;color:#e5007d;font-size:12px}
@media(max-width:600px){.portfolio-winding-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.portfolio-choice-field{padding:8px}}

/* My Factory visual hierarchy. Portfolio grids and editors retain their layout. */
.titlebar{display:flex;align-items:center;flex-wrap:wrap;gap:20px 32px}
.titlebar h1{font-size:24px!important;line-height:1.2}
.home-hook{display:flex;flex:0 1 440px;max-width:100%;margin-left:auto;padding-left:0;gap:16px}
.home-hook>span{flex:0 0 40px;width:40px;height:40px;font-size:22px}
.home-hook strong{font-size:32px;line-height:1.12;letter-spacing:-.6px;text-wrap:balance}
.home-hook small{font-size:9px;letter-spacing:1.2px}
.home-customer-copy strong{font-size:15px;font-weight:600}
.home-customer-select{grid-template-columns:minmax(0,1fr) 36px;align-items:center;gap:6px}
.home-customer-select>span,.workspace-client-status,.workspace-client-scope{grid-column:1/-1}
.workspace-clients{grid-column:1;margin:0;min-width:0}
.workspace-clients summary{min-height:36px;padding:8px 12px;font-size:12px;border-radius:6px}
.workspace-add-client{grid-column:2;width:36px;height:36px;padding:0;border-color:#d6dde3;background:#fff;color:#526574;font-size:22px;line-height:1;font-weight:400}
.workspace-add-client[hidden]{display:none}
.workspace-add-client:hover{border-color:#d00075;color:#d00075;background:#fff7fb}
.workspace-add-client:focus-visible,.workspace-clients summary:focus-visible,.home-hub button:focus-visible,.machines-view button:focus-visible{outline:2px solid #d00075;outline-offset:3px}
.support-service-button,.ha-presentation-entry{min-height:36px;border-radius:6px;font-size:12px;font-weight:600}
.workspace-client-dialog button:not([type=submit]){border-color:#d6dde3;color:#526574}
@media(max-width:1100px){.home-hook{flex-basis:340px}.home-hook strong{font-size:24px}}
@media(max-width:760px){.titlebar{gap:18px;padding:22px 16px}.titlebar h1{font-size:21px!important}.home-hook{display:flex;flex-basis:100%;margin:0;max-width:380px}.home-hook strong{font-size:24px}.home-hook>span{flex-basis:34px;width:34px;height:34px}.home-customer-select{grid-template-columns:minmax(0,1fr) 36px}}

/* Wrapped header controls must remain in normal flow above the purpose panel. */
@media(max-width:760px){body>header{height:auto!important;min-height:76px;flex-wrap:wrap;gap:10px;align-items:center;padding:14px 16px}}

/* Learn, ? and the language picker together at the right of the logo row, in the order Learn · ? · language; ? is a
   44 px square. On phones Learn shows only its cap icon so the row keeps all three. */
body[data-hyper-agile-front="true"]>header>.ha-learn-header-button{order:97;margin-left:auto;flex:0 0 auto}
body[data-hyper-agile-front="true"]>header>.ha-help-button{order:98;min-width:44px;min-height:44px;margin-left:0}
body[data-hyper-agile-front="true"]>header>.ha-language-picker{order:99;margin-left:0}
/* Learn, ? and the language button look as in the studios (studio-help-button.css and studio-language-button.css
   name this header too) and react to the mouse as there (portal-support/studio-hover.css): pink outline and text
   on a faint pink. The ? has its hover in its own file. */
html body[data-hyper-agile-front="true"]>header>.ha-learn-header-button:hover,html body[data-hyper-agile-front="true"]>header>.ha-language-picker>summary:hover{border-color:var(--studio-hover-line,#df0073)!important;color:var(--studio-hover-text,#b80060)!important;background-color:var(--studio-hover-fill,#fff7fb)!important}
@media(max-width:560px){
 body[data-hyper-agile-front="true"]>header>.ha-learn-header-button>span:not(.ha-learn-cap){display:none}
 body[data-hyper-agile-front="true"]>header>.ha-learn-header-button{padding-inline:6px}
}
@media(max-width:440px){body[data-hyper-agile-front="true"]>header{column-gap:8px}body[data-hyper-agile-front="true"]>header>.brand.hyper-wordmark{gap:8px}}
@media(max-width:400px){body[data-hyper-agile-front="true"]>header{column-gap:6px;padding-inline:12px}}
/* My Factory: lines added per client */
.factory-lines-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px 18px}
.factory-add-line{padding:11px 18px;border:1px solid #e5007d;border-radius:7px;background:#e5007d;color:#fff;font:800 12px system-ui;letter-spacing:.6px;cursor:pointer}
.factory-add-line:hover{background:#c8006c}
.factory-lines-status{color:#72818d;font-size:13px}
.factory-lines{display:grid;gap:18px}
.factory-line{display:grid;gap:6px}
.factory-line .saved-machine-card{width:auto}
.factory-line .saved-machine-card{position:relative;box-sizing:border-box;font-family:inherit}
.factory-line .saved-machine-open{border:0;border-top:1px solid #eadce4;background:none;padding:10px 38px 0 0;font-family:inherit;text-align:left;cursor:pointer}
.factory-line-title{display:flex;align-items:center;gap:8px}.factory-line-name{overflow-wrap:anywhere}.factory-rename-line{display:inline-flex;align-items:center;justify-content:center;flex:0 0 30px;width:30px;height:30px;padding:5px;border:1px solid transparent;border-radius:6px;background:none;color:#718096;cursor:pointer}
.factory-rename-line:hover{color:#d00075;background:#fff0f7;border-color:#f3c6db}.factory-rename-line:focus-visible{outline:2px solid #d00075;outline-offset:2px}
.factory-remove-line{position:absolute;right:12px;bottom:12px;width:28px;height:28px;display:grid;place-items:center;padding:0;border:0;border-radius:4px;background:none;color:#8a96a0;font:400 20px/1 system-ui;cursor:pointer}
.factory-remove-line:hover{color:#b00065}
.factory-remove-dialog>header{height:auto!important;min-height:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;position:static!important}.factory-remove-dialog [data-context-help]{flex:0 0 auto;min-width:32px;height:32px;padding:0 10px;border:1px solid #e7b3cf;border-radius:6px;background:white;color:#253849;font:14px system-ui}.factory-remove-dialog [data-context-help]:hover{color:#d00075;background:#fff0f7;border-color:#d00075}
.factory-line-dialog select{box-sizing:border-box;width:100%;margin-bottom:16px;padding:12px;border:1px solid #b8c4ce;border-radius:6px;background:#fff;font:inherit}
.factory-line-dialog [role=alert]{min-height:1em;color:#b00020;font-size:12px}
.home-customer-email{overflow-wrap:anywhere}
.factory-line-meta{color:#77848f;font-size:12px;font-style:normal}.saved-machine-status b{font-weight:inherit}

/* Shared control proportions for portfolio actions and product-row controls. */
.portfolio-top .toolbar{gap:8px;align-items:center}
.layout[data-home-view="portfolio"] .portfolio-top,.layout[data-home-view="portfolio"] .portfolio-main{padding-left:var(--ha-page-inset);padding-right:var(--ha-page-inset)}
.portfolio-top .toolbar button,.portfolio-row-actions button,.portfolio-row-actions .portfolio-line-assignment{box-sizing:border-box;min-height:40px;border-radius:7px;font-family:Arial,sans-serif;font-size:13px;line-height:1.3}
.portfolio-top .toolbar button{padding:10px 14px;cursor:pointer}
.portfolio-top .toolbar button:not(.portfolio-ai-button){border:1px solid #cbd5df;background:#fff;color:#24445f;font-weight:400}
.portfolio-top .toolbar button:not(.portfolio-ai-button):hover{border-color:#e5007d;background:#fff7fb;color:#d00075}
.portfolio-top .toolbar button:focus-visible{outline:2px solid #e5007d;outline-offset:3px}
.portfolio-top .toolbar button:disabled{cursor:default;opacity:.5}
.portfolio-top .toolbar .portfolio-ai-button{padding-right:49px}
@media(max-width:600px){.portfolio-top .toolbar{display:flex;flex-wrap:wrap}.portfolio-top .toolbar .count{flex-basis:100%}}



/* My Portfolio client dropdown: Home COMPANY box look, 320 px wide, left-aligned with the portfolio. */.portfolio-client-select{justify-self:start;align-self:start;box-sizing:border-box;width:min(320px,calc(100% - 2 * var(--ha-page-inset,24px)));margin:24px var(--ha-page-inset,24px) 0;grid-template-columns:minmax(0,1fr)}.portfolio-client-select>span{font-size:12px}.portfolio-client-select[hidden]{display:none}

/* The page markup starts as the portfolio; the script then picks the first view (the main menu unless the
   address says otherwise). Nothing is drawn until that choice is made, so the portfolio never shows for a moment. */
body[data-hyper-agile-front="true"] #layout:not([data-home-view]){visibility:hidden}

/* HA mark (16 Nov 2026 port): the portal header uses the studio wordmark, the HA monogram on a light tile, HyperAgile
   and PLATFORM; the version badge follows PLATFORM. The tile is 56 px (most of the 76 px logo row) so the HA mark
   reads well; HyperAgile 16 px (Henryk Nowacki's layout review, E2). */
body>header .brand.hyper-wordmark{display:flex;align-items:center;gap:11px;flex:0 0 auto;color:#20262d;text-decoration:none}
body>header .hyper-symbol{display:block;flex:0 0 56px;width:56px;height:56px}
body>header .hyper-symbol svg{display:block;width:100%;height:100%}
body>header .hyper-agile-mark{display:flex;flex-direction:column;align-items:flex-start;line-height:1}
body>header .hyper-agile-mark strong{color:#20262d;font:900 16px/1 Arial,Helvetica,sans-serif;letter-spacing:-.35px;white-space:nowrap}
body>header .hyper-agile-mark small{display:block!important;margin:4px 0 0;color:#697583;font:600 8px/1 Arial,Helvetica,sans-serif;letter-spacing:2.2px;white-space:nowrap}
body>header .hyper-agile-mark .ha-brand-version{margin-top:5px}

/* The logo row and the black page banner stay at the top while Home, My Portfolio and My Factory scroll; the back
   button sits on a grey strip that stays just under the banner (hyperagile-home.js measures their heights).
   Learn's own pinned copies of the header and banner keep their place. */
body[data-hyper-agile-front="true"]>header:not(.ha-learn-shared-header){position:sticky;top:0;z-index:62}
body[data-hyper-agile-front="true"]>.titlebar:not(.ha-learn-shared-banner){position:sticky;top:var(--ha-portal-header-height,76px);z-index:61}
body[data-hyper-agile-front="true"] #layout>.ha-back-bar{align-self:stretch;justify-self:stretch;position:sticky;top:calc(var(--ha-portal-header-height,76px) + var(--ha-portal-banner-height,0px));z-index:40;grid-column:1/-1;margin:0;padding:12px var(--ha-page-inset,24px);background:#f5f5f5}
body[data-hyper-agile-front="true"] #layout>.ha-back-bar .ha-back-button{display:inline-flex;align-items:center;gap:8px;padding:9px 13px;border:1px solid #dbe1e5;border-radius:8px;background:#fff;color:#4c5c68;font:800 12px/1.5 Arial,Helvetica,sans-serif;cursor:pointer}
body[data-hyper-agile-front="true"] #layout>.ha-back-bar .ha-back-button:hover{border-color:#d0006c;color:#d0006c}
body[data-hyper-agile-front="true"] #layout>.ha-back-bar .ha-back-button:focus-visible{outline:2px solid #d00075;outline-offset:3px}
html{scroll-padding-top:calc(var(--ha-portal-header-height,76px) + var(--ha-portal-banner-height,0px) + var(--ha-portal-backbar-height,0px) + 16px)}

/* Home and My Factory: the cards sit in one 1040 px column centred on the page; line cards fill it and the back
   button lines up with its left edge. */
.home-hub,.machines-view{justify-items:center}
.home-hub>*,.machines-view>*{box-sizing:border-box;width:100%;max-width:1040px}
.home-hub-intro p{max-width:700px}
body[data-hyper-agile-front="true"] #layout[data-home-view="machines"]>.ha-back-bar{padding-inline:max(var(--ha-page-inset,24px),calc((100% - 1040px) / 2))}

/* My Portfolio windows: Cancel / Save changes stay on the window's bottom edge while a long form scrolls (Edit and
   Add format, Import), the Line format parts window's Close on its top edge, AI for products' Close on its bottom
   edge with a white strip behind it so it never sits on the window's own buttons. */
body[data-hyper-agile-front="true"] dialog.portfolio-editor .portfolio-editor-actions{position:sticky;bottom:-26px;z-index:3;margin-bottom:-26px;padding-block:14px 26px;background:#fff}
body[data-hyper-agile-front="true"] dialog.portfolio-editor>[data-help-id="portfolio.import.cancel"]{position:sticky;bottom:0;z-index:3}
body[data-hyper-agile-front="true"] dialog.cu-archive-dialog>button:not([data-context-help]){position:sticky;top:0;z-index:3}
body[data-hyper-agile-front="true"] dialog.ai-products>button:not([data-context-help]){position:sticky;bottom:0;z-index:3;box-shadow:0 0 0 100vmax #fff;clip-path:inset(-12px -100vmax -100vmax)}

/* Keep cancel available throughout long product forms. */
.portfolio-editor-header{position:sticky;top:-26px;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:16px;margin:-26px -26px 16px;padding:16px 26px;background:#fff;border-bottom:1px solid #d6dde3}
.portfolio-editor-header h2{margin:0}
.portfolio-editor .portfolio-editor-close{flex:none;width:auto;height:auto;padding:8px 12px;margin:0 0 0 auto;border:1px solid #d5dde5;border-radius:6px;background:white;color:#b8006b;font:inherit;line-height:1.5;cursor:pointer}
@media(max-width:600px){.portfolio-editor-header{top:-16px;margin:-16px -16px 16px;padding:12px 16px}}
