/* Simulated browser runs (assets/js/browser.js): dark browser chrome, light fictional portals inside. */
.bx { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
.bx-win { position: relative; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: #0e0f12; box-shadow: 0 40px 100px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.03) inset; }
.bx-top { display: flex; align-items: center; gap: 12px; padding: 8px 12px 0; background: #141519; }
.bx-dots { display: flex; gap: 6px; } .bx-dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a4656; }
.bx-dots i:nth-child(1) { background: #ff5f57; } .bx-dots i:nth-child(2) { background: #febc2e; } .bx-dots i:nth-child(3) { background: #28c840; }
.bx-tabs { display: flex; gap: 4px; flex: 1; min-width: 0; }
.bx-tabs span { font-size: 12.5px; color: var(--muted); padding: 7px 14px; border-radius: 9px 9px 0 0; background: rgba(255,255,255,.03); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bx-tabs span.on { background: #1d1f24; color: var(--text); }
.bx-speed { font: 600 12px var(--mono); color: #04222b; background: var(--cyan); border-radius: 6px; padding: 3px 8px; margin-bottom: 6px; }
.bx-url { display: flex; align-items: center; gap: 8px; padding: 7px 12px; background: #1d1f24; color: var(--muted); border-bottom: 1px solid var(--line); }
.bx-addr { flex: 1; min-width: 0; font: 12.5px var(--mono); color: #c9d4e3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: rgba(0,0,0,.25); padding: 4px 10px; border-radius: 6px; }
.bx-drive { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--cyan); white-space: nowrap; }
.bx-drive i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: bxPulse 1.4s ease-in-out infinite; }
.bx.finished .bx-drive { color: var(--green); } .bx.finished .bx-drive i { background: var(--green); box-shadow: none; animation: none; }
@keyframes bxPulse { 50% { opacity: .35; } }
.bx-vp { position: relative; overflow: hidden; background: #f4f6f9; }
.bx-view { position: absolute; left: 0; top: 0; width: 960px; height: 560px; transform-origin: 0 0; overflow: hidden; color: #1b2430; font: 14px/1.45 var(--sans); }
.bx-page { position: absolute; inset: 0; transition: opacity .25s; }
.bx-page.swap { opacity: 0; }
.bx-view a { color: inherit; text-decoration: none; }

/* agent cursor, toast, notes, approval */
.bx-cursor { position: absolute; left: 0; top: 0; z-index: 5; display: flex; align-items: flex-start; opacity: 0; transform: translate(480px, 280px); transition: transform .6s cubic-bezier(.3,.7,.2,1), opacity .3s; pointer-events: none; }
.bx-cursor.on { opacity: 1; }
.bx-cursor span { margin: 18px 0 0 -6px; font: 600 10.5px var(--mono); color: #04222b; background: var(--cyan); padding: 1px 6px; border-radius: 5px; }
.bx-cursor.down svg { transform: scale(.85); }
.bx-toast { position: absolute; left: 50%; bottom: 18px; z-index: 6; transform: translate(-50%, 20px); opacity: 0; background: #0f1722; color: #e8eef6; font-size: 13.5px; padding: 9px 16px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: opacity .3s, transform .3s; white-space: nowrap; }
.bx-toast.on { opacity: 1; transform: translate(-50%, 0); }
.bx-note { position: absolute; right: 16px; top: 14px; z-index: 6; font: 600 12px var(--mono); color: #04222b; background: var(--cyan); padding: 4px 10px; border-radius: 6px; opacity: 0; transition: opacity .3s; }
.bx-note.on { opacity: 1; }
.bx-ask { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 7; display: none; gap: 6px; padding: 14px 16px; border-radius: 12px; background: #1b1508; border: 1px solid rgba(246,180,75,.55); color: #f5ead6; box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.bx-ask.on { display: grid; animation: bxUp .35s ease both; }
.bx-ask p { margin: 0; font-size: 15px; font-weight: 600; }
.bx-ask div { display: flex; gap: 8px; }
.bx-ask-tag { font: 600 11px var(--mono); color: var(--amber); text-transform: uppercase; letter-spacing: .08em; }
.bx-ask div { align-items: center; flex-wrap: wrap; }
.bx-auto { font-size: 12px; color: #b9a684; margin-left: 6px; }
.bx-you { position: absolute; left: 0; top: 0; z-index: 9; display: flex; align-items: flex-start; opacity: 0; pointer-events: none; transition: transform .85s cubic-bezier(.3,.7,.2,1), opacity .25s; }
.bx-you.on { opacity: 1; }
.bx-you span { margin: 17px 0 0 -6px; font: 600 10.5px var(--mono); color: #2b1a00; background: var(--amber); padding: 1px 6px; border-radius: 5px; }
@keyframes bxUp { from { opacity: 0; transform: translateY(10px); } }

/* fields shared by all portals */
.bx-in { position: relative; min-height: 36px; border: 1px solid #c9d2de; border-radius: 7px; background: #fff; padding: 7px 10px; font-size: 14px; color: #1b2430; transition: border-color .2s, box-shadow .2s; }
.bx-in .ph { color: #98a3b3; } .bx-in.filled .ph, .bx-in.focus .ph { display: none; }
.bx-in.focus { border-color: #2f6db3; box-shadow: 0 0 0 3px rgba(47,109,179,.18); }
.bx-in.focus .v::after { content: ""; display: inline-block; width: 1px; height: 15px; background: #1b2430; margin-left: 1px; vertical-align: -2px; animation: bxPulse 1s steps(1) infinite; }
.bx-in.pii .v, .pii .v { filter: blur(4.5px); }
.pressed { transform: translateY(1px); filter: brightness(.92); }
.hl { outline: 2px solid #f28c28; outline-offset: 1px; background: #fff4e6 !important; }
.waiting { animation: bxWait 1.2s ease-in-out infinite; }
@keyframes bxWait { 50% { box-shadow: 0 0 0 5px rgba(246,180,75,.35); } }

/* TerminalLink (fictional terminal operator) */
.tl { position: absolute; inset: 0; }
.tl-login { display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; }
.tl-art { background: linear-gradient(160deg, #0f2742, #173a5e); color: #d7e3f1; padding: 34px 36px; display: flex; flex-direction: column; justify-content: space-between; }
.tl-brand { display: flex; align-items: center; gap: 10px; }
.tl-brand i { width: 26px; height: 26px; border-radius: 6px; background: linear-gradient(135deg, #f28c28 50%, #ffb35c 50%); }
.tl-brand b { font-size: 17px; color: #fff; }
.tl-port { width: 100%; }
.tl-art p { margin: 0; font-size: 14px; color: #a9bdd3; }
.tl-form { padding: 70px 56px; display: flex; flex-direction: column; gap: 8px; }
.tl-form h3 { font-size: 24px; margin: 0 0 14px; color: #0f2742; font-family: var(--sans); letter-spacing: -.01em; }
.tl-form label { font-size: 13px; color: #4a5768; margin-top: 6px; }
.tl-sub { margin: -6px 0 10px; color: #4a5768; }
.tl-form [data-k="code"] { font: 600 22px var(--mono); letter-spacing: .1em; text-align: center; }
.chk { display: flex; align-items: center; gap: 8px; color: #4a5768; font-size: 13px; margin: 8px 0; }
.chk i { width: 15px; height: 15px; border-radius: 4px; background: #2f6db3; }
.tl-btn { font: 600 14px var(--sans); border: 0; border-radius: 8px; padding: 10px 16px; background: #f28c28; color: #fff; cursor: default; }
.tl-btn.sm { padding: 8px 14px; } .tl-btn.ghost { background: #fff; color: #0f2742; border: 1px solid #c9d2de; }
.tl-a { font-size: 13px; color: #2f6db3; margin-top: 4px; }
.tl-app { background: #f4f6f9; display: flex; flex-direction: column; }
.tl-nav { display: flex; align-items: center; gap: 26px; padding: 12px 22px; background: #0f2742; color: #c9d7e8; }
.tl-nav nav { display: flex; gap: 18px; font-size: 13.5px; } .tl-nav nav a.on { color: #fff; border-bottom: 2px solid #f28c28; padding-bottom: 3px; }
.tl-user { margin-left: auto; font-size: 12.5px; }
.tl-main { padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.tl-main h3 { margin: 0; font: 600 21px var(--sans); color: #0f2742; }
.tl-search { display: grid; grid-template-columns: 1fr auto; gap: 8px; max-width: 620px; }
.tl-chips { display: flex; gap: 6px; } .tl-chips span { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: #e3e9f1; color: #34445a; }
.tl-results { background: #fff; border: 1px solid #dde3ec; border-radius: 10px; min-height: 260px; padding: 14px; }
.tl-empty { color: #7a8697; margin: 90px 0; text-align: center; }
.tl-sum { display: flex; gap: 12px; align-items: stretch; margin-bottom: 12px; }
.tl-sum > div { border: 1px solid #e3e8ef; border-radius: 8px; padding: 8px 12px; } .tl-sum span { display: block; font-size: 11.5px; color: #6b778a; } .tl-sum b { font-size: 15px; color: #0f2742; }
.tl-sum button { margin-left: auto; align-self: center; }
.tl-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tl-table th { text-align: left; font-size: 11.5px; color: #6b778a; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 6px 8px; border-bottom: 1px solid #e3e8ef; }
.tl-table td { padding: 8px; border-bottom: 1px solid #eef1f5; }

/* ProviderGate (fictional health plan) */
.pp { position: absolute; inset: 0; }
.pp-login { display: grid; place-items: center; background: radial-gradient(circle at 20% 20%, #d7f0ec, #eef5f8 60%); }
.pp-card { width: 380px; background: #fff; border-radius: 14px; padding: 28px; box-shadow: 0 20px 50px rgba(15,118,110,.15); display: flex; flex-direction: column; gap: 8px; }
.pp-brand { display: flex; align-items: center; gap: 9px; } .pp-brand i { width: 24px; height: 24px; border-radius: 50%; background: conic-gradient(#0f766e 0 70%, #5eead4 0); }
.pp-brand b { color: #0f3d3a; font-size: 15px; } .pp-brand span { font-size: 12px; color: #0f766e; background: #ccfbf1; padding: 1px 8px; border-radius: 999px; }
.pp-card h3 { margin: 12px 0 6px; font: 600 21px var(--sans); color: #0f3d3a; }
.pp label { font-size: 12.5px; color: #4a5a68; margin-top: 4px; }
.pp-btn { font: 600 14px var(--sans); border: 0; border-radius: 8px; padding: 10px 16px; background: #0f766e; color: #fff; margin-top: 10px; }
.pp-fine { font-size: 12px; color: #6b7a88; }
.pp-app { background: #f3f7f8; display: flex; flex-direction: column; }
.pp-nav { display: flex; align-items: center; gap: 26px; padding: 12px 22px; background: #fff; border-bottom: 1px solid #dde7ea; }
.pp-nav nav { display: flex; gap: 18px; font-size: 13.5px; color: #4a5a68; } .pp-nav nav a.on { color: #0f766e; font-weight: 600; }
.pp-user { margin-left: auto; font-size: 12.5px; color: #4a5a68; }
.pp-main { padding: 18px 26px; }
.pp-main h3 { margin: 0 0 12px; font: 600 20px var(--sans); color: #0f3d3a; }
.pp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; background: #fff; border: 1px solid #dde7ea; border-radius: 12px; padding: 14px 16px; }
.pp-grid .w2 { grid-column: 1 / -1; } .pp-grid label { display: block; margin-bottom: 4px; }
.pp-drop { border: 1.5px dashed #9cc9c3; border-radius: 9px; padding: 10px; min-height: 48px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: #6b7a88; font-size: 13px; }
.pp-drop:has(.new) > span:first-child { display: none; }
.pp-actions { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.pp-result { margin-top: 8px; font-weight: 600; color: #0f766e; min-height: 1.4em; }

/* attachments (portal + mail) */
.pp-drop .new, .ml-att span { font-size: 12.5px; padding: 4px 10px 4px 26px; border-radius: 7px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 1h6l3 3v11H4z' fill='%23e5484d'/%3E%3C/svg%3E") 8px center / 13px no-repeat; border: 1px solid #d5dce6; color: #1b2430; }
.new { animation: bxUp .35s ease both; }

/* Mail (generic webmail) */
.ml { position: absolute; inset: 0; background: #fff; display: flex; flex-direction: column; }
.ml-top { display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; align-items: center; padding: 10px 18px; border-bottom: 1px solid #e3e8ef; }
.ml-logo { font: 700 19px var(--sans); color: #2563eb; } .ml-top .bx-in { background: #eef2f7; border-color: transparent; border-radius: 999px; padding-left: 16px; }
.ml-me { font-size: 12.5px; color: #4a5768; }
.ml-body { flex: 1; display: grid; grid-template-columns: 140px 300px 1fr; min-height: 0; }
.ml-side { display: flex; flex-direction: column; padding: 10px; gap: 2px; font-size: 13.5px; color: #34445a; }
.ml-side a { padding: 6px 10px; border-radius: 0 999px 999px 0; display: flex; justify-content: space-between; } .ml-side a.on { background: #dbe7fe; color: #1d4ed8; font-weight: 600; }
.ml-list { list-style: none; margin: 0; padding: 0; border-left: 1px solid #eef1f5; border-right: 1px solid #eef1f5; overflow: hidden; }
.ml-list li { padding: 10px 14px; border-bottom: 1px solid #eef1f5; display: grid; gap: 1px; }
.ml-list li b { font-size: 13.5px; } .ml-list li span { font-size: 13px; color: #1b2430; } .ml-list li em { font-size: 12px; color: #6b778a; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-read { padding: 16px 20px; overflow: hidden; display: flex; flex-direction: column; gap: 12px; }
.ml-empty { color: #8a95a6; margin: auto; }
.ml-msg h4 { margin: 0 0 6px; font: 600 18px var(--sans); }
.ml-from { margin: 0 0 8px; font-size: 12.5px; color: #4a5768; } .ml-msg p { margin: 0 0 8px; font-size: 13.5px; }
.ml-att { display: flex; flex-wrap: wrap; gap: 6px; min-height: 0; }
.ml-acts { display: flex; gap: 8px; margin-top: 8px; } .ml-acts button, .ml-btn { font: 500 13px var(--sans); border: 1px solid #c9d2de; background: #fff; border-radius: 999px; padding: 6px 14px; }
.ml-compose { border: 1px solid #c9d6ec; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 8px 24px rgba(37,99,235,.08); }
.ml-hdr { margin: 0; font-size: 12.5px; color: #34445a; border-bottom: 1px solid #eef1f5; padding-bottom: 4px; } .ml-hdr span { color: #8a95a6; margin-right: 8px; }
.ml-text { min-height: 70px; font-size: 13.5px; line-height: 1.5; }
.ml-send { display: flex; align-items: center; gap: 10px; } .ml-btn { background: #2563eb; color: #fff; border-color: transparent; font-weight: 600; } .ml-fine { font-size: 12px; color: #8a95a6; }

/* side checklist */
.bx-side { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: rgba(255,255,255,.015); }
.bx-side h4 { margin: 0 0 10px; font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .09em; color: var(--cyan); }
.bx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: bx; }
.bx-list li { position: relative; padding: 9px 10px 9px 36px; border-radius: 9px; font-size: 14px; color: var(--dim); border: 1px solid transparent; transition: color .3s, background .3s, border-color .3s; }
.bx-list li::before { counter-increment: bx; content: counter(bx); position: absolute; left: 9px; top: 9px; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-2); font: 600 10.5px/16px var(--mono); text-align: center; color: var(--dim); }
.bx-list li.now { color: var(--text); background: rgba(88,214,240,.06); border-color: rgba(88,214,240,.25); }
.bx-list li.done { color: var(--text); }
.bx-list li.done::before { content: "✓"; background: var(--green); border-color: var(--green); color: #052012; }
.bx-clock { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.bx-clock b { font: 600 15px var(--mono); color: var(--text); }
.bx-fine { margin: 10px 0 0; font-size: 12px; color: var(--dim); }

@media (max-width: 1080px) { .bx { grid-template-columns: 1fr; } }
/* the approval sits outside the scaled viewport, so on phones it renders full size below the page */
@media (max-width: 640px) { .bx-ask { position: static; margin: 10px; } .bx-ask div { flex-wrap: wrap; } }

/* ---------- shared: agent workspace, tool cards, chat ---------- */
.ws, .noc-inv, .sd-ws, .mt-sum { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.ws h5, .noc-inv h5, .sd-ws h5, .mt-sum h5 { margin: 0 0 8px; font: 600 11.5px var(--mono); text-transform: uppercase; letter-spacing: .07em; color: #5b6676; }
.ws h5 em, .mt-sum h5 em { font: 400 11.5px var(--sans); text-transform: none; letter-spacing: 0; color: #8a95a6; margin-left: 6px; }
.ws-feed { flex: 1; overflow: hidden; display: flex; flex-direction: column; gap: 8px; justify-content: flex-end; }
.tc { background: #fff; border: 1px solid #dfe5ee; border-radius: 10px; padding: 8px 10px; box-shadow: 0 2px 8px rgba(15,23,42,.04); }
.tc-h { display: flex; align-items: center; gap: 7px; font-size: 12.5px; }
.tc-h b { color: #0f172a; font-family: var(--mono); font-weight: 600; font-size: 12px; }
.tc-h code { font: 11px var(--mono); color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tc-ic { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: #e0f2fe; color: #0369a1; font-size: 12px; flex: none; }
.tc-b { margin-top: 6px; }
.tc.hold { border-color: #f3c46c; background: #fffaf0; } .tc.hold .tc-ic { background: #fde7b0; color: #8a5a00; }
.snip { margin: 3px 0 0; font-size: 12.5px; color: #334155; line-height: 1.45; }
.src { display: inline-block; font: 600 10.5px var(--sans); color: #0369a1; background: #e0f2fe; border-radius: 5px; padding: 1px 6px; margin-left: 2px; white-space: nowrap; }
.mini { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 12px; margin-bottom: 4px; }
.mini th { text-align: left; color: #64748b; font-weight: 600; padding: 3px 5px; border-bottom: 1px solid #e2e8f0; }
.mini td { padding: 4px 5px; border-bottom: 1px solid #f1f5f9; color: #1e293b; }
.mini .hl-row td { background: #f0fdf4; }
.chat-feed { flex: 1; overflow: hidden; display: flex; flex-direction: column; gap: 8px; justify-content: flex-end; padding: 10px; }
.msg { max-width: 86%; font-size: 13.5px; line-height: 1.45; }
.msg p { margin: 0; padding: 8px 11px; border-radius: 14px; }
.msg.customer { align-self: flex-end; } .msg.customer p { background: #2563eb; color: #fff; border-bottom-right-radius: 4px; }
.msg.agent { align-self: flex-start; } .msg.agent p { background: #f1f5f9; color: #0f172a; border-bottom-left-radius: 4px; }
.sd-conv .msg.customer { align-self: flex-start; } .sd-conv .msg.customer p { background: #f1f5f9; color: #0f172a; border-radius: 14px 14px 14px 4px; }
.sd-conv .msg.agent { align-self: flex-end; } .sd-conv .msg.agent p { background: #0f766e; color: #fff; border-radius: 14px 14px 4px 14px; }
.typing { display: inline-flex; gap: 4px; padding: 10px 12px; background: #f1f5f9; border-radius: 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #94a3b8; animation: bxDot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bxDot { 50% { transform: translateY(-3px); opacity: .5; } }
.cite { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.cite span { font-size: 10.5px; color: #0369a1; background: #e0f2fe; border-radius: 999px; padding: 2px 8px; }
.cite span::before { content: "↗ "; }

/* ---------- Harbor Motors (fictional dealer) ---------- */
.dl { position: absolute; inset: 0; background: #f8fafc; display: flex; flex-direction: column; }
.dl-nav { display: flex; align-items: center; gap: 26px; padding: 11px 20px; background: #0b1324; color: #cbd5e1; }
.dl-logo { color: #fff; font-size: 16px; letter-spacing: .02em; } .dl-nav nav { display: flex; gap: 18px; font-size: 13px; } .dl-ph { margin-left: auto; font-size: 12px; }
.dl-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 14px; padding: 14px; min-height: 0; }
.ws { background: #eef2f7; border-radius: 12px; padding: 12px; }
.chat { background: #fff; border-radius: 14px; box-shadow: 0 16px 40px rgba(15,23,42,.14); display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e2e8f0; }
.chat header { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid #eef2f7; }
.chat header i { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #2563eb, #60a5fa); }
.chat header b { display: block; font-size: 13.5px; color: #0f172a; } .chat header span { font-size: 11.5px; color: #64748b; }
.chat footer { padding: 10px 12px; border-top: 1px solid #eef2f7; font-size: 13px; color: #94a3b8; }

/* ---------- NetWatch (fictional network operations console) ---------- */
.noc { position: absolute; inset: 0; background: #0b1220; color: #cbd5e1; display: flex; flex-direction: column; }
.noc-top { display: flex; align-items: center; gap: 16px; padding: 10px 16px; background: #0f172a; border-bottom: 1px solid #1e293b; font-size: 12.5px; }
.noc-top b { color: #fff; font-size: 15px; }
.noc-state { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: #052e1a; color: #4ade80; font-weight: 600; transition: background .3s, color .3s; }
.noc-state.warn { background: #3b1d06; color: #fbbf24; } .noc-state.ok { background: #052e1a; color: #4ade80; }
.noc-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 12px; padding: 12px; min-height: 0; }
.noc-link { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.noc-h b { display: block; color: #e2e8f0; font: 600 13.5px var(--mono); } .noc-h span { font-size: 11.5px; color: #64748b; }
.noc-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.noc-kpis div { background: #111a2e; border: 1px solid #1e293b; border-radius: 8px; padding: 6px 10px; } .noc-kpis span { display: block; font-size: 11px; color: #64748b; }
.noc-kpis b { font: 600 17px var(--mono); color: #e2e8f0; transition: color .3s; } .noc-kpis b.bad { color: #f87171; } .noc-kpis b.good { color: #4ade80; }
.noc-chart { width: 100%; height: 96px; background: #0f172a; border: 1px solid #1e293b; border-radius: 8px; }
.noc-chart path { fill: none; stroke-width: 2.5; } .noc-chart .base { stroke: #334155; }
.noc-chart .err { stroke: #f87171; stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 2.2s ease; }
.noc-chart .rec { stroke: #4ade80; stroke-dasharray: 300; stroke-dashoffset: 300; transition: stroke-dashoffset 1.6s ease; }
.noc-chart .thr { stroke: #f59e0b; stroke-dasharray: 4 5; stroke-width: 1; }
.noc-chart.alarm .err { stroke-dashoffset: 0; } .noc-chart.recovered .rec { stroke-dashoffset: 0; }
.noc-term { flex: 1; background: #020617; border: 1px solid #1e293b; border-radius: 8px; padding: 8px 10px; font: 12px/1.55 var(--mono); color: #94a3b8; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; min-height: 0; }
.noc-term .cmd { color: #e2e8f0; } .noc-term .bad { color: #f87171; } .noc-term .ok { color: #4ade80; }
.noc-cmd { display: flex; align-items: center; gap: 6px; color: #38bdf8; }
.noc-cmd .bx-in { flex: 1; min-height: 0; padding: 0; border: 0; background: none; color: #e2e8f0; font: 12px var(--mono); box-shadow: none; }
.noc-cmd .bx-in.focus .v::after { background: #e2e8f0; }
.noc .tc { background: #111a2e; border-color: #1e293b; box-shadow: none; } .noc .tc-h b { color: #e2e8f0; } .noc .tc-h code { color: #64748b; }
.noc .tc-ic { background: #0c2a3f; color: #38bdf8; } .noc .snip { color: #cbd5e1; } .noc .snip b { color: #fff; }
.noc .src { background: #0c2a3f; color: #7dd3fc; } .noc .tc.hold { background: #2a1c06; border-color: #92400e; } .noc .tc.hold .tc-ic { background: #78350f; color: #fde68a; }
.noc-inv h5 { color: #64748b; }

/* ---------- Support desk ---------- */
.sd { position: absolute; inset: 0; background: #f8fafc; display: flex; flex-direction: column; }
.sd-top { display: flex; align-items: center; gap: 22px; padding: 10px 16px; background: #fff; border-bottom: 1px solid #e2e8f0; font-size: 12.5px; color: #475569; }
.sd-top b { color: #0f766e; font-size: 15px; } .sd-top nav { display: flex; gap: 14px; } .sd-top nav .on { color: #0f172a; font-weight: 600; } .sd-top > span { margin-left: auto; }
.sd-body { flex: 1; display: grid; grid-template-columns: 190px minmax(0, 1fr) 330px; min-height: 0; }
.sd-list { border-right: 1px solid #e2e8f0; background: #fff; }
.sd-list div { padding: 9px 12px; border-bottom: 1px solid #f1f5f9; display: grid; font-size: 12.5px; } .sd-list div.on { background: #f0fdfa; box-shadow: inset 3px 0 0 #0f766e; }
.sd-list b { font-size: 11.5px; color: #64748b; } .sd-list em { font-style: normal; font-size: 11.5px; color: #94a3b8; }
.sd-conv { display: flex; flex-direction: column; min-height: 0; padding: 12px 14px; }
.sd-conv h4 { margin: 0; font: 600 15px var(--sans); color: #0f172a; display: flex; align-items: center; gap: 10px; }
.sd-status { font-size: 11.5px; padding: 2px 9px; border-radius: 999px; background: #fef3c7; color: #92400e; } .sd-status.good { background: #dcfce7; color: #166534; }
.sd-ws { padding: 12px; background: #eef2f7; }
.logs { margin: 0; font: 11.5px/1.5 var(--mono); color: #b91c1c; white-space: pre-wrap; }
.bar { height: 6px; border-radius: 3px; background: #e2e8f0; overflow: hidden; margin: 4px 0; } .bar i { display: block; height: 100%; width: 0; background: #0f766e; animation: bxFill 2.4s ease forwards; }
@keyframes bxFill { to { width: 100%; } }

/* ---------- Calendar + Notes ---------- */
.mt { position: absolute; inset: 0; background: #fff; display: flex; flex-direction: column; }
.mt-top { display: flex; align-items: center; gap: 16px; padding: 10px 16px; border-bottom: 1px solid #e2e8f0; font-size: 12.5px; color: #475569; }
.mt-top b { color: #7c3aed; font-size: 15px; } .mt-tz { margin-left: auto; }
.mt-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 300px; min-height: 0; }
.mt-grid { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 10px 12px; background: repeating-linear-gradient(#fff 0 45px, #f1f5f9 45px 46px); background-position: 0 38px; }
.mt-day { position: relative; } .mt-day b { display: block; text-align: center; font-size: 12px; color: #475569; height: 24px; }
.busy { position: absolute; left: 4px; right: 4px; border-radius: 6px; opacity: 0; transition: opacity .5s; }
.busy.you { background: rgba(124,58,237,.22); left: 4px; right: 55%; } .busy.them { background: rgba(37,99,235,.22); left: 30%; right: 30%; } .busy.cfo { background: rgba(234,88,12,.22); left: 55%; right: 4px; }
.mt-grid.show .busy { opacity: 1; }
.slot { position: absolute; left: 2px; right: 2px; border-radius: 7px; background: #dcfce7; border: 1.5px solid #16a34a; color: #166534; font: 600 11px var(--sans); font-style: normal; display: grid; place-items: center; opacity: 0; transition: opacity .4s .6s; }
.mt-grid.show .slot { opacity: 1; }
.mt-legend { position: absolute; left: 12px; bottom: 8px; display: flex; gap: 12px; font-size: 11px; color: #475569; }
.mt-legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.mt-legend .you::before { background: rgba(124,58,237,.45); } .mt-legend .them::before { background: rgba(37,99,235,.45); } .mt-legend .cfo::before { background: rgba(234,88,12,.45); }
.mt-inv { border-left: 1px solid #e2e8f0; padding: 12px 14px; display: flex; flex-direction: column; gap: 5px; background: #fafafa; }
.mt-inv h5 { margin: 0 0 4px; font: 600 14px var(--sans); color: #0f172a; } .mt-inv label { font-size: 11.5px; color: #64748b; margin-top: 4px; }
.mt-inv .bx-in { font-size: 13px; } .mt-agenda { min-height: 64px; }
.mt-inv .ml-btn { align-self: flex-start; margin-top: 8px; background: #7c3aed; }
.mt-rec { margin-left: auto; color: #dc2626; font-weight: 600; } .mt-rec i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #dc2626; margin-right: 4px; animation: bxPulse 1.2s infinite; }
.mt-body2 { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 340px; min-height: 0; }
.mt-call { display: flex; flex-direction: column; padding: 12px; gap: 10px; min-height: 0; background: #0f172a; }
.mt-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mt-tiles div { height: 84px; border-radius: 10px; background: #1e293b; display: grid; place-items: center; align-content: center; gap: 4px; }
.mt-tiles b { width: 38px; height: 38px; border-radius: 50%; background: #334155; color: #e2e8f0; display: grid; place-items: center; font-size: 13px; }
.mt-tiles div:last-child b { background: #0e7490; } .mt-tiles span { font-size: 11px; color: #94a3b8; }
.mt-tx { flex: 1; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.mt-tx p { margin: 0; font-size: 13px; color: #e2e8f0; } .mt-tx b { display: block; font-size: 11px; color: #7dd3fc; font-weight: 600; }
.mt-sum { padding: 12px; background: #f8fafc; border-left: 1px solid #e2e8f0; }
.mt-sum .tc-h b { font-family: var(--sans); font-size: 12.5px; }

/* agentic search overlay */
.sx { position: absolute; top: 58px; bottom: 16px; width: 520px; z-index: 4; background: #fff; border: 1px solid #dbe3ee; border-radius: 14px; box-shadow: 0 24px 60px rgba(15,23,42,.28); padding: 14px 16px; display: flex; flex-direction: column; gap: 9px; overflow: hidden; animation: sxIn .35s ease both; color: #0f172a; }
.sx-right { right: 16px; } .sx-left { left: 16px; }
.sx.out { animation: sxOut .3s ease forwards; }
@keyframes sxIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes sxOut { to { opacity: 0; transform: translateY(6px) scale(.98); } }
.sx header { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.sx-ic { width: 24px; height: 24px; border-radius: 7px; background: #0f172a; color: #67e8f9; display: grid; place-items: center; font-size: 13px; }
.sx header em { margin-left: auto; font-style: normal; font-size: 11.5px; color: #64748b; }
.sx-q { border: 1.5px solid #0ea5e9; border-radius: 999px; padding: 8px 14px; font-size: 13.5px; min-height: 38px; box-shadow: 0 0 0 4px rgba(14,165,233,.12); }
.sx-q .v::after { content: ""; display: inline-block; width: 1px; height: 14px; background: #0f172a; margin-left: 2px; vertical-align: -2px; animation: bxPulse 1s steps(1) infinite; }
.sx-src { display: flex; flex-wrap: wrap; gap: 5px; }
.sx-src span { font-size: 11.5px; padding: 3px 10px; border-radius: 999px; border: 1px dashed #cbd5e1; color: #64748b; transition: all .25s; }
.sx-src span em { font-style: normal; color: #94a3b8; }
.sx-src span.run { border-color: #0ea5e9; color: #0369a1; } .sx-src span.run::before { content: "◌ "; }
.sx-src span.ok { border-style: solid; border-color: #86efac; color: #166534; background: #f0fdf4; } .sx-src span.ok::before { content: "✓ "; }
.sx-hits { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: sx; }
.sx-hits li { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 7px 10px 7px 30px; border-radius: 9px; background: #f8fafc; font-size: 12.5px; animation: bxUp .3s ease both; transition: background .3s, box-shadow .3s; }
.sx-hits li::before { counter-increment: sx; content: counter(sx); position: absolute; left: 10px; top: 8px; font: 600 10.5px var(--mono); color: #94a3b8; }
.sx-hits li b { font-weight: 600; color: #0f172a; } .sx-hits li span { grid-column: 1; font-size: 11px; color: #64748b; }
.sx-hits li i { grid-row: 1 / 3; grid-column: 2; align-self: center; display: flex; align-items: center; gap: 6px; font: normal 11px var(--mono); color: #475569; }
.sx-hits li u { width: 48px; height: 4px; border-radius: 2px; background: #e2e8f0; position: relative; overflow: hidden; }
.sx-hits li u::after { content: ""; position: absolute; inset: 0; width: calc(var(--s) * 100%); background: #0ea5e9; }
.sx-hits li.pick { background: #e0f2fe; box-shadow: inset 3px 0 0 #0ea5e9; }
.sx-doc { position: absolute; left: 16px; right: 16px; bottom: 14px; top: 150px; background: #fffdf7; border: 1px solid #eadfc4; border-radius: 10px; padding: 14px 18px; box-shadow: 0 -10px 30px rgba(15,23,42,.12); font: 13.5px/1.6 Georgia, "Times New Roman", serif; color: #3f3a2e; animation: sxDoc .45s cubic-bezier(.2,.8,.2,1) both; overflow: hidden; }
@keyframes sxDoc { from { transform: translateY(100%); } }
.sx-doc h6 { margin: 0 0 8px; font: 600 11.5px var(--sans); text-transform: uppercase; letter-spacing: .05em; color: #8a6d2f; display: flex; justify-content: space-between; }
.sx-doc p { margin: 0 0 8px; }
.sx-doc mark { background: linear-gradient(90deg, #ffe08a 50%, transparent 50%) 100% 0 / 200% 100% no-repeat; color: #2b2210; padding: 1px 2px; transition: background-position 1s ease; }
.sx-doc.lit mark { background-position: 0 0; }
.noc .sx { top: 52px; }
