/* Colors from the LB console in static/ops.html. Typography comes directly
   from the shared ops-base.css loaded by the portal on every screen. */
:root {
  font-family: var(--ops-font);
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
  --ink: #17201e;
  --muted: #68716e;
  --paper: #f6f7f9;
  --surface: #fff;
  --line: #e3e5e8;
  --forest: #145a4a;
  --forest-soft: #dce9e3;
  --signal: #c6492d;
  --amber: #d39b2a;
  --blue: #2e5e87;
  --teal: #138a8f;
  --shadow: 0 12px 35px rgba(31, 42, 39, .09);
  --green: var(--forest);
}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{outline-offset:4px}button{cursor:pointer}button:disabled{cursor:wait;opacity:.65}[hidden]{display:none!important}.shell{display:flex;min-height:100vh}.sidebar{width:232px;flex-shrink:0;background:#fbfcfb;border-right:1px solid var(--line);padding:30px 18px 22px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:12px;color:#223a32;text-decoration:none;font-size:15px;font-weight:650;line-height:1.35;padding:0 10px}.brand-mark{background:#1b614f;color:white;display:inline-grid;place-items:center;width:40px;height:40px;border-radius:12px;font-size:22px;letter-spacing:-2px;font-weight:600;padding-right:2px}.brand-second{display:block;color:var(--muted);font-size:12px;font-weight:450;letter-spacing:.3px}.crew-switch{margin:38px 8px 26px}.crew-switch label,.nav-label{display:block;font-size:10px;font-weight:700;color:#7b8982;letter-spacing:1.4px;margin-bottom:10px}select{color:#2c463d;background:white;border:1px solid var(--line);border-radius:8px;padding:10px 12px}.crew-switch select{width:100%;font-size:13px;font-weight:600}.nav-item{border:0;border-radius:8px;background:transparent;display:flex;align-items:center;gap:12px;padding:12px 14px;width:100%;text-align:left;color:#667870;font-size:13px;font-weight:550;margin-bottom:5px}.nav-item span{font-size:20px;line-height:18px;width:20px}.nav-item.active{color:#166c53;background:#e6f0e9}.nav-item:hover{background:#eef3ef}.nav-label{margin:30px 14px 12px}.module-dot{display:inline-block;width:7px!important;height:7px;border-radius:2px;background:#a4b8ac;margin:0 7px}.sidebar-footer{margin-top:auto;border-top:1px solid var(--line);padding:20px 10px 0;display:flex;gap:10px;font-size:12px;color:#3c5549}.sidebar-footer small{display:block;font-size:10px;color:#8a9891;margin-top:5px}.local-dot{width:7px;height:7px;background:#558e71;border-radius:50%;margin-top:5px}.workspace{min-width:0;flex:1}.topbar{height:74px;padding:0 42px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;font-size:12px}.breadcrumb{color:#89958f}.slash{color:#b4beb8;margin:0 15px}.account{display:flex;align-items:center;gap:18px}.environment{font-size:10px;color:#6b7d72;border:1px solid var(--line);padding:5px 8px;border-radius:5px}.text-button{background:none;border:0;color:#526b60;font-size:12px;padding:6px}main#main{padding:37px 42px 25px;max-width:1750px;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:700;color:#7c9082;margin:0 0 11px}h1{font-size:29px;font-weight:600;letter-spacing:-.8px;line-height:1.2;margin:0 0 10px}.subtitle{font-size:13px;color:var(--muted);margin:0;line-height:1.6}.button{border:1px solid var(--line);border-radius:8px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 15px;font-size:12px;font-weight:600}.secondary{background:white;color:#435e50}.button:hover{filter:brightness(.97)}.button span{font-size:19px;line-height:14px}.primary{background:#19674f;color:#fff;border-color:#19674f}.notice{padding:13px 16px;border:1px solid #e6d9ba;background:#fff9eb;border-radius:8px;color:#806326;font-size:12px;line-height:1.6;margin:0 0 16px}.freshness{display:flex;align-items:center;gap:8px;font-size:11px;color:#6b8173;margin:0 0 20px;min-height:18px}.freshness-dot{width:6px;height:6px;border-radius:50%;background:#539477}.freshness-dot.warning{background:#bd9146}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:26px}.stat{background:#fff;border:1px solid var(--line);border-radius:10px;padding:20px 21px}.stat-label{font-size:11px;color:#6f8176;margin:0 0 15px}.stat-value{display:block;font-size:29px;font-weight:550;line-height:1;letter-spacing:-1px;margin-bottom:11px}.stat-caption{font-size:10px;color:#89968e}.stat.attention .stat-value{color:#b17b35}.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 286px;gap:22px;align-items:start}.card{background:white;border:1px solid var(--line);border-radius:10px;overflow:hidden}.card-header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:22px 23px 17px}.card-header h2,.boundary-card h2{font-size:14px;letter-spacing:-.2px;font-weight:600;margin:0}.card-header p{font-size:11px;color:#8a978f;line-height:1.5;margin:6px 0 0}.count{background:#f0f4f1;color:#6d8274;font-size:11px;border-radius:5px;padding:4px 8px}.toolbar{display:flex;gap:10px;align-items:center;padding:0 23px 21px}.search{display:flex;gap:9px;align-items:center;min-width:0;flex:1;border:1px solid var(--line);border-radius:6px;padding:7px 10px;color:#93a198}.search input{border:0;background:none;min-width:0;width:100%;font-size:11px;color:#334f40}.search input:focus{outline:none}.search:focus-within{outline:2px solid #33886c;outline-offset:2px}.toolbar select{font-size:10px;padding:8px}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}th{font-size:9px;letter-spacing:1px;color:#8a9b91;background:#fafcfb;padding:12px 17px;text-align:left;border-top:1px solid #eef2ef;border-bottom:1px solid #eef2ef;font-weight:600}th:first-child,td:first-child{padding-left:23px}th:last-child,td:last-child{padding-right:23px}td{padding:18px 17px;border-bottom:1px solid #edf1ee;font-size:11px}tr:last-child td{border-bottom:0}.item-title{display:block;border:0;background:none;color:#304c3e;text-align:left;font-size:12px;font-weight:600;white-space:normal;line-height:1.5;padding:0;max-width:340px;min-width:160px}.item-title:hover{text-decoration:underline}.item-meta{display:block;font-size:10px;color:#93a096;margin-top:6px;white-space:normal}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:5px;padding:4px 7px;font-size:10px;background:#eff2f0;color:#7c8b82;white-space:nowrap}.badge:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.badge.healthy{color:#398565;background:#ecf6ef}.badge.attention{color:#ac7935;background:#fbf2e3}.badge.unknown{color:#7d8b84;background:#f0f3f1}.badge.stale{color:#967e54;background:#f5f0e7}.progress{color:#6d8175;font-size:10px;display:block;max-width:130px;white-space:normal;line-height:1.5}.time{font-size:10px;color:#8e9c92}.right-column{display:grid;gap:19px}.publishers{padding:0 23px}.publisher{border-bottom:1px solid #eef1ef;padding:17px 0}.publisher:first-child{padding-top:7px}.publisher:last-child{border-bottom:0;padding-bottom:22px}.publisher-name{font-size:12px;font-weight:550;overflow-wrap:anywhere;display:flex;align-items:center;justify-content:space-between;gap:8px}.publisher p{font-size:10px;color:#90a094;line-height:1.6;margin:8px 0 0}.publisher .badge{font-size:9px}.no-publishers{font-size:12px;color:var(--muted);line-height:1.7;padding-bottom:20px}.boundary-card{background:#eaf1ec;border:1px solid #dfe9e2;border-radius:10px;padding:22px 23px}.boundary-icon{display:inline-grid;place-items:center;background:#dce9df;color:#56866b;border-radius:8px;width:31px;height:31px;margin-bottom:16px}.boundary-card p{font-size:12px;line-height:1.8;color:#67806e;margin-bottom:0}.boundary-card .boundary-small{font-size:10px;color:#91a094;padding-top:12px;border-top:1px solid #dce5df;margin-top:16px}.page-footer{display:flex;justify-content:space-between;gap:20px;margin-top:25px;color:#99a59d;font-size:10px;line-height:1.6}.empty{text-align:center;padding:48px 25px 55px;color:#799083}.empty-mark{display:block;font-size:30px;margin-bottom:18px;color:#9eb3a4}.empty h3{font-size:14px;font-weight:550;margin-bottom:9px}.empty p{font-size:12px;line-height:1.8;margin:auto;max-width:360px}.welcome{min-height:100vh;display:grid;place-items:center;padding:32px;background:radial-gradient(ellipse at 30% 20%,#e0eee4,transparent 55%),#f5f7f5}.welcome-card{text-align:center;max-width:520px}.large{width:60px;height:60px;font-size:32px;border-radius:17px;margin-bottom:28px}.welcome h1{font-size:40px;line-height:1.2;letter-spacing:-1.5px;margin:17px 0}.welcome p:not(.eyebrow){font-size:14px;line-height:1.8;color:#6e8375}.welcome .button{margin:20px 0 0;padding:14px 25px;font-size:13px}.welcome-footnote{display:block;font-size:11px;color:#9aaa9e;margin-top:25px}.login-status{font-size:12px!important;color:#956c3e!important}.welcome .eyebrow{color:#7c9180}dialog{border:1px solid var(--line);border-radius:14px;padding:28px;max-width:560px;width:calc(100% - 32px);color:#284232;box-shadow:0 20px 80px #173a3020}dialog::backdrop{background:#1b382c55}.dialog-header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:14px}.dialog-header p{margin:0}dialog h2{font-size:22px;font-weight:600;line-height:1.5;margin:5px 0 20px}dl{display:grid;grid-template-columns:140px 1fr;gap:15px;font-size:12px;line-height:1.6}dt{color:#8b9b8e}dd{margin:0;overflow-wrap:anywhere}dialog a{color:#287859}dialog .notice{margin:20px 0 0}
@media(min-width:1500px){main#main{padding-top:45px}.content-grid{grid-template-columns:minmax(0,1fr) 320px}.stat{padding:24px}.sidebar{width:250px}}
@media(max-width:1180px){.content-grid{grid-template-columns:minmax(0,1fr)}.right-column{grid-template-columns:1fr 1fr}.sidebar{width:205px}.topbar{padding:0 28px}main#main{padding:30px 28px}.stats{gap:10px}.stat{padding:18px 15px}}
@media(max-width:760px){.shell{display:block}.sidebar{position:static;width:auto;height:auto;padding:17px 18px;border-right:0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:16px}.brand{padding:0}.crew-switch{margin:0}.crew-switch label{display:none}.sidebar #navigation{grid-column:1/-1;display:flex;gap:5px}.nav-item{justify-content:center;margin:0;padding:10px 8px;font-size:12px}.nav-label,.sidebar-footer,#modules{display:none}.topbar{height:56px;padding:0 20px}.environment{font-size:9px}.account{gap:6px}main#main{padding:28px 18px}.page-heading{align-items:flex-start}h1{font-size:25px}.subtitle{max-width:230px;font-size:12px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stat-value{font-size:26px}.content-grid{gap:16px}.right-column{grid-template-columns:1fr}.boundary-card{padding:20px}.card-header{padding:20px 17px 15px}.toolbar{padding:0 17px 18px}.page-footer{flex-direction:column;gap:6px}.welcome h1{font-size:33px}dl{grid-template-columns:110px 1fr}#refresh{padding:9px;font-size:11px}}
@media(prefers-reduced-motion:no-preference){.button,.nav-item{transition:background .15s ease,filter .15s ease}dialog[open]{animation:appear .15s ease}@keyframes appear{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}}
.nav-item .module-name{width:auto;font-size:13px}
.follow-button{display:block;width:100%;margin-top:9px;padding:8px 4px;background:none;border:0;text-align:left;color:#60806d;font-size:11px}.follow-button[aria-pressed=true]{color:#1b7154}
.publisher-owner{overflow-wrap:anywhere}
.queue-heading{align-items:flex-start!important;gap:10px}.queue-heading>.count{font-size:9px;line-height:1.55;max-width:100px;text-align:right;white-space:normal}.queue-disclosure{border-top:1px solid #edf2ee}.queue-disclosure:first-child{border-top:0}.queue-disclosure>summary{cursor:pointer;list-style:none;padding:12px 9px;gap:8px;align-items:flex-start;user-select:none}.queue-disclosure>summary::-webkit-details-marker{display:none}.queue-disclosure>summary:before{content:"›";font-size:17px;font-weight:400;line-height:14px;color:#8da091;flex:0 0 8px;transform-origin:center;transition:transform .12s}.queue-disclosure[open]>summary:before{transform:rotate(90deg)}.queue-disclosure>summary:hover{background:#f8faf7;border-radius:6px}.queue-disclosure .queue-group-title{flex:1;min-width:0;font-size:10px;line-height:1.5;color:#597361}.queue-disclosure .queue-group-count{max-width:82px;flex-shrink:0;text-align:right;font-size:9px;line-height:1.65;color:#849888}.queue-disclosure .queue-group-body{padding-bottom:8px}.queue-disclosure+.queue-disclosure{margin-top:0}.queue-case-id{display:block;color:#809882;font-size:9px;font-weight:500;line-height:1.5;margin:0 0 6px;overflow-wrap:anywhere}.queue-primary-source{display:block;font-size:9px;line-height:1.6;color:#849b87;margin-top:5px}.queue-human-count{display:block;margin-top:4px;color:#a97734;font-size:8px;font-weight:500}.report-switcher{margin-top:18px;padding:13px 15px;border:1px solid #e6ece7;border-radius:7px;background:#fafcf9}.report-switcher label{display:block;font-size:9px;font-weight:600;color:#6b8772;margin-bottom:8px}.report-switcher select{display:block;width:100%;min-width:0;font-size:11px;padding:9px 10px;background:#fff}.report-switcher p{font-size:9px;line-height:1.7;color:#809685;margin:8px 0 0}.report-switcher p:only-child{margin:0}.queue-disclosure:focus-within>summary{border-radius:6px}@media(prefers-reduced-motion:reduce){.queue-disclosure>summary:before{transition:none}}
.console-view{max-width:1900px!important;padding-left:28px!important;padding-right:28px!important}.console-view .page-heading{margin-bottom:18px}.console-view .freshness{margin-bottom:17px}
.work-console{display:grid;grid-template-columns:244px minmax(0,1fr) 272px;gap:18px;align-items:start}.demo-callout{grid-column:1/-1;background:#eef3f8;border:1px solid #dce5ee;border-radius:8px;padding:10px 14px;font-size:11px;line-height:1.6;color:#62788a;margin-bottom:1px}.demo-callout>span{display:inline-block;font-size:9px;font-weight:700;letter-spacing:1px;background:#dfe8f1;color:#55718a;border-radius:3px;padding:1px 5px;margin-right:8px}
.queue-pane{position:sticky;top:20px;min-width:0}.queue-heading{display:flex;align-items:center;justify-content:space-between;padding:21px 17px 17px}.queue-heading .eyebrow{font-size:8px;letter-spacing:1.2px;margin-bottom:8px}.queue-heading h2{margin:0;font-size:16px;font-weight:600;letter-spacing:-.3px}.queue-search{margin:0 12px 17px}.queue-search input{font-size:11px}.work-queue{max-height:calc(100vh - 380px);min-height:320px;overflow:auto;scrollbar-width:thin;padding:0 7px 10px}.queue-group+.queue-group{margin-top:13px}.queue-group-heading{display:flex;align-items:center;justify-content:space-between;font-size:10px;font-weight:600;letter-spacing:.1px;color:#6b8173;margin:0;padding:9px 10px}.queue-group-heading>span:last-child{font-size:10px;color:#83988a;font-weight:400}.queue-empty{font-size:10px;color:#8b9b90;margin:5px 10px 10px;line-height:1.5}.queue-item{width:100%;display:block;text-align:left;background:transparent;border:1px solid transparent;border-radius:8px;padding:12px 10px;margin:2px 0;color:#3e5649}.queue-item:hover{background:#f5f8f5}.queue-item.selected{background:#edf5ee;border-color:#d6e5d9;box-shadow:inset 3px 0 #44856a}.queue-item-title{display:block;font-size:12px;line-height:1.55;font-weight:600;overflow-wrap:anywhere}.queue-item-stage{display:flex;align-items:center;gap:6px;color:#6c8373;font-size:10px;line-height:1.5;margin-top:8px}.workflow-dot{width:5px;height:5px;border-radius:50%;background:#a9b5ad;flex-shrink:0}.workflow-dot.running{background:#4f8d7f}.workflow-dot.attention{background:#bf954d}.workflow-dot.failure{background:#bc7167}.workflow-dot.complete{background:#7f9a87}.queue-item-meta{display:flex;align-items:start;justify-content:space-between;gap:6px;margin-top:9px;font-size:9px;line-height:1.5;color:#82958a}.queue-item-meta>span:first-child{min-width:0;overflow-wrap:anywhere}.queue-item-meta>span:last-child{white-space:nowrap;flex-shrink:0}.queue-footnote{font-size:9px;line-height:1.7;color:#82988a;padding:12px 17px;margin:0;border-top:1px solid #edf2ee}.work-queue>.report-empty{margin:8px 7px}
.task-pane{min-width:0;min-height:660px}.task-heading{padding:26px 26px 23px}.task-kicker{display:flex;flex-wrap:wrap;gap:8px 12px;color:#789181;font-size:9px;letter-spacing:.6px;margin-bottom:15px;overflow-wrap:anywhere}.task-kicker>span+span{border-left:1px solid #dbe5dd;padding-left:12px}.task-heading h2{font-size:22px;line-height:1.4;font-weight:600;letter-spacing:-.5px;margin:0 0 17px;overflow-wrap:anywhere}.task-status{display:flex;align-items:center;flex-wrap:wrap;gap:7px}.task-status>span:last-child:not(.badge){margin-left:auto;font-size:10px;color:#81988a}.task-stale{margin:15px 0 0;font-size:10px;line-height:1.7;color:#967842;padding-top:12px;border-top:1px solid #eee9dc}.badge.running{color:#527c82;background:#edf4f6}.badge.pending{color:#8b7b59;background:#f8f4eb}.badge.complete{color:#5d826b;background:#eef5f0}.badge.failure{color:#a46b60;background:#faefec}
.task-tabs{display:flex;gap:0;overflow-x:auto;border-top:1px solid #edf1ee;border-bottom:1px solid var(--line);padding:0 20px;scrollbar-width:thin;background:#fdfefd}.task-tab{border:0;border-bottom:2px solid transparent;color:#708979;background:none;white-space:nowrap;padding:15px 10px 13px;font-size:11px;font-weight:500;flex:1}.task-tab:hover{color:#3f7058;background:#f6faf6}.task-tab.active{color:#287757;border-bottom-color:#398666;font-weight:600}.task-content{padding:25px 26px 30px;min-height:410px}.task-content:focus{outline:none}.task-content:focus-visible{outline:2px solid #398666;outline-offset:-3px}.task-section{margin:0 0 24px}.task-section:last-child{margin-bottom:0}.task-section h3{margin:0 0 12px;font-size:12px;font-weight:650;letter-spacing:.05px}.section-description{font-size:11px;color:#7b9282;line-height:1.8;margin:0 0 20px}.task-summary{font-size:13px;line-height:1.9;color:#647c6c;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.workflow-facts{display:grid;grid-template-columns:1fr 1fr;border:1px solid #e6ece7;border-radius:8px;background:#fafcf9;margin:21px 0 24px}.workflow-fact{padding:16px}.workflow-fact+div{border-left:1px solid #e6ece7}.workflow-fact>span{display:block;font-size:8px;letter-spacing:1px;color:#839b89;margin-bottom:9px}.workflow-fact>strong{font-size:12px;font-weight:550;color:#52705b}.next-action{border-left:3px solid #c8dccc;padding:16px 18px;background:#f6f9f4;border-radius:0 7px 7px 0}.next-action.human-needed{border-left-color:#d6ba7c;background:#fdf9f0}.next-action h3{font-size:11px;color:#647e56;margin-bottom:8px}.next-action.human-needed h3{color:#9e813f}.next-action p{font-size:12px;color:#647a5c;line-height:1.8;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.local-guidance{display:block;margin-top:12px;font-size:9px;color:#839478;line-height:1.7}.task-metadata{font-size:11px;grid-template-columns:130px minmax(0,1fr);gap:10px 15px;margin:0 0 15px}.task-metadata dt{color:#809784}.task-metadata dd{color:#5f7c67;white-space:pre-wrap}.inline-link{font-size:11px;color:#3d8060;text-decoration:none;line-height:1.7;overflow-wrap:anywhere}.inline-link:hover{text-decoration:underline}.related-report{display:block;width:100%;text-align:left;background:#fbfcfa;border:1px solid #e7ede5;border-radius:7px;padding:12px 14px;margin-top:9px}.related-report:hover{background:#f2f7ef}.related-report strong{display:block;font-size:11px;line-height:1.7;color:#647e5d;font-weight:550}.related-report span{display:block;font-size:9px;line-height:1.6;color:#809574;margin-top:4px}.report-empty{padding:22px 18px;background:#f9fbf8;border:1px dashed #e2eae0;border-radius:8px;text-align:left}.report-empty strong{font-size:11px;font-weight:550;color:#6e8867}.report-empty p{font-size:10px;line-height:1.8;color:#819676;margin:7px 0 0}
.stage-note{font-size:10px;color:#7b8b6a;background:#f6f8f0;padding:11px 13px;line-height:1.7;border-radius:6px;margin-bottom:20px}.phase-list{list-style:none;padding:0;margin:0}.phase-row{display:flex;align-items:flex-start;gap:11px;position:relative;padding:0 0 23px;min-height:70px}.phase-row:not(:last-child):before{content:"";position:absolute;left:8px;top:18px;bottom:0;width:1px;background:#e8eee5}.phase-marker{position:relative;display:grid;place-items:center;flex-shrink:0;width:17px;height:17px;border-radius:50%;border:1px solid #dce5d8;background:#fff;color:#76966a;font-size:10px;margin-top:2px;z-index:1}.phase-row.complete .phase-marker{border-color:#95b38b;background:#edf5e9}.phase-row.current .phase-marker{border-color:#6f9c61;box-shadow:0 0 0 3px #f0f7ec}.phase-row.current:not(.complete):not(.failure) .phase-marker:after{content:"";width:5px;height:5px;border-radius:50%;background:#75a064}.phase-row.failure .phase-marker{color:#b47765;border-color:#d5a898;background:#fbf0eb}.phase-body{flex:1;min-width:0}.phase-heading{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:2px 0 6px}.phase-heading strong{font-size:11px;font-weight:550;color:#5a7950}.phase-row.unreported .phase-heading strong{color:#8c9f80}.phase-body p{margin:0;font-size:10px;color:#7c936e;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.phase-body time{display:block;font-size:9px;color:#8e9f80;margin-top:5px}.phase-row>.badge{font-size:8px;padding:3px 5px;margin-top:1px}.current-label{font-size:8px;color:#658c50;background:#eff6e8;border-radius:3px;padding:2px 5px}.repair-summary{background:#f5f9f1;border-radius:7px;padding:14px 16px;margin-bottom:18px}.repair-summary p{margin:9px 0 0;font-size:11px;line-height:1.8;color:#7b916c;white-space:pre-wrap}
.pr-card,.evidence-card{padding:17px 18px;border:1px solid #e5ecdf;border-radius:8px;margin-top:12px}.pr-heading{display:flex;align-items:flex-start;gap:12px;justify-content:space-between}.pr-heading a,.pr-heading strong{font-size:12px;font-weight:550;color:#547c40}.pr-heading .badge{font-size:9px}.pr-card p{font-size:10px;color:#7f966c;line-height:1.8;margin:11px 0 0}.draft-label{display:inline-block;font-size:9px;padding:3px 7px;border-radius:4px;background:#f1f3eb;color:#7b9160;margin-top:9px}.deployment-status{margin:5px 0 17px}.deployment-status+.task-summary{margin-bottom:21px}.assessment-box{border:1px solid #e5ecdf;background:#fafcf7;border-radius:8px;padding:17px 18px;margin-bottom:19px}.assessment-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:19px}.assessment-heading strong{font-size:11px;color:#607e46;font-weight:550}.assessment-box .task-metadata{margin-bottom:0}.evidence-card h4{font-size:12px;font-weight:550;color:#627f40;margin:0 0 9px}.evidence-card p{font-size:11px;line-height:1.9;color:#7d9760;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.evidence-meta{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px;margin-top:14px;font-size:9px;color:#849b62}.evidence-meta .badge{font-size:9px}
.activity-pane{min-width:0;display:grid;gap:17px}.activity-pane .card-header{padding:20px 19px 16px}.activity-pane .card-header h2{font-size:12px}.activity-pane .card-header p{font-size:9px;color:#80936d}.work-activity{padding:0 19px 19px;max-height:570px;overflow:auto;scrollbar-width:thin}.activity-event{position:relative;padding:0 0 22px 17px;border-left:1px solid #e6ebdf;margin-left:3px}.activity-event:last-child{padding-bottom:0;border-left-color:transparent}.activity-event:before{content:"";position:absolute;top:4px;left:-3px;width:5px;height:5px;border-radius:50%;background:#bdc8ac;box-shadow:0 0 0 4px #fff}.activity-event.running:before{background:#8aa775}.activity-event.attention:before{background:#c9ae71}.activity-event.failure:before{background:#bd8a75}.activity-event-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:7px}.activity-event-heading strong{font-size:10px;font-weight:600;color:#657e46}.event-state{font-size:8px;color:#80965f;line-height:1.6}.activity-event p{font-size:10px;line-height:1.8;color:#779158;margin:8px 0 7px;white-space:pre-wrap;overflow-wrap:anywhere}.activity-event time{font-size:9px;color:#8c9f70}.work-source{padding:0 19px 20px}.source-metadata{font-size:9px;grid-template-columns:79px minmax(0,1fr);gap:9px 11px;margin:16px 0}.source-metadata dt{color:#829660}.source-metadata dd{color:#68853e}.source-note{font-size:9px;line-height:1.8;color:#889e5f;margin:15px 0 0;padding-top:13px;border-top:1px solid #edf0e5}.rail-placeholder{font-size:11px;color:#779158;margin:0;line-height:1.8}.detail-open{margin-left:8px}
@media(min-width:1650px){.work-console{grid-template-columns:280px minmax(0,1fr) 300px;gap:22px}.task-heading{padding:30px}.task-content{padding:28px 30px}.queue-heading{padding:24px 20px}.work-queue{padding:0 10px 12px}}
@media(max-width:1300px) and (min-width:1051px){.work-console{grid-template-columns:215px minmax(0,1fr) 230px;gap:13px}.console-view{padding-left:20px!important;padding-right:20px!important}.task-heading{padding:22px 20px}.task-content{padding:22px 20px}.task-tabs{padding:0 10px}.task-tab{font-size:10px;padding-left:7px;padding-right:7px}.task-heading h2{font-size:20px}.activity-pane .card-header{padding:18px 15px 15px}.work-activity,.work-source{padding-left:15px;padding-right:15px}.phase-row>.badge{font-size:7px}.task-metadata{grid-template-columns:105px minmax(0,1fr)}}
@media(max-width:1050px){.work-console{grid-template-columns:225px minmax(0,1fr);gap:16px}.queue-pane{grid-row:span 2}.activity-pane{grid-column:2;grid-template-columns:1fr}.task-pane{min-height:570px}.work-queue{max-height:calc(100vh - 330px)}.work-activity{max-height:350px}.activity-pane .source-metadata{grid-template-columns:120px minmax(0,1fr)}}
@media(max-width:760px){.console-view{padding-left:18px!important;padding-right:18px!important}.work-console{grid-template-columns:minmax(0,1fr);gap:16px}.demo-callout{font-size:10px}.queue-pane{position:static;grid-row:auto}.queue-heading{padding:17px 18px 13px}.queue-heading .eyebrow{display:none}.queue-heading h2{font-size:14px}.queue-search{margin:0 16px 12px}.work-queue{min-height:0;max-height:280px;padding:0 9px 9px}.queue-item{padding:10px}.queue-item-title{font-size:12px}.queue-footnote{padding:10px 18px}.task-pane{min-height:0}.task-heading{padding:22px 21px}.task-heading h2{font-size:21px}.task-content{padding:22px 21px;min-height:380px}.task-tabs{padding:0 12px}.task-tab{font-size:10px;padding-left:8px;padding-right:8px}.activity-pane{grid-column:auto}.task-metadata{grid-template-columns:110px minmax(0,1fr)}.workflow-fact{padding:14px}.task-status>span:last-child:not(.badge){margin-left:0}.phase-row{gap:9px}.phase-row>.badge{font-size:8px}.task-kicker{font-size:9px}.work-activity{max-height:420px}.detail-open{margin:10px 0 0}}

/* Apply the LB console's existing colors and control appearance to the shared
   portal without changing its overview, monitoring or console layouts. */
body { color: var(--ink); background: var(--paper); }
.sidebar, .card, .stat, .boundary-card, .topbar { background: var(--surface); }
.card, .stat, .boundary-card { border-color: var(--line); border-radius: 8px; }
.brand, select, .search input, .item-title, .publisher-name, .stat-value, .empty h3, dialog { color: var(--ink); }
.brand-mark { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 0; background: var(--ink); color: #fff; font: 700 18px Georgia, serif; letter-spacing: 0; text-transform: uppercase; padding: 0; }
.brand-second, .crew-switch label, .nav-label, .sidebar-footer, .sidebar-footer small,
.breadcrumb, .environment, .text-button, .eyebrow, .freshness, .stat-label, .stat-caption,
.card-header p, .search, .item-meta, .progress, .time, .publisher p, .boundary-card p,
.boundary-card .boundary-small, .page-footer, .empty, .empty-mark, .follow-button,
dt { color: var(--muted); }
.nav-item { color: var(--ink); }
.nav-item.active { color: var(--forest); background: var(--forest-soft); }
.nav-item:hover { background: var(--paper); }
.module-dot { background: var(--muted); }
.local-dot, .freshness-dot { background: var(--forest); }
.freshness-dot.warning { background: var(--amber); }
.follow-button[aria-pressed=true] { color: var(--forest); }
h1 { color: var(--ink); letter-spacing: 0; }
.card-header h2, .boundary-card h2 { color: var(--ink); font-size: 17px; font-weight: 600; letter-spacing: 0; }
.button { min-height: 36px; border-radius: 0; padding: 7px 12px; font-size: 14px; font-weight: 650; }
.primary { color: #fff; background: var(--forest); border-color: var(--forest); }
.secondary { color: var(--ink); background: var(--surface); border-color: var(--line); }
select { border-radius: 0; background: var(--surface); }
.search:focus-within { outline-color: var(--blue); }
.count, .badge, .badge.unknown { color: var(--muted); background: #edf0f2; }
.badge.healthy, .badge.complete { color: var(--forest); background: var(--forest-soft); }
.badge.running { color: var(--blue); background: #e5edf4; }
.badge.attention, .badge.pending, .badge.stale { color: #805c16; background: #fbf2df; }
.badge.failure { color: #96331f; background: #fbe8e4; }
.stat.attention .stat-value { color: #926b1d; }
.notice { color: #805c16; background: #fff3cc; border-color: #e6d9ba; }
th { color: var(--muted); background: var(--paper); border-color: var(--line); font-size: 11px; }
td { color: var(--ink); border-color: var(--line); font-size: 13px; }
.item-title { font-size: 13px; }
.item-meta, .time, .stat-caption, .page-footer { font-size: 11px; }
.progress, .publisher p, .boundary-card .boundary-small, .card-header p { font-size: 12px; }
.publisher, .boundary-card .boundary-small { border-color: var(--line); }
.boundary-icon { color: var(--forest); background: var(--forest-soft); border-radius: 4px; }
dialog { box-shadow: var(--shadow); border-radius: 8px; background: var(--surface); }
dialog::backdrop { background: rgba(23, 32, 30, .62); }
dialog a { color: var(--blue); }

/* The signed-out header reuses ops.html header, .brand, .mark and .local-badge. */
.console-header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 24px; color: #fff; background: var(--ink); border-bottom: 4px solid var(--signal); }
.console-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.console-mark { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .35); color: #fff; font: 700 18px Georgia, serif; }
.console-header h1 { margin: 0; color: #fff; font-size: 20px; font-weight: 600; line-height: 1.1; letter-spacing: 0; }
.console-header .subtitle, .welcome .console-header .subtitle { margin: 3px 0 0; color: #b9c6c1; font-size: 12px; }
.local-badge { color: var(--ink); background: #f1c75b; padding: 5px 8px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.welcome { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; place-items: stretch; padding: 0; background: var(--paper); }
.welcome-card { align-self: center; justify-self: center; width: min(480px, calc(100% - 64px)); max-width: none; margin: 32px; text-align: left; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.welcome-card h2 { margin: 0 0 12px; color: var(--ink); font-size: 24px; font-weight: 600; line-height: 1.4; letter-spacing: 0; }
.welcome p:not(.eyebrow) { color: var(--muted); font-size: 14px; line-height: 1.6; }
.welcome .eyebrow, .welcome-footnote { color: var(--muted); }
.welcome .welcome-card .welcome-footnote { font-size: 12px; margin-top: 16px; }
.welcome .button { margin-top: 16px; padding: 7px 12px; font-size: 14px; }
.login-status { color: var(--signal) !important; }
@media (max-width: 650px) {
  .console-header { padding: 12px 14px; }
  .console-header .subtitle, .console-header .local-badge { display: none; }
  .welcome-card { width: calc(100% - 32px); margin: 24px 16px; padding: 20px; }
}

/* Work view uses the existing ops.html three-pane
   layout, section cards, investigation steps and timeline. Keep these aliases
   scoped so the overview and monitoring pages retain their current layout. */
.work-mode {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  line-height: 1.6;
}
/* The existing navigation becomes the ops.html header in work mode. */
.work-mode .sidebar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 24px;
  position: static;
  width: auto;
  height: auto;
  min-width: 0;
  padding: 14px 24px;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-bottom: 4px solid var(--signal);
}
.work-mode .brand { grid-column: 1; grid-row: 1; gap: 14px; padding: 0; color: #fff; }
.work-mode .brand-title { display: block; font-size: 20px; font-weight: 600; line-height: 1.1; letter-spacing: 0; }
.work-mode .brand-mark { width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid #ffffff59; border-radius: 0; background: transparent; }
.work-mode .brand-second { color: #b9c6c1; font-size: 12px; font-weight: 400; line-height: 1.6; letter-spacing: 0; margin-top: 3px; }
.work-mode #navigation { grid-column: 2; grid-row: 1; display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.work-mode .nav-item { width: auto; margin: 0; padding: 5px 12px; color: #fff; font-size: 13px; border: 1px solid transparent; border-radius: 6px; }
.work-mode .nav-item.active { color: #fff; background: transparent; border-color: currentColor; font-weight: 600; }
.work-mode .nav-item:hover { color: #fff; background: #34413d; }
.work-mode .nav-item .module-name { min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.work-mode .crew-switch { grid-column: 3; grid-row: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0; min-width: 0; }
.work-mode .crew-switch label { display: block; margin: 0; color: #b9c6c1; font-size: 11px; letter-spacing: .5px; }
.work-mode .crew-switch select { width: 180px; max-width: 100%; min-width: 0; padding: 7px 10px; border-radius: 4px; color: var(--ink); font-size: 13px; }
.work-mode .follow-button { width: auto; padding: 7px 0; margin: 0; color: #d8e3de; font-size: 12px; }
.work-mode .follow-button[aria-pressed=true] { color: #f1c75b; }
.work-mode .nav-label { display: block; grid-column: 1; grid-row: 2; margin: 0; color: #b9c6c1; font-size: 11px; letter-spacing: .5px; }
.work-mode #modules { grid-column: 2 / -1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.work-mode .module-dot { background: #b9c6c1; }
.work-mode .sidebar-footer { display: none; }
.work-mode .topbar { height: 48px; padding: 0 24px; font-size: 12px; }
.work-mode .breadcrumb, .work-mode .text-button { color: var(--muted); }
.work-mode .environment { color: var(--muted); font-size: 11px; }
.work-mode main#main { max-width: none; padding: 20px 24px 24px !important; }
.work-mode .page-heading { margin-bottom: 12px; }
.work-mode .page-heading .eyebrow { display: none; }
.work-mode h1 { font-size: 24px; font-weight: 600; letter-spacing: 0; margin-bottom: 5px; }
.work-mode .subtitle { color: var(--muted); font-size: 13px; }
.work-mode .secondary { min-height: 36px; padding: 7px 12px; border-radius: 4px; color: var(--ink); font-size: 13px; }
.work-mode .freshness { color: var(--muted); font-size: 12px; margin-bottom: 16px; }
.work-mode #stats { display: none; }
.work-mode .page-footer { color: var(--muted); font-size: 11px; }
.work-mode .work-console { grid-template-columns: minmax(260px, 22%) minmax(440px, 1fr) minmax(260px, 25%); gap: 0; border: 1px solid var(--line); background: var(--paper); }
.work-mode .demo-callout { margin: 12px 20px 0; font-size: 12px; color: var(--blue); }
.work-mode .queue-pane, .work-mode .task-pane, .work-mode .activity-pane { min-width: 0; padding: 20px; border: 0; border-radius: 0; }
.work-mode .queue-pane { top: 20px; grid-row: auto; background: var(--surface); border-right: 1px solid var(--line); }
.work-mode .task-pane { min-height: 660px; background: transparent; overflow: visible; }
.work-mode .activity-pane { grid-column: auto; grid-template-columns: minmax(0, 1fr); gap: 16px; background: var(--surface); border-left: 1px solid var(--line); }
.work-mode .queue-heading { gap: 12px; margin-bottom: 16px; padding: 0; }
.work-mode .queue-heading .eyebrow { color: var(--muted); font-size: 11px; letter-spacing: .5px; margin-bottom: 4px; }
.work-mode .queue-heading h2 { font-size: 17px; font-weight: 600; letter-spacing: 0; }
.work-mode .count { color: var(--muted); background: #edf0f2; font-size: 11px; }
.work-mode .queue-heading > .count { font-size: 11px; }
.work-mode .queue-search { margin: 0 0 16px; background: var(--surface); }
.work-mode .search input { color: var(--ink); font-size: 13px; }
.work-mode .work-queue { max-height: calc(100vh - 320px); min-height: 320px; padding: 0 0 10px; }
.work-mode .queue-disclosure { border-color: var(--line); }
.work-mode .queue-disclosure > summary { padding: 12px 2px; }
.work-mode .queue-disclosure > summary:hover { background: var(--paper); }
.work-mode .queue-disclosure > summary:before { color: var(--forest); }
.work-mode .queue-disclosure .queue-group-title { color: var(--ink); font-size: 12px; }
.work-mode .queue-disclosure .queue-group-count { color: var(--muted); font-size: 11px; max-width: 90px; }
.work-mode .queue-disclosure .queue-group-body { display: grid; gap: 8px; }
.work-mode .queue-item { color: var(--ink); border: 1px solid var(--line); border-left: 4px solid transparent; border-radius: 0; padding: 12px; margin: 0; }
.work-mode .queue-item:hover, .work-mode .queue-item.selected { background: var(--surface); border-left-color: var(--forest); box-shadow: none; }
.work-mode .queue-item.selected { background: var(--surface); }
.work-mode .queue-item-title { color: var(--ink); font-size: 13px; font-weight: 700; }
.work-mode .queue-case-id { display: block; margin-top: 4px; }
.work-mode .queue-item-summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.work-mode .queue-item-stage { color: var(--muted); font-size: 12px; align-items: flex-start; }
.work-mode .workflow-dot { width: 7px; height: 7px; margin-top: 6px; }
.work-mode .workflow-dot.running { background: var(--eo-run-mark); box-shadow: 0 0 0 3px color-mix(in srgb, var(--eo-run-glow) 30%, transparent); }
.work-mode .workflow-dot.complete { background: var(--eo-ok-mark); }
.work-mode .workflow-dot.attention { background: var(--amber); }
.work-mode .workflow-dot.failure { background: var(--signal); }
.work-mode .queue-item-meta, .work-mode .queue-case-id, .work-mode .queue-primary-source, .work-mode .queue-empty { color: var(--muted); font-size: 11px; }
.work-mode .queue-human-count { color: #926b1d; font-size: 11px; }
.work-mode .queue-footnote { color: var(--muted); font-size: 11px; padding: 14px 0 0; border-color: var(--line); }
.work-mode .task-heading { padding: 0 0 18px; }
.stats { grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); }
.case-outcome { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.case-outcome h3 { margin: 0 0 10px; font-size: 13px; }
.case-outcome-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 13px; }
.case-outcome p, .queue-explanation { color: var(--muted); font-size: 11px; line-height: 1.65; margin: 8px 0 0; }
.case-outcome .case-followup { color: var(--ink); }
.queue-explanation { margin: 0 0 6px; }
.queue-ado-state { display: block; margin-top: 5px; font-size: 11px; color: var(--muted); }
.work-mode .task-heading h2 { font-size: 24px; line-height: 1.4; font-weight: 600; letter-spacing: 0; margin-bottom: 14px; }
.work-mode .task-kicker { color: var(--muted); font-size: 11px; letter-spacing: 0; margin-bottom: 10px; }
.work-mode .task-kicker > span + span { border-color: var(--line); }
.work-mode .task-status > span:last-child:not(.badge) { color: var(--muted); font-size: 12px; }
.work-mode .task-stale { color: #926b1d; font-size: 12px; }
.work-mode .badge { font-size: 11px; white-space: normal; }
.work-mode .badge.healthy, .work-mode .badge.complete { color: var(--forest); background: var(--forest-soft); }
.work-mode .badge.running { color: var(--blue); background: #e5edf4; }
.work-mode .badge.attention, .work-mode .badge.pending, .work-mode .badge.stale { color: #805c16; background: #fbf2df; }
.work-mode .badge.failure { color: #96331f; background: #fbe8e4; }
.work-mode .badge.unknown { color: #59615e; background: #edf0f2; }
.work-mode .report-switcher { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 8px; margin-top: 12px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.work-mode .report-switcher label { color: var(--muted); font-size: 12px; margin: 0; }
.work-mode .report-switcher select { min-width: 0; color: var(--ink); font-size: 12px; padding: 7px 10px; }
.work-mode .report-switcher p { grid-column: 1 / -1; color: var(--muted); font-size: 11px; line-height: 1.6; margin: 0; }
.work-mode .task-tabs { padding: 0; border-color: var(--line); background: var(--surface); }
.work-mode .task-tab { color: var(--muted); font-size: 12px; padding: 11px 8px; }
.work-mode .task-tab:hover { color: var(--forest); background: var(--paper); }
.work-mode .task-tab.active { color: var(--forest); border-bottom-color: var(--forest); }
.work-mode .task-content { padding: 0; min-height: 410px; }
/* ops.html .section mapped to the portal's existing section renderer. */
.work-mode .task-section { padding: 14px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); margin: 12px 0; }
.work-mode .task-section h3 { margin: 0 0 12px; color: var(--ink); font-size: 15px; font-weight: 600; letter-spacing: 0; }
.work-mode .section-description { color: var(--muted); font-size: 12px; line-height: 1.6; margin-bottom: 16px; }
.work-mode .task-summary { color: var(--ink); font-size: 14px; line-height: 1.65; }
.work-mode .workflow-facts { margin: 12px 0; border-color: var(--line); background: var(--surface); }
.work-mode .workflow-fact { padding: 14px 18px; }
.work-mode .workflow-fact + div { border-color: var(--line); }
.work-mode .workflow-fact > span { color: var(--muted); font-size: 11px; letter-spacing: .5px; }
.work-mode .workflow-fact > strong { color: var(--ink); font-size: 13px; }
.work-mode .next-action { border-left: 4px solid var(--blue); }
.work-mode .next-action.human-needed { border-left-color: var(--amber); background: var(--surface); }
.work-mode .next-action h3, .work-mode .next-action.human-needed h3 { color: var(--ink); }
.work-mode .next-action p { color: var(--ink); font-size: 13px; line-height: 1.65; }
.work-mode .local-guidance { color: var(--muted); font-size: 12px; }
.work-mode .task-metadata { grid-template-columns: 130px minmax(0, 1fr); font-size: 12px; }
.work-mode .task-metadata dt, .work-mode .source-metadata dt { color: var(--muted); }
.work-mode .task-metadata dd, .work-mode .source-metadata dd { color: var(--ink); }
.work-mode .inline-link { color: var(--blue); font-size: 13px; }
.work-mode .related-report, .work-mode .report-empty, .work-mode .pr-card, .work-mode .evidence-card, .work-mode .assessment-box { border-color: var(--line); background: var(--surface); }
.work-mode .related-report:hover { background: var(--paper); }
.work-mode .related-report strong, .work-mode .report-empty strong { color: var(--ink); font-size: 13px; }
.work-mode .related-report span, .work-mode .report-empty p { color: var(--muted); font-size: 12px; }
.work-mode .stage-note, .work-mode .repair-summary { background: var(--paper); color: var(--muted); font-size: 12px; }
.work-mode .repair-summary p, .work-mode .pr-card p { color: var(--muted); font-size: 12px; line-height: 1.65; }
.work-mode .phase-heading strong, .work-mode .assessment-heading strong { color: var(--ink); font-size: 13px; }
.work-mode .phase-row.unreported .phase-heading strong, .work-mode .phase-body p, .work-mode .phase-body time { color: var(--muted); font-size: 12px; }
.work-mode .phase-row:not(:last-child):before { background: var(--line); }
.work-mode .phase-marker { color: var(--blue); border-color: var(--line); }
.work-mode .phase-row.complete .phase-marker { color: var(--eo-ok-ink); border-color: var(--eo-ok-mark); background: var(--surface); }
.work-mode .phase-row.current .phase-marker { border-color: var(--eo-run-mark); box-shadow: 0 0 0 3px #e5edf4; }
.work-mode .phase-row.current:not(.complete):not(.failure) .phase-marker:after { background: var(--eo-run-mark); }
.work-mode .phase-row.failure .phase-marker { color: var(--signal); border-color: var(--signal); background: var(--surface); }
.work-mode .phase-row > .badge { font-size: 11px; }
.work-mode .current-label { color: var(--blue); background: #e5edf4; font-size: 11px; }
.work-mode .pr-heading { flex-wrap: wrap; }
.work-mode .pr-heading a, .work-mode .pr-heading strong { color: var(--blue); font-size: 13px; overflow-wrap: anywhere; }
.work-mode .pr-heading .badge, .work-mode .evidence-meta .badge { font-size: 11px; }
.work-mode .draft-label { color: var(--muted); background: #edf0f2; font-size: 11px; }
.work-mode .evidence-card h4 { color: var(--ink); font-size: 14px; }
.work-mode .evidence-card p { color: var(--muted); font-size: 13px; line-height: 1.65; }
.work-mode .evidence-meta { color: var(--muted); font-size: 11px; }
/* ops.html .investigation-steps / .investigation-step, using reported events. */
.work-mode .workflow-history { list-style: none; margin: 16px 0 0; padding: 0; }
.work-mode .workflow-step { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; position: relative; padding: 0 0 18px; }
.work-mode .workflow-step:not(:last-child)::before { content: ""; position: absolute; left: 14px; top: 30px; bottom: 0; border-left: 2px solid var(--line); }
.work-mode .workflow-step-marker { display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid var(--eo-run-mark); border-radius: 50%; background: var(--surface); color: var(--eo-run-ink); font-weight: 700; z-index: 1; }
.work-mode .workflow-step.complete .workflow-step-marker { border-color: var(--eo-ok-mark); color: var(--eo-ok-ink); }
.work-mode .workflow-step.failure .workflow-step-marker { border-color: var(--signal); color: var(--signal); }
.work-mode .workflow-step.attention .workflow-step-marker { border-color: #926b1d; color: #926b1d; }
.work-mode .workflow-step-body { min-width: 0; }
.work-mode .workflow-step-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 2px 0 4px; }
.work-mode .workflow-step-heading h4, .work-mode .workflow-step-heading strong { color: var(--ink); font-size: 14px; margin: 0; }
.work-mode .workflow-step p { margin: 3px 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.work-mode .workflow-step time { color: var(--muted); font-size: 11px; }
.work-mode .workflow-step-events { margin-top: 10px; font-size: 12px; }
.work-mode .workflow-step-events summary { cursor: pointer; color: var(--blue); font-weight: 600; }
.work-mode .workflow-step-events > :not(summary) { margin-top: 10px; }
/* ops.html right-context sections and timeline, without execution controls. */
.work-mode .activity-pane .card { min-width: 0; border-color: var(--line); border-radius: 8px; }
.work-mode .activity-pane .card-header { padding: 14px 18px 12px; }
.work-mode .activity-pane .card-header h2 { color: var(--ink); font-size: 15px; font-weight: 600; letter-spacing: 0; }
.work-mode .activity-pane .card-header p { color: var(--muted); font-size: 12px; }
.work-mode .work-status, .work-mode .work-monitor, .work-mode .work-activity, .work-mode .work-source { padding: 0 18px 18px; }
.work-mode .work-activity { max-height: 570px; }
.work-mode .workflow-status-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--ink); font-size: 14px; }
.work-mode .workflow-next-action { margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink); font-size: 13px; }
.work-mode .workflow-next-action p { margin: 4px 0 0; }
.work-mode .source-metadata { grid-template-columns: 85px minmax(0, 1fr); gap: 9px 11px; margin: 14px 0; font-size: 12px; }
.work-mode .source-note { color: var(--muted); font-size: 12px; border-color: var(--line); }
.work-mode .rail-placeholder { color: var(--muted); font-size: 13px; line-height: 1.65; }
.work-mode .activity-event { padding: 0 0 20px 18px; border-left-color: var(--line); }
.work-mode .activity-event:last-child { border-left-color: transparent; }
.work-mode .activity-event:before { left: -4px; top: 5px; width: 7px; height: 7px; background: var(--blue); box-shadow: none; }
.work-mode .activity-event.running:before { background: var(--eo-run-mark); box-shadow: 0 0 0 3px color-mix(in srgb, var(--eo-run-glow) 30%, transparent); }
.work-mode .activity-event.complete:before { background: var(--eo-ok-mark); }
.work-mode .activity-event.attention:before { background: var(--amber); }
.work-mode .activity-event.failure:before { background: var(--signal); }
.work-mode .activity-event-heading { flex-wrap: wrap; }
.work-mode .activity-event-heading strong { color: var(--ink); font-size: 12px; }
.work-mode .event-state, .work-mode .activity-event time { color: var(--muted); font-size: 11px; }
.work-mode .activity-event p { color: var(--muted); font-size: 12px; line-height: 1.65; }
.work-mode .work-activity details > summary { cursor: pointer; color: var(--blue); font-size: 12px; font-weight: 600; margin: 12px 0; }
.work-mode .task-pane :is(p, li, dd, dt, strong, h3, h4, a), .work-mode .activity-pane :is(p, li, dd, dt, strong, h2), .work-mode .queue-pane :is(span, p) { overflow-wrap: anywhere; }
.work-mode .queue-item-stage > span:last-child, .work-mode .task-status, .work-mode .workflow-fact { min-width: 0; }
.work-mode .empty { color: var(--muted); }
.work-mode .empty h3 { color: var(--ink); font-size: 15px; }
.work-mode .empty p { font-size: 13px; }
@media (max-width: 1180px) {
  .work-mode .sidebar { grid-template-columns: auto minmax(0, 1fr); }
  .work-mode #navigation { justify-self: end; }
  .work-mode .crew-switch { grid-column: 1; grid-row: 2; }
  .work-mode .crew-switch label, .work-mode .nav-label { display: none; }
  .work-mode #modules { grid-column: 2; grid-row: 2; justify-content: flex-end; }
}
@media (max-width: 1050px) {
  .work-mode .work-console { grid-template-columns: 260px minmax(0, 1fr); }
  .work-mode .activity-pane { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 0; border-top: 1px solid var(--line); }
  .work-mode .task-pane { min-height: 570px; }
  .work-mode .work-queue { max-height: calc(100vh - 360px); }
}
@media (max-width: 760px) {
  .work-mode .sidebar { padding: 12px 14px; gap: 12px; }
  .work-mode .brand { grid-column: 1 / -1; }
  .work-mode #navigation { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; }
  .work-mode .nav-item { padding: 8px 10px; }
  .work-mode .crew-switch { grid-column: 1 / -1; grid-row: 3; }
  .work-mode #modules { grid-column: 1 / -1; grid-row: 4; justify-content: flex-start; }
  .work-mode .topbar { padding: 0 14px; height: auto; min-height: 48px; gap: 12px; flex-wrap: wrap; }
  .work-mode .topbar > div, .work-mode .account { min-width: 0; overflow-wrap: anywhere; }
  .work-mode main#main { padding: 18px 14px !important; }
  .work-mode .page-heading { gap: 12px; }
  .work-mode h1 { font-size: 22px; }
  .work-mode .subtitle { max-width: none; font-size: 12px; }
  .work-mode .freshness { align-items: flex-start; }
  .work-mode .freshness-dot { flex-shrink: 0; margin-top: 7px; }
  .work-mode .work-console { grid-template-columns: minmax(0, 1fr); }
  .work-mode .queue-pane, .work-mode .task-pane, .work-mode .activity-pane { padding: 16px; }
  .work-mode .queue-pane { position: static; border-right: 0; border-bottom: 1px solid var(--line); }
  .work-mode .queue-heading .eyebrow { display: block; }
  .work-mode .work-queue { min-height: 0; max-height: 280px; }
  .work-mode .task-pane { min-height: 0; }
  .work-mode .task-heading h2 { font-size: 22px; }
  .work-mode .task-content { min-height: 0; }
  .work-mode .task-section { padding: 14px 16px; }
  .work-mode .activity-pane { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
  .work-mode .task-metadata { grid-template-columns: 100px minmax(0, 1fr); }
  .work-mode .workflow-fact { padding: 12px; }
}
@media (max-width: 650px) {
  .work-mode .brand-title { font-size: 18px; }
}
/* LB reuses the local console instead of the shared summary layout. */
.lb-console-mode { display:flex; flex-direction:column; height:100vh; overflow:hidden; }
.lb-console-mode > .sidebar { position:static; width:100%; height:auto; min-height:0; flex-direction:row; align-items:center; padding:8px 20px; gap:24px; border-bottom:3px solid #c6492d; background:#17201e; }
.lb-console-mode .sidebar .brand { display:none; }
.lb-console-mode .crew-switch { display:flex; align-items:center; gap:12px; margin:0; padding:0; }
.lb-console-mode .crew-switch label { color:#b9c6c1; margin:0; }
.lb-console-mode .crew-switch select { width:220px; margin:0; }
.lb-console-mode .sidebar nav, .lb-console-mode .sidebar .nav-label, .lb-console-mode .sidebar-footer, .lb-console-mode #follow-crew { display:none; }
.lb-console-mode > .workspace { margin:0; padding:0; flex:1; min-height:0; display:flex; flex-direction:column; }
.lb-console-mode .topbar { min-height:38px; padding:4px 20px; }
.lb-console-mode #main { padding:0; margin:0; max-width:none; flex:1; min-height:0; display:flex; }
.lb-console-mode #main > :not(#lb-console) { display:none !important; }
.lb-console { flex:1; min-height:0; display:flex; flex-direction:column; background:#f6f7f9; }
.lb-console[hidden] { display:none; }
.lb-console-bar { display:flex; flex-wrap:wrap; align-items:center; gap:16px; padding:8px 20px; font-size:12px; color:#68716e; }
.lb-console-bar strong { color:#17201e; }
.lb-console-bar label { display:flex; align-items:center; gap:8px; }
.lb-console-bar select { max-width:260px; }
#lb-frame { border:0; width:100%; flex:1; min-height:0; background:#f6f7f9; }
.lb-console-mode .topbar, .public-monitoring-mode .topbar { height:auto; gap:12px; flex-wrap:wrap; }
.lb-console-mode .account, .public-monitoring-mode .account { flex-wrap:wrap; gap:10px; }
#monitor-dialog { width:min(900px,95vw); max-height:85vh; overflow:auto; }
#monitor-rows .publisher strong { overflow-wrap:anywhere; }

.queue-summary { margin: 0 18px 12px; color: var(--muted); font-size: 12px; }
.queue-more { width: 100%; margin-top: 8px; }
.overview-more { margin: 16px 23px; }
.related-reports > summary { cursor: pointer; color: var(--blue); font-weight: 600; }
.related-reports .related-report { margin-top: 10px; }

/* Public monitoring is a distinct view; never reuse LB's iframe-only selectors. */
.public-monitoring-mode { display:flex; flex-direction:column; min-height:100vh; }
.public-monitoring-mode > .sidebar { position:static; width:100%; height:auto; flex-direction:row; align-items:center; flex-wrap:wrap; gap:20px; padding:14px 24px; background:var(--ink); color:#fff; border:0; border-bottom:4px solid var(--signal); }
.public-monitoring-mode .brand { color:#fff; }
.public-monitoring-mode .brand-mark { border-color:#ffffff59; background:transparent; }
.public-monitoring-mode .brand-second, .public-monitoring-mode .crew-switch label { color:#b9c6c1; }
.public-monitoring-mode .crew-switch { display:flex; align-items:center; gap:12px; margin:0 0 0 auto; }
.public-monitoring-mode .crew-switch label { margin:0; }
.public-monitoring-mode .crew-switch select { width:auto; }
.public-monitoring-mode .nav-label, .public-monitoring-mode .sidebar-footer, .public-monitoring-mode #follow-crew { display:none; }
.public-monitoring-mode .topbar { min-height:44px; padding:6px 24px; }
.public-monitoring-mode main#main { padding:24px; width:100%; max-width:none; }
.public-monitoring-mode .page-heading h1 { font-size:22px; }
.public-monitoring-mode .card, .public-monitoring-mode .boundary-card { border-radius:0; }
@media(max-width:760px) {
  .public-monitoring-mode .crew-switch { margin-left:0; flex-wrap:wrap; }
  .public-monitoring-mode .topbar { padding:8px 14px; }
}
/* The portal's look, round 2 (2026-11-26; the owner: "The beautification can be done for the WHOLE portal UI, kept
   consistent"): the crews' classes mapped onto the portal's design system (portal-theme.css, loaded after this file
   with the tokens of every palette and variant). The sidebar is the palette's dark panel with an icon per view and the
   current one a glowing pill of the accent; their header bars (the cases view, public Admin, the LB console, the sign-in header) the
   same panel across; the page header a band on a soft mesh; tiles with an icon chip on a tint by meaning; cards with a
   coloured top edge by section; status as pills with an icon; tables with a sticky tinted header and zebra rows. No
   markup of theirs changes but the views' icons, the theme switch and the sign-in card's illustration; no script. */

/* The sidebar: the dark panel, white words, the current view a glowing pill of the accent (its widths, 232, 250 from 1500
   pixels and 205 to 1180, are the design system's --eo-sidebar-width, which Agent Team's directory takes too). */
.sidebar { color: var(--eo-panel-ink); background: var(--eo-panel); border-right-color: var(--eo-panel-edge); }
.sidebar .brand, .sidebar .brand-title, .console-header h1 { color: var(--eo-panel-strong); }
.sidebar .brand-second { color: var(--eo-panel-muted); }
.brand-mark, .console-mark {
  border: 0; border-radius: 12px; color: #fff; background: var(--eo-gradient);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--eo-panel-icon) 45%, transparent), 0 8px 20px -6px color-mix(in srgb, var(--eo-accent) 70%, transparent);
}
.sidebar :is(.crew-switch label, .nav-label) { color: var(--eo-panel-muted); font-size: 11px; font-weight: 600; letter-spacing: 1.3px; }
.sidebar select { color: var(--eo-panel-ink); background-color: var(--eo-panel-field); border-color: var(--eo-panel-field-line); border-radius: 10px; color-scheme: var(--eo-panel-scheme); }
.sidebar select option { color: var(--eo-panel-ink); background: var(--eo-panel-top); }
.sidebar .follow-button { color: var(--eo-panel-muted); }
.sidebar .follow-button:hover { color: var(--eo-panel-strong); }
.sidebar .follow-button[aria-pressed=true] { color: var(--eo-panel-pressed); }
.sidebar .nav-item { color: var(--eo-panel-ink); border-radius: 10px; }
.sidebar .nav-item > span:first-child { display: inline-grid; place-items: center; color: var(--eo-panel-muted); }
.sidebar .nav-item:hover { color: var(--eo-panel-strong); background: var(--eo-panel-hover); }
.sidebar .nav-item.active { color: var(--eo-panel-strong); background: var(--eo-panel-current); box-shadow: var(--eo-panel-glow); font-weight: 600; }
.sidebar .nav-item.active > span:first-child { color: var(--eo-panel-icon); }
.nav-item .eo-icon { width: 18px; height: 18px; }
/* A crew module's item (portal.js draws a .module-dot before its name): the module icon, in the item's colour. */
.nav-item .module-dot {
  width: 18px !important; height: 18px; margin: 0 1px; border-radius: 0; background: currentColor;
  -webkit-mask: var(--eo-icon-module) center / 18px 18px no-repeat; mask: var(--eo-icon-module) center / 18px 18px no-repeat;
}
.sidebar .nav-item .module-dot { color: var(--eo-panel-muted); }
.sidebar .nav-item.active .module-dot { color: var(--eo-panel-icon); }
.sidebar-footer { border-top-color: var(--eo-panel-line); }
.sidebar .sidebar-footer, .sidebar .sidebar-footer small { color: var(--eo-panel-muted); }
.local-dot, .sidebar .local-dot { background: var(--eo-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--eo-accent) 25%, transparent); }

/* Their header bars (the cases view, public Admin, the LB console's bar, the sign-in header): the same panel across,
   a rule of the accent under it. */
:is(.work-mode .sidebar, .public-monitoring-mode > .sidebar, .lb-console-mode > .sidebar, .console-header) { color: var(--eo-panel-ink); background: var(--eo-panel-bar); border-bottom-color: var(--eo-accent); }
:is(.work-mode, .public-monitoring-mode) .brand-mark { border: 0; border-radius: 12px; background: var(--eo-gradient); }
.work-mode .brand-second, .public-monitoring-mode .brand-second, .console-header .subtitle, .welcome .console-header .subtitle { color: var(--eo-panel-muted); }
:is(.work-mode, .public-monitoring-mode, .lb-console-mode) .sidebar :is(.crew-switch label, .nav-label) { color: var(--eo-panel-muted); font-size: 11px; }
.work-mode .nav-item { color: var(--eo-panel-ink); border-color: transparent; border-radius: 999px; }
.work-mode .nav-item:hover { color: var(--eo-panel-strong); background: var(--eo-panel-hover); }
.work-mode .nav-item.active { color: var(--eo-panel-strong); background: var(--eo-panel-current); border-color: transparent; box-shadow: var(--eo-panel-glow); }
.work-mode .module-dot { background: currentColor; }
.work-mode .crew-switch select, .lb-console-mode .crew-switch select, .public-monitoring-mode .crew-switch select { color: var(--eo-panel-ink); }
.local-badge { color: #3b2a00; background: #fcd34d; border-radius: 999px; }

/* The top bar: frosted surface, the crew in ink, a gap between its left block and the account's. */
.topbar { gap: 16px; background: var(--eo-topbar); border-bottom-color: var(--eo-line); -webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px); }
/* While a menu of the top bar is open (the theme picker's, the menu of modes), the bar paints over the page, so the
   page header's band (a positioned box after it) never covers the open menu; nothing moves. */
.topbar:has([aria-expanded="true"]) { position: relative; z-index: 20; }
.breadcrumb { color: var(--eo-muted); }
.slash { color: var(--eo-control); }
#crew-label { color: var(--eo-ink); font-weight: 600; }
.environment { color: var(--eo-muted); background: var(--eo-surface-2); border-color: var(--eo-line); border-radius: 6px; }
/* The top bar holds the switch, the theme switch, the theme picker and their account's controls on one line: tighter
   gaps (8 pixels to 1180, where the picker's 34 pixels would push the account's last label past the edge), no wrapped
   button words, the crew's name on one line. */
.account { gap: 10px; }
.account .button, #crew-label { white-space: nowrap; }
@media (max-width: 1499px) { .topbar { padding: 0 28px; } }
/* The account's buttons in the top bar: the one scale's height, size and weight, a little narrower. */
.account .button { padding: 7px 12px; }
/* A laptop's top bar: the crew's name without "Workspace /". */
@media (max-width: 1180px) {
  .topbar .breadcrumb, .topbar .breadcrumb + .slash { display: none; }
}
/* The environment's label stays one line (shortened with an ellipsis where the crews' bar is narrow); from 1181
   pixels the left block keeps one line too: the switch, "Workspace /" and the crew's name side by side, the name
   shortened with an ellipsis before anything wraps (narrower, the switch's "Modes" button stands over the name). */
.environment { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1180px) { #shell .account { gap: 8px; } #shell .account .environment { max-width: 132px; } }
/* Up to 1599 pixels the environment's label gives way before the crew's name does (the themes' review, F13: the
   picker's 34 pixels came off the name): the demo's long "LOCAL DEMO · SYNTHETIC DATA" is shortened, the deployed
   portal's "Shared portal" fits as it is. */
@media (min-width: 1181px) and (max-width: 1599px) { #shell .account .environment { max-width: 112px; } }
@media (min-width: 1181px) {
  .topbar > div:first-child { display: flex; align-items: center; min-width: 0; }
  .topbar > div:first-child > :not(#crew-label) { flex-shrink: 0; white-space: nowrap; }
  #crew-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}
.text-button { color: var(--eo-link); border-radius: 6px; }
.text-button:hover { background: var(--eo-brand-wash); }

/* The page header: a band on the soft mesh, the title in the Display size. */
.page-heading { position: relative; padding: 24px 28px; border: 1px solid var(--eo-band-line); border-radius: var(--eo-radius-card); background: var(--eo-band); box-shadow: var(--eo-shadow-1); }
.page-heading h1, .public-monitoring-mode .page-heading h1 { margin: 0 0 6px; color: var(--eo-ink); font-family: var(--eo-display); font-size: 30px; font-weight: 600; line-height: 36px; letter-spacing: -.4px; }
.page-heading .subtitle { color: var(--eo-muted); font-size: 14px; }
.eyebrow { display: inline-block; width: fit-content; padding: 2px 10px; border-radius: 999px; color: var(--eo-brand-ink); background: var(--eo-brand-soft); font-size: 11px; font-weight: 600; letter-spacing: 1.2px; line-height: 16px; }
.work-mode .page-heading { padding: 16px 20px; }
.work-mode .page-heading h1 { font-size: 28px; line-height: 34px; margin-bottom: 2px; }
/* The freshness line under the band: a chip with its dot. */
.freshness { width: fit-content; max-width: 100%; padding: 4px 12px 4px 10px; border: 1px solid var(--eo-line); border-radius: 12px; color: var(--eo-muted); background: var(--eo-surface); font-size: 12px; line-height: 18px; box-shadow: var(--eo-shadow-1); }
.freshness:empty { display: none; }
.freshness-dot { flex-shrink: 0; width: 8px; height: 8px; background: var(--eo-ok-mark); box-shadow: 0 0 0 3px color-mix(in srgb, var(--eo-ok-mark) 18%, transparent); }
.freshness-dot.warning { background: var(--eo-warn-mark); box-shadow: 0 0 0 3px color-mix(in srgb, var(--eo-warn-mark) 20%, transparent); }

/* KPI tiles: a tint by meaning, an icon chip in the corner, the figure in the Display size. A tile without a meaning
   (a count) has the neutral chip with the list glyph, never a trend, so it never reads as "good"; Needs attention
   (.attention) warns. The figure is in the ink on every tile: the tone carries the meaning. */
.stats { gap: 16px; }
.stat { position: relative; overflow: hidden; border: 1px solid var(--eo-line); border-radius: var(--eo-radius-card); background: linear-gradient(160deg, var(--eo-neutral-tint), var(--eo-surface) 72%); box-shadow: var(--eo-shadow-1); }
.stat::before { content: ""; position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 12px; background: var(--eo-neutral-bg); }
.stat::after {
  content: ""; position: absolute; top: 25px; right: 25px; width: 18px; height: 18px; background: var(--eo-neutral-ink);
  -webkit-mask: var(--eo-icon-list) center / 18px 18px no-repeat; mask: var(--eo-icon-list) center / 18px 18px no-repeat;
}
.stat-label { padding-right: 44px; color: var(--eo-muted); font-size: 12px; font-weight: 600; }
.stat-value { color: var(--eo-ink); font-family: var(--eo-display); font-size: 32px; font-weight: 600; line-height: 38px; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.stat-caption { color: var(--eo-muted); font-size: 12px; }
.stat.attention { background: linear-gradient(160deg, var(--eo-warn-tint), var(--eo-surface) 72%); }
.stat.attention::before { background: var(--eo-warn-bg); }
.stat.attention::after { background: var(--eo-warn-ink); -webkit-mask-image: var(--eo-icon-warning); mask-image: var(--eo-icon-warning); }
.stat.attention .stat-value { color: var(--eo-ink); }

/* Cards: radius 16, a soft shadow, a 3-pixel top edge, the title with the icon of what the card holds. A card of
   content takes the palette's accent; the status colours (blue running, violet dry run, ...) are kept for status, so a
   card never borrows one as decoration (round 2's review, F5). */
.card, .boundary-card { --eo-card-accent: var(--eo-accent); --eo-card-icon: var(--eo-icon-layers); border: 1px solid var(--eo-line); border-top: 3px solid var(--eo-card-accent); border-radius: var(--eo-radius-card); background: var(--eo-surface); box-shadow: var(--eo-shadow-1); }
.work-card { --eo-card-icon: var(--eo-icon-cases); }
.right-column .card { --eo-card-icon: var(--eo-icon-instances); }
.boundary-card { background: linear-gradient(160deg, var(--eo-brand-wash), var(--eo-surface) 70%); }
.workflow-status-card { --eo-card-icon: var(--eo-icon-monitor); }
.monitor-status-card { --eo-card-icon: var(--eo-icon-clock); }
.activity-card { --eo-card-icon: var(--eo-icon-trend); }
.source-card { --eo-card-icon: var(--eo-icon-link); }
.card-header h2, .boundary-card h2 { display: flex; align-items: center; gap: 10px; color: var(--eo-ink); }
.card-header h2::before {
  content: ""; flex: none; width: 18px; height: 18px; background: var(--eo-card-accent);
  -webkit-mask: var(--eo-card-icon) center / 18px 18px no-repeat; mask: var(--eo-card-icon) center / 18px 18px no-repeat;
}
.card-header p { color: var(--eo-muted); }
.boundary-icon { color: var(--eo-brand-ink); background: var(--eo-brand-soft); border-radius: 10px; }
.boundary-card p, .boundary-card .boundary-small { color: var(--eo-muted); }
.boundary-card .boundary-small { border-color: var(--eo-line); }
.count, .work-mode .count { color: var(--eo-neutral-ink); background: var(--eo-neutral-bg); border-radius: 999px; font-weight: 600; }
.publisher { border-color: var(--eo-line); }

/* Tables: a sticky tinted header, zebra rows, a row's hover. */
th { position: sticky; top: 0; z-index: 1; color: var(--eo-muted); background: var(--eo-surface-2); border-color: var(--eo-line); font-weight: 600; letter-spacing: .9px; }
td { color: var(--eo-ink); border-color: var(--eo-line); }
.table-scroll tbody tr:nth-child(even) > td { background: var(--eo-zebra); }
.table-scroll tbody tr:hover > td { background: var(--eo-brand-wash); }

/* Status pills: an icon and a word on the meaning's colours (the same vocabulary as the PR validation mode). */
.badge { gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; font-weight: 600; color: var(--eo-neutral-ink); background: var(--eo-neutral-bg); }
.badge:before {
  width: 12px; height: 12px; border-radius: 0; background: currentColor;
  -webkit-mask: var(--eo-icon-dot) center / 12px 12px no-repeat; mask: var(--eo-icon-dot) center / 12px 12px no-repeat;
}
:is(.shell, dialog) .badge.healthy, :is(.shell, dialog) .badge.complete { color: var(--eo-ok-ink); background: var(--eo-ok-bg); }
:is(.shell, dialog) .badge.running { color: var(--eo-run-ink); background: var(--eo-run-bg); }
:is(.shell, dialog) :is(.badge.attention, .badge.pending, .badge.stale) { color: var(--eo-warn-ink); background: var(--eo-warn-bg); }
:is(.shell, dialog) .badge.failure { color: var(--eo-bad-ink); background: var(--eo-bad-bg); }
:is(.shell, dialog) .badge.unknown { color: var(--eo-neutral-ink); background: var(--eo-neutral-bg); }
.badge:is(.healthy, .complete):before { -webkit-mask-image: var(--eo-icon-check); mask-image: var(--eo-icon-check); }
.badge.running:before { -webkit-mask-image: var(--eo-icon-running); mask-image: var(--eo-icon-running); }
.badge.attention:before { -webkit-mask-image: var(--eo-icon-warning); mask-image: var(--eo-icon-warning); }
.badge:is(.pending, .stale):before { -webkit-mask-image: var(--eo-icon-clock); mask-image: var(--eo-icon-clock); }
.badge.failure:before { -webkit-mask-image: var(--eo-icon-cross); mask-image: var(--eo-icon-cross); }

/* Buttons and fields: the design system's one button scale (portal-theme.css: one height, size and weight in every
   mode) and one hierarchy (the colour pass, 2026-11-26, as in the PR validation mode): primary the brand's solid fill
   with a soft glow on hover, secondary outlined (the brand's wash and line on hover), pressed one step further; a
   clear focus. */
.button, .welcome .button, .work-mode .secondary {
  min-height: var(--eo-button-height); padding: var(--eo-button-padding); border-radius: var(--eo-button-radius); font-size: var(--eo-button-size);
  font-weight: var(--eo-button-weight); line-height: var(--eo-button-line);
}
.button:hover { filter: none; }
.primary { color: #fff; background: var(--eo-brand); border-color: var(--eo-brand); box-shadow: var(--eo-shadow-1), inset 0 1px 0 rgba(255, 255, 255, .14); }
.primary:hover { background: var(--eo-brand-strong); border-color: var(--eo-brand-strong); box-shadow: var(--eo-glow); }
.primary:active { background: var(--eo-brand-strong); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .28); }
.secondary, .work-mode .secondary { color: var(--eo-ink); background: var(--eo-surface); border-color: var(--eo-control); box-shadow: var(--eo-shadow-1); }
.secondary:hover { color: var(--eo-brand-ink); background: var(--eo-brand-wash); border-color: var(--eo-brand-ink); }
.secondary:active { color: var(--eo-brand-ink); background: var(--eo-brand-soft); box-shadow: none; }
.text-button:hover, .inline-link:hover, dialog a:hover { color: var(--eo-link-hover); }
select, .search { color: var(--eo-ink); background-color: var(--eo-surface); border-color: var(--eo-control); border-radius: 10px; }
.search input, .work-mode .search input { color: var(--eo-ink); }
.search input::placeholder { color: var(--eo-muted); opacity: 1; }
.search:focus-within, select:focus-visible { outline: 2px solid var(--eo-focus); outline-offset: 2px; box-shadow: var(--eo-focus-glow); }
:is(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--eo-focus); outline-offset: 2px; }
/* On the panel (every sidebar and their header bars) the ring is the panel's own: white on a dark panel, the accent on
   the Windows palette's light one. */
:is(.sidebar, .console-header) :is(a, button, input, select, textarea, summary):focus-visible { outline-color: var(--eo-panel-ring); }
dialog :is(input, textarea, select) { color: var(--eo-ink); background: var(--eo-surface); border: 1px solid var(--eo-control); border-radius: 8px; }
dialog :is(input, textarea):focus-visible { box-shadow: var(--eo-focus-glow); }

/* Disclosures: the design system's chevron before a summary's words, turned down when open (the queue's groups keep
   their own; the PR validation mode draws the same in prval.css); in forced colours the browser's marker comes back. */
:is(#shell, #team-shell) main details:not(.queue-disclosure) > summary { list-style: none; cursor: pointer; }
:is(#shell, #team-shell) main details:not(.queue-disclosure) > summary::-webkit-details-marker { display: none; }
:is(#shell, #team-shell) main details:not(.queue-disclosure) > summary::before {
  content: ""; display: inline-block; width: 14px; height: 14px; margin: 0 6px 0 -2px; vertical-align: -2px; background: currentColor;
  -webkit-mask: var(--eo-icon-chevron) center / 14px 14px no-repeat; mask: var(--eo-icon-chevron) center / 14px 14px no-repeat;
}
:is(#shell, #team-shell) main details[open]:not(.queue-disclosure) > summary::before { transform: rotate(90deg); }
@media (forced-colors: active) {
  :is(#shell, #team-shell) main details:not(.queue-disclosure) > summary { list-style: revert; }
  :is(#shell, #team-shell) main details:not(.queue-disclosure) > summary::before { display: none; }
}

/* Notices, the demo callout, empty states and dialogs. */
.notice { color: var(--eo-warn-ink); background: var(--eo-warn-tint); border-color: var(--eo-warn-bg); border-radius: 12px; box-shadow: inset 4px 0 0 var(--eo-warn-mark); }
.demo-callout, .work-mode .demo-callout { color: var(--eo-run-ink); background: var(--eo-run-tint); border-color: var(--eo-run-bg); border-radius: 12px; }
.demo-callout > span { color: var(--eo-run-ink); background: var(--eo-run-bg); border-radius: 999px; padding: 1px 8px; }
.empty-mark { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; color: var(--eo-brand-ink); background: var(--eo-brand-soft); box-shadow: 0 0 0 8px color-mix(in srgb, var(--eo-accent) 8%, transparent), 0 0 0 16px color-mix(in srgb, var(--eo-accent) 4%, transparent); font-size: 24px; }
.empty h3 { color: var(--eo-ink); }
dialog { color: var(--eo-ink); background: var(--eo-surface); border-color: var(--eo-line); border-radius: var(--eo-radius-card); box-shadow: var(--eo-shadow-4); }
dialog::backdrop { background: rgba(8, 18, 32, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.case-outcome { border-radius: 12px; box-shadow: var(--eo-shadow-1); }

/* The cases view: one raised console, its panes flat inside it; the dark theme's grounds for the rules of theirs
   that name a light colour. */
.work-mode .work-console { overflow: hidden; border-radius: var(--eo-radius-card); box-shadow: var(--eo-shadow-1); }
.work-mode .queue-pane, .work-mode .task-pane { border-top: 0; border-radius: 0; box-shadow: none; }
.work-mode .activity-pane .card { border-radius: 14px; }
.work-mode .task-section { border-radius: 14px; box-shadow: var(--eo-shadow-1); }
.work-mode .queue-item { border-radius: 10px; }
.work-mode .queue-item:hover, .work-mode .queue-item.selected { background: var(--eo-brand-wash); }
.work-mode .task-tab:hover, .work-mode .queue-disclosure > summary:hover, .work-mode .related-report:hover { background: var(--eo-brand-wash); }
.work-mode .task-tab.active { color: var(--eo-brand-ink); border-bottom-color: var(--eo-accent); }
.work-mode .next-action { background: var(--eo-surface-2); }
.work-mode :is(.queue-human-count, .task-stale) { color: var(--eo-warn-ink); }
.work-mode .workflow-step.attention .workflow-step-marker { border-color: var(--eo-warn-mark); color: var(--eo-warn-ink); }
/* (a step's marker in its last state since the colour pass's review: running the running azure, done passed's green,
   blocked amber, failed red, and a step not started or of no known state the neutral grey, so the numbered steps never
   all read as running) */
.work-mode .workflow-step:is(.pending, .unknown) .workflow-step-marker { border-color: var(--eo-neutral-mark); color: var(--eo-neutral-ink); }
.work-mode :is(.draft-label) { color: var(--eo-neutral-ink); background: var(--eo-neutral-bg); }
.work-mode .current-label { color: var(--eo-run-ink); background: var(--eo-run-bg); }
/* (the cases view's state marks, the colour pass's review, H1: running is the portal's one running azure with its glow,
   in every palette; a finished step the passed green; never the palette's brand, which would make running and done
   one colour and change it with the palette) */
.work-mode .phase-row.current .phase-marker { box-shadow: 0 0 0 3px var(--eo-run-bg); }
.work-mode .phase-marker, .report-switcher select { background-color: var(--eo-surface); }
.work-mode :is(.queue-pane, .activity-pane) { background: var(--eo-surface); }
.lb-console, #lb-frame { background: var(--eo-canvas); }
/* The LB console (round 2's review, F2): the standard header band (eyebrow, title, one line, its controls as a raised
   group on the band: the publisher, the freshness and Refresh), the empty state a card with its warning chip and the
   console's frame inside the content's padding; the same ids, so nothing of its script changes. */
.lb-console > .lb-console-heading { flex: none; margin: 20px 24px 0; }
.lb-console-heading > div:first-child { min-width: 0; }
.lb-console-bar { flex: none; justify-content: flex-end; gap: 12px; padding: 6px 6px 6px 16px; color: var(--eo-muted); background: var(--eo-surface); border: 1px solid var(--eo-line); border-radius: 14px; box-shadow: var(--eo-shadow-1); }
.lb-console-bar select { min-width: 200px; }
.lb-console > .notice { position: relative; flex: none; margin: 16px 24px 0; padding: 18px 20px 18px 64px; border-radius: var(--eo-radius-card); font-size: 13px; }
.lb-console > .notice::before { content: ""; position: absolute; top: 50%; left: 18px; width: 32px; height: 32px; margin-top: -16px; border-radius: 10px; background: var(--eo-warn-bg); }
.lb-console > .notice::after {
  content: ""; position: absolute; top: 50%; left: 25px; width: 18px; height: 18px; margin-top: -9px; background: var(--eo-warn-ink);
  -webkit-mask: var(--eo-icon-warning) center / 18px 18px no-repeat; mask: var(--eo-icon-warning) center / 18px 18px no-repeat;
}
.lb-console > #lb-frame { width: calc(100% - 48px); margin: 16px 24px 24px; border: 1px solid var(--eo-line); border-radius: var(--eo-radius-card); box-shadow: var(--eo-shadow-1); }
@media (max-width: 760px) {
  .lb-console > .lb-console-heading, .lb-console > .notice { margin-left: 16px; margin-right: 16px; }
  .lb-console > #lb-frame { width: calc(100% - 32px); margin: 16px; }
  .lb-console-heading { flex-wrap: wrap; }
}
.public-monitoring-mode .card, .public-monitoring-mode .boundary-card { border-radius: var(--eo-radius-card); }

/* The sign-in: a hero card on the canvas's two soft glows, its illustration on the panel's gradient. */
.welcome {
  background: radial-gradient(640px 460px at 30% 34%, color-mix(in srgb, var(--eo-accent) 16%, transparent), transparent 70%),
    radial-gradient(700px 500px at 72% 72%, color-mix(in srgb, var(--eo-brand-2) 12%, transparent), transparent 70%), var(--eo-canvas);
}
.welcome-card { position: relative; border-color: var(--eo-line); border-radius: 20px; background: var(--eo-surface); box-shadow: var(--eo-shadow-4); }
.welcome-card h2 { color: var(--eo-ink); font-family: var(--eo-display); }

/* Motion: a view's content rises 8 pixels in 180 ms when it appears; tiles and cards lift on hover. Nothing moves
   with reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  :is(.page-heading, #stats, #overview-grid, #work-console, .welcome-card) { animation: eo-rise .18s var(--eo-ease) backwards; }
  :is(.stat, .card, .secondary, .primary, .nav-item, .badge) { transition: background-color .12s ease, box-shadow .15s ease, transform .15s ease, color .12s ease; }
  .stat:hover { transform: translateY(-2px); box-shadow: var(--eo-shadow-2); }
  :is(.shell, dialog) .badge.running:before { animation: eo-pulse 1.6s ease-in-out infinite; }
  .work-mode :is(.workflow-dot.running, .activity-event.running:before) { animation: eo-pulse 1.6s ease-in-out infinite; }
}
@media (forced-colors: active) {
  .card, .stat, .boundary-card, .page-heading, .badge, .freshness { border: 1px solid CanvasText; }
  .sidebar .nav-item.active { outline: 2px solid Highlight; }
}
/* The portal's mode switch (Feature crews | PR validation), shown only while a second mode is visible. */
/* Segmented tabs (round 2, 2026-11-26): an inset track with the control line, the current mode the brand gradient
   with a soft glow; the design system's tokens (portal-theme.css), so the switch follows the theme and its palette; the same box sizes
   as before, so the crews' top bars keep their lines. */
.mode-switch { display:inline-flex; align-items:center; gap:0; margin-right:18px; padding:2px; vertical-align:middle; border:1px solid var(--eo-control); border-radius:10px; background:var(--eo-surface-2); }
.mode-switch .mode-link { padding:4px 10px; border-radius:8px; color:var(--eo-ink); background:var(--eo-surface-2); font-size:12px; font-weight:600; line-height:16px; text-decoration:none; white-space:nowrap; }
.mode-switch .mode-link:hover { background:var(--eo-brand-wash); }
.mode-switch .mode-link[aria-current="page"] { color:#fff; background:var(--eo-gradient); box-shadow:0 4px 12px -4px color-mix(in srgb, var(--eo-accent) 60%, transparent); }
.mode-switch .mode-link:focus-visible { outline:2px solid var(--eo-focus); outline-offset:2px; }
/* Below 1440 pixels the overview's and the LB console's top bars have no room for both links: the switch shows the
   other mode only, a little more compact, so their breadcrumb keeps its one line at 1280. */
@media (max-width:1439px) { .mode-switch { margin-right:12px; padding:0; border:0; background:none; } .mode-switch .mode-link { padding:4px 8px; border:1px solid var(--eo-control); background:var(--eo-surface); } .mode-switch .mode-link:hover { background:var(--eo-brand-wash); } .mode-switch .mode-link[aria-current="page"] { display:none; } }
/* Two other modes side by side (a third mode, such as Agent Team) read as one segmented pill: their inner corners
   square and one hairline between them, with no box moved. */
@media (max-width:1439px) { .mode-switch .mode-link:not([aria-current="page"]):has(~ .mode-link:not([aria-current="page"])) { border-top-right-radius:0; border-bottom-right-radius:0; } .mode-switch .mode-link:not([aria-current="page"]) ~ .mode-link:not([aria-current="page"]) { border-left-color:transparent; border-top-left-radius:0; border-bottom-left-radius:0; } }
/* Three modes or more: H1 adds a "Modes" button and puts the links in a list. From 1280 pixels the button is not
   shown and neither the list nor its items draw a box, so the links sit in the switch as above (the same pill, joined
   by their list items); below 1280 pixels, where three links no longer fit the crews' top bars, the switch is the
   button, which opens the list as a menu with the current mode marked. */
.mode-switch .mode-menu { display:none; }
.mode-switch .mode-list, .mode-switch .mode-list > li { display:contents; }
@media (min-width:1280px) and (max-width:1439px) { .mode-switch li:has(> .mode-link:not([aria-current="page"])):has(~ li > .mode-link:not([aria-current="page"])) > .mode-link { border-top-right-radius:0; border-bottom-right-radius:0; } .mode-switch li:has(> .mode-link:not([aria-current="page"])) ~ li > .mode-link:not([aria-current="page"]) { border-left-color:transparent; border-top-left-radius:0; border-bottom-left-radius:0; } }
@media (max-width:1279px) {
  .mode-switch:has(> .mode-menu) { position:relative; }
  .mode-switch .mode-menu { display:inline-flex; align-items:center; gap:8px; margin:0; padding:4px 10px; border:1px solid var(--eo-control); border-radius:10px; color:var(--eo-ink); background:var(--eo-surface); font-size:12px; font-weight:600; line-height:16px; white-space:nowrap; }
  .mode-switch .mode-menu::after { content:""; width:5px; height:5px; margin-top:-3px; border:solid currentColor; border-width:0 1.5px 1.5px 0; transform:rotate(45deg); }
  .mode-switch .mode-menu[aria-expanded="true"]::after { margin-top:3px; transform:rotate(-135deg); }
  .mode-switch .mode-menu:hover, .mode-switch .mode-menu[aria-expanded="true"] { background:var(--eo-brand-wash); }
  .mode-switch .mode-menu:focus-visible { outline:2px solid var(--eo-focus); outline-offset:2px; }
  .mode-switch .mode-list { display:none; }
  .mode-switch .mode-menu[aria-expanded="true"] + .mode-list { display:block; position:absolute; top:calc(100% + 6px); left:0; z-index:30; min-width:200px; margin:0; padding:4px; list-style:none; border:1px solid var(--eo-line); border-radius:12px; background:var(--eo-surface); box-shadow:var(--eo-shadow-3); }
  .mode-switch .mode-list > li { display:block; }
  .mode-switch .mode-list .mode-link { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:8px 12px; border:0; border-radius:8px; color:var(--eo-ink); background:none; box-shadow:none; font-size:13px; line-height:20px; }
  .mode-switch .mode-list .mode-link:hover { background:var(--eo-brand-wash); }
  .mode-switch .mode-list .mode-link[aria-current="page"] { display:flex; color:var(--eo-brand-ink); background:var(--eo-brand-soft); box-shadow:none; }
  .mode-switch .mode-list .mode-link[aria-current="page"]::after { content:""; width:5px; height:10px; margin:-3px 2px 0 0; border:solid currentColor; border-width:0 2px 2px 0; transform:rotate(45deg); }
}
@media (max-width:760px) { .mode-switch { margin-right:8px; } }
