.role-page{display:flex;flex-direction:column;gap:15px;min-height:100%;color:#ededed}
.role-page *,.role-side *{box-sizing:border-box}
.role-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:0 0 5px}
.role-head>div{min-width:0}
.role-eyebrow{display:inline-flex;align-items:center;gap:9px;color:#e36804;font-size:10px;font-weight:700;letter-spacing:.15em}
.role-eyebrow i{display:block;width:6px;height:6px;flex:none;border-radius:50%;background:#e36804}
.role-head .stage-title{max-width:720px;margin:10px 0 7px;font-size:clamp(26px,2.8vw,39px);line-height:1.08;letter-spacing:-.045em}
.role-head p{max-width:680px;color:#b1b1b1;font-size:12px;line-height:1.6}
.role-button,.role-link{display:inline-flex;align-items:center;justify-content:center;min-height:35px;padding:8px 11px;border:1px solid #575757;border-radius:8px;background:#2e2e2e;color:#ededed;font-family:inherit;font-size:11px;font-weight:600;line-height:1.2;text-align:center;cursor:pointer;transition:background .18s ease,border-color .18s ease,transform .18s ease}
.role-button:hover,.role-link:hover{background:#3b3b3b;border-color:#898989;transform:translateY(-1px)}
.role-button-accent{border-color:#737373;background:#363636;color:#e36804;box-shadow:inset 0 1px #ffffff18,0 5px 18px #00000046}
.role-button-accent:hover{background:#484848;border-color:#a0a0a0}
.role-button-subtle{background:transparent}
.role-button:focus-visible,.role-link:focus-visible{outline:2px solid #d0d0d0;outline-offset:2px}
.role-head>.role-button{flex:none;margin-bottom:3px}
.role-panel{min-width:0;padding:17px;border:1px solid #454545;border-radius:12px;background:#242424;box-shadow:inset 0 1px #ffffff10,0 12px 28px #0003}
.role-overline{display:block;margin-bottom:10px;color:#e36804;font-size:9px;font-weight:700;letter-spacing:.15em}
.role-panel h3{margin:0;font-size:16px;line-height:1.25;font-weight:650;letter-spacing:-.025em}
.role-panel>p,.role-panel>div>p{margin:9px 0 0;color:#adadad;font-size:11px;line-height:1.55}
.role-panel .role-button{margin-top:12px}
.role-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:136px;margin-top:16px;padding:18px;border:1px dashed #565656;border-radius:10px;background:#1d1d1d;text-align:center}
.role-empty-mark{position:relative;width:27px;height:27px;margin-bottom:13px;border:1px solid #777777;border-radius:50%}
.role-empty-mark:after{content:'';position:absolute;inset:calc(50% - 2px);border-radius:50%;background:#e36804}
.role-empty strong{font-size:12px;font-weight:650}
.role-empty p{max-width:290px;margin:6px 0 0;color:#999999;font-size:10px;line-height:1.5}
.role-line{display:flex;align-items:flex-start;justify-content:space-between;gap:11px;padding:11px 0;border-bottom:1px solid #414141}
.role-line:last-child{border-bottom:0}
.role-line>div{min-width:0}
.role-line strong{display:block;color:#e5e5e5;font-size:11px;font-weight:600}
.role-line span{display:block;margin-top:3px;color:#a0a0a0;font-size:10px;line-height:1.4}
.role-line small{flex:none;margin-top:1px;color:#e36804;font-size:9px}
.role-action-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}
.role-action-row .role-button{margin:0}
.role-floor-grid,.role-split{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(205px,.85fr);gap:12px}
.role-floor-focus{background:#292929}
.role-floor-focus .role-empty{min-height:178px}
.role-floor-queue{display:flex;flex-direction:column}
.role-intervention-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border:1px solid #565656;border-radius:11px;background:#262626;overflow:hidden}
.role-intervention-strip>div{min-width:0;padding:13px;border-right:1px solid #4d4d4d}
.role-intervention-strip>div:last-child{border-right:0}
.role-intervention-strip b{display:block;color:#e36804;font-size:11px}
.role-intervention-strip span{display:block;margin-top:5px;color:#b0b0b0;font-size:10px;line-height:1.4}
.role-table-head{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:8px;margin-top:17px;padding:0 11px 10px;border-bottom:1px solid #4d4d4d;color:#929292;font-size:9px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
.role-wide-panel .role-empty{min-height:184px}
.role-work-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.role-fact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:13px}
.role-fact-grid>div{padding:10px;border:1px solid #494949;border-radius:8px;background:#222222}
.role-fact-grid span{display:block;color:#929292;font-size:9px}
.role-fact-grid strong{display:block;margin-top:6px;font-size:11px}
.role-permission-list{margin-top:13px}
.role-note{margin-top:12px!important;padding-top:11px;border-top:1px solid #4d4d4d;color:#e36804!important;font-size:10px!important}
.role-work-columns .role-panel{display:flex;flex-direction:column}
.role-work-columns .role-empty{flex:1;min-height:125px}
.role-flow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.role-flow>div{position:relative;display:flex;flex-direction:column;min-height:168px;padding:15px;border:1px solid #515151;border-radius:11px;background:#262626;overflow:hidden}
.role-flow>div:before{content:'';position:absolute;top:0;left:0;width:76px;height:2px;background:#737373}
.role-flow span{color:#e36804;font-size:9px;font-weight:700;letter-spacing:.12em}
.role-flow strong{display:block;margin-top:12px;font-size:16px;font-weight:650;letter-spacing:-.025em}
.role-flow p{margin:7px 0 12px;color:#a7a7a7;font-size:10px;line-height:1.5}
.role-flow .role-link{align-self:flex-start;min-height:0;margin-top:auto;padding:0;border:0;background:none;color:#e36804;text-align:left;font-size:10px}
.role-flow .role-link:hover{color:#e36804;transform:none}
.role-status-note{display:flex;align-items:flex-start;gap:13px;padding:12px 14px;border:1px solid #4d4d4d;border-radius:9px;background:#252525}
.role-status-note>span{color:#e36804;font-size:15px;line-height:1}
.role-status-note strong{font-size:11px}
.role-status-note p{margin-top:3px;color:#a4a4a4;font-size:10px;line-height:1.5}
.role-channel-grid,.role-policy-grid,.role-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.role-channel-grid .role-panel,.role-settings-grid .role-panel{min-height:180px}
.role-channel-grid .role-line:first-of-type,.role-settings-grid .role-line:first-of-type{margin-top:10px}
.role-policy-grid .role-panel{min-height:145px}
.role-audit-columns{grid-template-columns:1.2fr 1.3fr 1fr}
.role-side{width:100%;min-width:0;color:#ebebeb}
.role-side-eyebrow{display:block;margin:2px 5px 7px;color:#e36804;font-size:9px;font-weight:700;letter-spacing:.14em}
.role-side h2{margin:0 5px 14px;font-size:16px;line-height:1.2;font-weight:650;letter-spacing:-.025em}
.role-side-body{display:flex;flex-direction:column;gap:7px}
.role-side-body>p{margin:3px 5px 8px;color:#a9a9a9;font-size:11px;line-height:1.5}
.role-side .role-line{margin:0 2px;padding:10px 5px}
.role-side .role-empty{min-height:155px;margin:0 0 6px;padding:15px}
.role-side .role-link{width:100%;justify-content:flex-start;min-height:38px;text-align:left}
.role-side .role-note{margin:8px 5px 0!important}
@media(max-width:1230px){.role-head{align-items:flex-start;flex-direction:column}.role-floor-grid,.role-split{grid-template-columns:1fr}.role-flow{grid-template-columns:repeat(2,minmax(0,1fr))}.role-intervention-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.role-intervention-strip>div:nth-child(2){border-right:0}.role-intervention-strip>div:nth-child(-n+2){border-bottom:1px solid #4d4d4d}.role-work-columns{grid-template-columns:1fr}}
@media(max-width:980px){.role-side{max-width:none}.role-floor-grid,.role-split{grid-template-columns:minmax(0,1.2fr) minmax(205px,.8fr)}.role-work-columns{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.role-head .stage-title{font-size:30px}.role-floor-grid,.role-split,.role-flow,.role-channel-grid,.role-policy-grid,.role-settings-grid{grid-template-columns:1fr}.role-work-columns{grid-template-columns:1fr}.role-table-head{font-size:8px}.role-head>.role-button{margin:0}}
@media(max-width:390px){.role-intervention-strip{grid-template-columns:1fr}.role-intervention-strip>div{border-right:0;border-bottom:1px solid #4d4d4d}.role-intervention-strip>div:last-child{border-bottom:0}}
@media(prefers-reduced-motion:reduce){.role-button,.role-link{transition:none}}

/* The role preview reuses the Agent shell; keep its shared surfaces neutral. */
:root:has(.app-frame:is([data-role=supervisor],[data-role=admin])){--bg:#090909;--shell:#151515;--panel:#1b1b1b;--raised:#242424;--soft:#2d2d2d;--line:#393939;--orange-soft:#2d2d2d;background:#090909}
body:has(.app-frame:is([data-role=supervisor],[data-role=admin])){background:#090909}
body:has(.app-frame:is([data-role=supervisor],[data-role=admin])) :is(button,a):focus-visible{outline:2px solid #d9d9d9;outline-offset:2px}
body:has(.app-frame:is([data-role=supervisor],[data-role=admin])) .role-access{border-color:#3b3b3b;background:#191919}
body:has(.app-frame:is([data-role=supervisor],[data-role=admin])) .role-access nav{border-color:#3e3e3e;background:#121212}
body:has(.app-frame:is([data-role=supervisor],[data-role=admin])) .role-access a:hover{background:#292929}
body:has(.app-frame:is([data-role=supervisor],[data-role=admin])) .role-access a[aria-current=page]{border-color:#686868;background:#2e2e2e;color:#e36804;box-shadow:none}
body:has(.app-frame:is([data-role=supervisor],[data-role=admin])) .state-button{border-color:#3e3e3e;background:#191919}
body:has(.app-frame:is([data-role=supervisor],[data-role=admin])) .state-button:hover{background:#292929}
body:has(.app-frame:is([data-role=supervisor],[data-role=admin])) .state-button[aria-pressed=true]{border-color:#686868;background:#2e2e2e;color:#e36804;box-shadow:none}
body:has(.app-frame:is([data-role=supervisor],[data-role=admin])) .prototype-control-wrap summary{border-color:#414141;background:#191919}

.app-frame:is([data-role=supervisor],[data-role=admin]){border-color:#444444;background:#151515}
.app-frame:is([data-role=supervisor],[data-role=admin]) .global-rail{border-right-color:#383838;background:#101010}
.app-frame:is([data-role=supervisor],[data-role=admin]) .global-rail .rail-button:hover,
.app-frame:is([data-role=supervisor],[data-role=admin]) .global-rail .rail-button:is(.is-active,[aria-current=page]){background:#292929;color:#e36804}
.app-frame:is([data-role=supervisor],[data-role=admin]) .app-topbar{border-bottom-color:#3b3b3b;background:#171717}
.app-frame:is([data-role=supervisor],[data-role=admin]) .top-search{border-color:#383838;background:#202020}
.app-frame:is([data-role=supervisor],[data-role=admin]) .avatar{background:#2d2d2d}
.app-frame:is([data-role=supervisor],[data-role=admin]) :is(.prototype-top-chat,.live-tag){border-color:#4b4b4b;background:#2b2b2b;color:#e36804;box-shadow:none}
.app-frame:is([data-role=supervisor],[data-role=admin]) .session-header{border-bottom-color:#404040;background:#1a1a1a}
.app-frame:is([data-role=supervisor],[data-role=admin]) .session-symbol{border-color:#4e4e4e;background:#292929;box-shadow:none}
.app-frame:is([data-role=supervisor],[data-role=admin]) .session-symbol .orb,
body:has(.app-frame:is([data-role=supervisor],[data-role=admin])) .chat-orb{background:#2d2d2d;box-shadow:inset 0 0 0 1px #606060}
.app-frame:is([data-role=supervisor],[data-role=admin]) .session-symbol .orb:before,
body:has(.app-frame:is([data-role=supervisor],[data-role=admin])) .chat-orb:after{content:'';position:absolute;inset:calc(50% - 2px);border:0;border-radius:50%;background:#e36804;box-shadow:none;transform:none}
.app-frame:is([data-role=supervisor],[data-role=admin]) .session-symbol .orb:after{content:none}
.app-frame:is([data-role=supervisor],[data-role=admin]) .page-menu{border-color:#505050;background:#242424}
.app-frame:is([data-role=supervisor],[data-role=admin]) .page-menu button:is(:hover,[aria-current=page]){background:#303030;color:#e36804}
.app-frame:is([data-role=supervisor],[data-role=admin]) .workspace-grid>.stage{background:#171717}
.app-frame:is([data-role=supervisor],[data-role=admin]) .role-sidebar.role-left{border-right-color:#393939;background:#1a1a1a}
.app-frame:is([data-role=supervisor],[data-role=admin]) .role-sidebar.role-right{border-left-color:#393939;background:#1b1b1b}
.app-frame:is([data-role=supervisor],[data-role=admin]) .role-flow{border-color:#515151}
.app-frame:is([data-role=supervisor],[data-role=admin]) .state-bar{border-color:#484848;background:#242424}
.app-frame:is([data-role=supervisor],[data-role=admin]) .stage .surface{border-color:#484848;background:#242424}
.app-frame:is([data-role=supervisor],[data-role=admin]) .stage .surface-head{border-bottom-color:#424242}
.app-frame:is([data-role=supervisor],[data-role=admin]) .stage .lane{border-bottom-color:#424242}
.app-frame:is([data-role=supervisor],[data-role=admin]) .stage .empty-work .empty-glyph{display:grid;place-items:center;border-color:#555555;background:#2b2b2b}
.app-frame:is([data-role=supervisor],[data-role=admin]) .stage .empty-work .empty-glyph:after{content:'';width:4px;height:4px;border-radius:50%;background:#e36804}

.app-frame:is([data-role=supervisor],[data-role=admin]) .persistent-dock{border-color:#4b4b4b;background:#1f1f1f;box-shadow:0 -20px 55px #000a}
.app-frame:is([data-role=supervisor],[data-role=admin]) .persistent-dock[data-call-state=active]{border-top-color:#696969}
.app-frame:is([data-role=supervisor],[data-role=admin]) .phone-mark{width:34px;height:34px;border-color:#606060;border-radius:50%;background:#2e2e2e;color:#e36804;box-shadow:none}
.app-frame:is([data-role=supervisor],[data-role=admin]) .phone-actions button{border-color:#4f4f4f;background:#303030;box-shadow:inset 0 1px #ffffff15,0 4px 10px #0003}
.app-frame:is([data-role=supervisor],[data-role=admin]) .phone-actions button:hover:not(:disabled){border-color:#7d7d7d;background:#3b3b3b}
.app-frame:is([data-role=supervisor],[data-role=admin]) .phone-actions button[aria-expanded=true],
.app-frame:is([data-role=supervisor],[data-role=admin]) .phone-actions :is(.end-preview,.dock-chat-button){border-color:#737373;background:#383838;color:#e36804}
body:has(.app-frame:is([data-role=supervisor],[data-role=admin])) :is(.phone-tray,.chat-drawer){border-color:#525252;background:#232323}
body:has(.app-frame:is([data-role=supervisor],[data-role=admin])) :is(.tray-head,.chat-head){border-bottom-color:#454545}
body:has(.app-frame:is([data-role=supervisor],[data-role=admin])) :is(.tray-note,.chat-compose){border-top-color:#454545}
body:has(.app-frame:is([data-role=supervisor],[data-role=admin])) .chat-compose textarea{border-color:#5b5b5b;background:#171717}
body:has(.app-frame:is([data-role=supervisor],[data-role=admin])) .chat-compose button{border-color:#6a6a6a;background:#343434;color:#e36804}
body:has(.app-frame:is([data-role=supervisor],[data-role=admin])) :is(.tray-close,.chat-close){border-color:#555555;background:#2f2f2f}
body:has(.app-frame:is([data-role=supervisor],[data-role=admin])) .chat-launcher{width:40px;height:40px;justify-content:center;gap:0;padding:0;border-color:#686868;border-radius:50%;background:#2e2e2e;color:#e36804;box-shadow:0 14px 38px #0009}
body:has(.app-frame:is([data-role=supervisor],[data-role=admin])) .chat-launcher .chat-orb{width:20px;height:20px}
body:has(.app-frame:is([data-role=supervisor],[data-role=admin])) .chat-launcher .chat-label{display:none}
body:has(.app-frame:is([data-role=supervisor],[data-role=admin])) .toast{border-color:#666666;background:#292929}
