/* CXP-Glass portal — app shell. Brand tokens come from cxp.css. No purple. */
body.app { background: var(--canvas); }
.bar-in { display: flex; align-items: center; justify-content: space-between; min-height: 60px; padding: 0 20px; gap: 16px; }
.who { display: flex; align-items: center; gap: 14px; font-size: 13px; color: rgba(255, 255, 255, .75); }
.who form { margin: 0; }
.btn-link { background: none; border: 0; padding: 0; color: var(--sky); font: inherit; font-weight: 700; cursor: pointer; }
.btn-link:hover { color: var(--cyan); text-decoration: underline; }
.btn-link.danger { color: #B42318; }
.frame { display: grid; grid-template-columns: 264px 1fr; min-height: calc(100vh - 60px); }
.side { background: var(--white); border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 2px; }
.side-h { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 16px 10px 6px; }
.side-h:first-child { margin-top: 0; }
.side a { display: block; padding: 9px 12px; border-radius: 9px; color: var(--navy); text-decoration: none; font-size: 15px; }
.side a:hover { background: var(--canvas); color: var(--blue); }
.side a.on { background: rgba(0, 114, 188, .1); color: var(--blue-deep); font-weight: 700; box-shadow: inset 3px 0 0 var(--blue); }
.main { padding: 28px 32px 56px; min-width: 0; max-width: 1280px; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-h h1 { font: 400 32px/1.15 var(--serif); margin: 2px 0 6px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.eyebrow-dk { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-deep); margin: 0; }
.eyebrow-dk a { color: inherit; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.note { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 15px; }
.note.ok { background: rgba(0, 203, 93, .12); border: 1px solid rgba(0, 203, 93, .4); color: #00582D; }
.note.err { background: rgba(255, 122, 0, .1); border: 1px solid rgba(255, 122, 0, .45); color: #7A3A00; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow); border-top: 3px solid var(--blue); }
.kpi:nth-child(2) { border-top-color: var(--sky); }
.kpi:nth-child(3) { border-top-color: var(--cyan); }
.kpi:nth-child(4) { border-top-color: var(--green); }
.kpi span { display: block; font-size: 13px; color: var(--muted); }
.kpi strong { font: 700 28px/1.2 var(--sans); color: var(--navy); }
.card-p { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); margin-bottom: 18px; }
.card-p.danger { border-color: rgba(255, 122, 0, .6); box-shadow: 0 0 0 3px rgba(255, 122, 0, .12); }
.card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-h h2 { font: 400 21px/1.2 var(--serif); margin: 0; }
.card-h a { font-size: 14px; font-weight: 700; text-decoration: none; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.chart { width: 100%; height: auto; display: block; }
.chart .axis { font: 11px var(--sans); fill: var(--muted); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 0; border-top: 1px solid var(--canvas); }
.list li:first-child { border-top: 0; }
.list code { width: 100%; }
.scroll { overflow-x: auto; }
.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 10px; border-bottom: 1px solid var(--canvas); vertical-align: middle; }
.t tr.dim td { opacity: .55; }
.t .r { text-align: right; font-variant-numeric: tabular-nums; }
code { font: 13px/1.4 Consolas, Menlo, monospace; color: var(--slate); background: var(--canvas); padding: 2px 6px; border-radius: 5px; word-break: break-all; }
.code { font: 700 12px var(--sans); padding: 3px 8px; border-radius: 6px; }
.code.good { background: rgba(0, 203, 93, .14); color: #00733A; }
.code.bad { background: rgba(255, 122, 0, .16); color: #8A4200; }
.pill { display: inline-block; font: 700 12px/1 var(--sans); padding: 5px 10px; border-radius: 999px; letter-spacing: .02em; vertical-align: middle; }
.pill.live { background: rgba(0, 203, 93, .14); color: #00733A; }
.pill.stop { background: rgba(255, 122, 0, .16); color: #8A4200; }
.pill.off { background: var(--canvas); color: var(--muted); border: 1px solid var(--line); }
.grid-c { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.rcard { display: flex; flex-direction: column; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); color: inherit; text-decoration: none; }
a.rcard:hover { border-color: var(--sky); box-shadow: 0 10px 28px rgba(0, 114, 188, .14); }
.rcard-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 17px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(25, 163, 252, .12); color: var(--blue-deep); }
.code-block { background: var(--navy); color: #D8E8F5; padding: 16px 18px; border-radius: 10px; overflow-x: auto; font: 13px/1.6 Consolas, Menlo, monospace; margin: 12px 0; white-space: pre-wrap; word-break: break-all; }
.code-block.select { font-size: 15px; user-select: all; }
input, select { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--navy); min-width: 0; }
input:focus, select:focus { outline: 2px solid var(--sky); outline-offset: 1px; border-color: var(--sky); }
.inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.inline input[name="primary"], .inline input[name="fallback"] { flex: 1 1 220px; }
.check { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); white-space: nowrap; }
.btn-s { padding: 8px 14px; font-size: 13px; border-radius: 8px; background: var(--blue); color: var(--white); border: 0; font-weight: 700; cursor: pointer; }
.btn-s:hover { background: var(--blue-deep); }
button.btn { cursor: pointer; font: inherit; font-weight: 700; }
.btn-danger { background: #FF7A00; color: var(--navy); border: 0; }
.btn-danger:hover { background: #FFC400; }
.pf { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; }
.pf input { width: 92px; }
.policy .ph { display: flex; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.policy .ph span { width: 92px; }
.actions { display: flex; gap: 12px; align-items: center; white-space: nowrap; }
.actions form { margin: 0; }
.actions input { width: 120px; }

/* Router control page */
.jump { display: flex; flex-wrap: wrap; gap: 6px; }
.jump a { font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--blue-deep); text-decoration: none; }
.jump a:hover, .jump a.on { background: var(--blue); color: var(--white); border-color: var(--blue); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 12px; }
.facts div { background: var(--canvas); border-radius: 10px; padding: 10px 14px; }
.facts span { display: block; font-size: 12px; color: var(--muted); }
.facts strong { font-size: 15px; }
.meter { width: 160px; height: 8px; display: inline-block; vertical-align: middle; margin-right: 8px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; margin: 0; }
.seg button { border: 0; background: var(--white); padding: 7px 12px; font: 700 13px var(--sans); color: var(--muted); cursor: pointer; text-transform: capitalize; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--blue); color: var(--white); }
.seg button:hover:not(.on) { background: var(--canvas); color: var(--blue-deep); }
.trip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trip-grid h3, .budget h3, .card-p h3 { font: 700 15px var(--sans); margin: 0 0 8px; }
.row-l { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 0; border-top: 1px solid var(--canvas); }
.inline-1 { display: inline; margin: 0 0 0 8px; }
.add-row { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.budget { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.stack-i { display: flex; flex-direction: column; gap: 10px; }
textarea { font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; resize: vertical; color: var(--navy); }
textarea:focus { outline: 2px solid var(--sky); outline-offset: 1px; }
.result { margin-top: 16px; }
.code-block.light { background: var(--canvas); color: var(--navy); border: 1px solid var(--line); font-family: var(--sans); font-size: 15px; line-height: 1.55; }
.narrow { max-width: 520px; }
.hbars { display: flex; flex-direction: column; gap: 8px; }
.hb { display: grid; grid-template-columns: minmax(120px, 38%) 1fr 64px; gap: 10px; align-items: center; font-size: 14px; }
.hb-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb svg { width: 100%; height: 12px; }
.hb-n { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
@media (max-width: 980px) { .trip-grid { grid-template-columns: 1fr; } }

/* Model picker */
.slot-form { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.pick-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pick-l { width: 64px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
select.picker { flex: 1 1 360px; max-width: 640px; padding: 9px 12px; font-size: 14px; background: var(--white); }
.adv summary { cursor: pointer; font-size: 13px; color: var(--blue); font-weight: 700; }
.adv[open] input { margin-top: 6px; width: 360px; max-width: 100%; }
.add-row select.picker { flex: 1 1 260px; }

/* Test console */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.tabs a { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--white); color: var(--slate); text-decoration: none; font-size: 14px; font-weight: 700; }
.tabs a:hover { border-color: var(--sky); color: var(--blue-deep); }
.tabs a.on { background: var(--slate); border-color: var(--slate); color: var(--white); }
.route-viz { margin: 16px 0 12px; padding: 14px; background: var(--canvas); border: 1px solid var(--line); border-radius: 14px; }
.route-svg { width: 100%; height: auto; display: block; }
.route-svg .d-k { font: 700 12px var(--sans); letter-spacing: .08em; fill: var(--slate); }
.route-svg .d-v { font: 15px var(--sans); fill: var(--navy); }
.route-svg .d-s { font: 14px var(--sans); fill: var(--navy); }

/* Decision trace */
.trace { list-style: none; display: flex; flex-wrap: wrap; gap: 0; margin: 16px 0 0; padding: 0; counter-reset: t; }
.trace li { position: relative; flex: 1 1 150px; padding: 10px 14px 10px 34px; background: var(--white); border: 1px solid var(--line); margin-right: -1px; counter-increment: t; }
.trace li:first-child { border-radius: 10px 0 0 10px; }
.trace li:last-child { border-radius: 0 10px 10px 0; }
.trace li::before { content: counter(t); position: absolute; left: 10px; top: 11px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font: 700 11px var(--sans); color: var(--white); background: var(--green); }
.trace li.warn::before { background: var(--amber); color: var(--navy); }
.trace .tk { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.trace .tv { font-size: 13px; font-weight: 700; color: var(--navy); }

/* Traffic flow map */
.flow-viz { background: var(--canvas); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 20px; }
.flow-svg { width: 100%; height: auto; display: block; }
.flow-svg .f-n { font: 700 13px var(--sans); fill: var(--navy); }
.flow-svg .f-c { font: 12px var(--sans); fill: var(--muted); }
.card-h.sub { margin-top: 6px; }

/* Models */
.ok-card { border-color: rgba(0, 203, 93, .5); box-shadow: 0 0 0 3px rgba(0, 203, 93, .12); }
.ns-h { font: 700 15px var(--sans); margin: 16px 0 8px; display: flex; gap: 10px; align-items: center; }
.meter.wide { width: 100%; height: 10px; margin: 4px 0; }
.cat { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.cat-item { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; }
.cat-item:hover { border-color: var(--sky); }
.cat-item input { margin-top: 3px; accent-color: var(--blue); }
.cat-item:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 114, 188, .14); background: #F7FBFE; }
.cat-c { display: flex; flex-direction: column; gap: 4px; }
.cat-item.off { opacity: .6; cursor: not-allowed; background: var(--canvas); }
.warn-t { color: #8A4200; }
.steps { display: flex; flex-direction: column; gap: 22px; }
.step h3 { display: flex; align-items: center; gap: 10px; font: 700 16px var(--sans); margin: 0 0 12px; }
.sn { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: var(--white); font-size: 13px; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 14px; }
.opts label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--slate); }

/* Admin portal: navy sidebar, distinct badge */
body.admin .side { background: var(--navy); border-right-color: #1B2A44; }
body.admin .side a { color: rgba(255, 255, 255, .82); }
body.admin .side a:hover { background: rgba(25, 163, 252, .12); color: var(--cyan); }
body.admin .side a.on { background: rgba(25, 163, 252, .18); color: var(--white); box-shadow: inset 3px 0 0 var(--sky); }
body.admin .side-h { color: rgba(255, 255, 255, .45); }
.admin-pill { background: var(--amber); color: var(--navy); }
.admin-login { margin: 0; min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--canvas); }
.al-art { position: relative; isolation: isolate; overflow: hidden; color: var(--white); background: var(--navy); display: flex; align-items: center; padding: 48px; }
.al-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, rgba(7, 15, 38, .92), rgba(0, 114, 188, .55)); }
.al-copy { max-width: 460px; }
.al-copy h1 { font: 400 44px/1.1 var(--serif); margin: 0 0 14px; }
.al-copy p { color: rgba(255, 255, 255, .85); }
.al-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.al-tiles div { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; padding: 14px; }
.al-tiles strong { display: block; } .al-tiles span { font-size: 13px; color: rgba(255, 255, 255, .7); }
.al-form { display: grid; place-items: center; padding: 32px 16px; }
.login-card.flat { box-shadow: none; background: transparent; }
@media (max-width: 860px) { .admin-login { grid-template-columns: 1fr; } .al-art { padding: 32px 20px; } }

/* Sign-in */
.login-body { min-height: 100vh; display: grid; place-items: center; position: relative; isolation: isolate; background: var(--navy); padding: 24px 16px; margin: 0; }
.login-body .bg { position: fixed; opacity: .55; }
.login-card { width: min(420px, 100%); background: rgba(255, 255, 255, .97); border-radius: 18px; padding: 32px 30px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.login-card .brand { color: var(--navy); margin-bottom: 22px; }
.login-card .brand-org { color: var(--muted); }
.login-card h1 { font: 400 30px/1.2 var(--serif); margin: 0 0 6px; }
.stack { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.stack label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.stack input { padding: 11px 12px; font-size: 15px; }
.stack .btn { justify-content: center; border: 0; margin-top: 4px; }

@media (max-width: 980px) {
  .frame { grid-template-columns: 1fr; }
  .side { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); }
  .side-h { display: none; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .cols { grid-template-columns: 1fr; }
  .main { padding: 20px 16px 40px; }
}

.h-sub { font: 400 18px var(--sans); color: var(--muted); }

body.admin .t .inline { flex-wrap: nowrap; }

/* Overview: AI Command Center */
.welcome { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius); color: var(--white); background: var(--navy);
  padding: 28px 30px; margin-bottom: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.welcome::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 15, 38, .95) 35%, rgba(7, 15, 38, .35)); }
.welcome .bg { z-index: -2; }
.welcome h1 { font: 400 32px/1.15 var(--serif); margin: 4px 0 6px; }
.welcome p { margin: 0; color: rgba(255, 255, 255, .78); }
.welcome .eyebrow { color: var(--cyan); margin: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.welcome-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.kpis.state .kpi { position: relative; overflow: hidden; padding-bottom: 40px; }
.kpis.state em { display: block; font-style: normal; font-size: 12px; color: var(--muted); margin-top: 2px; }
.delta { display: inline-block; font: 700 12px var(--sans); margin-left: 8px; padding: 2px 7px; border-radius: 999px; vertical-align: middle; }
.delta.up { background: rgba(0, 203, 93, .14); color: #00733A; }
.delta.down { background: rgba(255, 122, 0, .16); color: #8A4200; }
.delta.flat { background: var(--canvas); color: var(--muted); margin-left: 0; }
.spark { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 32px; }
.toplist, .news { list-style: none; margin: 0; padding: 0; }
.toplist li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--canvas); }
.toplist li:first-child { border-top: 0; }
.toplist li div { display: flex; flex-direction: column; min-width: 0; }
.toplist strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news li { padding: 8px 0; border-top: 1px solid var(--canvas); font-size: 14px; }
.news li:first-child { border-top: 0; }
.flow-svg .f-h { font: 700 11px var(--sans); letter-spacing: .1em; fill: var(--muted); }
.flow-svg .f-mid { paint-order: stroke; stroke: var(--canvas); stroke-width: 4px; }

.kpi span.delta { display: inline-block; width: auto; }
.kpis.state .kpi > span:first-child { display: block; }

/* Deploy wizard */
.wsteps { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 18px; }
.wstep { display: flex; gap: 12px; align-items: center; padding: 12px 16px; color: var(--slate); text-decoration: none; background: var(--white); }
.wstep + .wstep { border-left: 1px solid var(--line); }
.wstep.on { background: #E6F2FA; box-shadow: inset 0 -3px 0 var(--blue); }
.wstep.done { background: #E8F8EF; }
.wstep.done .sn { background: var(--green); }
.wstep small { display: block; color: var(--muted); font-size: 12px; }
.wh { font: 700 14px var(--sans); margin: 18px 0 10px; color: var(--slate); }
.cat-item.sel { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 114, 188, .14); background: #F7FBFE; }
a.cat-item { text-decoration: none; color: inherit; }
.chips-l { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-l { padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--slate); text-decoration: none; font-weight: 700; font-size: 14px; }
.chip-l small { font-weight: 400; color: var(--muted); margin-left: 4px; }
.chip-l.on { background: var(--blue); border-color: var(--blue); color: var(--white); }
.chip-l.on small { color: rgba(255, 255, 255, .8); }
.models-pick fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 6px 14px 10px; margin: 14px 0 0; }
.models-pick legend { font: 700 13px var(--sans); padding: 0 6px; color: var(--slate); }
.mrow { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 8px 4px; border-top: 1px solid var(--canvas); cursor: pointer; }
.mrow:first-of-type { border-top: 0; }
.mrow:hover { background: var(--canvas); }
.mrow.off { opacity: .55; cursor: not-allowed; }
.mrow input { accent-color: var(--blue); }
.mname { font-weight: 700; }
.bdg { font-size: 13px; margin-left: 4px; }
.bdg.gated { font: 700 11px var(--sans); padding: 2px 6px; border-radius: 6px; background: rgba(255, 196, 0, .22); color: #6B4E00; }
.wfoot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.summary-chip { background: #E6F2FA; border: 1px solid rgba(0, 114, 188, .3); color: var(--blue-deep); padding: 12px 16px; border-radius: 10px; margin: 6px 0 12px; }
.btn-ghost-dk { color: var(--slate); border: 1px solid var(--line); background: var(--white); }
.btn-ghost-dk:hover { border-color: var(--sky); color: var(--blue-deep); }
.cta-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.cta-card h2 { font: 400 21px var(--serif); margin: 0 0 4px; }

/* AI maintenance */
.maint-set { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 12px 14px; background: var(--canvas); border-radius: 10px; margin: 10px 0; }
.maint-run { margin: 6px 0 12px; }
.maint-run form { margin: 0; }
.ai-say { background: #F0F8FD; border-left: 4px solid var(--sky); padding: 12px 14px; border-radius: 0 10px 10px 0; margin: 8px 0 12px; }
.ai-tag { display: inline-block; font: 700 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--blue-deep); margin-right: 10px; }
.findings { list-style: none; padding: 0; margin: 0 0 14px; }
.findings li { display: grid; grid-template-columns: 74px 1fr; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; background: var(--white); }
.findings li div { display: flex; flex-direction: column; gap: 3px; }
.fsev { font: 700 11px var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 4px 0; border-radius: 6px; text-align: center; align-self: start; }
.findings .act { border-color: rgba(255, 122, 0, .5); } .findings .act .fsev { background: rgba(255, 122, 0, .16); color: #8A4200; }
.findings .advise .fsev { background: rgba(255, 196, 0, .2); color: #6B4E00; }
.findings .ok .fsev { background: rgba(0, 203, 93, .14); color: #00733A; }

.snips details { border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; margin: 8px 0; background: var(--white); }
.snips summary { cursor: pointer; font-weight: 700; color: var(--blue-deep); }
.snips .code-block { margin: 10px 0 4px; }

.range-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: -8px 0 18px; }
.range-custom { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.range-custom label { display: flex; gap: 6px; align-items: center; }

/* Integrations, help, assessment, live view, admin additions */
.pill.warn { background: rgba(255, 196, 0, .2); color: #7A5600; }
.answer { white-space: pre-wrap; background: var(--canvas); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; line-height: 1.55; margin-top: 10px; }
.faq { border-top: 1px solid var(--canvas); padding: 10px 0; }
.faq summary { cursor: pointer; }
.faq p { margin: 8px 0 0; color: var(--slate); }
.prov h2 { display: flex; align-items: center; gap: 10px; }
.prov-dot { width: 12px; height: 12px; border-radius: 50%; background: #5b7083; flex: none; }
.prov-openai .prov-dot { background: #10a37f; } .prov-anthropic .prov-dot { background: #cc785c; } .prov-azure .prov-dot { background: #0078d4; }
.prov-google .prov-dot { background: #4285f4; } .prov-xai .prov-dot { background: #1a1a1a; } .prov-deepseek .prov-dot { background: #4d6bfe; }
.prov-groq .prov-dot { background: #f55036; } .prov-mistral .prov-dot { background: #ff7000; } .prov-cohere .prov-dot { background: #39594d; }
.prov form input { min-width: 0; flex: 1 1 200px; }
.chip-used { background: rgba(0, 114, 188, .16); }
.hb-svg { width: 100%; height: 10px; display: block; }
.sso { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.sso input { flex: 1 1 140px; }
.assess .opts label, .stack label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.kpi em { display: block; font-style: normal; font-size: 12px; color: var(--muted); margin-top: 2px; }
details summary { cursor: pointer; }
@media (max-width: 900px) { .frame { grid-template-columns: 1fr; } .side { flex-direction: row; flex-wrap: wrap; } .cols, .kpis, .trip-grid { grid-template-columns: 1fr; } }
.t .spark { position: static; display: block; width: 140px; height: 28px; }
.stack label.check, .assess label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--slate); }

/* Live traffic map: SVG dots ride the edges (SMIL), edges march (CSS). */
.live-side { display: flex; align-items: center; gap: 14px; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #067647; }
.live-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--green); animation: live-pulse 2s ease-out infinite; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 203, 93, .55); } 70% { box-shadow: 0 0 0 9px rgba(0, 203, 93, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 203, 93, 0); } }
.tm { width: 100%; height: auto; display: block; }
.tm-edge { fill: none; stroke-linecap: round; opacity: .55; stroke-dasharray: 4 9; animation: tm-flow 1s linear infinite; }
@keyframes tm-flow { to { stroke-dashoffset: -13; } }
.tm-node rect:first-child { fill: var(--white); stroke: var(--line); }
.tm-router rect:first-child { stroke: var(--blue); stroke-width: 1.5; }
.tm .tm-t { font: 700 13px var(--sans); fill: var(--navy); }
.tm .tm-s { font: 11.5px var(--sans); fill: var(--muted); }
.tm .tm-h { font: 700 11px var(--sans); letter-spacing: .1em; fill: var(--muted); }
.tm .tm-chip { font: 700 10px var(--sans); letter-spacing: .04em; }
.tm-key { margin: 8px 0 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.k-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); display: inline-block; }
.k-dot.k-err { background: #D92D20; margin-left: 8px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 20px; }
.mb, .sess { padding: 10px 0; border-bottom: 1px solid var(--line); }
.mb:last-child, .sess:last-child { border-bottom: 0; }
.mb-h { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mb-bar { width: 100%; height: 6px; display: block; margin: 8px 0; }
.mb-bg { fill: var(--canvas); }
.mb-fg { fill: var(--green); }
.mb-tags { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.srv-local { background: rgba(0, 203, 93, .14); color: #067647; }
.srv-external { background: rgba(255, 122, 0, .14); color: #B54708; }
.srv-cache { background: rgba(0, 167, 181, .14); color: #0E7090; }
.srv-app { background: rgba(46, 64, 77, .10); color: var(--slate); }
.stream { list-style: none; margin: 0; padding: 0; max-height: 520px; overflow-y: auto; }
.stream li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 13px; }
.stream li.new { animation: st-in .6s ease-out; background: rgba(25, 163, 252, .06); }
@keyframes st-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.st-t { font: 600 12px var(--mono, ui-monospace, monospace); color: var(--muted); }
.st-w { font-weight: 600; color: var(--navy); }
.st-m { flex-basis: 100%; padding-left: 64px; }
@media (prefers-reduced-motion: reduce) {
  .tm-dots { display: none; }
  .tm-edge, .live-dot::before, .stream li.new { animation: none; }
}
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } .st-m { padding-left: 0; } }
.tm.js-live .tm-dots { display: none; }
.live-dot.off { color: var(--muted); }
.live-dot.off::before { background: var(--muted); animation: none; }

/* CXP-Models */
.page-h > .btn { align-self: flex-start; white-space: nowrap; }
.links { display: flex; gap: 16px; flex-wrap: wrap; margin: 8px 0 0; }
.mt { margin-top: 10px; }
.endpoint { display: block; font-size: 12px; word-break: break-all; background: var(--canvas); padding: 6px 8px; border-radius: 6px; }
.t.wl td { vertical-align: top; }
.t.wl .actions { white-space: nowrap; }
.t.wl .actions > a { margin-right: 12px; font-weight: 700; }
.manage { display: inline-block; vertical-align: top; }
.manage summary { cursor: pointer; font-weight: 700; color: var(--blue-deep); list-style: none; }
.manage summary::-webkit-details-marker { display: none; }
.manage summary::after { content: " ▾"; }
.manage[open] { display: block; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); white-space: normal; min-width: 220px; }
.stack-s { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; margin: 0 0 10px; }
.stack-s:last-child { margin-bottom: 0; }

/* ── AI factory assessment: observed report and enterprise dossier ───────── */
.af-runbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow); }
.af-runbar-l { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.af-runbar input[type="date"] { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font: 13px var(--sans); }
.af-preset { font-size: 13px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--blue); color: var(--blue-deep); background: var(--white); text-decoration: none; font-weight: 700; }
.af-preset.on { background: var(--blue); color: var(--white); }
.af-print-hint { flex-basis: 100%; }
.afr { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); margin-bottom: 18px; color: var(--navy); }
.af-brand { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; border-bottom: 3px solid var(--blue); padding-bottom: 12px; margin-bottom: 18px; }
.af-ttl { font: 700 20px var(--sans); }
.af-meta { font-size: 12px; color: var(--muted); text-align: right; }
.af-empty { text-align: center; padding: 30px 10px; }
.af-window { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.af-sec { margin-bottom: 26px; }
.af-sec-h { font: 700 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--blue-deep); border-bottom: 1px solid var(--line); padding-bottom: 6px; margin: 0 0 14px; }
.af-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.af-k { background: #FBFCFE; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; }
.af-k .l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.af-k .v { font: 700 21px/1.25 var(--sans); color: var(--navy); margin-top: 2px; overflow-wrap: anywhere; }
.af-k .s { font-size: 11px; color: var(--muted); }
.af-k .v.acc, .afd .acc { color: var(--blue-deep); }
.af-k .v.grn, .afd .grn, .af-pos { color: #00733A; }
.af-k .v.amb, .afd .amb { color: #B54708; }
.af-k .v.red, .afd .red, .af-neg { color: #B42318; }
.af-text { font-size: 13px; color: var(--muted); line-height: 1.55; }
.af-text strong { color: var(--navy); }
.af-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.af-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.af-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 14px 15px; margin-bottom: 12px; }
.af-card h3 { font: 700 12px var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 9px; }
.af-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; align-items: end; margin-bottom: 12px; }
.af-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 700; color: var(--slate); }
.af-form label.check { flex-direction: row; }
.af-form input[type="number"], .af-form select { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; font: 14px var(--sans); }
.af-diag { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #FBFCFE; margin-bottom: 10px; }
.af-total td { font-weight: 700; }
.af-gr { display: grid; grid-template-columns: 180px 1fr 9rem; gap: 10px; align-items: center; margin-bottom: 8px; font-size: 13px; }
.af-gr .small { text-align: right; }
.af-share { width: 100%; height: 7px; display: block; }
.af-ul { margin: 4px 0 0; padding-left: 18px; font-size: 13px; color: var(--slate); line-height: 1.5; }
.af-ul li { margin-bottom: 3px; }

@media (max-width: 900px) { .af-grid2, .af-grid3 { grid-template-columns: 1fr; } .af-gr { grid-template-columns: 1fr; } .afd-meta { text-align: left; } }
@media print {
  @page { size: A4 portrait; margin: 12mm; }
  body.app { background: #fff; }
  body.app .bar, body.app .side, body.app .page-h, .af-noprint, .af-runbar { display: none; }
  body.app .frame { display: block; }
  body.app .main { padding: 0; max-width: none; }
  .afr { box-shadow: none; border: 0; padding: 0; }
  .af-k, .af-card, .af-diag, .afd-k, .afd-exec, .afd-cf, .afd-phase, .afd-note, .afd-summary, .t tr { break-inside: avoid; }
  .af-sec-h, .afd-sh { break-after: avoid; }
  .af-dossier-wrap { break-before: page; }
  .t thead { display: table-header-group; }
  .afr, .afd-summary, .afd-banner, .afd-role, .af-share { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* ── end AI factory assessment ───────────────────────────────────────────── */
.af-export { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-left: auto; }
.af-export input[type=email] { min-width: 220px; }

/* Overview: My tasks */
.task { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); border-left-width: 4px; margin-bottom: 8px; }
.task p { margin: 2px 0 0; }
.task-warn { border-left-color: #FF7A00; }
.task-info { border-left-color: var(--blue); }
.task-ok { border-left-color: var(--green); }

/* ── Status and performance depth ────────────────────────────────────────── */
.ops-banner { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 18px; font-weight: 700; font-size: 16px; }
.ops-dot { width: 11px; height: 11px; border-radius: 50%; flex: 0 0 auto; background: currentColor; }
.ops-banner.operational { background: rgba(0, 203, 93, .12); border-color: rgba(0, 203, 93, .45); color: #00582D; }
.ops-banner.degraded { background: rgba(255, 196, 0, .16); border-color: rgba(255, 196, 0, .6); color: #7A5600; }
.ops-banner.down { background: rgba(255, 122, 0, .14); border-color: rgba(255, 122, 0, .6); color: #8A4200; }
.kpi em { display: block; font-style: normal; margin-top: 2px; }
.ops-sub { font: 700 15px var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 26px 0 10px; }
.ops-mem { min-width: 180px; }
.ops-nodes { display: grid; gap: 14px; margin: 6px 0 10px; }
.ops-node-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.ops-node-v { margin-left: auto; }
.ops-slice { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--canvas); border: 1px solid var(--line); color: var(--muted); }
.ops-slice.used { background: rgba(25, 163, 252, .12); border-color: transparent; color: var(--blue-deep); }
.ops-slice.full { background: rgba(255, 122, 0, .14); border-color: transparent; color: #8A4200; }
.ops-lb { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.ops-slot { background: var(--canvas); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 10px; }
.ops-slot-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.ops-slot .inline { margin-top: 8px; }
.ops-slot input[name="targets"] { flex: 1 1 260px; font-family: ui-monospace, monospace; font-size: 13px; }
.ops-target { font-family: ui-monospace, monospace; font-weight: 400; }
@media (max-width: 560px) { .ops-node-v { margin-left: 0; } }
/* ── end status and performance depth ────────────────────────────────────── */

/* ── Billing and CXP-Meter depth ─────────────────────────────────────────── */
.kpis.money-kpis { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.card-h .money-gran { margin: 0; }
.money-rank .hb { grid-template-columns: minmax(120px, 40%) 1fr 84px; }
.money-legend { display: flex; align-items: center; gap: 6px 10px; margin: 6px 0 0; }
.money-key { display: inline-block; width: 18px; height: 0; border-top: 3px solid #0072BC; vertical-align: middle; }
.money-key.peak { border-top: 3px dashed #00A7B5; margin-left: 10px; }
/* ── end Billing and CXP-Meter depth ─────────────────────────────────────── */

/* ── Router depth: list banner, card stats, detail panels ─────────────────── */
.note.warn { background: rgba(255, 196, 0, .12); border: 1px solid rgba(255, 196, 0, .55); color: #5A4300; }
.note.degraded .small { display: block; margin-top: 4px; }
.degraded-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.degraded-list li { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.degraded-list code { font-size: 12px; }
.rcard-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rcard-stats span { background: var(--canvas); border-radius: 8px; padding: 6px 10px; min-width: 0; }
.rcard-stats small { display: block; font-size: 11px; color: var(--muted); }
.rcard-stats strong { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.effort-form select { max-width: 190px; }
.opts-set { padding: 12px 14px; background: var(--canvas); border-radius: 10px; margin: 10px 0; gap: 10px 16px; }
.opt-n { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--slate); }
.opt-n input[type=number] { width: 96px; }
.file-l { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.file-l input[type=file] { max-width: 220px; font-size: 13px; }
.t.calls td { font-size: 13px; }
.danger-zone { margin-top: 18px; padding: 14px 16px; border: 1px solid rgba(255, 122, 0, .45); border-radius: 10px; background: rgba(255, 122, 0, .05); }
.danger-zone h3 { margin: 0 0 6px; font-size: 16px; }
.danger-zone input[name=confirm] { min-width: 220px; }
@media (max-width: 640px) { .rcard-stats { grid-template-columns: 1fr; } .opt-n, .file-l { flex-wrap: wrap; } }
/* ── end router depth ─────────────────────────────────────────────────────── */

/* CXP-Insight: rails per router, heatmap, event filters */
.heat { width: 100%; height: auto; display: block; }
.rail-acc { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; }
.rail-acc > summary { cursor: pointer; display: flex; gap: 8px; align-items: center; }
.rail-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 300px); gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.rail-row:has(.rail-tune[open]) { align-items: start; }
.rail-row:first-of-type { border-top: 0; }
.rail-row > .pill { justify-self: start; }
.rail-tune { justify-self: end; }
.rail-tune[open] { justify-self: stretch; }
.rail-tune summary { text-align: right; }
@media (max-width: 720px) { .rail-row { grid-template-columns: 1fr; } .rail-tune { justify-self: start; } .rail-tune summary { text-align: left; } }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin: 0; }
.seg button { border: 0; background: var(--white); padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; color: var(--slate); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--blue); color: var(--white); font-weight: 700; }
.rail-tune summary { cursor: pointer; font-size: 13px; color: var(--blue-deep); }
.rail-tune textarea { width: 100%; font: 12px var(--mono, ui-monospace, monospace); }
.filters { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 10px; }
.filters label { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); }
.heat .axis { font: 8px var(--sans); fill: var(--muted); }

/* ── Namespaces, dynamic endpoints, fine-tuning depth ─────────────────────── */
.ns-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.ns-tile { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow); border-top: 3px solid var(--blue); }
.ns-tile span { display: block; font-size: 12px; color: var(--muted); }
.ns-tile strong { font: 700 22px/1.25 var(--sans); color: var(--navy); }
.ns-tile em { display: block; font-style: normal; font-size: 12px; font-weight: 400; color: var(--muted); }
.ns-tile strong em { display: inline; }
.ns-kpis, .ft-kpis { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.ft-template { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.ft-template h3 { margin: 0 0 4px; font-size: 15px; }
.ft-template .code-block { font-size: 12px; max-height: 160px; overflow: auto; }
.ft-progress { width: 100%; height: 10px; margin-top: 12px; accent-color: var(--blue); }
.t.kv th { text-align: left; font-weight: 400; color: var(--muted); width: 50%; }
.dyn-actions { margin-top: 14px; flex-wrap: wrap; }
/* ── end namespaces, dynamic endpoints, fine-tuning depth ─────────────────── */

/* ── users, integrations and Glass Code depth ─────────────────────────────── */
.user-acts { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.user-act > summary { list-style: none; cursor: pointer; display: inline-block; }
.user-act > summary::-webkit-details-marker { display: none; }
.user-act[open] { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas); }
.user-act input { min-width: 200px; }
.user-block { margin: 4px 0 0; max-width: 280px; overflow-wrap: anywhere; }
.int-h { margin: 22px 0 10px; font-size: 18px; }
.code-ref td:first-child { white-space: nowrap; }
.code-kpis { margin-bottom: 12px; }
@media (max-width: 640px) { .user-act input { min-width: 0; width: 100%; } .code-ref td:first-child { white-space: normal; } }
/* ── end users, integrations and Glass Code depth ─────────────────────────── */

/* ── Support depth: log analysis, Ops Assistant, agent quick-start ───────── */
.la-sources { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.la-src { display: flex; flex-direction: column; gap: 8px; background: var(--canvas); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.la-src h3 { margin: 0; font-size: 15px; }
.la-src p { margin: 0; }
.la-samples { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.la-editor { width: 100%; font: 13px/1.5 Consolas, Menlo, monospace; white-space: pre; overflow-wrap: normal; overflow-x: auto; }
.la-tasks { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 10px; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; }
.la-tasks legend { font-size: 14px; font-weight: 700; padding: 0 4px; }
.stack .la-task { flex-direction: row; align-items: center; gap: 6px; font-weight: 400; }
.kpis.ops-ctx, .kpis.agent-kpis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.ops-vpn { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 6px; }
tr.ops-bad td:first-child { box-shadow: inset 3px 0 0 #FF7A00; }
.agent-snips { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.agent-snips h3 { margin: 0 0 4px; font-size: 15px; }
.agent-snips .code-block { font-size: 13px; }
.facts.agent-share { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.facts.agent-share strong { font-weight: 400; line-height: 1.5; }
@media (max-width: 640px) { .la-sources, .agent-snips { grid-template-columns: 1fr; } }
/* ── end support depth ────────────────────────────────────────────────────── */

/* ── Admin depth: overview, billing breakdown, namespace budget ─────────── */
.ov-res { display: grid; gap: 10px; }
.ov-res-row { display: grid; grid-template-columns: minmax(120px, 30%) 160px 1fr; align-items: center; gap: 6px 12px; margin: 0 0 10px; }
.ov-res-row .meter { margin-right: 0; }
.list li.ov-act { justify-content: space-between; flex-wrap: nowrap; }
.list li.ov-act > span:last-child { white-space: nowrap; }
.bill-break tr.bill-client td { border-top: 2px solid var(--canvas); }
.bill-break td.bill-ns { padding-left: 28px; }
@media (max-width: 640px) {
  .ov-res-row { grid-template-columns: 1fr; }
  .list li.ov-act { flex-wrap: wrap; }
}
/* ── end admin depth ─────────────────────────────────────────────────────── */

/* ── Fleet reporting and sustainability ──────────────────────────────────── */
.kpis.rc-kpis { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.kpi .rc-sub, .facts .rc-sub { display: block; font-size: 12px; font-style: normal; color: var(--muted); margin-top: 2px; }
.kpi .rc-delta { font: 700 13px var(--sans); font-style: normal; color: var(--muted); vertical-align: middle; }
.rc-tabs { margin-bottom: 16px; }
.rc-note { margin: 10px 0 0; }
.rc-empty { margin: 8px 0; }
.rc-eq { margin: 0 0 18px; }
.rc-legend { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
.rc-legend li { display: inline-flex; align-items: center; gap: 6px; }
.fmap { width: 100%; height: auto; display: block; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.fm-link { fill: none; stroke: #19A3FC; opacity: .7; stroke-dasharray: 3 3; }
.fm-head { fill: #19A3FC; }
.fm-flow { fill: #00DFED; }
.fm-site circle { fill: #00CB5D; fill-opacity: .8; stroke: var(--white); }
.fm-site text { fill: var(--ink, currentColor); font-weight: 600; paint-order: stroke; stroke: var(--white); stroke-width: .6px; }
.fm-warn circle { fill: #FFC400; } .fm-bad circle { fill: #E5484D; } .fm-off circle { fill: #8a9ab3; }
.fm-hub circle { stroke: #0072BC; }
.fm-sites { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 16px; font-size: 13px; }
.fm-sites li { display: flex; gap: 8px; align-items: baseline; }
@media (prefers-reduced-motion: reduce) { .fm-flow { display: none; } }
.rc-legend strong { font-weight: 400; color: var(--muted); }
.rc-sw { width: 10px; height: 10px; flex: none; }
.rc-donut { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.rc-donut > svg { width: 140px; height: 140px; flex: none; }
.rc-donut .rc-legend { flex-direction: column; margin: 0; }
.rc-method p { margin: 0 0 8px; line-height: 1.55; }
@media (max-width: 640px) { .rc-donut { flex-direction: column; align-items: flex-start; } }
/* ── end fleet reporting and sustainability ──────────────────────────────── */

/* ── Admin depth: tenant detail, insight, rails, audit, backends ─────────── */
.td-facts strong { overflow-wrap: anywhere; }
.td-notes { margin: 10px 0 0; white-space: pre-wrap; }
.td-markup { width: 90px; }
.ins-filters select { min-width: 120px; }
.estop-form input { min-width: 200px; }
.pol-modes { border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px 10px; display: flex; gap: 18px; flex-wrap: wrap; margin: 0; }
.pol-modes legend { font-size: 13px; font-weight: 700; padding: 0 4px; }
.pol-cfg { width: 100%; font: 13px/1.5 Consolas, Menlo, monospace; white-space: pre; overflow-x: auto; }
.pol-order { width: 72px; }
.audit-det { display: block; max-width: 420px; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 640px) { .estop-form input, .ins-filters select { min-width: 0; width: 100%; } .audit-det { max-width: 100%; } }
/* ── end admin depth ──────────────────────────────────────────────────────── */

/* ── Workload test: connection details, snippets, multi-turn chat ────────── */
.wt-conn code, .wt-routes code { overflow-wrap: anywhere; font-size: 13px; }
.wt-chat { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wt-chat li { max-width: 85%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: var(--canvas); }
.wt-chat li.wt-user { align-self: flex-end; background: rgba(25, 163, 252, .08); border-color: rgba(25, 163, 252, .35); }
.wt-chat li.wt-assistant { align-self: flex-start; }
.wt-who { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.wt-msg { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.wt-think { margin-top: 10px; border: 1px dashed var(--line); border-radius: 10px; padding: 8px 14px; }
.wt-think summary { cursor: pointer; font-weight: 700; color: var(--muted); }
.wt-think .wt-msg { margin-top: 8px; font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .wt-chat li { max-width: 100%; } }
/* ── end workload test ────────────────────────────────────────────────────── */

/* ── Admin depth: GPU performance, cluster detail, VLAN pool ─────────────── */
.perf-h { font-size: 18px; margin: 26px 0 12px; }
.cd-facts strong { overflow-wrap: anywhere; }
td.pool-u { white-space: nowrap; }
td.pool-u .meter { width: 90px; }
td.vlan-notes { max-width: 360px; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 640px) { td.pool-u .meter { width: 56px; } td.vlan-notes { max-width: 100%; } }
/* ── end admin depth: GPU performance, cluster detail, VLAN pool ─────────── */

/* ── Tenant observability export (Integrations) ──────────────────────────── */
.tobs h3 { margin: 18px 0 8px; font-size: 15px; }
.tobs-form { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.tobs-form .btn { align-self: flex-start; }
.tobs-check { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.tobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.tobs-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.tobs-grid .tobs-wide { grid-column: 1 / -1; }
.tobs-acts { margin-top: 12px; flex-wrap: wrap; }
.tobs-acts input { width: 220px; }
td.tobs-err { max-width: 480px; overflow-wrap: anywhere; }
@media (max-width: 640px) { .tobs-grid { grid-template-columns: 1fr; } .tobs-acts { white-space: normal; } .tobs-acts input { width: 100%; } td.tobs-err { max-width: 100%; } }
/* ── end tenant observability export ─────────────────────────────────────── */
.ft-inline { border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; background: var(--canvas); }
.ft-inline .ft-templates { margin-top: 6px; }

/* Full fleet report: every view on one page, printable. */
.rc-part { margin-top: 28px; }
.rc-part-h { font-size: 22px; margin: 0 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.rc-full .rc-tabs { display: none; }
@media print {
  .bar, .side, .jump, form { display: none !important; }
  .frame, .main { display: block; padding: 0; margin: 0; }
  .rc-part { break-before: page; }
  .rc-part:first-child { break-before: auto; }
  .card-p { break-inside: avoid; box-shadow: none; }
  .fm-flow { display: none; }
}

/* ── Seven-module menu ─────────────────────────────────────────────────────── */
.side a.mod { display: flex; gap: 10px; align-items: baseline; font-weight: 600; }
.side a.mod.open { color: var(--blue-deep); }
.side .mod-tools { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 8px 18px; padding-left: 10px; border-left: 2px solid var(--line); }
.side .mod-tools a { font-size: 14px; padding: 6px 10px; }

/* ── Module pages: Inputs → Assess → Outcomes ──────────────────────────────── */
.mod-hero { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 30px; margin-bottom: 26px; border-top: 4px solid var(--blue); }
.mod-hero h1 { font: 400 34px/1.15 var(--serif); margin: 4px 0 6px; }
.mod-q { font: italic 21px/1.35 var(--serif); color: var(--navy); margin: 0 0 8px; }
.mod-purpose { color: var(--muted); max-width: 78ch; margin: 0 0 18px; }
.mod-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mod-flow a { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--canvas); border: 1px solid var(--line); color: var(--navy); text-decoration: none; font-weight: 700; font-size: 17px; }
.mod-flow a:hover { border-color: var(--blue); }
.mod-flow a span, .mod-sec h2 > span { grid-row: span 2; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font: 700 14px/1 var(--sans); }
.mod-flow small { font-weight: 400; font-size: 13px; color: var(--muted); }
.mod-sec { margin: 0 0 34px; scroll-margin-top: 16px; }
.mod-sec > h2 { display: flex; align-items: center; gap: 12px; font: 400 26px/1.2 var(--serif); margin: 0 0 16px; }
.mod-sec > h2 small { font: 400 14px/1 var(--sans); color: var(--muted); }
.mod-sub { font-size: 16px; margin: 22px 0 10px; }
.io-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.io-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); margin: 0; min-width: 0; }
.io-card h3 { font-size: 16px; margin: 0 0 6px; }
.io-card p { margin: 0; color: var(--muted); }
.io-card.out { border-left: 4px solid var(--green); }
.io-card legend { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; font-weight: 700; font-size: 16px; padding: 0; }
.io-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); margin-top: 10px; }
.io-form label small { font-size: 12px; }
.io-form input:not([type=checkbox]), .io-form select { width: 100%; min-width: 0; box-sizing: border-box; font: 15px var(--sans); color: var(--navy); padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.io-2 > label { min-width: 0; }
.io-form label.chk { flex-direction: row; align-items: center; gap: 8px; color: var(--navy); font-size: 14px; }
.io-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.io-measured { background: var(--canvas); border-radius: 10px; padding: 10px 12px; margin: 10px 0 0 !important; color: var(--navy) !important; font-size: 14px; }
.io-save { display: flex; gap: 16px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.mod-window { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.mod-window .btn.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.mod-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.mod-steps li { display: flex; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px; box-shadow: var(--shadow); }
.mod-steps li.done { border-top: 3px solid var(--green); }
.mod-steps .n { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--canvas); color: var(--blue); font-weight: 700; font-size: 13px; }
.mod-steps li.done .n { background: var(--green); color: #fff; }
.mod-steps strong { display: block; font-size: 15px; }
.mod-steps em { display: block; font: italic 14px/1.35 var(--serif); color: var(--navy); margin: 2px 0 6px; }
.mod-steps p { margin: 0; font-size: 13px; color: var(--muted); }
.mod-tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.mod-value { margin-top: 18px; padding: 16px 20px; border-radius: 12px; background: var(--navy); color: #fff; font: 400 18px/1.45 var(--serif); }
.mod-value span { display: block; font: 700 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 8px; }

/* The Investment Confidence Case */
.case-verdict { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--blue); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); margin-bottom: 18px; }
.case-verdict.invest { border-left-color: var(--green); }
.case-verdict.cloud { border-left-color: var(--slate); }
.case-verdict p { margin: 0; font: 400 20px/1.4 var(--serif); color: var(--navy); }
.case-tag { font: 700 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; background: var(--canvas); color: var(--blue-deep); white-space: nowrap; }
.case-kpis .kpi small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.case-list { margin: 0; padding-left: 20px; }
.case-list li { margin-bottom: 6px; }
.case-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.case-table th, .case-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.case-table td.dedicated { color: #00582D; font-weight: 700; }
.case-table td.cloud { color: var(--slate); font-weight: 700; }
.case-roadmap { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.case-roadmap li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: start; }
.case-roadmap .ph { font: 700 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); padding-top: 4px; }
.case-roadmap p { margin: 2px 0 0; }
.case-basis summary { cursor: pointer; font-weight: 700; }
.src { font-size: 12px; padding: 3px 8px; border-radius: 999px; background: var(--canvas); white-space: nowrap; }
.src.client { color: var(--blue-deep); }
.src.measured { color: #00582D; }
.src.default { color: var(--muted); }
@media (max-width: 1100px) { .mod-steps { grid-template-columns: 1fr; } .mod-flow { grid-template-columns: 1fr; } .case-verdict { grid-template-columns: 1fr; } }

/* Practice outcome tones, and the Outcomes board on the home page */
.case-verdict.good { border-left-color: var(--green); }
.case-verdict.attention { border-left-color: var(--amber); }
.case-verdict.action { border-left-color: #D9342B; }
.case-verdict.good .case-tag { background: #E3F8EC; color: #00672F; }
.case-verdict.attention .case-tag { background: #FFF6D6; color: #5A4300; }
.case-verdict.action .case-tag { background: #FDE8E7; color: #9B1C15; }
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.board-card { display: flex; flex-direction: column; gap: 10px; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius); padding: 16px 18px; color: var(--navy); text-decoration: none; box-shadow: var(--shadow); }
.board-card:hover { border-color: var(--blue); }
.board-card.good, .board-card.invest { border-top-color: var(--green); }
.board-card.attention, .board-card.hybrid { border-top-color: var(--amber); }
.board-card.action { border-top-color: #D9342B; }
.board-card.cloud { border-top-color: var(--slate); }
.board-card .board-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.board-card .board-h strong { font: 700 15px/1.3 var(--sans); }
.board-card .board-tag { font: 700 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.board-card p { margin: 0; font: 400 15px/1.45 var(--serif); }
.board-card .board-kpi { font-size: 13px; color: var(--muted); }
.board-card .board-kpi b { color: var(--navy); font-size: 16px; }

.af-sec-h .af-q { font: italic 400 15px/1.3 var(--serif); color: var(--muted); margin-left: 8px; }
.af-next { border-left: 4px solid var(--blue); padding-left: 16px; }

/* Loading state while the next page is on its way (public/js/busy.js). */
html.is-busy::before {
  content: ""; position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9999;
  background: linear-gradient(90deg, transparent, var(--sky), var(--cyan), transparent) no-repeat;
  background-size: 40% 100%; animation: busy-bar 1.1s linear infinite;
}
@keyframes busy-bar { from { background-position: -40% 0; } to { background-position: 140% 0; } }
html.is-busy, html.is-busy * { cursor: progress; }
.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.is-loading::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(7, 15, 38, .25); border-top-color: var(--navy); animation: busy-spin .7s linear infinite;
}
@keyframes busy-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  html.is-busy::before { animation: none; background: var(--sky); opacity: .8; }
  .is-loading::after { animation-duration: 2s; }
}
.btn-primary.is-loading::after { border-color: rgba(255, 255, 255, .35); border-top-color: #fff; }
