/* CaseZero Atelier 5.27.0 — one visual system, no external font/CDN dependency.
   The existing contrast modes and diagnostic safe mode remain available. */
html[data-contrast="standard"]:not(.cz-ui-safe) {
  --accent:#6254d9; --accent2:#6254d9; --text:#202636; --muted:#637084;
  --czui-bg:#f5f6f9;--czui-ink:#202636;--czui-muted:#637084;--czui-border:#e5e7ee;
  --czui-shadow:0 3px 14px #1e244406;--czui-panel-radius:14px;
  font-family:Inter,"Segoe UI",Arial,sans-serif;
}
/* Shell */
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell {background:#f5f6f9!important;color:#202636!important;font-size:14px!important;grid-template-columns:236px minmax(0,1fr)!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell .sidebar{background:#171d2d!important;border:0!important;padding:24px 14px 14px!important;box-shadow:none!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell .brand{padding:0 10px 26px!important;margin:0!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell .brand img{display:none!important;}
.czd-brand{display:flex;align-items:center;gap:10px;color:#fff;font-size:21px;font-weight:650;letter-spacing:-.8px;}
.czd-brand-mark{display:grid;place-items:center;background:#8c80f5;width:32px;height:32px;border-radius:10px;color:#fff;}
.czd-icon{width:19px;height:19px;display:inline-block;flex:none;vertical-align:middle;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell #nav{gap:4px!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell .sidebar .nav-group{font-size:9px!important;letter-spacing:.12em!important;font-weight:600!important;color:#929bad!important;margin:22px 10px 8px!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell .sidebar .nav-item{min-height:40px!important;border:0!important;border-radius:8px!important;padding:9px 12px!important;font-size:12px!important;font-weight:500!important;color:#b8c0d0!important;background:transparent!important;gap:11px!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell .sidebar .nav-item:hover{background:#ffffff0c!important;color:white!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell .sidebar .nav-item.active{background:#7566dc26!important;color:#d3cbff!important;box-shadow:inset 2px 0 #a396ff!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell .sidebar :is(.nav-item>span,.platform-badge){color:inherit!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell .sidebar :is(.btn.ghost,.czex-site-link,summary){color:#b8c0d0!important;background:transparent!important;border-color:#353c4e!important;font-size:11px!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell .sidebar-foot{border-color:#303747!important;gap:7px!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell .sidebar-toggle{background:#272e42!important;color:#bec5d5!important;border-color:#424a60!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell .main{margin:0!important;background:#f5f6f9!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell .topbar{min-height:78px!important;padding:16px 30px!important;background:#fff!important;border-bottom:1px solid #e6e8ef!important;box-shadow:none!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell .topbar h1{font-size:18px!important;color:#252a3b!important;font-weight:650!important;letter-spacing:-.5px!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell .topbar .eyebrow{font-size:9px!important;letter-spacing:.12em!important;color:#747e91!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell .topbar .page-context{display:none!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell .topbar-actions{gap:8px!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell #content{padding:30px!important;max-width:1600px!important;margin:auto!important;width:100%!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell #content .czui-masthead{background:transparent!important;padding:0 0 22px!important;border:0!important;border-radius:0!important;box-shadow:none!important;margin:0!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell #content .czui-masthead h2{font-size:28px!important;font-weight:650!important;color:#202636!important;letter-spacing:-1px!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell #content .czui-masthead p{color:#637084!important;font-size:13px!important;margin-top:7px!important;max-width:700px!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell .czui-masthead :is(.czui-crumb,.czui-masthead-mark){display:none!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell .ui-page-crumb{display:none!important;}
/* Shared components */
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace :is(#appShell,.modal,.drawer) :is(.btn,.icon-btn){border-radius:8px!important;font-size:12px!important;font-weight:600!important;min-height:36px!important;letter-spacing:0!important;box-shadow:none!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace :is(#appShell,.modal,.drawer) .btn.primary{background:#6254d9!important;color:#fff!important;border:1px solid #6254d9!important;box-shadow:0 2px 4px #5142b420!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace :is(#appShell,.modal,.drawer) .btn.primary:hover{background:#5142bd!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace :is(#appShell,.modal,.drawer) .btn.ghost{background:white!important;color:#475168!important;border:1px solid #dfe2eb!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace :is(#appShell,.modal,.drawer) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:#fff!important;color:#2c3447!important;border:1px solid #dfe2eb!important;border-radius:7px!important;font-size:12px!important;box-shadow:none!important;min-height:36px;}
html[data-contrast="standard"]:not(.cz-ui-safe) :is(button,a,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid #9b8cef!important;outline-offset:3px!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell #content :is(.card,.studio-panel,.marketplace-card,.cz-simple-card,.connection-card,.readiness-tile){border:1px solid #e3e6ed!important;border-radius:14px!important;background:#fff!important;box-shadow:0 3px 14px #1e244406!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell #content .card{padding:22px!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell #content :is(.two-col,.three-col,.grid.metrics,.readiness-grid){gap:18px!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell #content .section-head h2{color:#252c3d!important;font-size:17px!important;font-weight:650!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell #content :is(h3,h4,.primary-text){color:#293145!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell #content .metric{min-height:138px!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell #content .metric::before{width:0!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell #content .metric .value{font-size:34px!important;font-weight:600!important;letter-spacing:-1px!important;color:#272c3d!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell #content .metric .label{font-size:11px!important;letter-spacing:0!important;font-weight:500!important;color:#667085!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell #content .list-row{padding:16px 12px!important;border-color:#edf0f5!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell #content :is(.hero,.cz-guided-hero,.cz-page-intro,.case-management-hero){background:#222c43!important;border:0!important;padding:28px!important;border-radius:16px!important;box-shadow:none!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell #content .empty{padding:32px!important;background:#fafbfc!important;border-color:#dfe3ed!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace :is(.modal,.drawer){background:#fff!important;border-color:#e3e6ed!important;color:#293145!important;box-shadow:0 24px 80px #1d243033!important;border-radius:16px!important;}
/* Automation hub */
html[data-contrast="standard"]:not(.cz-ui-safe) #appShell #content .czb-compact-hub{max-width:1360px;margin:auto;}
html[data-contrast="standard"]:not(.cz-ui-safe) #appShell #content .czb-hub-header{padding:8px 0 26px!important;background:transparent!important;box-shadow:none!important;border:0!important;}
html[data-contrast="standard"]:not(.cz-ui-safe) #appShell #content .czb-hub-header h2{font-size:32px!important;font-weight:600!important;letter-spacing:-1.2px!important;color:#252a3b!important;margin:8px 0!important;}
html[data-contrast="standard"]:not(.cz-ui-safe) #appShell #content .czb-hub-header p{font-size:13px!important;color:#687387!important;max-width:590px;line-height:1.7!important;}
html[data-contrast="standard"]:not(.cz-ui-safe) #appShell #content .czb-kicker{font-size:10px!important;color:#7566c4!important;letter-spacing:.15em!important;}
html[data-contrast="standard"]:not(.cz-ui-safe) #appShell #content :is(.czb-primary-action,.czb-gradient-button){background:#6254d9!important;border:1px solid #6254d9!important;box-shadow:none!important;border-radius:8px!important;font-size:12px!important;padding:12px 18px!important;}
html[data-contrast="standard"]:not(.cz-ui-safe) #appShell #content .czb-outline-button{border:1px solid #dfe2eb!important;border-radius:7px!important;color:#545c70!important;background:white!important;font-size:11px!important;}
html[data-contrast="standard"]:not(.cz-ui-safe) #appShell #content .czb-panel{background:#fff!important;border:1px solid #e3e6ed!important;border-radius:14px!important;box-shadow:0 3px 14px #1e244406!important;padding:24px!important;}
html[data-contrast="standard"]:not(.cz-ui-safe) #appShell #content .czb-hub-grid{gap:22px!important;grid-template-columns:minmax(0,1.8fr) minmax(280px,1fr)!important;}
html[data-contrast="standard"]:not(.cz-ui-safe) #appShell #content .czb-hub-section-title h3{font-size:16px!important;font-weight:600!important;}
html[data-contrast="standard"]:not(.cz-ui-safe) #appShell #content .czb-template-card{border:1px solid #e5e7ee!important;border-radius:12px!important;padding:20px!important;box-shadow:none!important;transition:border-color .15s,box-shadow .15s!important;}
html[data-contrast="standard"]:not(.cz-ui-safe) #appShell #content .czb-template-card:hover{border-color:#b3a7ec!important;box-shadow:0 6px 20px #5342a80b!important;}
html[data-contrast="standard"]:not(.cz-ui-safe) #appShell #content .czb-template-card.is-selected{border-color:#9e90e5!important;background:#fcfbff!important;box-shadow:0 0 0 1px #9e90e522!important;}
html[data-contrast="standard"]:not(.cz-ui-safe) #appShell #content .czb-compact-card-copy h3{font-size:14px!important;font-weight:600!important;line-height:1.5!important;}
html[data-contrast="standard"]:not(.cz-ui-safe) #appShell #content .czb-compact-card-copy p{font-size:12px!important;color:#687387!important;line-height:1.65!important;}
html[data-contrast="standard"]:not(.cz-ui-safe) #appShell #content .czb-filter-list{gap:6px!important;margin:18px 0!important;}
html[data-contrast="standard"]:not(.cz-ui-safe) #appShell #content .czb-filter-list button{border:0!important;background:#f5f6f9!important;color:#687387!important;border-radius:6px!important;padding:8px 12px!important;}
html[data-contrast="standard"]:not(.cz-ui-safe) #appShell #content .czb-filter-list button.is-active{background:#eeeafa!important;color:#5947bc!important;}
html[data-contrast="standard"]:not(.cz-ui-safe) #appShell #content .czb-preview-steps{padding:18px!important;background:radial-gradient(#dfe2eb .7px,transparent .7px) 0 0/12px 12px!important;border-radius:12px!important;}
html[data-contrast="standard"]:not(.cz-ui-safe) #appShell #content .czb-preview-steps li{padding:14px!important;background:white!important;border:1px solid #e2e5ee!important;border-radius:9px!important;box-shadow:0 2px 5px #22224405!important;}
/* Studio uses the full working area. Selectors deliberately outrank historical themes. */
html:not(.cz-ui-safe) #appShell #content:has(.czs-automation-studio){max-width:none!important;padding:0!important;}
html:not(.cz-ui-safe) #appShell #content:has(.czs-automation-studio)>.czui-masthead{display:none!important;}
html:not(.cz-ui-safe) #appShell #content:has(.czs-automation-studio)>.cz-backbar{margin:0!important;padding:8px 22px!important;border:0!important;border-bottom:1px solid #e7e8ef!important;border-radius:0!important;box-shadow:none!important;}
html:not(.cz-ui-safe) #appShell #content .czs-automation-studio{margin:0!important;padding:0!important;max-width:none!important;width:100%!important;}
html:not(.cz-ui-safe) #appShell #content .czs-studio-topbar{background:var(--czd-surface,#fff)!important;border:0!important;border-bottom:1px solid var(--czd-line,#e5e7ee)!important;border-radius:0!important;box-shadow:none!important;padding:18px 24px!important;margin:0!important;}
html:not(.cz-ui-safe) #appShell #content .czs-studio-title h2{font-size:20px!important;font-weight:600!important;letter-spacing:-.5px!important;}
html:not(.cz-ui-safe) #appShell #content .czs-studio-kicker{font-size:9px!important;letter-spacing:.12em!important;}
html:not(.cz-ui-safe) #appShell #content .czs-subtitle{font-size:11px!important;margin-top:7px!important;gap:8px!important;}
html:not(.cz-ui-safe) #appShell #content .czs-status-chip{background:#f0eefb!important;color:#6552b5!important;border:0!important;border-radius:5px!important;font-size:10px!important;}
html:not(.cz-ui-safe) #appShell #content .czs-studio-shell{display:grid!important;grid-template-columns:200px minmax(0,1fr) 308px!important;gap:0!important;min-height:650px!important;height:calc(100dvh - 234px)!important;}
html:not(.cz-ui-safe) #appShell #content :is(.czs-left-pane,.czs-right-pane){border:0!important;border-radius:0!important;margin:0!important;padding:18px 16px!important;box-shadow:none!important;background:var(--czd-surface,#fff)!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;}
html:not(.cz-ui-safe) #appShell #content .czs-left-pane{border-right:1px solid var(--czd-line,#e5e7ee)!important;}
html:not(.cz-ui-safe) #appShell #content .czs-right-pane{border-left:1px solid var(--czd-line,#e5e7ee)!important;grid-column:auto!important;}
html:not(.cz-ui-safe) #appShell #content .czs-pane-heading{padding:0 0 14px!important;border:0!important;font-size:9px!important;letter-spacing:.1em!important;}
html:not(.cz-ui-safe) #appShell #content .czs-palette-heading{padding:16px 0 9px!important;}
html:not(.cz-ui-safe) #appShell #content .czs-palette-heading strong{font-size:14px!important;font-weight:600!important;}
html:not(.cz-ui-safe) #appShell #content .czs-palette-heading small{font-size:10px!important;line-height:1.6!important;margin-top:4px!important;}
.czd-step-search{display:block;margin-bottom:12px;}.czd-step-search input{width:100%!important;min-height:32px!important;}
html:not(.cz-ui-safe) #appShell #content .czs-capability-list{display:grid!important;grid-template-columns:1fr!important;gap:3px!important;padding:0!important;}
html:not(.cz-ui-safe) #appShell #content .czs-capability-list .capability-item{display:flex!important;align-items:center!important;gap:10px!important;padding:9px 7px!important;min-height:40px!important;background:transparent!important;border:1px solid transparent!important;border-radius:8px!important;box-shadow:none!important;text-align:left!important;}
html:not(.cz-ui-safe) #appShell #content .czs-capability-list .capability-item[hidden]{display:none!important;}
html:not(.cz-ui-safe) #appShell #content .czs-capability-list .capability-item:hover{background:#f5f3fd!important;border-color:#ebe6fb!important;transform:none!important;}
html:not(.cz-ui-safe) #appShell #content .czs-capability-icon{width:28px!important;height:28px!important;border-radius:7px!important;background:#efecfc!important;color:#7160c8!important;flex:none!important;display:grid!important;place-items:center!important;}
html:not(.cz-ui-safe) #appShell #content .czs-capability-copy b{font-size:11px!important;font-weight:550!important;}
html:not(.cz-ui-safe) #appShell #content .czs-capability-copy small{display:none!important;}
html:not(.cz-ui-safe) #appShell #content .czs-center-pane{position:relative!important;display:flex!important;flex-direction:column!important;min-width:0!important;min-height:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:hidden!important;}
html:not(.cz-ui-safe) #appShell #content .czs-canvas-toolbar{background:var(--czd-surface,#fff)!important;border:0!important;border-bottom:1px solid var(--czd-line,#e5e7ee)!important;min-height:48px!important;padding:9px 16px!important;gap:8px!important;flex-wrap:wrap!important;}
html:not(.cz-ui-safe) #appShell #content .czs-canvas-label{font-size:11px!important;font-weight:500!important;}
html:not(.cz-ui-safe) #appShell #content .czs-toolbar-hint{display:none!important;}
html:not(.cz-ui-safe) #appShell #content .czs-tool-button{font-size:10px!important;min-height:28px!important;border:1px solid #e1e4ed!important;border-radius:6px!important;}
html:not(.cz-ui-safe) #appShell #content .workflow-canvas-wrap{position:relative!important;flex:1!important;height:auto!important;min-height:390px!important;border:0!important;border-radius:0!important;overflow:auto!important;background-color:var(--czd-canvas,#fafbfe)!important;background-image:radial-gradient(var(--czd-dot,#dcdfea) .8px,transparent .8px)!important;background-size:18px 18px!important;cursor:grab;overscroll-behavior:contain;}
html:not(.cz-ui-safe) #appShell #content .workflow-canvas{position:absolute!important;min-width:0!important;min-height:0!important;width:var(--czd-width,1400px)!important;height:var(--czd-height,900px)!important;background:transparent!important;transform-origin:0 0;}
.czd-canvas-sizer{position:relative;min-width:100%;min-height:100%;}
html:not(.cz-ui-safe) #appShell #content .workflow-edge-layer{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;overflow:visible!important;pointer-events:none!important;}
html:not(.cz-ui-safe) #appShell #content .workflow-node{position:absolute!important;box-sizing:border-box!important;width:224px!important;min-width:224px!important;max-width:224px!important;height:100px!important;min-height:100px!important;padding:14px 16px!important;background:var(--czd-surface,#fff)!important;border:1px solid var(--czd-line,#dfe3ed)!important;border-radius:12px!important;box-shadow:0 3px 9px #2b305109!important;cursor:grab!important;transition:box-shadow .15s,border-color .15s!important;overflow:visible!important;touch-action:none!important;}
html:not(.cz-ui-safe) #appShell #content .workflow-node:active{transform:none!important;cursor:grabbing!important;}
html:not(.cz-ui-safe) #appShell #content .workflow-node:hover{border-color:#b7adeb!important;box-shadow:0 5px 18px #6254d91a!important;}
html:not(.cz-ui-safe) #appShell #content .workflow-node.selected{border:1.5px solid #8977e8!important;box-shadow:0 0 0 3px #8a79e91a,0 5px 15px #2b30510c!important;}
.czd-node-heading{display:flex;align-items:center;gap:9px;margin-bottom:8px;}
.czd-node-icon{width:27px;height:27px;border-radius:7px;background:#eeebfb;color:#7865ce;display:grid;place-items:center;flex:none;}
html:not(.cz-ui-safe) #appShell #content .workflow-node .node-type{font-size:9px!important;letter-spacing:.08em!important;font-weight:600!important;color:var(--czd-muted,#7b8196)!important;margin:0!important;}
html:not(.cz-ui-safe) #appShell #content .workflow-node .node-title{font-size:12px!important;line-height:1.4!important;font-weight:600!important;color:var(--czd-text,#293145)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0!important;}
html:not(.cz-ui-safe) #appShell #content .workflow-node .secondary{font-size:10px!important;color:var(--czd-muted,#737e93)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.5!important;}
html:not(.cz-ui-safe) #appShell #content .workflow-node[data-wf-type="trigger"] .czd-node-icon{background:#fff0e4;color:#c17836;}
html:not(.cz-ui-safe) #appShell #content .workflow-node[data-wf-type="evidence"] .czd-node-icon{background:#e8f3ff;color:#4684c1;}
html:not(.cz-ui-safe) #appShell #content .workflow-node[data-wf-type="approval"] .czd-node-icon{background:#fff1e6;color:#b67b39;}
html:not(.cz-ui-safe) #appShell #content .workflow-node:is([data-wf-type="verify"],[data-wf-type="end"]) .czd-node-icon{background:#e7f5ee;color:#408966;}
html:not(.cz-ui-safe) #appShell #content .workflow-node .wf-port{position:absolute!important;top:50%!important;margin-top:-5px!important;width:10px!important;height:10px!important;min-height:10px!important;padding:0!important;border:2px solid #c2bbdf!important;background:var(--czd-surface,#fff)!important;border-radius:50%!important;transform:none!important;z-index:3;}
html:not(.cz-ui-safe) #appShell #content .workflow-node .wf-port::after{content:"";position:absolute;inset:-8px;border-radius:50%;}
html:not(.cz-ui-safe) #appShell #content .workflow-node .wf-port.in{left:-6px!important;}
html:not(.cz-ui-safe) #appShell #content .workflow-node .wf-port.out{right:-6px!important;left:auto!important;}
.czd-canvas-controls{position:absolute;bottom:18px;left:18px;z-index:5;display:flex;align-items:center;gap:3px;padding:5px;background:var(--czd-surface,#fff);border:1px solid var(--czd-line,#e2e5ee);border-radius:9px;box-shadow:0 3px 10px #2931450b;}
.czd-canvas-controls button{display:grid;place-items:center;border:0;background:transparent;color:var(--czd-text,#626c82);width:30px;height:30px;border-radius:5px;cursor:pointer;}.czd-canvas-controls button:hover{background:#f0eefb;}.czd-canvas-controls output{min-width:42px;text-align:center;font-size:10px;color:var(--czd-muted,#687387);}.czd-control-separator{width:1px;background:#e3e6ee;height:18px;margin:0 4px;}
.czd-canvas-caption{position:absolute;bottom:24px;right:16px;font-size:9px;color:var(--czd-muted,#7a8397);pointer-events:none;}
html:not(.cz-ui-safe) #appShell #content .czs-inspector-head{padding:0 0 16px!important;margin-bottom:18px!important;border-bottom:1px solid var(--czd-line,#e5e7ee)!important;}
html:not(.cz-ui-safe) #appShell #content .czs-inspector-head h3{font-size:16px!important;font-weight:600!important;margin:8px 0 4px!important;}
html:not(.cz-ui-safe) #appShell #content .czs-inspector-head p{font-size:11px!important;}
html:not(.cz-ui-safe) #appShell #content .czs-inspector-caption{font-size:9px!important;letter-spacing:.1em!important;}
html:not(.cz-ui-safe) #appShell #content .czs-node-properties label{font-size:11px!important;font-weight:550!important;margin:0 0 14px!important;display:block;line-height:1.65;}
html:not(.cz-ui-safe) #appShell #content .czs-node-properties :is(input:not([type=checkbox]),select,textarea){width:100%!important;margin-top:5px!important;padding:9px!important;}
html:not(.cz-ui-safe) #appShell #content .czs-node-properties input[type=checkbox]{accent-color:#6254d9;}
html:not(.cz-ui-safe) #appShell #content .czs-node-properties :is(.secondary,small,.inspector-help){font-size:11px!important;line-height:1.65!important;}
html:not(.cz-ui-safe) #appShell #content .czs-node-properties .permission-callout{padding:12px!important;background:#f8f7fd!important;border:1px solid #eeeafa!important;border-radius:8px!important;box-shadow:none!important;font-size:11px!important;}
html:not(.cz-ui-safe) #appShell #content .czs-workflow-settings{margin-top:22px!important;border:1px solid var(--czd-line,#e5e7ee)!important;border-radius:9px!important;background:var(--czd-surface,#fff)!important;}
html:not(.cz-ui-safe) #appShell #content .czs-trigger-bindings{margin:0!important;border:0!important;border-top:1px solid var(--czd-line,#e5e7ee)!important;border-radius:0!important;background:var(--czd-surface,#fff)!important;}
.czd-pending{font-size:11px;padding:10px;background:#fff5e8;color:#8a592a;border-radius:7px;margin-bottom:12px;}.czd-node-empty{text-align:center;padding:35px 8px;color:var(--czd-muted,#738096);font-size:12px;line-height:1.7;}.czd-node-empty .czd-icon{width:40px;height:40px;color:#a89bd9;margin-bottom:16px;}.czd-node-empty strong{display:block;color:var(--czd-text,#424c62);font-weight:600;margin-bottom:8px;}.czd-connection-list{margin-top:20px;padding-top:15px;border-top:1px solid var(--czd-line,#e5e7ee);}.czd-connection-list h4{font-size:11px;}.czd-connection-row{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:11px;padding:8px 0;}.czd-connection-row button{background:transparent;border:0;color:#8e4e65;cursor:pointer;font-size:16px;}.czd-no-steps{font-size:11px;padding:14px 4px;color:#737e93;}
/* Landing: preserve content and sign-in flow; fresh typography and quieter surfaces. */
html[data-contrast="standard"]:not(.cz-ui-safe) #loginView{background:#f7f8fc!important;color:#252c3d!important;}
html[data-contrast="standard"]:not(.cz-ui-safe) #loginView .landing-hero{background:radial-gradient(ellipse at 60% 0%,#ece8fc 0,transparent 55%),#f7f8fc!important;border:0!important;}
html[data-contrast="standard"]:not(.cz-ui-safe) #loginView .landing-copy h1{font-size:clamp(44px,5.2vw,78px)!important;line-height:1.06!important;font-weight:600!important;letter-spacing:-3px!important;color:#22283a!important;}
html[data-contrast="standard"]:not(.cz-ui-safe) #loginView .landing-copy h1 span{color:#7461cf!important;background:none!important;-webkit-text-fill-color:currentColor!important;}
html[data-contrast="standard"]:not(.cz-ui-safe) #loginView .landing-lead{color:#677187!important;line-height:1.8!important;font-size:16px!important;}
html[data-contrast="standard"]:not(.cz-ui-safe) #loginView .btn.primary{background:#6254d9!important;border-color:#6254d9!important;color:white!important;border-radius:9px!important;box-shadow:none!important;}
/* Layout responds without removing controls or switching off functionality. */
@media(min-width:1001px){
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell.nav-collapsed{grid-template-columns:76px minmax(0,1fr)!important;}
html[data-contrast="standard"]:not(.cz-ui-safe) #appShell.nav-collapsed .czd-brand-name{display:none;}
html[data-contrast="standard"]:not(.cz-ui-safe) #appShell:has(.czs-automation-studio){grid-template-columns:76px minmax(0,1fr)!important;}
html[data-contrast="standard"]:not(.cz-ui-safe) #appShell:has(.czs-automation-studio) .sidebar{width:76px!important;padding:24px 10px 12px!important;}
html[data-contrast="standard"]:not(.cz-ui-safe) #appShell:has(.czs-automation-studio) .sidebar .brand{padding:0 10px 26px!important;}
html[data-contrast="standard"]:not(.cz-ui-safe) #appShell:has(.czs-automation-studio) .sidebar :is(.czd-brand-name,.nav-group,.sidebar-foot,.sidebar-toggle,.advanced-nav){display:none!important;}
html[data-contrast="standard"]:not(.cz-ui-safe) #appShell:has(.czs-automation-studio) .sidebar .nav-item{font-size:0!important;justify-content:center!important;min-height:44px!important;margin-bottom:5px!important;gap:0!important;}
html[data-contrast="standard"]:not(.cz-ui-safe) #appShell:has(.czs-automation-studio) .sidebar .nav-item>span{font-size:16px!important;}
}
@media(max-width:1200px) and (min-width:1001px){html:not(.cz-ui-safe) #appShell #content .czs-studio-shell{grid-template-columns:172px minmax(0,1fr) 268px!important;}.czd-canvas-caption{display:none;}}
@media(max-width:1000px){
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell{grid-template-columns:minmax(0,1fr)!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell .sidebar{width:236px!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell #content{padding:20px!important;}
html:not(.cz-ui-safe) #appShell #content .czs-studio-shell{grid-template-columns:170px minmax(0,1fr)!important;height:auto!important;}
html:not(.cz-ui-safe) #appShell #content .czs-right-pane{grid-column:1/-1!important;border-top:1px solid var(--czd-line,#e5e7ee)!important;max-height:none!important;}
html:not(.cz-ui-safe) #appShell #content .czs-left-pane{max-height:540px!important;}
html:not(.cz-ui-safe) #appShell #content .workflow-canvas-wrap{min-height:490px!important;}
html[data-contrast="standard"]:not(.cz-ui-safe) #appShell #content .czb-hub-grid{grid-template-columns:1fr!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell .topbar{padding:16px 20px!important;}
}
@media(max-width:600px){
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell #content{padding:16px!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell .topbar{padding:14px 16px!important;}
html:not(.cz-ui-safe) #appShell #content .czs-studio-topbar{padding:16px!important;gap:14px!important;}
html:not(.cz-ui-safe) #appShell #content .czs-header-actions{gap:6px!important;display:flex!important;flex-wrap:wrap!important;}
html:not(.cz-ui-safe) #appShell #content .czs-header-actions .btn{font-size:11px!important;padding:8px 10px!important;min-width:0!important;flex:1 1 auto!important;}
html:not(.cz-ui-safe) #appShell #content .czs-studio-shell{grid-template-columns:1fr!important;}
html:not(.cz-ui-safe) #appShell #content .czs-left-pane{max-height:245px!important;border-bottom:1px solid var(--czd-line,#e5e7ee)!important;}
html:not(.cz-ui-safe) #appShell #content .czs-capability-list{grid-template-columns:1fr 1fr!important;}
html:not(.cz-ui-safe) #appShell #content .czs-left-pane :is(.czs-pane-heading,.czs-workflow-library,.czs-palette-heading small){display:none!important;}
html:not(.cz-ui-safe) #appShell #content .czs-palette-heading{padding:0 0 8px!important;}
html:not(.cz-ui-safe) #appShell #content .workflow-canvas-wrap{min-height:420px!important;}
.czd-canvas-caption{display:none;}
html[data-contrast="standard"]:not(.cz-ui-safe) #appShell #content .czb-compact-cards{grid-template-columns:1fr!important;}
html[data-contrast="standard"]:not(.cz-ui-safe) #appShell #content .czb-panel{padding:16px!important;}
html[data-contrast="standard"]:not(.cz-ui-safe) #loginView .landing-copy h1{letter-spacing:-1.7px!important;}
}
/* Explicit accessible canvas colors; no pastel foregrounds in high contrast. */
html[data-contrast="high"],html[data-contrast="maximum"]{--czd-surface:#080f1d;--czd-line:#8fa6c8;--czd-text:#fff;--czd-muted:#dae6fa;--czd-canvas:#0e1728;--czd-dot:#526783;}
html:not([data-contrast="standard"]) #appShell #content .czs-automation-studio :is(.czs-capability-copy b,.czs-tool-button,.czs-pane-heading,.czs-palette-heading,.czs-inspector-head,.czs-workflow-settings,.czs-canvas-label){color:#fff!important;}
html:not([data-contrast="standard"]) #appShell #content .czs-automation-studio :is(.czs-tool-button,.capability-item){background:#14213a!important;}
@media(prefers-reduced-motion:reduce){html:not(.cz-ui-safe) *,html:not(.cz-ui-safe) *::before{scroll-behavior:auto!important;transition:none!important;animation:none!important;}}
html:not(.cz-ui-safe) #appShell #content :is(.czs-left-pane,.czs-right-pane){height:100%!important;}
html:not(.cz-ui-safe) #appShell #content .czs-capability-list{overflow:visible!important;flex:none!important;}
html[data-contrast="standard"]:not(.cz-ui-safe) #appShell #content .emerald-home-hero{background:linear-gradient(120deg,#222c43,#303651)!important;padding:32px!important;border:0!important;border-radius:18px!important;box-shadow:none!important;}
html[data-contrast="standard"]:not(.cz-ui-safe) #appShell #content .emerald-home-hero h2{font-size:30px!important;color:white!important;font-weight:600!important;letter-spacing:-.8px!important;line-height:1.2!important;max-width:650px!important;}
html[data-contrast="standard"]:not(.cz-ui-safe) #appShell #content .emerald-home-hero p{font-size:13px!important;color:#c6c9de!important;max-width:650px!important;line-height:1.75!important;}
html[data-contrast="standard"]:not(.cz-ui-safe) #appShell #content .emerald-home-hero .eyebrow{color:#beb3f4!important;}
html[data-contrast="standard"]:not(.cz-ui-safe) #appShell #content .emerald-kpi b{font-size:34px!important;font-weight:600!important;letter-spacing:-1px!important;color:#292f42!important;}
html[data-contrast="standard"]:not(.cz-ui-safe) #appShell #content .emerald-kpi small{font-size:12px!important;color:#697286!important;}
html[data-contrast="standard"]:not(.cz-ui-safe) #appShell #content .next-best{background:#f0edfb!important;border:1px solid #e4def5!important;border-radius:12px!important;box-shadow:none!important;padding:18px 22px!important;}
html[data-contrast="standard"]:not(.cz-ui-safe) #appShell #content .resolution-lifecycle{background:#fff!important;border:1px solid #e5e7ee!important;border-radius:12px!important;margin:20px 0!important;}
@media(max-width:1000px){html:not(.cz-ui-safe) #appShell #content :is(.czs-left-pane,.czs-right-pane){height:auto!important;}}
/* Resolve inherited fixed sidebar widths, including the 901–1000px tablet range. */
@media(min-width:1001px){
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell>.sidebar{width:236px!important;min-width:236px!important;max-width:236px!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell:is(.nav-collapsed,:has(.czs-automation-studio))>.sidebar{width:76px!important;min-width:76px!important;max-width:76px!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell.nav-collapsed .nav-item{font-size:0!important;justify-content:center!important;gap:0!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell.nav-collapsed .nav-item>span{font-size:16px!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell.nav-collapsed :is(.nav-group,.sidebar-foot,.advanced-nav){display:none!important;}
}
@media(max-width:1000px){
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell>.sidebar{position:fixed!important;inset:0 auto 0 0!important;transform:translateX(-110%);width:260px!important;min-width:260px!important;max-width:260px!important;height:100dvh!important;z-index:60!important;visibility:hidden;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell.mobile-nav-open>.sidebar{transform:none!important;visibility:visible!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell #mobileNavToggle{display:grid!important;place-items:center;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell .sidebar-toggle{display:none!important;}
html[data-contrast="standard"]:not(.cz-ui-safe).czui-workspace #appShell.nav-collapsed .czd-brand-name{display:inline!important;}
}
html:not([data-contrast="standard"]) .czd-brand{display:none;}
html:not([data-contrast="standard"]) #appShell #content .czs-automation-studio :is(h2,h3,label,.czs-inspector-caption,.czs-studio-kicker,.czs-subtitle){color:#fff!important;}
html:not([data-contrast="standard"]) #appShell #content .czs-automation-studio :is(.czs-capability-list .capability-item:hover,.czd-canvas-controls button:hover){background:#203654!important;}
.czd-undo-notice{font-size:10px;color:#737e93;}
html:not([data-contrast="standard"]) #appShell #content .czs-automation-studio{--cs-ink:#fff;--cs-muted:#dae6fa;--cs-line:#8fa6c8;}
html:not([data-contrast="standard"]) #appShell #content .czs-automation-studio :is(.permission-callout,.czs-workflow-library summary,.czs-status-chip,.czs-workflow-settings,.czs-trigger-bindings){background:#14213a!important;color:#fff!important;border-color:#8fa6c8!important;}
html:not([data-contrast="standard"]) #appShell #content .czs-automation-studio :is(.permission-callout,.czs-workflow-library,.czs-workflow-settings,.czs-trigger-bindings) :is(span,b,p,small,strong){color:#edf3ff!important;}
