:root {
  --ink:#17212d;--muted:#556471;--line:#dce6e3;--paper:#fff;--bg:#fbfdfc;--rail:#0b5e4e;--green:#08634f;--mint:#d9f8eb;--amber:#845600;--radius:12px;
  --cx-side:#f4f8f7;--cx-inset:#f6f9f8;--cx-active:#d9f6ea;--cx-bright:#0a8965;--cx-icon:#057a5e;--cx-shadow:0 2px 5px #112e2a05,0 8px 24px #112e2a05;
  color-scheme:light;font-family:Inter,'Segoe UI',Arial,sans-serif;
}
:root[data-theme=dark] {
  color-scheme:dark;--ink:#eef8f6;--muted:#b4cbc8;--line:#304950;--paper:#182d33;--bg:#12242b;--rail:#008463;--green:#60e2b7;--mint:#17483e;--amber:#ffd184;
  --cx-side:#15292f;--cx-inset:#1a343a;--cx-active:#075d49;--cx-bright:#009775;--cx-icon:#63e7bc;--cx-shadow:0 2px 9px #07151720;
}
body {background:var(--bg)}
.rail {background:var(--cx-side);border-right:1px solid var(--line);color:var(--ink);padding:26px 14px 18px;width:218px}
.brand {gap:8px;letter-spacing:-.055em;font-size:28px;font-weight:760;color:var(--ink);padding:0 7px;white-space:nowrap}
.brand .ice-ribbon {flex:none;width:34px;height:34px;object-fit:contain}
.body:has(.workspace-access) > .bar {display:none}
.workspace-access {max-width:530px;margin:clamp(16px,6vh,60px) auto;background:var(--paper);border:1px solid var(--line);border-radius:20px;box-shadow:var(--cx-shadow)}
.workspace-access-header {padding:clamp(20px,5vw,36px);background:var(--cx-inset);border-radius:20px 20px 0 0;border-bottom:1px solid var(--line)}
.workspace-access-header img {display:block;object-fit:contain;margin-bottom:16px}
.workspace-access-header h1 {font-size:clamp(1.55rem,4vw,2rem);line-height:1.15;letter-spacing:-.035em;margin:0 0 8px}
.workspace-access-header p,.workspace-access-controls p {margin:0;color:var(--muted)}
.workspace-access-controls {display:grid;gap:12px;padding:clamp(20px,5vw,36px)}
.workspace-access-controls > button {min-height:44px}
.workspace-access-controls .catalog-drawer {margin:6px 0 0}
.workspace-access-controls .form {margin:0}
.body {margin-left:218px}
#portals {margin-top:29px}
#portals a {color:var(--ink);padding:10px 12px;gap:12px;font-weight:500;font-size:14px;letter-spacing:-.014em}
#portals a:hover,#portals a:focus-visible {color:var(--green);background:var(--cx-active)}
#portals a[aria-current] {background:var(--cx-active);color:var(--green);font-weight:700}
#portals .icon {width:17px;height:17px}
.rail .nav-label {color:var(--muted);font:600 11px/1.4 Inter,'Segoe UI',sans-serif;text-transform:none;letter-spacing:.015em;margin:28px 12px 8px}
.cx-portals {margin:20px 0 10px}
.cx-portals summary {font-size:12px;color:var(--muted);padding:5px 12px;cursor:pointer}
#rail-footer {margin-top:auto;padding:30px 7px 0}
.signature {color:var(--muted);margin:8px 0 0;font-size:11px;text-decoration:none;padding:2px 9px}
a.signature:hover {text-decoration:underline}
.rail .companion-link {color:var(--ink);border-color:var(--line)}
.rail .companion-link:hover,.rail .companion-link:focus-visible {color:var(--green);background:var(--cx-active);border-color:var(--green)}
[data-shell=execution] .rail {--ink:#f4fffa;--cx-side:#07443b;--muted:#b8dad0;--green:#effff8;--cx-active:#166950;--line:#1e6958;background:linear-gradient(175deg,#06463b,#043d36);border:0}
[data-shell=execution] .rail .cx-new {color:#fff;background:#0b7960}
.cx-workspace-switch {margin-bottom:15px;background:#ffffff12;display:flex;justify-content:space-between}
.cx-workspace-switch strong,.cx-workspace-switch small {display:block;font-size:12px}
.cx-workspace-switch small {color:var(--muted);font-size:11px}
.cx-workspace-switch .icon {width:13px!important}
#rail-footer:empty {padding:0}
.bar {background:var(--bg);min-height:74px;border-bottom:1px solid var(--line);gap:15px;padding:13px clamp(20px,3.2vw,56px)}
.trail {gap:11px;color:var(--ink);font-weight:600}
[data-shell=home] .bar .trail {display:none}
[data-shell=platform] #command-bar,[data-shell=execution] #command-bar {display:none}
.bar .environment {display:none}
#command-bar {flex:1;min-width:0;max-width:720px}
#toolbar {display:flex;gap:7px;align-items:center;margin-left:auto}
[data-shell=home] #toolbar>button:first-child {display:none}
.cx-search,.cx-search-input {display:flex;align-items:center;gap:12px;background:var(--paper);border:1px solid var(--line);border-radius:8px;min-height:39px;padding:0 13px;color:var(--muted);width:100%;font-size:14px;text-align:left}
.cx-search .icon {width:17px;height:17px}
.cx-search>span:not(.icon) {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cx-search kbd {margin-left:auto;border:1px solid var(--line);border-radius:4px;line-height:18px;padding:0 5px;color:var(--muted);font:12px/18px Inter,sans-serif}
.cx-icon-button,.cx-avatar {background:transparent;color:var(--ink);border:0;display:inline-grid;place-items:center;width:35px;height:35px;border-radius:8px}
.cx-icon-button:hover,.cx-avatar:hover {background:var(--cx-active);color:var(--green)}
.cx-icon-button .icon {width:18px;height:18px}
.cx-avatar {font-size:14px;border-radius:50%;height:31px;width:31px;color:#f6fffc;background:#1f625b;margin-left:6px;font-weight:650}
main {max-width:1560px;padding:32px clamp(20px,3.2vw,56px) 55px}
h1 {font-size:clamp(32px,3.1vw,52px)}
.hero h1 {margin-top:8px}
.cx-hero {display:flex;gap:18px;justify-content:space-between;align-items:center;margin-bottom:26px}
.cx-hero h1 {font-size:clamp(30px,2.8vw,44px);letter-spacing:-.048em;line-height:1.12;margin:0;font-weight:720}
.cx-hero p,.cx-note {color:var(--muted);font-size:14px;line-height:1.5}
.cx-hero p {margin-top:6px}
.cx-primary {display:inline-flex;align-items:center;justify-content:center;gap:7px;color:white;background:#09624e;border:1px solid #085946;border-radius:7px;min-height:37px;padding:7px 15px;font:650 13px/1.4 Inter,'Segoe UI',sans-serif;white-space:nowrap}
.cx-primary .icon {width:16px;height:16px}
.cx-primary:hover {background:#067e60}
.cx-new {width:100%;background:var(--cx-active);color:var(--green);border-color:transparent}
.cx-new:hover {color:#fff}
:root[data-theme=dark] .cx-primary {background:#00876b;color:white;border-color:#0b9d7d}
.cx-portal-link:hover {border-color:var(--cx-bright);background:var(--cx-inset)}
.cx-kpi>.icon,.cx-run-heading>.icon,.cx-agent-row .icon,.cx-approval>.icon,.cx-portal-link .icon {width:30px;height:30px;border-radius:7px;padding:5px;background:var(--cx-active);color:var(--cx-icon)}
.cx-panel,.cx-kpi {background:var(--paper);border:1px solid var(--line);border-radius:12px;box-shadow:var(--cx-shadow);min-width:0}
.cx-panel {padding:20px 21px}
.cx-panel-head {display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 17px}
.cx-panel-head h2 {font-size:19px;letter-spacing:-.035em;font-weight:700;margin:0}
.cx-text-link {color:var(--ink);font-size:12px;text-decoration:none;white-space:nowrap;font-weight:650}
.cx-text-link:hover {text-decoration:underline}
.cx-run-heading strong,.cx-agent-row strong,.cx-checklist strong {display:block;font-size:14px;line-height:1.25;letter-spacing:-.012em}
.cx-run-heading small,.cx-agent-row small,.cx-checklist small {display:block;font-size:12px;color:var(--muted);margin-top:3px}
.cx-progress {display:flex;align-items:center;gap:10px;font-size:12px;white-space:nowrap}
.cx-progress progress {appearance:none;width:100%;height:6px;min-width:22px;border:0;background:var(--line);border-radius:5px;overflow:hidden}
.cx-progress progress::-webkit-progress-bar {background:var(--line);border-radius:5px}
.cx-progress progress::-webkit-progress-value {background:linear-gradient(90deg,#06b586,#23c89a);border-radius:5px}
.cx-progress progress::-moz-progress-bar {background:#08b686;border-radius:5px}
.cx-badge {justify-self:end;border-radius:99px;padding:3px 9px;font-size:11px;line-height:1.45;font-weight:650;color:#3c5360;background:#eef3f4;white-space:nowrap}
.s-running,.s-ready {background:#dcf8ed;color:#006448}.s-completed {background:#def7e5;color:#155c37}
.s-waiting_approval,.s-paused {background:#fff1cd;color:#855500}.s-stopped,.s-blocked {background:#ffe4e0;color:#9b3022}
.cx-portal-links {display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}
.cx-portal-link {display:flex;align-items:center;gap:8px;color:var(--ink);text-decoration:none;padding:10px 8px;font-size:13px;font-weight:600;border:1px solid transparent;border-radius:7px}
.cx-portal-link .icon {height:25px;width:25px}
.cx-note {padding:10px 0}
.cx-kpis {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:18px}
.cx-kpi {padding:16px;display:grid;align-items:start;justify-items:start;gap:7px}
.cx-kpi>span:not(.icon) {font-size:13px;font-weight:650}
.cx-kpi>strong {font-weight:740;line-height:1;font-size:30px;letter-spacing:-.046em}
.cx-kpi small {font-size:11px;color:var(--muted)}
.cx-overview-grid,.cx-exec-grid {display:grid;grid-template-columns:minmax(0,1.55fr) minmax(230px,.95fr);gap:15px;margin-bottom:18px}
.cx-tabs {display:flex;flex-wrap:wrap;gap:3px;padding:3px;background:var(--cx-inset);border:1px solid var(--line);border-radius:7px;width:fit-content}
.cx-tab {font-size:11px;line-height:1.35;font-weight:600;background:transparent;border:0;border-radius:4px;color:var(--muted);padding:5px 8px}
.cx-tab[aria-pressed=true] {background:#08765a;color:#fff}
.cx-mini-select {color:var(--ink);background:var(--paper);border:1px solid var(--line);font:500 11px/1.5 Inter,sans-serif;max-width:45%;padding:5px;border-radius:5px}
.cx-table-wrap {overflow-x:auto}
.cx-table {border-collapse:collapse;font-size:12px;line-height:1.4;width:100%;margin-top:12px}
.cx-table th,.cx-table td {text-align:left;padding:9px 5px;border-bottom:1px solid var(--line);vertical-align:middle}
.cx-table th {color:var(--muted);font-weight:580;font-size:11px}
.cx-table-title {display:inline-flex;align-items:center;gap:6px;color:var(--ink);font-weight:630;text-decoration:none}
.cx-table-title .icon {width:14px;height:14px;color:var(--cx-icon)}
.cx-table tbody tr:last-child td {border-bottom:0}
.cx-plot {margin:12px 0}
.cx-plot svg {display:block;width:100%;height:140px}
.cx-guide {stroke:var(--line);stroke-width:.8}
.cx-chart-stats {display:grid;grid-template-columns:1fr 1fr;margin:14px 0 0}
.cx-chart-stats div+div {border-left:1px solid var(--line);padding-left:18px}
.cx-chart-stats strong,.cx-chart-stats small {display:block}
.cx-chart-stats strong {font-size:22px;letter-spacing:-.045em}
.cx-chart-stats small {font-size:12px;color:var(--muted)}
.cx-ec-kpis {grid-template-columns:repeat(4,minmax(0,1fr))}
.cx-ec-kpis .cx-kpi {display:grid;grid-template-columns:34px 1fr;justify-items:start;column-gap:8px;row-gap:3px;align-items:center}
.cx-ec-kpis .cx-kpi>.icon {grid-row:1/3}
.cx-ec-kpis .cx-kpi>strong {grid-column:2;grid-row:1;font-size:25px}
.cx-ec-kpis .cx-kpi>span:not(.icon) {grid-column:2;grid-row:2;font-weight:500;color:var(--muted);font-size:12px}
.cx-ec-kpis .cx-kpi:nth-child(3) {background:color-mix(in srgb,#f3b63d 6%,var(--paper))}
.cx-exec-grid {grid-template-columns:minmax(0,1.45fr) minmax(225px,1fr)}
.cx-run-heading {display:flex;gap:9px;align-items:center}
.cx-run-heading .cx-badge {margin-left:auto}
.cx-run-heading strong {font-size:17px}
.cx-run-progress {margin:18px 0;padding-bottom:16px;border-bottom:1px solid var(--line)}
.cx-run-progress small {font-size:12px;color:var(--muted);font-weight:550}
.cx-agents-title {margin-bottom:7px;font-size:14px}
.cx-agent-row {border-bottom:1px solid var(--line)}
.cx-agent-row:last-child {border-bottom:0}
.cx-agent-row summary {list-style:none;cursor:pointer;display:grid;grid-template-columns:25px 1fr auto;gap:7px;align-items:center;padding:8px 0}
.cx-agent-row summary::-webkit-details-marker {display:none}
.cx-agent-row .icon {width:24px;height:24px;padding:4px}
.cx-agent-row strong {font-size:13px}
.cx-agent-row small {font-size:11px}
.cx-agent-row .cx-note {font-size:12px}
.cx-timeline {list-style:none;padding:0;margin:0}
.cx-timeline li {position:relative;display:grid;grid-template-columns:minmax(55px,.55fr) 1.5fr;align-items:start;gap:9px;padding:0 0 17px 17px;margin-left:3px;border-left:1px solid var(--line);font-size:12px;line-height:1.45}
.cx-timeline li:last-child {border:0}
.cx-timeline li:before {content:'';position:absolute;top:4px;left:-4px;width:7px;height:7px;border-radius:50%;background:#12ab7b}
.cx-timeline time {font-size:10px;color:var(--muted)}
.cx-approval {display:flex;gap:12px;align-items:center;border:1px solid #efd6a5;background:#fff8e9;border-radius:10px;padding:13px 17px;color:#62400b}
.cx-approval>.icon {color:#ae6900;background:#fff0cc}
.cx-approval p {font-size:13px}
.cx-approval strong {font-size:14px}
.cx-approval .btn {margin-left:auto}
.cx-run-controls {display:flex;gap:6px;flex-wrap:wrap;margin:13px 0}
.cx-checklist {display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid var(--line);padding:10px 0}
.cx-dialog {border:1px solid var(--line);color:var(--ink);background:var(--paper);padding:22px;border-radius:15px;width:min(calc(100% - 32px),520px);max-height:85dvh;box-shadow:0 20px 65px #0c211830}
.cx-dialog::backdrop {background:#10282066}
.cx-dialog header {display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;gap:10px}
.cx-dialog h2 {font-size:23px}
.cx-dialog h3 {font-size:16px}
.cx-dialog p {margin-bottom:10px}
.cx-dialog>.cx-primary {margin-top:16px}
.cx-dialog .cx-search-input {height:42px}
.cx-command-results {display:grid;margin-top:10px}
.cx-command {display:flex;align-items:center;gap:9px;width:100%;padding:9px;text-align:left;border:0;border-radius:5px;color:var(--ink);text-decoration:none;background:transparent;font-size:14px}
.cx-command:hover {background:var(--cx-inset)}
.cx-command .icon {width:16px;height:16px}
.cx-error {font-size:13px;line-height:1.5;color:#af332a}
.cx-error:empty {display:none}
.cx-sources summary {cursor:pointer;font-size:13px;color:var(--green)}
.cx-sources label {margin-top:10px}
.cx-approval-body {white-space:pre-wrap;overflow-wrap:anywhere;font:14px/1.5 Inter,'Segoe UI',sans-serif;background:var(--cx-inset);border:1px solid var(--line);padding:12px;border-radius:7px}
.cx-dialog [hidden] {display:none}
:root[data-theme=dark] .s-running,:root[data-theme=dark] .s-ready {color:#8eecd3;background:#194b46}
:root[data-theme=dark] .s-completed {color:#a2ebc1;background:#21473b}
:root[data-theme=dark] .cx-error {color:#ffb4a8}
:root[data-theme=dark] .cx-approval {background:#352e1e;color:#ffe3a7;border-color:#665534}
:root[data-theme=dark] .form input,:root[data-theme=dark] .form select,:root[data-theme=dark] .form textarea {background:var(--cx-inset);border-color:var(--line)}
:root[data-theme=dark] .teaser,:root[data-theme=dark] .catalog-drawer,:root[data-theme=dark] details.data,:root[data-theme=dark] pre,:root[data-theme=dark] .notice {color:var(--ink);background:var(--cx-inset);border-color:var(--line)}
:root[data-theme=dark] .teaser p {color:var(--muted)}
:root[data-theme=dark] .product:hover,:root[data-theme=dark] .tile:hover,:root[data-theme=dark] .btn:hover,:root[data-theme=dark] .link:hover {background:var(--cx-active);color:var(--ink)}
:focus-visible {outline:3px solid #17ad89!important;outline-offset:3px}
@media(max-width:1100px){
 .rail {width:190px}.body {margin-left:190px}
 .cx-panel {padding:16px}.cx-overview-grid,.cx-exec-grid {grid-template-columns:minmax(0,1.35fr) minmax(212px,1fr)}
 .cx-kpi {padding:12px}.cx-kpi>span:not(.icon){font-size:12px}
}
@media(max-width:800px) and (min-width:741px){
 .rail {width:157px;padding:20px 7px}.body {margin-left:157px}
 .brand {font-size:24px;padding:0;gap:6px}.brand .ice-ribbon {width:28px;height:28px}
 .cx-overview-grid,.cx-exec-grid {grid-template-columns:1fr}
 .cx-ec-kpis .cx-kpi {grid-template-columns:1fr}.cx-ec-kpis .cx-kpi>.icon {display:none}.cx-ec-kpis .cx-kpi>strong,.cx-ec-kpis .cx-kpi>span:not(.icon){grid-column:1}
}
@media(max-width:740px){
 .rail {position:relative;width:auto;padding:10px 16px;grid-template-columns:1fr auto;border:0;border-bottom:1px solid var(--line)}
 .brand {font-size:27px}.brand .ice-ribbon {width:30px;height:30px}
 .menu {color:var(--ink);border-color:var(--line)}
 .body {margin:0}.bar {padding:9px 16px;min-height:49px}.rail .signature,#rail-footer {display:none}
 #portals {margin:8px 0}.cx-portals {grid-column:1/-1}
 main {padding:20px 16px 40px}.cx-hero {align-items:start;margin-bottom:16px}.cx-hero h1 {font-size:32px}
 .cx-overview-grid,.cx-exec-grid {grid-template-columns:1fr}.cx-kpis {grid-template-columns:repeat(3,minmax(0,1fr))}.cx-ec-kpis {grid-template-columns:repeat(2,minmax(0,1fr))}
 .cx-search {padding:0 8px;gap:5px;font-size:12px;min-height:33px}.cx-search kbd {display:none}
 #toolbar {gap:1px}.cx-icon-button {width:30px;height:32px}
 .cx-portal-links {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:440px){
 .cx-hero {flex-wrap:wrap;gap:10px}.cx-kpis {gap:5px}.cx-kpi {padding:9px}.cx-panel {padding:13px}
 .cx-panel-head h2 {font-size:17px}.cx-exec-grid .cx-run-heading {flex-wrap:wrap}
 .cx-mini-select {max-width:43%}.cx-approval {padding:9px;gap:7px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.form .cx-background {display:grid;grid-template-columns:17px 1fr;gap:2px 8px;align-items:center}
.form .cx-background input {width:16px;height:16px;padding:0;accent-color:var(--cx-bright)}
.cx-background small {grid-column:2;font-size:11px;color:var(--muted);font-weight:400}

.cx-timeline .cx-upcoming {color:var(--muted)}
.cx-timeline .cx-upcoming:before {background:var(--paper);border:1px solid var(--line)}
.cx-timeline .cx-upcoming small {font-size:11px}
@media(min-width:950px){
 .cx-agent-row summary>div {display:flex;align-items:baseline;gap:9px;flex-wrap:wrap}
 .cx-agent-row summary>div small {margin:0}
 .cx-agent-row summary {padding:7px 0}
 .cx-run-progress {margin:14px 0;padding-bottom:13px}
}
@media(max-width:500px){
 .cx-approval {flex-wrap:wrap}
 .cx-approval>div {flex:1;min-width:150px}.cx-approval>.btn {margin-left:0}
}

.cx-count {margin-left:auto;min-width:18px;padding:0 5px;border-radius:20px;line-height:18px;text-align:center;color:#074d3d;background:#d9f8e9;font-size:11px;font-weight:700}
.cx-icon-button.cx-alerts {position:relative}
.cx-icon-button.cx-alerts:after {content:'';position:absolute;right:6px;top:5px;width:6px;height:6px;border-radius:50%;background:#d85155;border:1px solid var(--bg)}
