/* Canonical AHEAD palette. All three blocks use the same site colours. */
:root{color-scheme:light;--ahead-bg:#f4f5f7;--ahead-surface:#fff;--ahead-soft:#eef1f5;--ahead-ink:#182f57;--ahead-muted:#596b84;--ahead-line:#e0e5eb;--ahead-blue:#123478;--ahead-blue-soft:#e9effa;--ahead-green:#32745c;--ahead-amber:#946b32;--ahead-red:#a74949;--muted:var(--ahead-muted)}
.entity-chrome{display:flex;align-items:center;gap:13px;padding:15px 20px;border-bottom:1px solid var(--ahead-line);background:var(--ahead-surface);color:var(--ahead-ink);flex-wrap:wrap;font:14px/1.5 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.entity-chrome *{box-sizing:border-box;min-width:0}
.entity-chrome .entity-mark{width:33px;height:33px;display:grid;place-items:center;border-radius:9px;background:var(--ahead-blue-soft);flex-shrink:0}
.entity-chrome .entity-mark img{width:23px;height:27px;object-fit:contain}
.entity-chrome .dv-brand{font-size:13px;font-weight:600;letter-spacing:1.2px}
.entity-crumb{font-size:12px;color:var(--ahead-muted);overflow-wrap:anywhere}
.entity-brand{min-width:0;flex:1}
.entity-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-left:auto}
.entity-controls label{font-size:11px;color:var(--ahead-muted)}
.entity-controls input,.entity-controls select{background:var(--ahead-surface);color:var(--ahead-ink);border:1px solid var(--ahead-line);border-radius:6px;padding:7px 9px;height:36px;font:12px Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;min-width:0;max-width:100%}
.entity-controls input{width:136px}.entity-controls select{width:232px}
.entity-button{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:7px 10px;border:1px solid var(--ahead-line);border-radius:6px;background:var(--ahead-surface);font-size:12px;color:var(--ahead-ink);text-decoration:none}
.entity-lifecycle{display:flex;gap:6px;flex-wrap:wrap;margin:17px 0 0;padding:0}
.entity-lifecycle .entity-tab{display:flex;align-items:center;gap:7px;padding:8px 12px;min-height:38px;font:13px/1.5 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--ahead-surface);color:var(--ahead-ink);border:1px solid var(--ahead-line);border-radius:7px;text-decoration:none}
.entity-lifecycle .entity-tab svg{width:16px;height:16px;flex-shrink:0}
.entity-lifecycle .entity-tab[aria-current="page"]{color:var(--ahead-blue);background:var(--ahead-blue-soft);border-color:var(--ahead-blue-soft)}
.entity-lifecycle .entity-tab:hover,.entity-button:hover{background:var(--ahead-soft)}
.entity-chrome :focus-visible,.entity-lifecycle :focus-visible{outline:2px solid var(--ahead-blue);outline-offset:3px}
body.passport-active>.app-shell>.sidebar,body.passport-active .topbar,body.passport-active .footer{display:none}
body.passport-active>.app-shell>.workspace{margin:0}
body.passport-active #content{padding:0;max-width:none}
body.passport-active .passport-page{max-width:none}
.passport-content{max-width:1400px;margin:auto;padding:20px}
.passport-content .passport-header{margin-bottom:0;padding:0 0 17px;border-bottom:1px solid var(--ahead-line)}
.passport-content .passport-header h1{font:500 23px/1.5 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-.5px;color:var(--ahead-ink);margin:4px 0}
.passport-content>.entity-lifecycle{margin-bottom:22px}
.passport-content .passport-next{margin:20px 0}
.agent-studio{--canvas:var(--ahead-bg);--ink:var(--ahead-ink);--muted:var(--ahead-muted);--hair:var(--ahead-line);--navy:var(--ahead-blue);--accent:var(--ahead-blue);--accent-soft:var(--ahead-blue-soft)}
.agent-studio .entity-chrome{position:static}
.agent-studio .entity-lifecycle{display:flex;gap:6px;flex-wrap:wrap;margin:-4px 0 20px}
.agent-studio .entity-controls .btn{font-weight:500;border-radius:6px}
.agent-studio .entity-crumb{font-size:12px}
.agent-studio .btn.primary,.agent-studio .nav-button.active,.agent-studio .chip.blue{color:var(--ahead-blue);background:var(--ahead-blue-soft);border-color:var(--ahead-blue-soft)}
.agent-studio .btn.primary:hover{background:#dce6f8}
.agent-studio a,.agent-studio .nav-button.active .nav-num{color:var(--ahead-blue)}
.agent-studio .gauge{background:conic-gradient(var(--ahead-blue) var(--p),var(--ahead-soft) var(--p))}
.agent-studio .progress-track>span{background:linear-gradient(90deg,var(--ahead-blue),var(--ahead-green))}
.entity-state-screen{padding:24px;max-width:1000px;margin:auto}
.entity-chrome a,.entity-lifecycle a,.entity-controls button{touch-action:manipulation}
@media(max-width:930px){.entity-controls{flex-basis:100%;margin-left:46px}.entity-brand{flex-basis:calc(100% - 46px)}}
@media(max-width:640px){.entity-chrome{padding:15px}.entity-controls{margin-left:0;gap:7px}.entity-controls select{flex:1;width:180px}.entity-controls input{width:110px}.entity-controls label{flex-basis:100%}.passport-content{padding:15px}.entity-lifecycle .entity-tab{padding:8px 9px;font-size:12px}}
@media(pointer:coarse){.entity-button,.entity-lifecycle .entity-tab,.entity-controls input,.entity-controls select,.entity-controls button{min-height:44px}}
