.reference-example { --ref-blue:#2468e8; --ref-ink:#171b24; --ref-muted:#747d8d; --ref-line:#e5e8ee; --ref-panel:#fff; --ref-canvas:#f3f5f8; color:var(--ref-ink); background:var(--ref-canvas); min-height:calc(100vh - 5rem); }
[data-bs-theme="dark"] .reference-example { --ref-ink:#edf1f7; --ref-muted:#aeb6c5; --ref-line:#343b48; --ref-panel:#1b2029; --ref-canvas:#11151c; }
.reference-example button { font:inherit; }
.reference-example button:focus-visible, .reference-example a:focus-visible { outline:3px solid rgba(36,104,232,.35); outline-offset:2px; }

/* Admin Example 4: operations workspace */
.operations-example { padding:clamp(1rem,2.5vw,2.5rem); }
.ops-shell { max-width:1550px; margin:auto; }
.ops-topbar { position:sticky; top:5.25rem; z-index:1010; display:grid; grid-template-columns:auto minmax(32rem,1fr) auto; align-items:center; gap:clamp(1rem,2vw,2rem); margin-bottom:1rem; padding:.35rem 0; background:var(--ref-canvas); }
.ops-brand, .ops-view-nav, .ops-controls, .ops-rail-group { background:var(--ref-panel); border:1px solid rgba(20,30,45,.035); box-shadow:0 12px 30px rgba(37,46,63,.04); }
.ops-brand { display:flex; align-items:center; gap:.75rem; min-height:3.65rem; padding:.55rem 1rem; border-radius:1.5rem; color:var(--ref-ink); text-decoration:none; font-size:1.05rem; font-weight:650; white-space:nowrap; }
.ops-brand-mark { width:2.25rem; height:2.25rem; border-radius:50%; display:grid; place-items:center; color:var(--ref-blue); background:#e8f0ff; }
.ops-view-nav { display:flex; justify-content:center; padding:.4rem; border-radius:1.6rem; overflow:auto; }
.ops-view-nav button { border:0; color:var(--ref-ink); background:transparent; padding:.75rem 1.1rem; border-radius:1.1rem; white-space:nowrap; }
.ops-view-nav button:hover, .ops-view-nav button.active { color:#fff; background:var(--ref-blue); }
.ops-controls { display:flex; align-items:center; gap:.35rem; padding:.4rem; border-radius:1.6rem; }
.ops-controls button { border:0; background:transparent; color:var(--ref-ink); }
.ops-live { display:flex; align-items:center; gap:.4rem; padding:.65rem .8rem; border-radius:1rem; color:#16804b; background:#dff9e9; font-weight:650; white-space:nowrap; }
.ops-live i { width:.45rem; height:.45rem; border-radius:50%; background:#16a05d; }
.ops-control { display:flex; align-items:center; gap:.45rem; padding:.65rem .7rem; white-space:nowrap; }
.ops-icon-button { width:2.7rem; height:2.7rem; border-radius:.9rem; position:relative; }
.ops-icon-button:hover, .ops-control:hover, .ops-profile:hover { background:var(--ref-canvas); }
.ops-notification-dot { position:absolute; width:.35rem; height:.35rem; border-radius:50%; background:#f05f45; top:.55rem; right:.55rem; }
.ops-profile { display:flex; align-items:center; gap:.65rem; padding:.3rem .55rem; text-align:left; white-space:nowrap; }
.ops-profile > span { display:grid; place-items:center; width:2.5rem; height:2.5rem; border-radius:50%; color:white; background:linear-gradient(145deg,#ffab82,#ef665f); font-weight:700; }
.ops-profile strong { font-size:.8rem; line-height:1.15; }
.ops-profile small { display:block; color:var(--ref-muted); font-weight:400; font-size:.68rem; }
.ops-layout { display:grid; grid-template-columns:4.8rem minmax(0,1fr); gap:1.25rem; align-items:start; }
.ops-rail { position:sticky; top:10.5rem; min-height:calc(100vh - 12rem); display:flex; flex-direction:column; gap:7rem; }
.ops-rail-group { display:grid; gap:.4rem; padding:.45rem; border-radius:1.6rem; }
.ops-rail-main { gap:.65rem; }
.ops-rail button { border:0; width:3.2rem; height:3.2rem; border-radius:1.1rem; color:var(--ref-muted); background:transparent; font-size:1.1rem; }
.ops-rail button:hover { color:var(--ref-blue); background:var(--ref-canvas); }
.ops-rail button.active { color:white; background:var(--ref-blue); box-shadow:0 8px 18px rgba(36,104,232,.22); }
.ops-content { min-width:0; }
.ops-panel-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:2rem; padding:1.8rem; margin-bottom:1.25rem; border-radius:1.6rem; background:var(--ref-panel); box-shadow:0 12px 30px rgba(37,46,63,.035); }
.ops-panel-heading h1, .ops-trace-hero h1 { margin:0; font-size:clamp(1.8rem,3vw,2.65rem); letter-spacing:-.045em; }
.ops-panel-heading p, .ops-trace-hero p { margin:.35rem 0 0; color:var(--ref-muted); }
.ops-heading-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:.6rem; align-items:center; }
.ops-heading-actions button, .ops-map-heading > button, .ops-trace-hero button, .ops-edge-health > button { border:1px solid var(--ref-line); color:var(--ref-ink); background:var(--ref-canvas); padding:.7rem 1rem; border-radius:1rem; }
.ops-heading-actions button:hover, .ops-map-heading > button:hover, .ops-trace-hero button:hover, .ops-edge-health > button:hover { border-color:var(--ref-blue); color:var(--ref-blue); }
.ops-setup { display:inline-flex; align-items:center; gap:.4rem; color:#16804b; background:#dff9e9; border-radius:1rem; padding:.55rem .8rem; font-weight:650; }
.ops-card { min-width:0; background:var(--ref-panel); border:1px solid rgba(20,30,45,.035); border-radius:1.6rem; box-shadow:0 12px 30px rgba(37,46,63,.04); }
.ops-timeline-card { padding:1.5rem; overflow:hidden; }
.ops-timeline-label { display:grid; grid-template-columns:16rem minmax(40rem,1fr); align-items:end; gap:.8rem; font-weight:650; }
.ops-time-row { display:grid; grid-template-columns:repeat(7,1fr); gap:.45rem; }
.ops-time-row b { display:grid; place-items:center; padding:.4rem; border:1px solid var(--ref-line); border-radius:.9rem; color:var(--ref-muted); font-size:.7rem; font-weight:400; }
.ops-time-row small { color:var(--ref-ink); font-size:.9rem; }
.ops-time-row .active { color:white; background:var(--ref-blue); border-color:var(--ref-blue); }
.ops-time-row .active small { color:white; }
.ops-timeline-grid { display:grid; grid-template-columns:16rem minmax(40rem,1fr); gap:.8rem; margin-top:.7rem; }
.ops-agent-list { display:grid; grid-template-rows:repeat(5,4.35rem); gap:.55rem; }
.ops-agent-list > div { display:flex; align-items:center; gap:.8rem; border:1px solid var(--ref-line); border-radius:1rem; padding:.55rem; }
.ops-agent-list span, .ops-trace-path article > span, .ops-detected article > span { width:2.6rem; height:2.6rem; display:grid; place-items:center; border-radius:50%; flex:0 0 auto; }
.ops-agent-list strong { font-size:.9rem; }
.ops-agent-list small, .ops-trace-path small, .ops-edge-list small { display:block; color:var(--ref-muted); font-size:.72rem; font-weight:400; }
.mint { background:#dff9e9; color:#16885a; } .lilac { background:#f0e3ff; color:#864bdf; } .blue { background:#dcecff; color:#2468e8; } .amber { background:#fff2cd; color:#b56d00; } .coral { background:#ffe4df; color:#db4d39; }
.ops-schedule { position:relative; display:grid; grid-template-rows:repeat(5,4.35rem); gap:.55rem; background:repeating-linear-gradient(90deg,transparent 0 calc(14.285% - 1px),var(--ref-line) calc(14.285% - 1px) 14.285%); }
.ops-now-line { position:absolute; z-index:1; top:0; bottom:0; left:58%; border-left:2px dashed var(--ref-blue); }
.ops-activity { position:relative; z-index:2; grid-row:var(--row); align-self:center; display:flex; align-items:center; gap:.65rem; width:var(--width); margin-left:var(--start); height:3.45rem; border-radius:1rem; padding:.45rem .7rem; color:#263042; background:#a8d2ff; box-shadow:0 6px 16px rgba(39,55,85,.08); white-space:nowrap; overflow:hidden; }
.ops-activity.lilac { background:#b99af3; color:#4f238f; } .ops-activity.green, .ops-activity.mint { background:#24c980; color:#0d5637; }
.ops-activity > i { width:2.4rem; height:2.4rem; display:grid; place-items:center; flex:0 0 auto; border-radius:50%; background:rgba(255,255,255,.9); }
.ops-activity span { font-weight:650; }
.ops-activity small { margin-left:auto; padding:.25rem .5rem; border-radius:.8rem; background:rgba(255,255,255,.9); font-weight:650; }
.ops-overview-grid { display:grid; grid-template-columns:1fr 1fr 1.15fr; gap:1.25rem; margin-top:1.25rem; }
.ops-overview-grid > section { padding:1.45rem; }
.ops-card-title { display:flex; justify-content:space-between; align-items:center; gap:1rem; margin-bottom:1rem; }
.ops-card-title h2, .ops-map-card h2, .ops-node-detail h2, .ops-context-comparison h2 { margin:0; font-size:1.45rem; }
.ops-card-title button { border:0; color:var(--ref-muted); background:var(--ref-canvas); border-radius:1rem; padding:.55rem .8rem; }
.ops-next article { border:1px solid var(--ref-line); border-radius:1rem; padding:1rem; margin-top:.7rem; }
.ops-next article.priority { background:#ffd447; border-color:#ffd447; color:#2a271c; }
.ops-next article strong { display:flex; justify-content:space-between; gap:1rem; }
.ops-next article strong span { font-size:.68rem; background:white; border-radius:1rem; padding:.25rem .5rem; }
.ops-next article p { margin:.35rem 0 0; color:var(--ref-muted); font-size:.82rem; }
.ops-next article.priority p { color:#675a2b; }
.ops-next article div { display:flex; gap:.5rem; margin-top:.65rem; }
.ops-next article div span { background:rgba(255,255,255,.85); border-radius:1rem; padding:.3rem .55rem; font-size:.7rem; }
.ops-detected { display:grid; grid-template-columns:1fr 1fr; gap:.7rem; }
.ops-detected article { min-height:8rem; display:flex; flex-direction:column; align-items:center; justify-content:center; border:1px solid var(--ref-line); border-radius:1rem; }
.ops-detected strong { margin:.6rem 0 .25rem; }
.ops-detected small { color:var(--ref-muted); background:var(--ref-canvas); border-radius:.8rem; padding:.2rem .5rem; }
.ops-assistant { display:flex; flex-direction:column; align-items:center; text-align:center; }
.ops-orb { width:4rem; height:4rem; border-radius:50%; background:radial-gradient(circle at 35% 30%,#eff8ff 0,#80b8ff 38%,#3c7bed 70%,#b5d5ff 100%); box-shadow:0 12px 24px rgba(36,104,232,.25); }
.ops-assistant h2 { font-size:1.5rem; margin:1rem 0; }
.ops-prompt-list { display:grid; width:100%; gap:.45rem; }
.ops-prompt-list button { display:flex; align-items:center; gap:.6rem; border:0; text-align:left; color:var(--ref-ink); background:var(--ref-canvas); padding:.7rem; border-radius:.75rem; font-size:.78rem; }
.ops-prompt-list button i:first-child { color:#834fe1; } .ops-prompt-list button i:last-child { margin-left:auto; }
.ops-assistant label { align-self:flex-start; color:var(--ref-muted); font-size:.67rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; margin-top:1rem; }
.ops-question { width:100%; display:flex; border:1px solid var(--ref-line); border-radius:1rem; margin-top:.4rem; overflow:hidden; }
.ops-question input { min-width:0; flex:1; border:0; background:transparent; color:var(--ref-ink); padding:.7rem; }
.ops-question button { border:0; background:transparent; color:var(--ref-ink); padding:.7rem; }

/* Map and trace views */
.ops-map-heading { align-items:center; }
.ops-filter-row { display:flex; flex-wrap:wrap; gap:.45rem; margin-top:.75rem; }
.ops-filter-row button { border:0; color:var(--ref-ink); background:var(--ref-canvas); padding:.45rem .75rem; border-radius:1rem; }
.ops-filter-row button.active { color:var(--ref-blue); background:#e8f0ff; }
.ops-map-layout, .ops-trace-layout { display:grid; grid-template-columns:minmax(0,1.75fr) minmax(20rem,.75fr); gap:1.25rem; }
.ops-map-card, .ops-node-detail, .ops-context-comparison, .ops-edge-health { padding:1.5rem; }
.ops-card-title > span { color:var(--ref-muted); background:var(--ref-canvas); border-radius:1rem; padding:.45rem .7rem; font-size:.75rem; }
.ops-network { min-height:24rem; position:relative; border-radius:1rem; background:var(--ref-canvas); overflow:hidden; }
.ops-network::before, .ops-network::after { content:""; position:absolute; z-index:0; left:15%; right:12%; height:2px; top:50%; background:#8d96a5; }
.ops-network::after { left:38%; right:35%; top:34%; transform:rotate(-34deg); }
.ops-node { position:absolute; z-index:1; display:flex; align-items:center; gap:.5rem; width:10.2rem; border:1px solid var(--ref-line); border-radius:1rem; padding:.7rem; color:var(--ref-ink); background:var(--ref-panel); text-align:left; box-shadow:0 6px 14px rgba(28,39,58,.08); }
.ops-node:hover, .ops-node.active { border-color:var(--ref-blue); box-shadow:0 0 0 3px rgba(36,104,232,.12); }
.ops-node.warning { border-style:dashed; border-color:#e7a816; } .ops-node.critical { border-style:dashed; border-color:#e55744; }
.ops-node i { width:2rem; height:2rem; display:grid; place-items:center; border-radius:50%; color:#16885a; background:#dff9e9; flex:0 0 auto; }
.ops-node strong { font-size:.76rem; } .ops-node small { display:block; color:var(--ref-muted); font-size:.62rem; font-weight:400; }
.ops-node.customer { left:3%; top:43%; } .ops-node.router { left:27%; top:43%; } .ops-node.knowledge { left:53%; top:14%; } .ops-node.support { left:53%; top:39%; } .ops-node.billing { left:53%; top:66%; } .ops-node.validator { right:3%; top:28%; } .ops-node.response { right:3%; top:58%; }
.ops-map-card h3 { display:flex; justify-content:space-between; margin:1.2rem 0 .65rem; font-size:1rem; }
.ops-map-card h3 small { color:var(--ref-muted); font-size:.7rem; font-weight:400; }
.ops-handoff-list { display:grid; gap:.45rem; }
.ops-handoff-list > div { display:grid; grid-template-columns:1.5fr .65fr .45fr auto; align-items:center; gap:.5rem; padding:.65rem .8rem; border:1px solid var(--ref-line); border-radius:.8rem; font-size:.75rem; }
.ops-handoff-list span { color:var(--ref-muted); }
.ops-handoff-list b { padding:.2rem .5rem; border-radius:.7rem; font-size:.68rem; }
.ops-handoff-list .success { color:#16804b; background:#dff9e9; } .ops-handoff-list .danger { color:#bd4437; background:#ffe4df; } .ops-handoff-list .warning { color:#a36b04; background:#fff2cd; }
.ops-label { display:block; color:var(--ref-muted); font-size:.67rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; margin-bottom:.75rem; }
.ops-node-title { display:flex; align-items:center; gap:.7rem; margin-bottom:1.2rem; }
.ops-node-title > span { width:3.1rem; height:3.1rem; display:grid; place-items:center; border-radius:50%; color:#c94734; background:#ffe4df; font-size:1.2rem; }
.ops-node-title p { color:var(--ref-muted); margin:0; font-size:.75rem; }
.ops-node-title > b { margin-left:auto; color:#c94734; background:#ffe4df; border-radius:1rem; padding:.4rem .65rem; font-size:.7rem; }
.ops-metric-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:.55rem; margin-bottom:1.4rem; }
.ops-metric-grid article { border:1px solid var(--ref-line); border-radius:.9rem; padding:.75rem; }
.ops-metric-grid span { display:block; color:var(--ref-muted); font-size:.68rem; }
.ops-metric-grid strong { font-size:1.15rem; }
.ops-context-box { border-radius:1rem; background:var(--ref-canvas); padding:1rem; }
.ops-context-box small { display:block; color:#c94734; }
.ops-context-box ul { list-style:none; padding:0; margin:.7rem 0 0; }
.ops-context-box li { display:flex; justify-content:space-between; padding:.28rem .45rem; border-radius:.5rem; font-size:.75rem; }
.ops-context-box li i { color:#16804b; } .ops-context-box li.missing { color:#c94734; background:#ffe4df; } .ops-context-box li.missing i { color:#c94734; }
.ops-anomalies { display:flex; gap:.5rem; margin:1rem 0; }
.ops-anomalies span { padding:.4rem .6rem; border-radius:1rem; font-size:.68rem; color:#a36b04; background:#fff2cd; }
.ops-anomalies span:last-child { color:#c94734; background:#ffe4df; }
.ops-primary-action { width:100%; border:0; border-radius:1rem; color:white; background:var(--ref-blue); padding:.85rem; font-weight:650; margin-top:1rem; }
.ops-trace-hero { display:grid; grid-template-columns:1fr auto; gap:1.5rem; padding:1.5rem; margin-bottom:1.25rem; }
.ops-trace-hero h1 small { display:inline-block; color:#16804b; background:#dff9e9; border-radius:1rem; padding:.35rem .6rem; font-size:.72rem; letter-spacing:0; vertical-align:middle; }
.ops-trace-hero > div:nth-child(2) { display:flex; gap:.5rem; align-items:flex-start; }
.ops-trace-hero button.primary { color:white; background:var(--ref-blue); border-color:var(--ref-blue); }
.ops-trace-path { grid-column:1/-1; display:grid; grid-template-columns:1fr minmax(20rem,1.8fr) 1fr; align-items:center; gap:1rem; }
.ops-trace-path article { display:flex; align-items:center; gap:.7rem; border:1px solid var(--ref-line); border-radius:1rem; padding:.8rem; }
.ops-trace-arrow { position:relative; display:flex; align-items:center; justify-content:center; gap:1.5rem; color:var(--ref-ink); }
.ops-trace-arrow::before { content:""; position:absolute; left:0; right:0; height:3px; background:#884be8; z-index:0; }
.ops-trace-arrow span, .ops-trace-arrow i { position:relative; z-index:1; background:var(--ref-panel); padding:.35rem; font-weight:650; font-size:.75rem; }
.ops-trace-arrow i { margin-left:auto; color:#884be8; font-size:1.5rem; }
.ops-context-comparison table { --bs-table-bg:transparent; color:var(--ref-ink); font-size:.75rem; }
.ops-context-comparison th, .ops-context-comparison td { border:0; border-bottom:1px solid var(--ref-line); }
.ops-context-comparison td:last-child span { color:#16804b; background:#dff9e9; border-radius:1rem; padding:.25rem .55rem; }
.ops-context-comparison td:last-child span.neutral { color:var(--ref-muted); background:var(--ref-canvas); }
.ops-context-comparison tr.highlight > * { background:#e3f8ed; }
.ops-success-note { display:flex; gap:.6rem; align-items:flex-start; color:#16804b; background:#e3f8ed; border-radius:.9rem; padding:.8rem; font-size:.75rem; }
.ops-success-note strong small { display:block; color:#42705a; font-weight:400; }
.ops-payload { margin:1rem 0; }
.ops-payload > div:first-child { display:flex; justify-content:space-between; text-transform:uppercase; font-size:.65rem; font-weight:650; }
.ops-payload > div:nth-child(2) { height:.45rem; background:var(--ref-line); border-radius:1rem; margin:.5rem 0; }
.ops-payload > div:nth-child(2) i { display:block; width:34%; height:100%; background:#ffd447; border-radius:1rem; }
.ops-payload small { color:var(--ref-muted); }
.ops-context-comparison h3 { color:var(--ref-muted); font-size:.68rem; text-transform:uppercase; letter-spacing:.06em; margin:1.2rem 0 .6rem; }
.ops-recent-runs { display:grid; gap:.5rem; }
.ops-recent-runs > div { display:grid; grid-template-columns:1fr 1fr .65fr .65fr .4fr; color:var(--ref-muted); font-size:.72rem; }
.ops-recent-runs strong { color:var(--ref-ink); }
.ops-edge-health h2 { display:flex; align-items:center; gap:.5rem; font-size:1rem; margin:1.4rem 0 .6rem; }
.ops-edge-health h2 span { width:2rem; height:2rem; display:grid; place-items:center; border-radius:50%; color:#834fe1; background:#f0e3ff; font-size:.7rem; }
.ops-edge-health p { color:var(--ref-muted); font-size:.78rem; }
.ops-edge-list { display:grid; gap:.5rem; margin-bottom:1rem; }
.ops-edge-list article { display:flex; align-items:center; gap:.7rem; border:1px solid var(--ref-line); border-radius:.85rem; padding:.7rem; }
.ops-edge-list i { width:.5rem; height:.5rem; border-radius:50%; background:#24c980; }

/* Admin Example 5: client portal */
.milestone-example { padding:clamp(1rem,2.5vw,2.5rem); background:#f7f8f6; }
[data-bs-theme="dark"] .milestone-example { background:var(--ref-canvas); }
.portal-shell { max-width:1500px; min-height:calc(100vh - 10rem); display:grid; grid-template-columns:18rem minmax(0,1fr); margin:auto; background:var(--ref-panel); border:1px solid var(--ref-line); }
.portal-sidebar { display:flex; flex-direction:column; padding:2.5rem 2rem; border-right:1px solid var(--ref-line); }
.portal-brand strong { font-size:1.55rem; letter-spacing:-.04em; }
.portal-brand p { color:var(--ref-muted); margin:.7rem 0 3rem; line-height:1.45; }
.portal-sidebar nav { display:grid; gap:.35rem; }
.portal-sidebar nav button { display:flex; align-items:center; gap:1rem; width:100%; border:1px solid transparent; border-radius:.65rem; color:var(--ref-muted); background:transparent; padding:.8rem; text-align:left; font-size:1rem; }
.portal-sidebar nav button span { width:2rem; color:#8a95a5; font-variant-numeric:tabular-nums; }
.portal-sidebar nav button:hover { color:var(--ref-ink); background:var(--ref-canvas); }
.portal-sidebar nav button.active { color:var(--ref-ink); background:var(--ref-panel); border-color:var(--ref-line); box-shadow:0 5px 16px rgba(20,30,45,.05); }
.portal-sidebar nav button.active span { display:grid; place-items:center; height:2rem; border-radius:50%; color:white; background:#111827; }
.portal-help { margin-top:auto; border:1px solid var(--ref-line); border-radius:.7rem; padding:1.1rem; }
.portal-help p { color:var(--ref-muted); margin:.55rem 0; }
.portal-help button { border:0; padding:0; color:var(--ref-ink); background:transparent; text-decoration:underline; }
.portal-main { position:relative; padding:1.8rem 2.5rem 1rem; min-width:0; }
.portal-kicker { display:flex; justify-content:flex-end; align-items:center; gap:.7rem; color:var(--ref-muted); font-size:.68rem; font-weight:700; text-transform:uppercase; letter-spacing:.15em; }
.portal-kicker i { width:1px; height:1rem; background:var(--ref-line); }
.portal-heading { display:grid; grid-template-columns:1fr minmax(20rem,42%); gap:3rem; align-items:start; }
.portal-heading > div:first-child > span { display:block; color:#95a987; font-size:2.3rem; font-weight:500; line-height:1; }
.portal-heading h1 { margin:.35rem 0; font-size:2.7rem; letter-spacing:-.055em; }
.portal-heading > div:first-child > i { display:block; width:2rem; height:1px; background:var(--ref-line); margin:1rem 0; }
.portal-heading p { color:#607083; font-size:1rem; line-height:1.45; }
.portal-visual { position:relative; height:8rem; overflow:hidden; border-radius:.65rem; background:linear-gradient(125deg,#d9ded8,#f5f6f4 47%,#d8ded4); }
.portal-visual i { position:absolute; width:65%; height:230%; border-radius:50%; background:rgba(255,255,255,.38); filter:blur(18px); transform:rotate(32deg); }
.portal-visual i:nth-child(2) { left:45%; top:-70%; background:rgba(174,188,169,.35); }
.portal-visual i:nth-child(3) { left:25%; top:35%; background:rgba(255,255,255,.55); }
.portal-milestones { position:relative; margin:0 0 0 2.2rem; border-left:1px solid var(--ref-line); }
.portal-milestone { position:relative; display:grid; grid-template-columns:minmax(23rem,1.4fr) minmax(15rem,.95fr) minmax(12rem,.72fr) 8.7rem; min-height:10rem; border:1px solid var(--ref-line); border-radius:.65rem; margin:.75rem 0 .75rem 1.35rem; }
.portal-milestone > *:not(.portal-track) { padding:1.15rem; }
.portal-milestone > * + *:not(.portal-track) { border-left:1px solid var(--ref-line); }
.portal-track { position:absolute; left:-2.15rem; top:1.9rem; width:1.65rem; height:1.65rem; display:grid; place-items:center; color:white; background:var(--ref-panel); border:2px solid #aab6c4; border-radius:50%; z-index:1; }
.portal-milestone:not(:last-child) .portal-track::after { content:""; position:absolute; top:1.5rem; height:9.2rem; border-left:1px solid var(--ref-line); }
.portal-milestone.complete .portal-track { background:#12a45a; border-color:#12a45a; }
.portal-milestone.active .portal-track { border:3px solid #2468e8; }
.portal-milestone.active .portal-track i { width:.55rem; height:.55rem; border-radius:50%; background:#2468e8; }
.portal-summary { display:grid; grid-template-columns:3.4rem minmax(0,1fr) auto; gap:.9rem; align-items:start; }
.portal-symbol { width:3.2rem; height:3.2rem; display:grid; place-items:center; border-radius:50%; background:#f2f4f1; color:#263342; font-size:1.05rem; }
.portal-summary small, .portal-date small { display:block; color:var(--ref-muted); }
.portal-summary h2 { margin:.05rem 0 .3rem; font-size:1.18rem; letter-spacing:-.025em; }
.portal-summary p { color:#5e6c7e; margin:0; line-height:1.4; font-size:.82rem; }
.portal-state { align-self:start; color:#16804b; background:#e3f8ed; border-radius:1rem; padding:.3rem .6rem; font-size:.68rem; font-weight:650; white-space:nowrap; }
.portal-state::before { content:""; display:inline-block; width:.4rem; height:.4rem; margin-right:.35rem; border-radius:50%; background:currentColor; vertical-align:.05rem; }
.portal-milestone.active .portal-state, .portal-state.in-progress { color:#2468e8; background:#e8f0ff; }
.portal-milestone.upcoming .portal-state { color:#6d7786; background:#edf0f3; }
.portal-deliverables strong { color:#536173; font-size:.78rem; }
.portal-deliverables ul { list-style:none; padding:0; margin:.55rem 0 0; color:#5e6c7e; font-size:.78rem; }
.portal-deliverables li { margin:.25rem 0; }
.portal-deliverables li::before { content:"✓"; color:#12a45a; font-weight:700; margin-right:.55rem; }
.portal-deliverables li.open::before { content:""; display:inline-block; width:.85rem; height:.85rem; border:1.5px solid #94a2b3; border-radius:50%; margin-right:.55rem; vertical-align:-.08rem; }
.portal-milestone.active .portal-deliverables li.open::before { border-color:#2468e8; }
.portal-date { display:flex; flex-direction:column; gap:1.2rem; }
.portal-date > span { display:grid; grid-template-columns:1.5rem 1fr; align-items:start; }
.portal-date > span > i:first-child { grid-row:1/3; color:#8a97a7; }
.portal-date strong { font-size:.75rem; font-weight:500; }
.portal-progress { grid-column:2; width:80%; height:.35rem; background:var(--ref-line); border-radius:1rem; margin-top:.35rem; }
.portal-progress b { display:block; width:66%; height:100%; border-radius:1rem; background:#2468e8; }
.portal-detail-button { align-self:center; display:flex; align-items:center; justify-content:space-between; gap:.5rem; margin:1rem; padding:.7rem .85rem!important; border:1px solid var(--ref-line); border-radius:.65rem; color:var(--ref-ink); background:var(--ref-panel); line-height:1.1; }
.portal-detail-button:hover { color:white; background:#111827; border-color:#111827; }
.portal-pager { display:flex; justify-content:space-between; margin:0 0 0 3.55rem; }
.portal-pager button { display:flex; align-items:center; gap:.7rem; min-width:8rem; justify-content:center; border:1px solid var(--ref-line); border-radius:.65rem; background:var(--ref-panel); color:var(--ref-ink); padding:.8rem 1rem; }
.portal-pager button.next { color:white; background:#101827; border-color:#101827; }
.portal-status { min-height:1.3rem; text-align:center; color:var(--ref-muted); margin:.65rem 0 0; }
.portal-detail { --bs-offcanvas-width:min(31rem,100vw); color:var(--ref-ink); background:var(--ref-panel); }
.portal-detail .offcanvas-header { align-items:flex-start; border-bottom:1px solid var(--ref-line); padding:1.5rem; }
.portal-detail-number { color:#95a987; font-weight:650; }
.portal-detail .offcanvas-body { padding:1.5rem; }
.portal-detail .offcanvas-body > p { color:var(--ref-muted); font-size:1rem; margin:1.3rem 0; }
.portal-detail dl { display:grid; grid-template-columns:6rem 1fr; gap:.5rem; padding:1rem 0; border-block:1px solid var(--ref-line); }
.portal-detail dt { color:var(--ref-muted); font-weight:500; }
.portal-detail dd { margin:0; }
.portal-detail h3 { font-size:.8rem; text-transform:uppercase; letter-spacing:.08em; margin-top:1.4rem; }
.portal-primary { display:flex; align-items:center; justify-content:center; gap:.6rem; width:100%; border:0; border-radius:.7rem; color:white; background:#101827; padding:.85rem; }

@media (max-width:1399.98px) {
  .ops-topbar { grid-template-columns:auto 1fr; } .ops-controls { grid-column:1/-1; justify-self:end; margin-top:-.3rem; }
  .ops-overview-grid { grid-template-columns:1fr 1fr; } .ops-assistant { grid-column:1/-1; }
  .portal-milestone { grid-template-columns:minmax(20rem,1.4fr) minmax(14rem,1fr) minmax(11rem,.75fr); }
  .portal-detail-button { grid-column:1/-1; margin:.6rem; justify-content:center; } .portal-milestone > .portal-detail-button { border-left:1px solid var(--ref-line); }
}
@media (max-width:1199.98px) {
  .ops-map-layout, .ops-trace-layout { grid-template-columns:1fr; } .ops-node-detail, .ops-edge-health { position:static; }
  .portal-shell { grid-template-columns:14rem minmax(0,1fr); } .portal-sidebar { padding:2rem 1rem; }
  .portal-main { padding-inline:1.5rem; } .portal-heading { grid-template-columns:1fr; } .portal-visual { display:none; }
  .portal-milestone { grid-template-columns:1fr 1fr; } .portal-summary { grid-column:1/-1; } .portal-milestone > .portal-deliverables { border-left:0; } .portal-date { border-left:1px solid var(--ref-line); }
}
@media (max-width:991.98px) {
  .ops-topbar { display:flex; flex-wrap:wrap; } .ops-view-nav { order:3; width:100%; justify-content:flex-start; } .ops-controls { margin-left:auto; overflow:auto; max-width:100%; } .ops-profile strong, .ops-control span { display:none; }
  .ops-layout { grid-template-columns:1fr; } .ops-rail { position:static; z-index:5; min-height:0; flex-direction:row; gap:.6rem; overflow:auto; } .ops-rail-group { display:flex; width:max-content; } .ops-rail-group.mt-auto { margin-left:auto!important; }
  .ops-panel-heading { flex-direction:column; } .ops-heading-actions { justify-content:flex-start; } .ops-overview-grid { grid-template-columns:1fr; } .ops-assistant { grid-column:auto; }
  .ops-trace-path { grid-template-columns:1fr; } .ops-trace-arrow { min-height:3rem; }
  .portal-shell { display:block; } .portal-sidebar { border:0; border-bottom:1px solid var(--ref-line); } .portal-brand p { margin-bottom:1rem; } .portal-sidebar nav { display:flex; overflow:auto; padding-bottom:.5rem; } .portal-sidebar nav button { width:auto; white-space:nowrap; } .portal-help { display:none; }
}
@media (max-width:767.98px) {
  .operations-example, .milestone-example { padding:.65rem; }
  .ops-brand { min-height:3rem; } .ops-controls { width:100%; justify-content:flex-end; } .ops-live { margin-right:auto; }
  .ops-panel-heading, .ops-card, .ops-trace-hero { border-radius:1rem; } .ops-timeline-card { overflow:auto; } .ops-timeline-label, .ops-timeline-grid { min-width:58rem; }
  .ops-network { min-width:47rem; } .ops-map-card { overflow:auto; } .ops-handoff-list { min-width:42rem; }
  .ops-trace-hero { display:block; } .ops-trace-hero > div:nth-child(2) { margin-top:1rem; } .ops-recent-runs > div { min-width:32rem; } .ops-context-comparison { overflow:auto; }
  .portal-main { padding:1.25rem .75rem; } .portal-kicker { display:none; } .portal-heading h1 { font-size:2.2rem; } .portal-heading { margin-left:.5rem; }
  .portal-milestones { margin-left:1.1rem; } .portal-milestone { grid-template-columns:1fr; margin-left:1rem; } .portal-summary { grid-template-columns:2.8rem minmax(0,1fr); } .portal-summary .portal-state { grid-column:2; }
  .portal-milestone > * + *:not(.portal-track) { border-left:0; border-top:1px solid var(--ref-line); } .portal-track { left:-1.9rem; } .portal-milestone:not(:last-child) .portal-track::after { height:calc(100% + 10rem); }
  .portal-pager { margin-left:2.1rem; }
}
@media (prefers-reduced-motion:reduce) { .reference-example *, .reference-example *::before, .reference-example *::after { scroll-behavior:auto!important; transition:none!important; } }
