/* SRX Hub — structure and components. Colours, type and brand come from the active theme file
 * (theme-nexa.css = the SRX Code look, default · theme-roarai.css = the company look), selected by <html data-theme>.
 * Designed for a 1366×768 laptop at 100% zoom and scales down gracefully.
 * Migrated from the customer's SRX Hub (log 232); only the second theme's brand classes differ (.brand-alt, .sw.roarai). */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.5 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; transition: background .25s; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--link); text-decoration: none; }
code { font: 11.5px ui-monospace, "Cascadia Code", Consolas, monospace; background: var(--code-bg); padding: 1px 6px; border-radius: 6px; color: var(--ink-2); }
.boot { display: grid; place-items: center; height: 100vh; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes glow { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: .9; transform: scale(1.06); } }
@keyframes pulse { 50% { opacity: .25; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Brand (both marks are in the markup; the theme shows one) ───────────────────────────────── */
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; min-width: 0; }
.brand-nexa, .brand-alt { display: none; align-items: center; gap: 11px; }
.brand-nexa svg { width: 34px; height: 34px; flex: 0 0 auto; }
.brand-nexa .bn-t { display: flex; flex-direction: column; line-height: 1.05; }
.brand-nexa .bn-t b { font-weight: 800; font-size: 15px; letter-spacing: .02em; }
.brand-nexa .bn-t small { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; margin-top: 3px; }
.brand-alt img { height: 30px; width: auto; display: block; }
.brand-alt .bsep { width: 1px; height: 26px; background: currentColor; opacity: .3; }
.brand-alt b { font-weight: 700; font-size: 13.5px; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; }
.brandword { text-transform: none !important; }

/* ── Buttons & fields ──────────────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: var(--radius-sm); padding: 10px 16px; font-weight: 700; cursor: pointer; transition: transform .06s, background .15s, box-shadow .15s, opacity .15s; white-space: nowrap; letter-spacing: var(--btn-spacing); text-transform: var(--btn-transform); font-size: 13.5px; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary-bg); color: var(--primary-ink); box-shadow: var(--primary-shadow); }
.btn-primary:hover:not([disabled]) { filter: brightness(1.06); box-shadow: var(--primary-shadow-hover); }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover:not([disabled]) { background: var(--surface-2); }
.btn-danger { background: var(--surface); border-color: #f0c9c9; color: #c53030; }
.btn-block { width: 100%; padding: 13px 16px; }
.btn-sm { padding: 6px 11px; font-size: 12.5px; }
.btn svg { width: 16px; height: 16px; }
.icon-btn { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--topbar-line); background: transparent; color: var(--topbar-ink); cursor: pointer; position: relative; transition: background .15s; }
.icon-btn:hover { background: var(--topbar-hover); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 2px var(--topbar-bg); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--radius-sm); padding: 11px 13px; outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--focus); box-shadow: 0 0 0 4px var(--ring); }
textarea.input { resize: vertical; min-height: 84px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 44px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; cursor: pointer; padding: 6px; color: var(--muted); }
.pw-eye svg { width: 18px; height: 18px; }
.caps { display: none; font-size: 12px; color: #b45309; }
.caps.on { display: block; }
.err { background: #fdf0f0; color: #a32020; border: 1px solid #f4cccc; border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 14px; font-size: 13px; }
.note { background: var(--primary-soft); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 14px; font-size: 13px; }
.linkrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; font-weight: 700; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface-2); border-radius: var(--radius-sm); padding: 4px; gap: 4px; }
.seg button { border: 0; background: transparent; border-radius: calc(var(--radius-sm) - 3px); padding: 8px 6px; font-weight: 700; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-2); cursor: pointer; }

/* ── Sign-in ───────────────────────────────────────────────────────────────────────────────── */
.auth { display: grid; grid-template-columns: minmax(380px, 50%) 1fr; min-height: 100vh; }
.auth-brand { position: relative; overflow: hidden; background: var(--hero-bg); color: var(--hero-ink); padding: clamp(28px, 5vh, 52px) clamp(28px, 4.5vw, 64px); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.auth-brand::before { content: ""; position: absolute; inset: auto -12% -30% auto; width: 620px; height: 620px; background: var(--hero-glow); border-radius: 50%; filter: blur(10px); animation: glow 9s ease-in-out infinite; pointer-events: none; }
.auth-brand::after { content: ""; position: absolute; inset: 0; background: var(--hero-pattern); pointer-events: none; }
.auth-brand > * { position: relative; z-index: 1; }
.auth-brand .brand { color: var(--hero-ink); }
.auth-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--hero-accent); margin-bottom: 14px; }
.auth-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--hero-accent); box-shadow: 0 0 0 4px rgba(255,255,255,.08); }
.auth-brand h1 { font-family: var(--heading-font); font-size: clamp(30px, 3.4vw, 48px); line-height: 1.06; margin: 0 0 14px; letter-spacing: var(--h1-spacing); text-transform: var(--h1-transform); max-width: 560px; }
.auth-brand h1 em { font-style: normal; color: var(--hero-accent); }
.auth-brand p.lead { color: var(--hero-muted); max-width: 470px; margin: 0; font-size: 15px; }
.auth-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 26px; max-width: 560px; }
.auth-feat { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 12px; border-radius: var(--radius-sm); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); backdrop-filter: blur(6px); }
.auth-feat .fi { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--hero-chip); color: var(--hero-accent); }
.auth-feat .fi svg { width: 18px; height: 18px; }
.auth-feat b { display: block; font-size: 13px; color: var(--hero-ink); }
.auth-feat span { font-size: 12px; color: var(--hero-muted); }
.auth-foot { display: flex; gap: 14px; align-items: center; color: var(--hero-muted); font-size: 12px; flex-wrap: wrap; }
.auth-foot .live { display: inline-flex; align-items: center; gap: 6px; }
.auth-foot .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52,211,153,.2); }
.auth-panel { position: relative; display: grid; place-items: center; padding: 40px 24px; background: var(--auth-panel-bg); }
.auth-panel-top { position: absolute; top: 18px; right: 20px; display: flex; gap: 8px; }
.auth-panel-top .icon-btn { color: var(--ink); border-color: var(--line-strong); }
.auth-panel-top .icon-btn:hover { background: var(--surface-2); }
.auth-card { width: 100%; max-width: 410px; animation: rise .4s ease; }
.auth-card h2 { font-family: var(--heading-font); font-size: 28px; margin: 0 0 6px; letter-spacing: var(--h2-spacing); text-transform: var(--h2-transform); }
.auth-card .sub { color: var(--muted); margin: 0 0 24px; }
.sso-btn { width: 100%; margin-bottom: 14px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 4px 0 16px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-trust { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.auth-trust span { display: inline-flex; align-items: center; gap: 6px; }
.auth-trust svg { width: 14px; height: 14px; }

/* ── Shell ─────────────────────────────────────────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; height: 62px; padding: 0 clamp(14px, 2.6vw, 30px); background: var(--topbar-bg); color: var(--topbar-ink); border-bottom: 1px solid var(--topbar-line); }
.nav { display: flex; gap: 2px; margin-left: 10px; }
.nav a { white-space: nowrap; color: var(--topbar-muted); font-weight: 700; padding: 8px 12px; border-radius: 10px; font-size: 13.5px; letter-spacing: var(--nav-spacing); text-transform: var(--nav-transform); }
.nav a.on { color: var(--topbar-ink); background: var(--topbar-hover); box-shadow: inset 0 -2px 0 var(--nav-on-line); }
.nav a:hover { color: var(--topbar-ink); }
.spacer { flex: 1; }
.cmdk-btn { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px 0 12px; border-radius: 12px; border: 1px solid var(--topbar-line); background: var(--topbar-hover); color: var(--topbar-muted); cursor: pointer; min-width: 230px; font-size: 13px; }
.cmdk-btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.cmdk-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk-btn kbd { white-space: nowrap; margin-left: auto; font: 11px ui-monospace, Consolas, monospace; border: 1px solid var(--topbar-line); border-radius: 6px; padding: 1px 6px; color: var(--topbar-muted); }
.chip-driver { font-size: 11.5px; color: var(--topbar-muted); border: 1px solid var(--topbar-line); border-radius: 999px; padding: 4px 10px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.chip-driver::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34d399; }
.me { position: relative; }
.me-btn { display: flex; align-items: center; gap: 10px; border: 1px solid var(--topbar-line); background: transparent; color: var(--topbar-ink); border-radius: 999px; padding: 4px 12px 4px 4px; cursor: pointer; }
.me-btn:hover { background: var(--topbar-hover); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--avatar-bg); color: var(--avatar-ink); display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: 0 0 auto; }
.me-btn .who { text-align: left; line-height: 1.15; white-space: nowrap; }
.me-btn .who b { display: block; font-size: 13px; }
.me-btn .who span { font-size: 11.5px; color: var(--topbar-muted); }
.menu, .pop { position: absolute; right: 0; top: calc(100% + 10px); width: 260px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; animation: rise .15s ease; z-index: 40; }
.menu button { width: 100%; text-align: left; border: 0; background: none; border-radius: 10px; padding: 9px 10px; cursor: pointer; display: flex; gap: 10px; align-items: center; }
.menu button:hover { background: var(--surface-2); }
.menu button svg { width: 16px; height: 16px; color: var(--muted); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.menu .mh { padding: 10px 10px 8px; display: flex; gap: 10px; align-items: center; }
.menu .mh b { display: block; }
.menu .mh span { font-size: 12px; color: var(--muted); }
.pop { width: 340px; padding: 12px; }
.pop h4 { margin: 0 0 8px; font-size: 13px; }
.pop .req { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; }
.pop .req:hover { background: var(--surface-2); }
.pop .req small { display: block; color: var(--muted); font-size: 11.5px; }
.main { max-width: 1280px; margin: 0 auto; padding: 22px clamp(14px, 2.6vw, 30px) 48px; animation: rise .3s ease; }

/* ── Dashboard ─────────────────────────────────────────────────────────────────────────────── */
.welcome { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 24px 26px; background: var(--hero-bg); color: var(--hero-ink); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 22px; align-items: center; margin-bottom: 18px; box-shadow: var(--shadow); }
.welcome::before { content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%; background: var(--hero-glow); filter: blur(6px); pointer-events: none; }
.welcome::after { content: ""; position: absolute; inset: 0; background: var(--hero-pattern); pointer-events: none; }
.welcome > * { position: relative; z-index: 1; }
.welcome h1 { font-family: var(--heading-font); margin: 0; font-size: clamp(22px, 2.3vw, 30px); letter-spacing: var(--h1-spacing); text-transform: var(--h1-transform); }
.welcome p { margin: 6px 0 0; color: var(--hero-muted); }
.welcome .date { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--hero-accent); font-weight: 700; margin-bottom: 6px; }
.continue { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 14px 16px; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 14px; align-items: center; backdrop-filter: blur(8px); }
.continue .ws-ic { background: var(--hero-chip); color: var(--hero-ink); border: 1px solid rgba(255,255,255,.12); }
.continue b { display: block; font-size: 15px; }
.continue small { color: var(--hero-muted); font-size: 12px; }
.continue .btn-primary { box-shadow: none; }
.continue.empty-c { grid-template-columns: 1fr; text-align: left; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.kpi .ki { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-strong); }
.kpi .ki svg { width: 19px; height: 19px; }
.kpi small { color: var(--muted); font-weight: 700; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.kpi b { display: block; font-size: 22px; letter-spacing: -.4px; line-height: 1.15; }
.grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr); gap: 18px; align-items: start; }
.col { display: grid; gap: 18px; min-width: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 6px; }
.card-h h3 { margin: 0; font-size: 15px; font-family: var(--heading-font); letter-spacing: var(--h3-spacing); text-transform: var(--h3-transform); display: flex; align-items: center; gap: 8px; }
.card-h h3 svg { width: 17px; height: 17px; color: var(--primary-strong); }
.card-h small { color: var(--muted); }
.card-b { padding: 10px 18px 18px; }
.empty { text-align: center; color: var(--muted); padding: 26px 12px; }
.empty b { color: var(--ink); display: block; margin-bottom: 4px; font-size: 15px; }
.filters { display: flex; gap: 8px; align-items: center; }
.filters .input { padding: 7px 11px; width: 200px; }
.ws-list { display: grid; gap: 10px; }
.ws { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s, transform .15s; background: var(--surface); }
.ws:hover { border-color: var(--line-strong); box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.ws-ic { width: 46px; height: 46px; border-radius: 13px; background: var(--tile-bg); color: var(--tile-ink); display: grid; place-items: center; font-weight: 900; font-size: 13px; letter-spacing: .04em; }
.ws-t { min-width: 0; }
.ws-t b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-t .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 12px; margin-top: 3px; }
/* A newer version is deployed while this workspace runs the one it started with (prompt 238). */
.ws-t .meta.upd-note { margin-top: 6px; padding: 6px 8px; border-radius: 8px; background: var(--primary-soft); color: var(--ink-2); }
.ws-t .meta.upd-note svg { width: 14px; height: 14px; color: var(--primary); flex: none; }
.ws-a { display: flex; gap: 8px; align-items: center; }
.kebab { width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--muted); position: relative; }
.kebab svg { width: 16px; height: 16px; }
.kebab-menu { right: 0; top: calc(100% + 6px); width: 220px; }
.tier { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.tier::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tier.hot { color: #0f8a45; background: #e6f6ed; }
.tier.warm { color: #2f5bff; background: #edf1ff; }
.tier.cool { color: #a86400; background: #fff3dd; }
.tier.new { color: #6d4aff; background: #f1edff; }
.tier.busy { color: var(--ink-2); background: var(--surface-2); }
.tier.busy::before { animation: pulse 1s ease-in-out infinite; }
.seats { display: flex; }
.seats .avatar { width: 24px; height: 24px; font-size: 10px; border: 2px solid var(--surface); margin-left: -6px; }
.seats .avatar:first-child { margin-left: 0; }
.start-new { display: grid; gap: 14px; }
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; max-height: 268px; overflow: auto; padding: 2px; }
.app-pick { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); padding: 10px 11px; cursor: pointer; transition: border-color .12s, background .12s, box-shadow .12s; }
.app-pick:hover { border-color: var(--line-strong); }
.app-pick.on { border-color: var(--focus); box-shadow: inset 0 0 0 1px var(--focus), 0 0 0 4px var(--ring); }
.app-pick b { display: block; font-size: 13px; }
.app-pick span { font-size: 11.5px; color: var(--muted); }
.app-pick em { font-style: normal; font-size: 10.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.suggest { border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; background: var(--surface-2); }
.datahint { margin-top: 6px; font-size: 12px; color: var(--muted); }
details.dev { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 12px; }
details.dev summary { cursor: pointer; font-weight: 700; font-size: 13px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.timeline li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: start; padding: 7px 4px; border-radius: 10px; }
.timeline li:hover { background: var(--surface-2); }
.timeline .tl-i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); }
.timeline .tl-i svg { width: 14px; height: 14px; }
.timeline b { font-size: 13px; font-weight: 600; }
.timeline small { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.tiers { display: grid; gap: 10px; font-size: 12.5px; color: var(--ink-2); }
.tiers div { display: flex; gap: 10px; align-items: flex-start; }
.tiers .tier { flex: 0 0 auto; }

/* ── Command palette ───────────────────────────────────────────────────────────────────────── */
.cmdk-scrim { position: fixed; inset: 0; background: rgba(10,10,12,.45); backdrop-filter: blur(3px); z-index: 60; display: grid; justify-items: center; align-items: start; padding-top: 12vh; animation: rise .15s ease; }
.cmdk { width: min(640px, 92vw); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.cmdk input { width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 16px 18px; font-size: 15px; outline: none; background: transparent; }
.cmdk ul { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow: auto; }
.cmdk li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; cursor: pointer; }
.cmdk li.on, .cmdk li:hover { background: var(--surface-2); }
.cmdk li .ci { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-strong); font-size: 11px; font-weight: 800; }
.cmdk li .ci svg { width: 15px; height: 15px; }
.cmdk li small { color: var(--muted); font-size: 12px; }
.cmdk .foot { display: flex; gap: 14px; padding: 9px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11.5px; }

/* ── Opening screen ────────────────────────────────────────────────────────────────────────── */
.opening { max-width: 580px; margin: 6vh auto 0; }
.opening .card-b { padding: 24px 26px 26px; }
.opening h2 { margin: 0 0 4px; font-size: 22px; font-family: var(--heading-font); letter-spacing: var(--h2-spacing); text-transform: var(--h2-transform); }
.steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.steps li { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: start; }
.steps .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; font-size: 12px; }
.steps li.done .dot { background: #12a150; border-color: #12a150; color: #fff; }
.steps li.running .dot { border-color: var(--primary); border-top-color: transparent; animation: spin .8s linear infinite; }
.steps li.failed .dot { background: #d93a3a; border-color: #d93a3a; color: #fff; }
.steps .lbl b { display: block; font-size: 13.5px; font-weight: 600; }
.steps .lbl span { font-size: 12px; color: var(--muted); word-break: break-word; }
.steps .ms { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bar { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-top: 18px; }
.bar > i { display: block; height: 100%; background: var(--primary-bg); border-radius: 99px; transition: width .4s ease; }

/* ── Tables, profile, connections ──────────────────────────────────────────────────────────── */
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.hero h1 { font-family: var(--heading-font); font-size: clamp(22px, 2.3vw, 30px); margin: 0; letter-spacing: var(--h1-spacing); text-transform: var(--h1-transform); }
.hero p { margin: 4px 0 0; color: var(--muted); }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.table-wrap { overflow: auto; max-height: calc(100vh - 280px); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); font-weight: 800; padding: 9px 10px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.inline-form { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: 8px; align-items: end; margin-bottom: 14px; }
.akpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.akpi { padding: 14px 16px; }
.akpi small { color: var(--muted); font-weight: 700; }
.akpi b { display: block; font-size: 24px; letter-spacing: -.5px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.views { display: grid; gap: 8px; }
.view-opt { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; cursor: pointer; }
.view-opt.on { border-color: var(--focus); box-shadow: inset 0 0 0 1px var(--focus); }
.view-opt b { display: block; }
.view-opt span { font-size: 12.5px; color: var(--muted); }
.theme-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.theme-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px; cursor: pointer; background: var(--surface); text-align: left; }
.theme-card.on { border-color: var(--focus); box-shadow: inset 0 0 0 1px var(--focus), 0 0 0 4px var(--ring); }
.theme-card .sw { height: 54px; border-radius: 8px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; padding: 0 10px; color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .1em; }
.theme-card .sw.nexa { background: radial-gradient(circle at 85% 20%, rgba(255,77,28,.55), transparent 55%), #0b0b0c; }
.theme-card .sw.roarai { background: radial-gradient(circle at 85% 20%, rgba(21,83,236,.6), transparent 55%), linear-gradient(115deg, #0a0f24 0%, #121a3f 100%); }
.theme-card .sw.aurora { background: linear-gradient(120deg, #9a00e0 0%, #923afb 50%, #3f5fe0 100%); }   /* prompt 236 */
.theme-card .sw.lagoon { background: linear-gradient(90deg, #2b7a2f 0%, #23709a 50%, #1b5adf 100%); }
.theme-card .sw img { height: 22px; border-radius: 4px; background: #fff; padding: 2px 4px; }
.theme-card .sw svg { width: 24px; height: 24px; }
.theme-card b { font-size: 13px; }
.theme-card span { display: block; font-size: 11.5px; color: var(--muted); }
.conn-list { display: grid; gap: 10px; }
.conn { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.conn-t b { display: block; }
.conn-t > span { font-size: 12.5px; color: var(--muted); }
.conn-t .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; font-size: 12px; }
.conn-a { display: flex; gap: 8px; align-items: center; }
.conn-a .input { padding: 8px 11px; }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--toast-bg); color: #fff; padding: 11px 16px; border-radius: 12px; font-size: 13px; opacity: 0; pointer-events: none; transition: all .2s; z-index: 70; max-width: min(560px, 90vw); box-shadow: var(--shadow-lg); }
#toast.show { opacity: 1; transform: translateX(-50%); }

@media (max-width: 1180px) { .cmdk-btn { min-width: 0; } .cmdk-btn span, .cmdk-btn kbd { display: none; } .chip-driver { display: none; } }
@media (max-width: 1080px) { .grid, .two, .welcome { grid-template-columns: 1fr; } .kpis, .akpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .inline-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-feats { display: none; } .nav { display: none; } .me-btn .who { display: none; } .conn { grid-template-columns: 1fr; } }
@media (max-height: 760px) { .main { padding-top: 14px; } .welcome { padding: 18px 22px; } .apps { max-height: 210px; } .auth-feats { margin-top: 16px; } }

/* ── Contextual help (help-tips.js) ───────────────────────────────────────────────────────────── */
.tip { position: fixed; z-index: 90; max-width: 320px; padding: 11px 13px; border-radius: 12px; background: #0f1115; color: #e9ebef; font-size: 12.5px; line-height: 1.45; box-shadow: 0 16px 40px rgba(0,0,0,.28); opacity: 0; transform: translateY(4px); transition: opacity .14s, transform .14s; pointer-events: none; }
.tip.on { opacity: 1; transform: none; }
.tip b { display: block; color: #fff; font-size: 13px; margin-bottom: 3px; }
.tip p { margin: 0; color: #c9ccd3; }
.tip p.when { margin-top: 7px; padding-top: 7px; border-top: 1px solid rgba(255,255,255,.12); }
.tip p.when span { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--hero-accent, #ff7a45); margin-bottom: 2px; }
.tip::before { content: ""; position: absolute; left: var(--arrow-x, 20px); width: 10px; height: 10px; background: #0f1115; transform: translateX(-50%) rotate(45deg); }
.tip[data-place="below"]::before { top: -5px; }
.tip[data-place="above"]::before { bottom: -5px; }
.info-i { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 6px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--muted); font: 700 10px/1 Georgia, serif; font-style: italic; cursor: help; vertical-align: middle; text-transform: none; letter-spacing: 0; }
.info-i:hover, .info-i:focus { color: var(--ink); border-color: var(--ink); outline: none; }
[data-has-tip] { cursor: help; }
button[data-has-tip], a[data-has-tip], input[data-has-tip], select[data-has-tip], textarea[data-has-tip], summary[data-has-tip] { cursor: pointer; }
input[data-has-tip], textarea[data-has-tip] { cursor: text; }
.menu button span { display: flex; flex-direction: column; line-height: 1.25; }
.menu button span small { color: var(--muted); font-size: 11.5px; font-weight: 400; margin-top: 2px; }
.kebab-menu { width: 290px; }
/* Testing dashboard and Jira tickets (prompt 239) */
.t-envs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.t-envs .hint { color: var(--muted); font-size: 12px; font-weight: 700; margin-right: 2px; }
.t-envs .btn svg { width: 13px; height: 13px; }
.t-h { margin: 14px 0 8px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.t-story { cursor: pointer; }
.t-story.on { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.t-story .ws-a { flex-wrap: wrap; justify-content: flex-end; }
.t-app-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); }
.t-app-row:last-child { border-bottom: 0; }
.t-app-row .t-envs { margin: 0; }
.t-detail { position: sticky; top: 84px; }
.t-detail .card-b { max-height: calc(100vh - 170px); overflow: auto; }
.t-ac { display: flex; align-items: flex-start; margin: 6px 0; line-height: 1.4; }
.t-ac input { margin-top: 3px; }
.t-desc { white-space: pre-wrap; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.t-bug { margin-top: 10px; padding-top: 4px; border-top: 1px solid var(--line); }
.t-rec { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.t-rec:last-child { border-bottom: 0; }
.t-rec .meta, .jt .meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.jt { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.jt:last-child { border-bottom: 0; }
.jt a { font-weight: 800; white-space: nowrap; }
.jt span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jt .meta { grid-column: 2; }
.role-picks { display: flex; flex-wrap: wrap; gap: 4px 10px; max-width: 360px; }
.role-picks .check { font-size: 12px; }
@media (max-width: 1080px) { .t-detail { position: static; } .t-detail .card-b { max-height: none; } }
