*{box-sizing:border-box}html,body{max-width:100%}body{font:15px system-ui;margin:auto;max-width:1500px;padding:15px;background:#edf1f6;color:#172033}header,section,dialog{background:white;padding:15px;margin:10px;border-radius:12px;box-shadow:0 2px 10px #17304a18;min-width:0}.mods{display:grid;grid-template-columns:minmax(280px,480px) minmax(0,1fr);gap:10px}.lists{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.list{display:grid;gap:5px;max-height:270px;overflow:auto;min-width:0}button,input,textarea,select{min-height:44px;padding:10px;margin:3px;border:1px solid #9ca8b8;border-radius:7px;max-width:100%}button{cursor:pointer;background:#eef4ff;text-align:left;touch-action:manipulation}.selected{outline:3px solid #165dff;background:#dfeaff}pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:420px;overflow:auto;background:#f5f7fa;padding:12px;max-width:100%}dialog{width:min(80%,700px);max-width:calc(100vw - 24px)}textarea{width:100%;margin-inline:0}.badge{display:inline-block;padding:6px 8px;border-radius:20px;background:#fff3cd}.ui-state{font-weight:800;padding:8px 12px;border-radius:8px;background:#e8eef8}.swipe-surface{height:120px;touch-action:none;border:3px dashed #165dff;display:grid;place-items:center}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #165dff;outline-offset:2px}@media(max-width:800px){body{padding:5px}.mods,.lists{grid-template-columns:minmax(0,1fr)}header,section{margin:6px;padding:12px}.list{max-height:340px}button{width:100%;margin-inline:0}}
.longpress-surface{height:120px;touch-action:none;border:3px dashed #16835d;display:grid;place-items:center}
/* Empty account pickers must remain large enough to open before options load. */
#user-admin select{min-width:44px}
.proof-wrap{overflow-wrap:anywhere;white-space:pre-wrap}.hash-wrap{overflow-wrap:anywhere;word-break:break-word}.hash-wide{overflow-wrap:anywhere;word-break:break-word;max-width:100%;margin-inline-start:1.5rem}.min-zero{min-width:0}.responsive-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:10px}.bounded-panel{border:1px solid #ccd6e3;border-radius:10px;padding:10px}.clip-overflow{overflow:hidden}#crm-p0-document-view{min-width:0;max-width:100%;overflow-wrap:anywhere;word-break:break-word}.uat-current-step{outline:3px solid #165dff}
.account-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:8px}label{display:grid;gap:3px}#bulk-table-wrap{overflow:auto;max-width:100%}#bulk-table-wrap table{border-collapse:collapse;min-width:900px}#bulk-table-wrap th,#bulk-table-wrap td{border:1px solid #ccd6e3;padding:4px}#bulk-table-wrap input{min-width:130px;width:100%}details{border:1px solid #ccd6e3;border-radius:9px;padding:10px;margin-block:10px}summary{cursor:pointer;padding:8px}
.business-card{border:1px solid #ccd6e3;border-radius:10px;padding:12px;margin-block:10px}.business-tabs{display:flex;gap:8px;flex-wrap:wrap}#business-workspace article{border-top:1px solid #d8e0ea;padding-block:14px}.nav-link,.button-link{display:inline-block;padding:.65rem 1rem;border-radius:8px;background:#0b69b7;color:#fff;text-decoration:none;font-weight:700}.marketing-entry{margin:1rem 0;padding:1rem;border:1px solid #b9d2e8;border-radius:12px;background:#f4f9fd}.marketing-entry h3{margin-top:0}html:not(.technical-mode) body>header,html:not(.technical-mode) body>#topbar,html:not(.technical-mode) body>#golden-gesture,html:not(.technical-mode) body>.mods,html:not(.technical-mode) body>#runtime-unavailable,html:not(.technical-mode) body>section:not(#simple-account):not(#business-workspace):not(#user-admin){display:none!important}
.login-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-block:8px}.login-actions button{text-align:center;margin:0}.login-actions #simple-login{background:#087a4b;color:#fff;font-weight:800}.login-actions .secondary-action{background:#fff;color:#17304a}.entry-kicker{margin:0;color:#49708d;font-size:.78rem;font-weight:800;letter-spacing:.04em}.marketing-entry h3{margin:.35rem 0}.marketing-entry .button-link{margin-top:.35rem}.stage1-entry{border-left-color:#087a4b}.stage1-entry .entry-kicker{color:#087a4b}@media(max-width:800px){.login-actions{grid-template-columns:1fr}.login-actions .secondary-action{order:-1}}
.nav-primary,.stage1-entry .button-link{background:#087a4b}.nav-secondary{background:#60758a}.stage1-entry{border-left:5px solid #087a4b;background:#eefaf4}

/* B200: only the authenticated workspace navigation becomes sticky. */
@supports (overflow-x:clip){html.gold-sticky-tabs,html.gold-sticky-tabs body{overflow-x:clip}}
#business-workspace.sticky-tabs-ready>.business-tabs{position:sticky;top:0;z-index:10;background:#fff;border-bottom:1px solid #ccd6e3;padding:4px;box-shadow:0 2px 5px #17304a18}
#business-workspace .business-tabs button{min-height:44px;min-width:0;flex:1 1 0;margin:0;overflow-wrap:anywhere}
.business-tabs .tabs-compact-label{display:none}
html.gold-sticky-tabs{scroll-padding-top:var(--gold-tabs-offset,0px)}
#business-workspace summary,#business-workspace button,#business-workspace [tabindex],#business-workspace input,#business-workspace textarea,#business-workspace select{scroll-margin-top:var(--gold-tabs-offset,0px)}
@media(max-width:1024px){.business-tabs .tabs-wide-label{display:none}.business-tabs .tabs-compact-label{display:inline}#business-workspace .business-tabs{flex-wrap:nowrap;gap:4px}#business-workspace .business-tabs button{width:auto;padding:8px 4px}}

/* Scoped content sizing: retain every character and existing table scroll regions. */
#business-workspace{min-width:0;overflow-wrap:anywhere}
#business-workspace :where(article,section,div,form,fieldset,label,details,summary,ul,ol,li,p,h1,h2,h3,h4,h5,h6){min-width:0}
#business-workspace :where(fieldset,details,pre){max-width:100%}
#business-workspace :where(button,input,select){min-width:0;max-width:calc(100% - 6px)}
#business-workspace button{white-space:normal;overflow-wrap:anywhere}
#business-workspace pre{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:800px){#business-workspace button{max-width:100%}}

/* Visible app surfaces also contain technical/account labels and long source IDs. */
body > :where(section,header,dialog){overflow-wrap:anywhere;min-width:0}
body > :where(section,header,dialog) :where(article,section,div,form,fieldset,label,details,summary,ul,ol,li,p,h1,h2,h3,h4,h5,h6){min-width:0}
body > :where(section,header,dialog) :where(fieldset,legend,details,pre){max-width:100%}
body > :where(section,header,dialog) :where(button,input,select){min-width:0;max-width:calc(100% - 6px)}
body > :where(section,header,dialog) button{white-space:normal;overflow-wrap:anywhere}
@media(max-width:800px){body > :where(section,header,dialog) button{max-width:100%}}
/* Full-width native controls must not add horizontal margins to their inline width. */
body > :where(section,header,dialog) :where(input,select){margin-inline:0}
#business-workspace :where(summary,button,input,select,textarea,[tabindex]){scroll-margin-bottom:8px}

/* Keep Agent descriptions hidden with their original KPI label; loaded under style-src self. */
[data-agent-guide-container] > label[hidden] + .business-agent-field-guide { display:none !important; }
/* Keep navigation targets usable when all AI tabs are present on narrow screens. */
@media(max-width:1024px){
 #business-workspace .business-tabs{flex-wrap:wrap}
 #business-workspace .business-tabs button{min-width:88px;flex:1 1 88px}
}
