/* CaseZero · Customer experience design system. Presentation-only; RBAC stays server-side. */
:root{--czex-bg:#f5f8fc;--czex-surface:#ffffff;--czex-border:#dbe5ef;--czex-text:#142c43;--czex-muted:#52677e;--czex-accent:#21639b;--czex-success:#15745d}
html[data-contrast="standard"] .app-shell:not(.nav-collapsed){grid-template-columns:236px minmax(0,1fr)!important}
html[data-contrast="standard"] .sidebar{padding:19px 13px 17px!important;background:#102b46!important;overflow-y:auto;scrollbar-width:thin}
html[data-contrast="standard"] .sidebar nav{gap:3px!important;min-height:max-content}
html[data-contrast="standard"] .sidebar .nav-group{font-size:10px!important;letter-spacing:.13em!important;margin-top:19px!important;margin-bottom:6px!important;padding-left:12px!important;font-weight:800!important}
html[data-contrast="standard"] .sidebar .nav-item{font-size:13px!important;font-weight:630!important;min-height:39px!important;padding:9px 12px!important;gap:11px!important;line-height:1.35!important;border-radius:9px!important}
html[data-contrast="standard"] .sidebar .nav-item>span{font-size:16px!important;min-width:23px!important;width:23px!important;height:23px!important;display:grid!important;place-items:center!important;border-radius:6px!important}
html[data-contrast="standard"] .sidebar .advanced-nav summary{padding:13px 12px!important;font-size:12px!important;font-weight:650!important;cursor:pointer!important}
html[data-contrast="standard"] .sidebar .sidebar-foot{padding-top:13px!important}
html[data-contrast="standard"] .sidebar .platform-badge{font-size:11px!important;line-height:1.4!important;padding:9px 8px!important}
html[data-contrast="standard"] .sidebar #sidebarHelp,html[data-contrast="standard"] .sidebar #logoutBtn{font-size:12px!important;padding:9px!important;margin-bottom:7px!important}
html[data-contrast="standard"] .topbar{padding:17px 26px!important;gap:18px!important}
html[data-contrast="standard"] .topbar h1{font-size:24px!important;line-height:1.24!important}
html[data-contrast="standard"] .topbar .page-context{font-size:12px!important;line-height:1.55!important}
html[data-contrast="standard"] .content.czex-content{max-width:1440px!important;padding:28px clamp(16px,2.8vw,46px) 60px!important;font-size:15px!important;line-height:1.55!important}
.czex-shell{color:var(--czex-text);max-width:1320px;width:100%;display:grid;gap:23px}
.czex-shell *, .czex-shell *::before, .czex-shell *::after{box-sizing:border-box}
.czex-shell h2,.czex-shell h3,.czex-shell p{margin:0!important}
.czex-shell h2{font-size:clamp(24px,2.3vw,32px)!important;line-height:1.17!important;letter-spacing:-.035em!important;color:var(--czex-text)!important}
.czex-shell h3{font-size:18px!important;line-height:1.35!important;color:var(--czex-text)!important}
.czex-shell p{font-size:14px!important;line-height:1.65!important;color:var(--czex-muted)!important}
.czex-kicker{font-size:11px!important;font-weight:800!important;letter-spacing:.09em!important;color:#1b6090!important;display:block;margin-bottom:10px!important}
.czex-welcome,.czex-setup-header{background:var(--czex-surface);border:1px solid var(--czex-border);padding:clamp(20px,3vw,31px);border-radius:18px;display:flex;justify-content:space-between;align-items:center;gap:22px;box-shadow:0 9px 30px rgba(28,63,96,.04)}
.czex-welcome>div,.czex-setup-header>div:first-child{max-width:780px;min-width:0;display:grid;gap:12px}
.czex-shell button.btn.primary,.czex-shell .btn.primary{background:linear-gradient(110deg,#1e659e,#454ab1)!important;border-color:transparent!important;color:#fff!important;font-weight:700!important;padding:11px 17px!important;min-height:42px!important;white-space:normal!important;box-shadow:none!important}
.czex-shell button.btn.ghost{background:#fff!important;border:1px solid #c7d8e8!important;color:#1c517e!important;padding:10px 15px!important;min-height:41px!important;font-weight:700!important}
.czex-shell button:focus-visible,.czex-shell summary:focus-visible{outline:3px solid #49a4e4!important;outline-offset:3px!important}
.czex-setup-banner{background:linear-gradient(110deg,#e9f6ff,#f6f4ff);border:1px solid #c9e0f1;border-radius:16px;padding:21px 25px;display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:18px;align-items:center}
.czex-setup-banner b{font-size:16px;color:var(--czex-text)}
.czex-setup-banner p{margin:5px 0 9px!important;max-width:760px}
.czex-banner-icon{width:42px;height:42px;display:grid;place-items:center;background:#d5ebfc;border-radius:12px;color:#21639b;font-size:21px}
.czex-progress{height:7px;max-width:430px;background:#dbe5f0;border-radius:20px;overflow:hidden;margin-top:8px}
.czex-progress>span{display:block;height:100%;background:#207ea7;border-radius:20px;transition:width .2s}
.czex-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.czex-metric,.czex-panel,.czex-step,.czex-advanced,.czex-diagnostics{background:var(--czex-surface);border:1px solid var(--czex-border);border-radius:15px}
.czex-metric{padding:20px;min-height:173px;display:flex;flex-direction:column;gap:7px}
.czex-metric>span{font-size:13px;color:var(--czex-muted);font-weight:700}
.czex-metric>strong{font-size:32px;line-height:1.2;letter-spacing:-.035em;color:var(--czex-text);font-variant-numeric:tabular-nums}
.czex-metric>small{font-size:12px;color:var(--czex-muted);line-height:1.45;flex:1}
.czex-textlink{border:0!important;background:transparent!important;padding:4px 0!important;color:#21639b!important;font-weight:750!important;cursor:pointer;text-align:left;width:max-content;font-size:12px!important}
.czex-home-grid{display:grid;grid-template-columns:minmax(0,1.38fr) minmax(290px,0.82fr);gap:17px;align-items:start}
.czex-panel{padding:24px;min-width:0}
.czex-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.czex-panel-head p{font-size:13px!important;margin-top:4px!important}
.czex-session,.czex-check{border-top:1px solid #e8edf5;padding:14px 0;display:flex;justify-content:space-between;align-items:center;gap:14px;min-width:0}
.czex-session>div:first-child{min-width:0;flex:1}
.czex-session b{display:block;font-size:13px;color:#223a52;overflow-wrap:anywhere}
.czex-session small{display:block;font-size:12px;color:var(--czex-muted);line-height:1.5;margin-top:5px;overflow-wrap:anywhere}
.czex-session>div:last-child{text-align:right;flex-shrink:0}
.czex-check{font-size:13px;font-weight:650;color:#293f56}
.czex-status{white-space:nowrap;border-radius:99px;padding:5px 9px;font-size:11px;font-weight:700;line-height:1.4;border:1px solid #d3e1ec;color:#536d86;background:#f2f7fa}
.czex-status.is-ready{color:#116747;background:#e9f8f1;border-color:#b7e9d4}
.czex-status.is-pending{color:#8c5f17;background:#fffaec;border-color:#efd9a7}
.czex-empty{padding:36px 15px;color:var(--czex-muted);text-align:center;background:#f8fafc;border:1px dashed #d4e0eb;border-radius:10px;font-size:13px}
.czex-setup-header{align-items:flex-start}
.czex-completion{min-width:174px;border:1px solid #e4edf6;border-radius:14px;padding:18px 20px;display:grid;gap:7px}
.czex-completion strong{font-size:31px;line-height:1;color:var(--czex-text)}
.czex-completion strong small{font-size:15px;color:var(--czex-muted)}
.czex-completion>span{font-size:12px;color:var(--czex-muted)}
.czex-what-next{background:#e9f5ff;border:1px solid #c8e1f4;border-radius:15px;padding:23px 27px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.czex-what-next h3{margin-bottom:5px!important}
.czex-step-list{display:grid;gap:12px}
.czex-step{padding:21px;display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:19px;align-items:start}
.czex-step.is-ready{border-color:#bde4d2}
.czex-step-index{width:42px;height:42px;border:1px solid #d8e6f2;border-radius:12px;background:#eaf3fc;color:#1e6394;display:grid;place-items:center;font-size:16px;font-weight:800}
.czex-step.is-ready .czex-step-index{background:#e8f8f0;color:#137758;border-color:#b7e7d1}
.czex-step-body{min-width:0;display:grid;gap:10px}
.czex-step-line{display:flex;align-items:center;justify-content:space-between;gap:14px}
.czex-step-body>p{font-size:13px!important}
.czex-step-action{align-self:center;min-width:157px;display:flex;justify-content:end}
.czex-step-action .btn{width:100%}
.czex-proof{font-size:12px;color:#52697f;font-weight:600;background:#f4f8fc;padding:9px 12px;border-radius:8px;overflow-wrap:anywhere}
.czex-step-body details{font-size:12px;color:#49637a}
.czex-step-body details summary,.czex-advanced summary,.czex-diagnostics summary{cursor:pointer;font-size:12px;font-weight:750;color:#246498;min-height:28px}
.czex-step-body details p{padding:7px 0!important;font-size:12px!important}
.czex-advanced,.czex-diagnostics{padding:17px 24px;color:var(--czex-muted)}
.czex-advanced p,.czex-diagnostics p{margin:12px 0!important}
.czex-advanced .btn{margin-top:10px}
.czex-access{font-size:12px;color:#536b80;max-width:180px;display:block}
.czex-loading{background:#fff;color:#395872;border:1px solid #dbe5ef;border-radius:14px;padding:42px;text-align:center}
/* Avoid growing the large legacy canvas inspector under the new shell. */
.czex-content:not(.page-automations) .czex-shell{min-width:0}
@media(max-width:1180px){.czex-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.czex-home-grid{grid-template-columns:1fr}}
@media(max-width:960px){html[data-contrast="standard"] .app-shell:not(.nav-collapsed){grid-template-columns:minmax(0,1fr)!important}html[data-contrast="standard"] .sidebar{overflow-y:auto}.czex-welcome,.czex-setup-header,.czex-what-next{align-items:flex-start;flex-direction:column}.czex-setup-banner{grid-template-columns:42px minmax(0,1fr)}.czex-setup-banner>.btn{grid-column:2;width:max-content}}
@media(max-width:690px){html[data-contrast="standard"] .content.czex-content{padding:16px 13px 38px!important}.czex-shell{gap:14px}.czex-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.czex-metric{padding:15px;min-height:156px}.czex-panel{padding:17px}.czex-step{grid-template-columns:35px minmax(0,1fr);gap:11px;padding:15px}.czex-step-index{height:35px;width:35px}.czex-step-action{grid-column:2;justify-content:start;width:100%}.czex-step-line{align-items:flex-start;flex-wrap:wrap}.czex-status{font-size:10px}.czex-setup-banner{grid-template-columns:1fr;padding:19px}.czex-banner-icon{display:none}.czex-setup-banner>.btn{grid-column:1;width:100%}.czex-home-grid{gap:12px}}
@media(prefers-reduced-motion:reduce){.czex-progress>span{transition:none}}
/* Dark/high-contrast preferences inherit their root theme, with explicitly readable surfaces. */
html[data-contrast="high"] .czex-shell,html[data-contrast="maximum"] .czex-shell{--czex-bg:#f7f9fc;--czex-surface:#fff;--czex-text:#102332;--czex-muted:#344a60;--czex-border:#809bb2}

.czex-site-link{display:block;padding:7px 12px 12px;text-align:center;color:#bdd7ec!important;font-size:11px!important;text-decoration:none!important}.czex-site-link:hover{text-decoration:underline!important}
