/* Workbench host for the original 5BI Creator components. */
:root{--p900:#082e45;--p800:#0b4055;--plum:#082e45;--ink:#173846;--muted:#526873;--line:#d8e6e2;--line2:#b7cfca;--view-accent:#087f79;--view-soft:#eef8f5;--view-line:#d8e6e2}
html,body{background:#fbf8f1!important;color:#173846!important;font-family:system-ui,-apple-system,Segoe UI,sans-serif!important}
.sidebar,.topbar,.mobileDock,.mobileBottomNav,.cysMobileDock,.cysQuickPanel,.floatingCys,#cysDirectBootGate,#cysSecurityGate{display:none!important}
.shell{display:block!important;max-width:1280px!important;margin:auto!important}
.main{margin:0!important;width:100%!important;padding:20px 28px 60px!important;max-width:1280px!important}
.view:not(#view-creator):not(#view-detail):not(#view-saved){display:none!important}
.view:not(.active){display:none!important}
.aiwCreatorNav{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:12px 0 20px;border-bottom:1px solid #d8e6e2;margin-bottom:24px}
.aiwCreatorNav strong{color:#082e45;font-size:18px;letter-spacing:.04em}
.aiwCreatorNav nav{display:flex;gap:8px;flex-wrap:wrap}
.aiwCreatorNav a,.aiwCreatorNav button{font:600 15px system-ui;text-decoration:none;padding:10px 14px;border:1px solid #087f79;border-radius:12px;background:#087f79;color:white;min-height:44px;cursor:pointer}
.innerHero{background:linear-gradient(125deg,#fffefa,#e3f4f0)!important;border:1px solid #d8e6e2!important;color:#173846!important}
.innerHero h1{color:#082e45!important;font-family:Georgia,serif!important;font-weight:500!important}
#view-creator h2,#view-creator h3,#view-detail h1,#view-detail h2,#view-detail h3{color:#082e45!important}
.view p,.view label,.view li,.view small,.view span,.view b,.kicker,.cysFieldHint,.creatorHelp,.labOutput,.hookResult,.templateText{color:#173846!important}
.view p,.view li,.view label,.view input,.view select,.view textarea,.view .labOutput,.view .hookResult{font-size:16px!important;line-height:1.55!important}
.view small,.cysFieldHint,.view .kicker{font-size:13px!important;line-height:1.5!important}
.view input,.view textarea,.view select{background:#fff!important;color:#173846!important;min-height:44px;border-color:#b7cfca!important}
.view .btn.primary,.view .tileAction,.view .templateOpen,.view .navPill{background:#087f79!important;color:#fff!important;border-color:#087f79!important;font-size:15px!important;min-height:44px}
.view .btn.secondary,.view .btn.soft,.view summary{background:#e3f4f0!important;color:#084b50!important;font-size:15px!important;min-height:44px}
.view .creatorQuick b,.view .creatorQuick span{color:#173846!important}
.v4-now-card,.tile,.panel,.cysContentEngine{background:#fffefa!important;border-color:#d8e6e2!important}
.v4-now-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:20px!important}
.v4-now-card{padding:22px!important}
.cysContentCard,.cysValuePack,.cysAIResult{background:#f4faf8!important;color:#173846!important}
.cysRichOutput,.cysRichOutput p,.cysRichOutput li,.cysValuePack pre{font-size:16px!important;line-height:1.65!important;white-space:pre-wrap;overflow-wrap:anywhere}
.creatorQuick{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.creatorQuick button,.angleBtns button{min-height:44px!important;font-size:15px!important}
.cysCardDisclosure summary{padding:16px!important;color:#082e45!important;font-size:18px!important;font-weight:700!important}
#view-saved{padding:20px 0}.aiwPreviewNote{padding:12px 16px;margin:12px 0;border-radius:12px;background:#e3f4f0;color:#173846;font-size:14px;line-height:1.5}
#savedPanel{display:block!important}.cysSavedWorkModal *{font-size:16px}.cysSavedWorkEditor{color:#173846!important}
@media(max-width:700px){.main{padding:14px 16px 40px!important}.v4-now-grid,.creatorBoard,.cysEngineGrid,.cysAIMetaGrid,.cysContentCards{grid-template-columns:1fr!important}.creatorQuick{grid-template-columns:1fr 1fr!important}.aiwCreatorNav nav{width:100%}.aiwCreatorNav a,.aiwCreatorNav button{flex:1 1 100px;text-align:center}.innerHero{padding:24px 18px!important}.innerHero h1{font-size:40px!important}.view{padding-left:0!important;padding-right:0!important}.span2{grid-column:auto!important}.cysScriptExampleHead{flex-direction:column!important}.savedOutputActions{flex-wrap:wrap!important}}

.aiwCreatorTemplates{border-radius:18px;padding:24px;background:#182d4b;color:#fff;margin:10px 0 28px}#view-creator .aiwCreatorTemplates h2{color:#fff!important}#view-creator .aiwCreatorTemplates p{color:#e8eee7!important}.aiwTemplateActions{display:flex;gap:12px;flex-wrap:wrap}.aiwTemplateActions a{padding:12px 16px;border-radius:10px;background:#f4deca;color:#182d4b;text-decoration:none;font-weight:700}@media(max-width:600px){.aiwTemplateActions{display:grid}.aiwTemplateActions a{width:100%;box-sizing:border-box}}

/* Keep nested labels readable when the primary control has a dark background. */
html body .view .btn.primary,html body .view .btn.primary *,html body .aiwCreatorNav a,html body .aiwCreatorNav a *,html body .aiwCreatorNav button,html body .aiwCreatorNav button *{color:#fff!important}

/* A single page scroll and opaque navigation replace the inherited Hub viewport. */
html:has(body.aiwCreatorOnly),body.aiwCreatorOnly{height:auto!important;min-height:100%!important;overflow:visible!important;overscroll-behavior:auto!important}
body.aiwCreatorOnly .shell,body.aiwCreatorOnly .main{height:auto!important;max-height:none!important;overflow:visible!important}
body.aiwCreatorOnly .main{padding:20px 28px 60px!important}
body.aiwCreatorOnly .aiwCreatorNav{background:#fbf8f1!important;position:sticky!important;top:0!important;padding:16px 20px!important;margin:0 0 24px!important;z-index:500!important;box-shadow:0 5px 12px #1738460d}
body.aiwCreatorOnly .innerNav{position:relative!important;top:auto!important}
body.aiwCreatorOnly .creatorBoard{align-items:start;gap:24px!important}
body.aiwCreatorOnly .creatorBoard>*{min-width:0}
@media(max-width:700px){body.aiwCreatorOnly .main{padding:14px 16px 40px!important}body.aiwCreatorOnly .aiwCreatorNav{padding:12px!important}body.aiwCreatorOnly .aiwCreatorNav nav{gap:6px}body.aiwCreatorOnly .aiwCreatorNav a,body.aiwCreatorOnly .aiwCreatorNav button{flex:1 1 90px;font-size:13px!important}}
