* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font: 14px/1.43 var(--font); color: var(--ink); background: var(--page); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-weight: 600; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; } a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
[hidden] { display: none !important; }

/* shell */
.app { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 20px 18px 16px; font-weight: 600; font-size: 16px; }
/* The Blinqx logo (inline SVG, see BLINQX_LOGO in app.js): 29px high as in the design system's sidebar. */
.brand { flex-direction: column; align-items: flex-start; gap: 4px; }
.brand-login { padding: 0; }
.brand .blinqx-logo { height: 29px; width: auto; color: var(--ink); display: block; }
.brand small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.scope { margin: 0 12px 6px; display: flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-input); background: var(--surface-2); color: var(--ink); font: inherit; text-align: left; }
.scope-opco { font-weight: 600; } .scope-sep { color: var(--muted); } .scope-tenant { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.nav { padding: 6px 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; overflow: auto; }
.nav .group { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 14px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--ink-2); font-weight: 500; text-decoration: none; }
.nav a:hover { background: var(--surface-3); text-decoration: none; color: var(--ink); }
.nav a.on { background: var(--accent-soft); color: var(--accent-on-soft); font-weight: 600; }
.nav a .ico { width: 18px; text-align: center; opacity: .9; }
.me { border-top: 1px solid var(--line); padding: 12px; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.me { color: inherit; text-decoration: none; width: 100%; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; text-align: left; }
.me .who { flex: 1; } .me-caret { color: var(--muted); font-size: 11px; }
.me-wrap { position: relative; }
.me-menu { position: absolute; left: 8px; right: 8px; bottom: calc(100% + 4px); z-index: 40; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--radius-input); box-shadow: var(--shadow-lg); padding: 4px; }
.me-menu a, .me-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; font: inherit;
  color: var(--ink); text-decoration: none; border-radius: var(--radius-sm); cursor: pointer; text-align: left; }
.me-menu a:hover, .me-menu button:hover, .me-menu a.on { background: var(--surface-3); }
.me-menu .ico { width: 18px; text-align: center; color: var(--muted); }
.me-menu .me-out { color: var(--bad-ink); } .me-menu .me-out .ico { color: inherit; }
.me-sep { height: 1px; background: var(--line); margin: 4px 2px; }
.me:hover, .me.on { background: var(--surface-2); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-3); color: var(--ink); display: grid; place-items: center; font-weight: 500; font-size: 13px; flex: none; }
.me .who { min-width: 0; } .me .who b { display: block; font-weight: 600; } .me .who span { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.theme-set { display: flex; width: 100%; } .theme-set button { flex: 1; }
.login-wrap { position: relative; } .login-theme { position: absolute; top: 16px; right: 16px; }
.main { min-width: 0; }
.top { display: flex; align-items: center; gap: 12px; padding: 22px 32px 6px; flex-wrap: wrap; }
.top h1 { font-size: 24px; line-height: 32px; margin: 0; font-weight: 600; }
.top .sub { color: var(--muted); margin-top: 2px; }
.top .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.content { padding: 16px 32px 48px; }
.env { font-size: 12px; font-weight: 500; color: var(--warn-ink); background: var(--warn-soft); padding: 2px 10px; border-radius: 999px; }

/* primitives */
/* Blinqx button: pill, Medium, secondary = black/05 plane (hover black/10), primary = black fill,
   hover opacity .85, disabled opacity .4, destructive = red tint with red text. */
.btn { font: inherit; font-size: 13px; font-weight: 500; border: 1px solid transparent; background: var(--surface-3); color: var(--ink); padding: 8px 16px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; transition: background .12s, opacity .12s; }
.btn:hover { background: var(--fill-hover); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
a.btn { text-decoration: none; }
.btn.primary:hover:not(:disabled) { opacity: .85; }
.btn.danger { background: var(--bad-soft); color: var(--bad-ink); }
.btn.danger:hover { background: var(--bad-soft-hover); }
.btn.ghost { background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-3); color: var(--ink); }
.btn.sm { padding: 5px 12px; font-size: 12px; }
/* Package actions: one right-aligned row, equal widths, a colour per meaning. */
.row-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.row-actions .btn { min-width: 118px; justify-content: center; }
.btn.install { background: var(--accent); color: var(--accent-ink); }
.btn.update { background: var(--good-solid); color: var(--good-on-solid); }
.btn.install:hover:not(:disabled), .btn.update:hover:not(:disabled) { opacity: .85; }
.btn.uninstall { background: var(--bad-soft); color: var(--bad-ink); }
.btn.uninstall:hover { background: var(--bad-soft-hover); }
.pill.update { background: var(--good-soft); color: var(--good-ink); }
.btn .plus { font-size: 16px; line-height: 1; margin-top: -1px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-h { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.card-h h3 { margin: 0; font-size: 16px; line-height: 24px; font-weight: 500; }
.card-h .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card-b { padding: 16px 20px; }
.card-b.flush { padding: 0; }
.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g21 { grid-template-columns: 2fr 1fr; }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g3, .g21, .g2 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .app { grid-template-columns: 1fr; } .side { position: static; height: auto; } .top, .content { padding-left: 16px; padding-right: 16px; } .g4 { grid-template-columns: 1fr; }
  /* The support page at 360 px: a label above its value, and the ticket link a row of its own. */
  .support .kv { grid-template-columns: 1fr; gap: 2px; } .support .kv dd { margin-bottom: 8px; }
  .topbar-slot { padding-left: 16px; padding-right: 16px; } .support-topbar .btn { width: 100%; justify-content: center; white-space: normal; } }
.stat { padding: 16px 20px; }
.stat .label { color: var(--ink-2); font-size: 12px; line-height: 16px; font-weight: 500; }
.stat .value { font-size: 28px; line-height: 36px; font-weight: 600; margin-top: 8px; }
.stat .hint { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.src { font-size: 10px; font-weight: 500; letter-spacing: .04em; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); text-transform: uppercase; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; font-weight: 400; padding: 4px 12px; border-radius: 999px; background: var(--neutral-soft); color: var(--ink-2); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.pill.good { background: var(--good-soft); color: var(--good-ink); }
.pill.bad { background: var(--bad-soft); color: var(--bad-ink); }
.pill.warn { background: var(--warn-soft); color: var(--warn-ink); }
.pill.run { background: var(--run-soft); color: var(--run-ink); }
.pill.run::before { animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.tag { font-family: var(--mono); font-size: 12px; background: var(--surface-3); padding: 1px 6px; border-radius: 4px; color: var(--ink-2); }
.muted { color: var(--muted); }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }

/* tables */
table.t { width: 100%; border-collapse: collapse; }
.t th { text-align: left; font-size: 12px; line-height: 16px; font-weight: 400; color: var(--muted); padding: 10px 20px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.t td { padding: 11px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; font-variant-numeric: tabular-nums; }
.t tr:last-child td { border-bottom: 0; }
.t tr.click { cursor: pointer; } .t tr.click:hover td { background: var(--surface-2); }
.scroll-x { overflow-x: auto; }

.tbl-search { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.tbl-search .in { max-width: 420px; }
td.tog, th.tog { width: 28px; padding-right: 0; color: var(--muted); }
tr.grp-open td { background: var(--surface-2); }
tr.grp > td { background: var(--surface-2); padding-top: 0; }
table.sub { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
table.sub th { background: var(--surface-3); padding: 7px 12px; } table.sub td { padding: 8px 12px; }
.filters { flex-wrap: wrap; } .filters details.adv { flex-basis: 100%; } .filters details.adv summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.filters details.adv .in { margin-top: 6px; max-width: none; }
.chips-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fchip { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--brand) 70%, transparent);
  border-radius: 999px; padding: 3px 4px 3px 11px; font-size: 13px; cursor: pointer; }
.fchip b { font-weight: 500; } .fchip button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 5px; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 10px 20px; border-top: 1px solid var(--line); }
.pager .muted { margin-right: auto; }
/* serverTable: the page shown stays visible (dimmed) while the next one is asked of the server */
.srv .tbl-body { transition: opacity .15s; } .srv.loading .tbl-body { opacity: .55; }
th.sortable { cursor: pointer; user-select: none; } th.sortable:hover { color: var(--ink); }
th .arrow { font-size: 9px; margin-left: 5px; color: var(--ink); }
/* segmented + tabs */
.seg { display: inline-flex; background: var(--surface-3); border-radius: 999px; padding: 3px; }
.seg button { font: inherit; font-size: 13px; border: 0; background: transparent; padding: 4px 12px; border-radius: 999px; color: var(--ink-2); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); font-weight: 500; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs button { font: inherit; border: 0; background: none; padding: 10px 12px; color: var(--ink-2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); border-bottom-color: var(--ink); }
.tabs .count { font-size: 11.5px; background: var(--surface-3); border-radius: 999px; padding: 0 7px; margin-left: 4px; color: var(--muted); }

/* forms */
label.f { display: block; margin-bottom: 14px; }
label.f > span { display: block; font-size: 13px; font-weight: 500; margin-bottom: 5px; }
label.f > small { display: block; color: var(--muted); margin-top: 4px; font-size: 12px; }
.in, textarea.in, select.in { width: 100%; font: inherit; padding: 8px 11px; border: 1px solid var(--line-2); border-radius: var(--radius-input); background: var(--surface); color: var(--ink); }
textarea.in { font-family: var(--mono); font-size: 12.5px; min-height: 120px; resize: vertical; }
.in:focus { outline: 2px solid var(--ring); outline-offset: 1px; border-color: var(--ring); }
.row { display: flex; gap: 12px; } .row > * { flex: 1; }

/* modal, drawer, toast */
.scrim { position: fixed; inset: 0; background: var(--scrim); backdrop-filter: blur(2px); display: grid; place-items: center; z-index: 50; animation: fade .12s ease-out; }
.modal { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); animation: rise .16s ease-out; }
.modal.wide { width: min(760px, calc(100vw - 32px)); }
.modal-h { padding: 22px 24px 6px; display: flex; align-items: start; gap: 10px; }
.modal-h h2 { margin: 0; font-size: 18px; line-height: 24px; font-weight: 600; }
.modal-h p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.modal-b { padding: 14px 24px; }
.modal-f { padding: 12px 24px 22px; display: flex; gap: 8px; justify-content: flex-end; }
.x { margin-left: auto; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
.drawer-scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 40; animation: fade .12s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(640px, 100vw); background: var(--surface); box-shadow: var(--shadow-lg); z-index: 41; display: flex; flex-direction: column; animation: slide .18s ease-out; }
.drawer-h { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: start; }
.drawer-h h2 { margin: 0; font-size: 18px; line-height: 24px; font-weight: 600; }
.drawer-b { padding: 18px 22px; overflow: auto; flex: 1; }
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); box-shadow: var(--shadow-lg); border-radius: var(--radius-input); padding: 12px 16px; width: 360px; animation: rise .16s; }
.toast.good { border-left-color: var(--good); } .toast.bad { border-left-color: var(--bad); }
.toast b { display: block; } .toast span { color: var(--ink-2); font-size: 13px; word-break: break-word; }
@keyframes fade { from { opacity: 0; } } @keyframes rise { from { opacity: 0; transform: translateY(8px); } } @keyframes slide { from { transform: translateX(40px); opacity: 0; } }

/* misc */
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; font-size: 13.5px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; min-width: 0; word-break: break-all; }
pre.json { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px; font-family: var(--mono); font-size: 12px; overflow: auto; max-height: 320px; margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 14px 26px; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2); }
.timeline li::after { content: ""; position: absolute; left: 11px; top: 18px; bottom: -2px; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.good::before { border-color: var(--good); background: var(--good); }
.timeline li.bad::before { border-color: var(--bad); background: var(--bad); }
.timeline li.acc::before { border-color: var(--accent); }
.timeline .ev { font-weight: 500; } .timeline .when { color: var(--muted); font-size: 12px; margin-left: 6px; }
.timeline pre.json { margin-top: 6px; max-height: 160px; }
.health { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.health:last-child { border-bottom: 0; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.good { background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); } .dot.bad { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.chart-box { position: relative; height: 260px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.wf-card { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.wf-card h4 { margin: 0; font-size: 14px; font-family: var(--mono); font-weight: 600; }
.wf-card p { margin: 0; color: var(--ink-2); font-size: 13.5px; flex: 1; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(900px 520px at 15% -10%, var(--glow), transparent), var(--page); }
.login { width: min(520px, 100%); padding: 32px; border-radius: var(--radius-xl); }
.login h1 { margin: 20px 0 4px; font-size: 28px; line-height: 36px; font-weight: 600; }
.steps { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 12.5px; flex-wrap: wrap; margin: 14px 0 22px; }
.steps span { background: var(--surface-3); padding: 2px 8px; border-radius: 999px; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; margin: 20px 0 12px; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; gap: 6px; align-items: center; background: var(--surface-3); border-radius: 999px; padding: 3px 4px 3px 10px; font-size: 13px; }
.chip button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 15px; line-height: 1; }
.opco { padding: 16px 20px; }
.opco h4 { margin: 0 0 10px; font-size: 14px; }
.opco .pk { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
details.raw summary { cursor: pointer; color: var(--muted); font-size: 13px; margin: 10px 0 6px; }
.badge { margin-left: auto; background: var(--warn); color: #000000; font-size: 12px; font-weight: 500; border-radius: 999px; padding: 0 7px; min-width: 20px; text-align: center; }
.approval { border-left: 4px solid var(--warn); margin-bottom: 12px; }
.approval.done { border-left-color: var(--good); }
.checks { display: grid; gap: 6px; } .check { display: flex; gap: 8px; align-items: center; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.check:hover { background: var(--surface-2); }
.note { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-input); padding: 10px 12px; color: var(--ink-2); font-size: 13px; }
.note.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn-ink); }
.note.bad { background: var(--bad-soft); border-color: transparent; color: var(--bad-ink); }

/* The job detail page (#job?id=…). */
.crumb { color: var(--muted); text-decoration: none; } .crumb:hover { color: var(--ink); } .crumb-sep { color: var(--muted); margin: 0 4px; }
.jp-row { margin-bottom: 14px; }
.jp-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.jp-name { font-size: 18px; font-weight: 600; margin-bottom: 2px; }
.jp-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.jp-sub { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.jp-foot { font-size: 12px; }
.card-note { font-size: 12.5px; }
#jp-runs tr.on td { background: var(--surface-2); }
.drawer-full { font-size: 13px; font-weight: 400; margin-left: 10px; }
.cost-acts { margin-top: 12px; }
.pager-inline { padding: 10px 0 0; border: 0; }

/* Jobs: the typed filter bar (Langfuse style). The suggestion list is fixed-positioned from the bar;
   its position is the one run-time value, passed as custom properties (--sug-top/left/width). */
.fq { flex: 1; min-width: 320px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 10px;
  border: 1px solid var(--line-2); border-radius: var(--radius-input); background: var(--surface); cursor: text; }
.fq:focus-within { border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 15%, transparent); }
.fq-chips, .fq-draft { display: contents; }
.fq-in { flex: 1; min-width: 180px; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; padding: 4px 2px; }
.fq-seg { background: var(--surface-3); border-radius: var(--radius-sm); padding: 2px 8px; font-size: 13px; }
.fq-op { color: var(--ink-2); } .fq-val { background: var(--accent-soft); }
.sug { position: fixed; top: var(--sug-top); left: var(--sug-left); width: var(--sug-width); z-index: 45; background: var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--radius-input); box-shadow: var(--shadow-lg); padding: 4px; max-height: 300px; overflow: auto; }
.sug-item { display: flex; justify-content: space-between; gap: 12px; padding: 7px 10px; border-radius: var(--radius-sm); cursor: pointer; }
.sug-item.on, .sug-item:hover { background: var(--surface-3); }
/* Named classes that replace the former inline styles in app.js. */
.legend i.s-good { background: var(--s-good); } .legend i.s-running { background: var(--s-running); }
.legend i.s-bad { background: var(--s-bad); } .legend i.s-other { background: var(--s-other); }
.banner-slot { padding: 0 32px; }
.banner-text { flex: 1; min-width: 260px; }
.btn.btn-block { width: 100%; justify-content: center; padding: 11px; }
.chart-box.short { height: 200px; }
.card.flat { box-shadow: none; }
table.t.boxed { border: 1px solid var(--line); border-radius: 8px; }
.pager.inset { padding: 10px 0 0; border: 0; }
.check.disabled { opacity: .55; cursor: not-allowed; }
.issuer-label { font-size: 12px; font-weight: 600; margin: 8px 0 2px; }
.opco-label { font-size: 12px; font-weight: 600; margin: 6px 0; }

/* The two versions: a workflow's contract version glued to its name; a package's build version with its name. */
.wf { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.wf b { white-space: nowrap; }
.wf-ver { flex: none; margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.pkg { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 12.5px; white-space: nowrap; background: var(--surface-2); }
.pkg-ico { color: var(--muted); font-size: 11px; }

/* Outside a table column (a heading, a details list) the version stays next to the name. */
.jp-name .wf, .kv .wf { display: inline-flex; justify-content: flex-start; }

/* Jobs: the full job id, workflow + version and package each on one line; tighter cells so it fits 1400 px. */
#jobsTbl .t td, #jobsTbl .t th { padding-inline: 12px; }
#jobsTbl .t td:first-child, #jobsTbl .t th:first-child { padding-left: 20px; }
#jobsTbl .row-actions .btn { min-width: 0; }

/* A refusal in a dialog: its violations as a table, in normal ink inside the red note. */
.note.refusal .t { color: var(--ink); background: var(--surface); border-radius: var(--radius-sm); }
.note.refusal .t { width: 100%; } .note.refusal .t td { overflow-wrap: anywhere; }

/* layout and spacing utilities */
.flex { display: flex; } .wrap { flex-wrap: wrap; }
.items-center { align-items: center; } .items-baseline { align-items: baseline; } .justify-end { justify-content: flex-end; }
.flex-1 { flex: 1; } .flex-none { flex: none; }
.gap-8 { gap: 8px; } .gap-10 { gap: 10px; } .gap-12 { gap: 12px; }
.ml-auto { margin-left: auto; }
.mt-0 { margin-top: 0; } .mt-4 { margin-top: 4px; } .mt-6 { margin-top: 6px; } .mt-8 { margin-top: 8px; } .mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; } .mt-14 { margin-top: 14px; } .mt-16 { margin-top: 16px; }
.mb-6 { margin-bottom: 6px; } .mb-10 { margin-bottom: 10px; } .mb-12 { margin-bottom: 12px; } .mb-14 { margin-bottom: 14px; } .mb-16 { margin-bottom: 16px; }
.p-8 { padding: 8px; } .pt-0 { padding-top: 0; }
.fs-11-5 { font-size: 11.5px; } .fs-12 { font-size: 12px; } .fs-12-5 { font-size: 12.5px; } .fs-20 { font-size: 20px; }
.text-right { text-align: right; } .nowrap { white-space: nowrap; } .break-word { word-break: break-word; }

/* Profile page: the theme choice (moved out of the sidebar). */
.profile-theme { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.profile-theme .theme-set { width: auto; min-width: 280px; }

/* local onboarding (development only) */
.onb-steps td { vertical-align: top; }
.onb-steps tr.onb-failed td { background: var(--bad-soft); }
.onb-url { font-size: 12px; word-break: break-all; }
.onb-result .card-h h3 { display: flex; align-items: center; gap: 8px; }


/* the tenant switch under the scope: only when the session lists more than one company */
.scope-switch { margin: 6px 12px 0; }
.scope-switch .in { width: 100%; }

/* The support page (reef PBL-150): static, every value from the session's `support`. */
/* Who is on call and the ticket, in a bar above the title: the width of the content. */
.topbar-slot { padding: 0 32px; } .topbar-slot:empty { display: none; }
.support-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-top: 18px; padding: 10px 12px 10px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-input); }
.support-oncall { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.support-oncall .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good-ink); flex: none; }
.support .kv dd { word-break: normal; overflow-wrap: anywhere; }
.support .card-b + .card-b { border-top: 1px solid var(--line); }
.support .t td { vertical-align: top; }
/* Each question its own bordered block with a chevron, as in the mockup; the answer under it. */
.support-faq { display: grid; gap: 8px; }
.support-faq details { border: 1px solid var(--line); border-radius: var(--radius-input); overflow: hidden; transition: border-color .12s; }
.support-faq details:hover { border-color: var(--ink-2); }
.support-faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; font-weight: 500; color: var(--ink); }
.support-faq summary::-webkit-details-marker { display: none; }
.support-faq summary:hover { background: var(--surface-3); }
.support-faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.support-faq .faq-chev { font-size: 20px; line-height: 1; color: var(--ink-2); transition: transform .15s; }
.support-faq details[open] .faq-chev { transform: rotate(90deg); }
.support-faq details p { margin: 0; padding: 0 14px 14px; color: var(--ink-2); line-height: 1.5; }
.support-steps { margin: 0; padding-left: 20px; } .support-steps li { padding: 3px 0; }
.support-sub { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.support-links { list-style: none; margin: 0; padding: 0; }
.support-links li { padding: 8px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; } .support-links li:first-child { border-top: 0; padding-top: 0; }
/* Support's own items in the menu (a proof of concept): a placeholder is shown, and goes nowhere. */
.nav-subs { display: grid; gap: 2px; margin: 2px 0 6px 22px; padding-left: 10px; border-left: 1px solid var(--line); }
.nav .nav-sub { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 5px 10px; border-radius: var(--radius-sm); color: var(--ink-2); text-decoration: none; }
.nav a.nav-sub:hover { background: var(--surface-3); color: var(--ink); }
.nav a.nav-sub.on { background: none; color: var(--ink); font-weight: 600; }
.nav .nav-sub.off { color: var(--muted); cursor: default; background: none; border: 0; font: inherit; text-align: left; width: 100%; }
.nav .nav-sub .ico { width: 14px; display: inline-flex; justify-content: center; flex: none; }
/* The demo note and the incident banner above the Support page, and the incident's own page. */
.support-demo, .support-incident-bar { margin-bottom: 12px; }
.support-incident-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; text-decoration: none; }
.support-incident-bar:hover { text-decoration: none; filter: brightness(.97); }
.support-incident-bar .go { margin-left: auto; font-weight: 600; }
.support-summary { margin: 0 0 12px; }
.support-qa { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.support-qa-item { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-input); text-decoration: none; color: var(--ink); }
.support-qa-item:hover { border-color: var(--ink-2); text-decoration: none; }
/* The external-link icon after a link that opens outside the dashboard. */
.support .ext { display: inline-block; margin-left: 4px; vertical-align: -1px; opacity: .7; }
.support .btn .ext { opacity: 1; }
